diff --git a/sdk/datafactory/azure-mgmt-datafactory/CHANGELOG.md b/sdk/datafactory/azure-mgmt-datafactory/CHANGELOG.md index 48d959aeac22..04a41c7bbc07 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/CHANGELOG.md +++ b/sdk/datafactory/azure-mgmt-datafactory/CHANGELOG.md @@ -1,5 +1,362 @@ # Release History +## 10.0.0b1 (2026-05-28) + +### Features Added + + - Client `DataFactoryManagementClient` added method `send_request` + - Model `ChangeDataCaptureResource` added property `system_data` + - Model `CredentialResource` added property `system_data` + - Model `DataFlowResource` added property `system_data` + - Model `DatasetResource` added property `system_data` + - Model `Factory` added property `system_data` + - Model `GlobalParameterResource` added property `system_data` + - Model `IntegrationRuntimeResource` added property `system_data` + - Model `LinkedServiceResource` added property `system_data` + - Model `ManagedPrivateEndpointResource` added property `system_data` + - Model `ManagedVirtualNetworkResource` added property `system_data` + - Model `PipelineResource` added property `system_data` + - Model `PrivateEndpointConnectionResource` added property `system_data` + - Model `TriggerResource` added property `system_data` + - Added enum `CreatedByType` + - Added model `ProxyResource` + +### Breaking Changes + + - For the method breakings, please refer to https://aka.ms/azsdk/python/migrate/operations for migration. + - Model `AmazonMWSLinkedService` moved instance variable `endpoint`, `marketplace_id`, `seller_id`, `mws_auth_token`, `access_key_id`, `secret_key`, `use_encrypted_endpoints`, `use_host_verification`, `use_peer_verification` and `encrypted_credential` under property `type_properties` whose type is `AmazonMWSLinkedServiceTypeProperties` + - Model `AmazonMWSObjectDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `AmazonRdsForOracleLinkedService` moved instance variable `connection_string`, `server`, `authentication_type`, `username`, `password`, `encryption_client`, `encryption_types_client`, `crypto_checksum_client`, `crypto_checksum_types_client`, `initial_lob_fetch_size`, `fetch_size`, `statement_cache_size`, `initialization_string`, `enable_bulk_load`, `support_v1_data_types`, `fetch_tswtz_as_timestamp` and `encrypted_credential` under property `type_properties` whose type is `AmazonRdsForLinkedServiceTypeProperties` + - Model `AmazonRdsForOracleTableDataset` moved instance variable `schema_type_properties_schema` and `table` under property `type_properties` whose type is `AmazonRdsForOracleTableDatasetTypeProperties` + - Model `AmazonRdsForSqlServerLinkedService` moved instance variable `server`, `database`, `encrypt`, `trust_server_certificate`, `host_name_in_certificate`, `application_intent`, `connect_timeout`, `connect_retry_count`, `connect_retry_interval`, `load_balance_timeout`, `command_timeout`, `integrated_security`, `failover_partner`, `max_pool_size`, `min_pool_size`, `multiple_active_result_sets`, `multi_subnet_failover`, `packet_size`, `pooling`, `connection_string`, `authentication_type`, `user_name`, `password`, `encrypted_credential` and `always_encrypted_settings` under property `type_properties` whose type is `AmazonRdsForSqlServerLinkedServiceTypeProperties` + - Model `AmazonRdsForSqlServerTableDataset` moved instance variable `schema_type_properties_schema` and `table` under property `type_properties` whose type is `AmazonRdsForSqlServerTableDatasetTypeProperties` + - Model `AmazonRedshiftLinkedService` moved instance variable `server`, `username`, `password`, `database`, `port` and `encrypted_credential` under property `type_properties` whose type is `AmazonRedshiftLinkedServiceTypeProperties` + - Model `AmazonRedshiftTableDataset` moved instance variable `table_name`, `table` and `schema_type_properties_schema` under property `type_properties` whose type is `AmazonRedshiftTableDatasetTypeProperties` + - Model `AmazonS3CompatibleLinkedService` moved instance variable `access_key_id`, `secret_access_key`, `service_url`, `force_path_style` and `encrypted_credential` under property `type_properties` whose type is `AmazonS3CompatibleLinkedServiceTypeProperties` + - Model `AmazonS3Dataset` moved instance variable `bucket_name`, `key`, `prefix`, `version`, `modified_datetime_start`, `modified_datetime_end`, `format` and `compression` under property `type_properties` whose type is `AmazonS3DatasetTypeProperties` + - Model `AmazonS3LinkedService` moved instance variable `authentication_type`, `access_key_id`, `secret_access_key`, `service_url`, `session_token` and `encrypted_credential` under property `type_properties` whose type is `AmazonS3LinkedServiceTypeProperties` + - Model `AppFiguresLinkedService` moved instance variable `user_name`, `password` and `client_key` under property `type_properties` whose type is `AppFiguresLinkedServiceTypeProperties` + - Model `AppendVariableActivity` moved instance variable `variable_name` and `value` under property `type_properties` whose type is `AppendVariableActivityTypeProperties` + - Model `AsanaLinkedService` moved instance variable `api_token` and `encrypted_credential` under property `type_properties` whose type is `AsanaLinkedServiceTypeProperties` + - Model `AvroDataset` moved instance variable `location`, `avro_compression_codec` and `avro_compression_level` under property `type_properties` whose type is `AvroDatasetTypeProperties` + - Model `AzPowerShellSetup` moved instance variable `version` under property `type_properties` whose type is `AzPowerShellSetupTypeProperties` + - Model `AzureBatchLinkedService` moved instance variable `account_name`, `access_key`, `batch_uri`, `pool_name`, `linked_service_name`, `encrypted_credential` and `credential` under property `type_properties` whose type is `AzureBatchLinkedServiceTypeProperties` + - Model `AzureBlobDataset` moved instance variable `folder_path`, `table_root_location`, `file_name`, `modified_datetime_start`, `modified_datetime_end`, `format` and `compression` under property `type_properties` whose type is `AzureBlobDatasetTypeProperties` + - Model `AzureBlobFSDataset` moved instance variable `folder_path`, `file_name`, `format` and `compression` under property `type_properties` whose type is `AzureBlobFSDatasetTypeProperties` + - Model `AzureBlobFSLinkedService` moved instance variable `url`, `account_key`, `service_principal_id`, `service_principal_key`, `tenant`, `azure_cloud_type`, `encrypted_credential`, `credential`, `service_principal_credential_type`, `service_principal_credential`, `sas_uri` and `sas_token` under property `type_properties` whose type is `AzureBlobFSLinkedServiceTypeProperties` + - Model `AzureBlobStorageLinkedService` moved instance variable `connection_string`, `account_key`, `sas_uri`, `sas_token`, `service_endpoint`, `service_principal_id`, `service_principal_key`, `tenant`, `azure_cloud_type`, `account_kind`, `encrypted_credential`, `credential`, `authentication_type` and `container_uri` under property `type_properties` whose type is `AzureBlobStorageLinkedServiceTypeProperties` + - Model `AzureDataExplorerCommandActivity` moved instance variable `command` and `command_timeout` under property `type_properties` whose type is `AzureDataExplorerCommandActivityTypeProperties` + - Model `AzureDataExplorerLinkedService` moved instance variable `endpoint`, `service_principal_id`, `service_principal_key`, `database`, `tenant` and `credential` under property `type_properties` whose type is `AzureDataExplorerLinkedServiceTypeProperties` + - Model `AzureDataExplorerTableDataset` moved instance variable `table` under property `type_properties` whose type is `AzureDataExplorerDatasetTypeProperties` + - Model `AzureDataLakeAnalyticsLinkedService` moved instance variable `account_name`, `service_principal_id`, `service_principal_key`, `tenant`, `subscription_id`, `resource_group_name`, `data_lake_analytics_uri` and `encrypted_credential` under property `type_properties` whose type is `AzureDataLakeAnalyticsLinkedServiceTypeProperties` + - Model `AzureDataLakeStoreDataset` moved instance variable `folder_path`, `file_name`, `format` and `compression` under property `type_properties` whose type is `AzureDataLakeStoreDatasetTypeProperties` + - Model `AzureDataLakeStoreLinkedService` moved instance variable `data_lake_store_uri`, `service_principal_id`, `service_principal_key`, `tenant`, `azure_cloud_type`, `account_name`, `subscription_id`, `resource_group_name`, `encrypted_credential` and `credential` under property `type_properties` whose type is `AzureDataLakeStoreLinkedServiceTypeProperties` + - Model `AzureDatabricksDeltaLakeDataset` moved instance variable `table` and `database` under property `type_properties` whose type is `AzureDatabricksDeltaLakeDatasetTypeProperties` + - Model `AzureDatabricksDeltaLakeLinkedService` moved instance variable `domain`, `access_token`, `cluster_id`, `encrypted_credential`, `credential` and `workspace_resource_id` under property `type_properties` whose type is `AzureDatabricksDetltaLakeLinkedServiceTypeProperties` + - Model `AzureDatabricksLinkedService` moved instance variable `domain`, `access_token`, `authentication`, `workspace_resource_id`, `existing_cluster_id`, `instance_pool_id`, `new_cluster_version`, `new_cluster_num_of_worker`, `new_cluster_node_type`, `new_cluster_spark_conf`, `new_cluster_spark_env_vars`, `new_cluster_custom_tags`, `new_cluster_log_destination`, `new_cluster_driver_node_type`, `new_cluster_init_scripts`, `new_cluster_enable_elastic_disk`, `encrypted_credential`, `policy_id`, `credential` and `data_security_mode` under property `type_properties` whose type is `AzureDatabricksLinkedServiceTypeProperties` + - Model `AzureFileStorageLinkedService` moved instance variable `host`, `user_id`, `password`, `connection_string`, `account_key`, `sas_uri`, `sas_token`, `file_share`, `snapshot`, `encrypted_credential`, `service_endpoint` and `credential` under property `type_properties` whose type is `AzureFileStorageLinkedServiceTypeProperties` + - Model `AzureFunctionActivity` moved instance variable `method`, `function_name`, `headers` and `body` under property `type_properties` whose type is `AzureFunctionActivityTypeProperties` + - Model `AzureFunctionLinkedService` moved instance variable `function_app_url`, `function_key`, `encrypted_credential`, `credential`, `resource_id` and `authentication` under property `type_properties` whose type is `AzureFunctionLinkedServiceTypeProperties` + - Model `AzureKeyVaultLinkedService` moved instance variable `base_url` and `credential` under property `type_properties` whose type is `AzureKeyVaultLinkedServiceTypeProperties` + - Model `AzureMLBatchExecutionActivity` moved instance variable `global_parameters`, `web_service_outputs` and `web_service_inputs` under property `type_properties` whose type is `AzureMLBatchExecutionActivityTypeProperties` + - Model `AzureMLExecutePipelineActivity` moved instance variable `ml_pipeline_id`, `ml_pipeline_endpoint_id`, `version`, `experiment_name`, `ml_pipeline_parameters`, `data_path_assignments`, `ml_parent_run_id` and `continue_on_step_failure` under property `type_properties` whose type is `AzureMLExecutePipelineActivityTypeProperties` + - Model `AzureMLLinkedService` moved instance variable `ml_endpoint`, `api_key`, `update_resource_endpoint`, `service_principal_id`, `service_principal_key`, `tenant`, `encrypted_credential` and `authentication` under property `type_properties` whose type is `AzureMLLinkedServiceTypeProperties` + - Model `AzureMLServiceLinkedService` moved instance variable `subscription_id`, `resource_group_name`, `ml_workspace_name`, `authentication`, `service_principal_id`, `service_principal_key`, `tenant` and `encrypted_credential` under property `type_properties` whose type is `AzureMLServiceLinkedServiceTypeProperties` + - Model `AzureMLUpdateResourceActivity` moved instance variable `trained_model_name`, `trained_model_linked_service_name` and `trained_model_file_path` under property `type_properties` whose type is `AzureMLUpdateResourceActivityTypeProperties` + - Model `AzureMariaDBLinkedService` moved instance variable `connection_string`, `pwd` and `encrypted_credential` under property `type_properties` whose type is `AzureMariaDBLinkedServiceTypeProperties` + - Model `AzureMariaDBTableDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `AzureMySqlLinkedService` moved instance variable `connection_string`, `password` and `encrypted_credential` under property `type_properties` whose type is `AzureMySqlLinkedServiceTypeProperties` + - Model `AzureMySqlTableDataset` moved instance variable `table_name` and `table` under property `type_properties` whose type is `AzureMySqlTableDatasetTypeProperties` + - Model `AzurePostgreSqlLinkedService` moved instance variable `connection_string`, `server`, `port`, `username`, `database`, `ssl_mode`, `timeout`, `command_timeout`, `trust_server_certificate`, `read_buffer_size`, `timezone`, `encoding`, `password`, `encrypted_credential`, `service_principal_id`, `service_principal_key`, `service_principal_credential_type`, `service_principal_embedded_cert`, `service_principal_embedded_cert_password`, `tenant`, `azure_cloud_type` and `credential` under property `type_properties` whose type is `AzurePostgreSqlLinkedServiceTypeProperties` + - Model `AzurePostgreSqlSinkUpsertSettings` renamed its instance variable `keys` to `keys_property` + - Model `AzurePostgreSqlTableDataset` moved instance variable `table_name`, `table` and `schema_type_properties_schema` under property `type_properties` whose type is `AzurePostgreSqlTableDatasetTypeProperties` + - Model `AzureSearchIndexDataset` moved instance variable `index_name` under property `type_properties` whose type is `AzureSearchIndexDatasetTypeProperties` + - Model `AzureSearchLinkedService` moved instance variable `url`, `key` and `encrypted_credential` under property `type_properties` whose type is `AzureSearchLinkedServiceTypeProperties` + - Model `AzureSqlDWLinkedService` moved instance variable `server`, `database`, `encrypt`, `trust_server_certificate`, `host_name_in_certificate`, `application_intent`, `connect_timeout`, `connect_retry_count`, `connect_retry_interval`, `load_balance_timeout`, `command_timeout`, `integrated_security`, `failover_partner`, `max_pool_size`, `min_pool_size`, `multiple_active_result_sets`, `multi_subnet_failover`, `packet_size`, `pooling`, `connection_string`, `authentication_type`, `user_name`, `password`, `service_principal_id`, `service_principal_key`, `service_principal_credential_type`, `service_principal_credential`, `tenant`, `azure_cloud_type`, `encrypted_credential` and `credential` under property `type_properties` whose type is `AzureSqlDWLinkedServiceTypeProperties` + - Model `AzureSqlDWTableDataset` moved instance variable `table_name`, `schema_type_properties_schema` and `table` under property `type_properties` whose type is `AzureSqlDWTableDatasetTypeProperties` + - Model `AzureSqlDatabaseLinkedService` moved instance variable `server`, `database`, `encrypt`, `trust_server_certificate`, `host_name_in_certificate`, `application_intent`, `connect_timeout`, `connect_retry_count`, `connect_retry_interval`, `load_balance_timeout`, `command_timeout`, `integrated_security`, `failover_partner`, `max_pool_size`, `min_pool_size`, `multiple_active_result_sets`, `multi_subnet_failover`, `packet_size`, `pooling`, `connection_string`, `authentication_type`, `user_name`, `password`, `service_principal_id`, `service_principal_key`, `service_principal_credential_type`, `service_principal_credential`, `tenant`, `azure_cloud_type`, `encrypted_credential`, `always_encrypted_settings` and `credential` under property `type_properties` whose type is `AzureSqlDatabaseLinkedServiceTypeProperties` + - Model `AzureSqlMILinkedService` moved instance variable `server`, `database`, `encrypt`, `trust_server_certificate`, `host_name_in_certificate`, `application_intent`, `connect_timeout`, `connect_retry_count`, `connect_retry_interval`, `load_balance_timeout`, `command_timeout`, `integrated_security`, `failover_partner`, `max_pool_size`, `min_pool_size`, `multiple_active_result_sets`, `multi_subnet_failover`, `packet_size`, `pooling`, `connection_string`, `authentication_type`, `user_name`, `password`, `service_principal_id`, `service_principal_key`, `service_principal_credential_type`, `service_principal_credential`, `tenant`, `azure_cloud_type`, `encrypted_credential`, `always_encrypted_settings` and `credential` under property `type_properties` whose type is `AzureSqlMILinkedServiceTypeProperties` + - Model `AzureSqlMITableDataset` moved instance variable `table_name`, `schema_type_properties_schema` and `table` under property `type_properties` whose type is `AzureSqlMITableDatasetTypeProperties` + - Model `AzureSqlTableDataset` moved instance variable `table_name`, `schema_type_properties_schema` and `table` under property `type_properties` whose type is `AzureSqlTableDatasetTypeProperties` + - Model `AzureStorageLinkedService` moved instance variable `connection_string`, `account_key`, `sas_uri`, `sas_token` and `encrypted_credential` under property `type_properties` whose type is `AzureStorageLinkedServiceTypeProperties` + - Model `AzureSynapseArtifactsLinkedService` moved instance variable `endpoint`, `authentication` and `workspace_resource_id` under property `type_properties` whose type is `AzureSynapseArtifactsLinkedServiceTypeProperties` + - Model `AzureTableDataset` moved instance variable `table_name` under property `type_properties` whose type is `AzureTableDatasetTypeProperties` + - Model `AzureTableStorageLinkedService` moved instance variable `connection_string`, `account_key`, `sas_uri`, `sas_token`, `encrypted_credential`, `service_endpoint` and `credential` under property `type_properties` whose type is `AzureTableStorageLinkedServiceTypeProperties` + - Model `BinaryDataset` moved instance variable `location` and `compression` under property `type_properties` whose type is `BinaryDatasetTypeProperties` + - Model `BlobEventsTrigger` moved instance variable `blob_path_begins_with`, `blob_path_ends_with`, `ignore_empty_blobs`, `events` and `scope` under property `type_properties` whose type is `BlobEventsTriggerTypeProperties` + - Model `BlobTrigger` moved instance variable `folder_path`, `max_concurrency` and `linked_service` under property `type_properties` whose type is `BlobTriggerTypeProperties` + - Model `CassandraLinkedService` moved instance variable `host`, `authentication_type`, `port`, `username`, `password` and `encrypted_credential` under property `type_properties` whose type is `CassandraLinkedServiceTypeProperties` + - Model `CassandraTableDataset` moved instance variable `table_name` and `keyspace` under property `type_properties` whose type is `CassandraTableDatasetTypeProperties` + - Model `ChainingTrigger` moved instance variable `depends_on` and `run_dimension` under property `type_properties` whose type is `ChainingTriggerTypeProperties` + - Model `ChangeDataCaptureResource` moved instance variable `folder`, `description`, `source_connections_info`, `target_connections_info`, `policy`, `allow_v_net_override` and `status` under property `properties` whose type is `ChangeDataCapture` + - Model `CloudError` moved instance variable `code`, `message`, `target` and `details` under property `error` whose type is `CloudErrorBody` + - Model `CmdkeySetup` moved instance variable `target_name`, `user_name` and `password` under property `type_properties` whose type is `CmdkeySetupTypeProperties` + - Model `CommonDataServiceForAppsEntityDataset` moved instance variable `entity_name` under property `type_properties` whose type is `CommonDataServiceForAppsEntityDatasetTypeProperties` + - Model `CommonDataServiceForAppsLinkedService` moved instance variable `deployment_type`, `host_name`, `port`, `service_uri`, `organization_name`, `authentication_type`, `domain`, `username`, `password`, `service_principal_id`, `service_principal_credential_type`, `service_principal_credential` and `encrypted_credential` under property `type_properties` whose type is `CommonDataServiceForAppsLinkedServiceTypeProperties` + - Model `ComponentSetup` moved instance variable `component_name` and `license_key` under property `type_properties` whose type is `LicensedComponentSetupTypeProperties` + - Model `ConcurLinkedService` moved instance variable `connection_properties`, `client_id`, `username`, `password`, `use_encrypted_endpoints`, `use_host_verification`, `use_peer_verification` and `encrypted_credential` under property `type_properties` whose type is `ConcurLinkedServiceTypeProperties` + - Model `ConcurObjectDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `CopyActivity` moved instance variable `source`, `sink`, `translator`, `enable_staging`, `staging_settings`, `parallel_copies`, `data_integration_units`, `enable_skip_incompatible_row`, `redirect_incompatible_row_settings`, `log_storage_settings`, `log_settings`, `preserve_rules`, `preserve`, `validate_data_consistency` and `skip_error_file` under property `type_properties` whose type is `CopyActivityTypeProperties` + - Model `CosmosDbLinkedService` moved instance variable `connection_string`, `account_endpoint`, `database`, `account_key`, `service_principal_id`, `service_principal_credential_type`, `service_principal_credential`, `tenant`, `azure_cloud_type`, `connection_mode`, `encrypted_credential` and `credential` under property `type_properties` whose type is `CosmosDbLinkedServiceTypeProperties` + - Model `CosmosDbMongoDbApiCollectionDataset` moved instance variable `collection` under property `type_properties` whose type is `CosmosDbMongoDbApiCollectionDatasetTypeProperties` + - Model `CosmosDbMongoDbApiLinkedService` moved instance variable `is_server_version_above32`, `connection_string` and `database` under property `type_properties` whose type is `CosmosDbMongoDbApiLinkedServiceTypeProperties` + - Model `CosmosDbSqlApiCollectionDataset` moved instance variable `collection_name` under property `type_properties` whose type is `CosmosDbSqlApiCollectionDatasetTypeProperties` + - Model `CouchbaseLinkedService` moved instance variable `connection_string`, `cred_string` and `encrypted_credential` under property `type_properties` whose type is `CouchbaseLinkedServiceTypeProperties` + - Model `CouchbaseTableDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `CustomActivity` moved instance variable `command`, `resource_linked_service`, `folder_path`, `reference_objects`, `extended_properties`, `retention_time_in_days` and `auto_user_specification` under property `type_properties` whose type is `CustomActivityTypeProperties` + - Model `CustomEventsTrigger` moved instance variable `subject_begins_with`, `subject_ends_with`, `events` and `scope` under property `type_properties` whose type is `CustomEventsTriggerTypeProperties` + - Model `DataLakeAnalyticsUSQLActivity` moved instance variable `script_path`, `script_linked_service`, `degree_of_parallelism`, `priority`, `parameters`, `runtime_version` and `compilation_mode` under property `type_properties` whose type is `DataLakeAnalyticsUSQLActivityTypeProperties` + - Model `DatabricksJobActivity` moved instance variable `job_id` and `job_parameters` under property `type_properties` whose type is `DatabricksJobActivityTypeProperties` + - Model `DatabricksNotebookActivity` moved instance variable `notebook_path`, `base_parameters` and `libraries` under property `type_properties` whose type is `DatabricksNotebookActivityTypeProperties` + - Model `DatabricksSparkJarActivity` moved instance variable `main_class_name`, `parameters` and `libraries` under property `type_properties` whose type is `DatabricksSparkJarActivityTypeProperties` + - Model `DatabricksSparkPythonActivity` moved instance variable `python_file`, `parameters` and `libraries` under property `type_properties` whose type is `DatabricksSparkPythonActivityTypeProperties` + - Model `DataworldLinkedService` moved instance variable `api_token` and `encrypted_credential` under property `type_properties` whose type is `DataworldLinkedServiceTypeProperties` + - Model `Db2LinkedService` moved instance variable `connection_string`, `server`, `database`, `authentication_type`, `username`, `password`, `package_collection`, `certificate_common_name` and `encrypted_credential` under property `type_properties` whose type is `Db2LinkedServiceTypeProperties` + - Model `Db2TableDataset` moved instance variable `table_name`, `schema_type_properties_schema` and `table` under property `type_properties` whose type is `Db2TableDatasetTypeProperties` + - Model `DeleteActivity` moved instance variable `recursive`, `max_concurrent_connections`, `enable_logging`, `log_storage_settings`, `dataset` and `store_settings` under property `type_properties` whose type is `DeleteActivityTypeProperties` + - Model `DelimitedTextDataset` moved instance variable `location`, `column_delimiter`, `row_delimiter`, `encoding_name`, `compression_codec`, `compression_level`, `quote_char`, `escape_char`, `first_row_as_header` and `null_value` under property `type_properties` whose type is `DelimitedTextDatasetTypeProperties` + - Model `DocumentDbCollectionDataset` moved instance variable `collection_name` under property `type_properties` whose type is `DocumentDbCollectionDatasetTypeProperties` + - Model `DrillLinkedService` moved instance variable `connection_string`, `pwd` and `encrypted_credential` under property `type_properties` whose type is `DrillLinkedServiceTypeProperties` + - Model `DrillTableDataset` moved instance variable `table_name`, `table` and `schema_type_properties_schema` under property `type_properties` whose type is `DrillDatasetTypeProperties` + - Model `DynamicsAXLinkedService` moved instance variable `url`, `service_principal_id`, `service_principal_key`, `tenant`, `aad_resource_id` and `encrypted_credential` under property `type_properties` whose type is `DynamicsAXLinkedServiceTypeProperties` + - Model `DynamicsAXResourceDataset` moved instance variable `path` under property `type_properties` whose type is `DynamicsAXResourceDatasetTypeProperties` + - Model `DynamicsCrmEntityDataset` moved instance variable `entity_name` under property `type_properties` whose type is `DynamicsCrmEntityDatasetTypeProperties` + - Model `DynamicsCrmLinkedService` moved instance variable `deployment_type`, `host_name`, `port`, `service_uri`, `organization_name`, `authentication_type`, `domain`, `username`, `password`, `service_principal_id`, `service_principal_credential_type`, `service_principal_credential`, `credential` and `encrypted_credential` under property `type_properties` whose type is `DynamicsCrmLinkedServiceTypeProperties` + - Model `DynamicsEntityDataset` moved instance variable `entity_name` under property `type_properties` whose type is `DynamicsEntityDatasetTypeProperties` + - Model `DynamicsLinkedService` moved instance variable `deployment_type`, `host_name`, `port`, `service_uri`, `organization_name`, `authentication_type`, `domain`, `username`, `password`, `service_principal_id`, `service_principal_credential_type`, `service_principal_credential`, `encrypted_credential` and `credential` under property `type_properties` whose type is `DynamicsLinkedServiceTypeProperties` + - Model `EloquaLinkedService` moved instance variable `endpoint`, `username`, `password`, `use_encrypted_endpoints`, `use_host_verification`, `use_peer_verification` and `encrypted_credential` under property `type_properties` whose type is `EloquaLinkedServiceTypeProperties` + - Model `EloquaObjectDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `EnvironmentVariableSetup` moved instance variable `variable_name` and `variable_value` under property `type_properties` whose type is `EnvironmentVariableSetupTypeProperties` + - Model `ExcelDataset` moved instance variable `location`, `sheet_name`, `sheet_index`, `range`, `first_row_as_header`, `compression` and `null_value` under property `type_properties` whose type is `ExcelDatasetTypeProperties` + - Model `ExecuteDataFlowActivity` moved instance variable `data_flow`, `staging`, `integration_runtime`, `continuation_settings`, `compute`, `trace_level`, `continue_on_error`, `run_concurrently` and `source_staging_concurrency` under property `type_properties` whose type is `ExecuteDataFlowActivityTypeProperties` + - Model `ExecutePipelineActivity` moved instance variable `pipeline`, `parameters` and `wait_on_completion` under property `type_properties` whose type is `ExecutePipelineActivityTypeProperties` + - Model `ExecuteSSISPackageActivity` moved instance variable `package_location`, `runtime`, `logging_level`, `environment_path`, `execution_credential`, `connect_via`, `project_parameters`, `package_parameters`, `project_connection_managers`, `package_connection_managers`, `property_overrides` and `log_location` under property `type_properties` whose type is `ExecuteSSISPackageActivityTypeProperties` + - Model `ExecuteWranglingDataflowActivity` moved instance variable `data_flow`, `staging`, `integration_runtime`, `continuation_settings`, `compute`, `trace_level`, `continue_on_error`, `run_concurrently`, `source_staging_concurrency`, `sinks` and `queries` under property `type_properties` whose type is `ExecutePowerQueryActivityTypeProperties` + - Model `FactoryUpdateParameters` moved instance variable `public_network_access` under property `properties` whose type is `FactoryUpdateProperties` + - Model `FailActivity` moved instance variable `message` and `error_code` under property `type_properties` whose type is `FailActivityTypeProperties` + - Model `FileServerLinkedService` moved instance variable `host`, `user_id`, `password` and `encrypted_credential` under property `type_properties` whose type is `FileServerLinkedServiceTypeProperties` + - Model `FileShareDataset` moved instance variable `folder_path`, `file_name`, `modified_datetime_start`, `modified_datetime_end`, `format`, `file_filter` and `compression` under property `type_properties` whose type is `FileShareDatasetTypeProperties` + - Model `FilterActivity` moved instance variable `items` and `condition` under property `type_properties` whose type is `FilterActivityTypeProperties` + - Model `Flowlet` moved instance variable `sources`, `sinks`, `transformations`, `script` and `script_lines` under property `type_properties` whose type is `FlowletTypeProperties` + - Model `ForEachActivity` moved instance variable `is_sequential`, `batch_count`, `items` and `activities` under property `type_properties` whose type is `ForEachActivityTypeProperties` + - Model `FtpServerLinkedService` moved instance variable `host`, `port`, `authentication_type`, `user_name`, `password`, `encrypted_credential`, `enable_ssl` and `enable_server_certificate_validation` under property `type_properties` whose type is `FtpServerLinkedServiceTypeProperties` + - Model `GetMetadataActivity` moved instance variable `dataset`, `field_list`, `store_settings` and `format_settings` under property `type_properties` whose type is `GetMetadataActivityTypeProperties` + - Model `GoogleAdWordsLinkedService` moved instance variable `connection_properties`, `client_customer_id`, `developer_token`, `authentication_type`, `refresh_token`, `client_id`, `client_secret`, `email`, `key_file_path`, `trusted_cert_path`, `use_system_trust_store`, `private_key`, `login_customer_id`, `google_ads_api_version`, `support_legacy_data_types` and `encrypted_credential` under property `type_properties` whose type is `GoogleAdWordsLinkedServiceTypeProperties` + - Model `GoogleAdWordsObjectDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `GoogleBigQueryLinkedService` moved instance variable `project`, `additional_projects`, `request_google_drive_scope`, `authentication_type`, `refresh_token`, `client_id`, `client_secret`, `email`, `key_file_path`, `trusted_cert_path`, `use_system_trust_store` and `encrypted_credential` under property `type_properties` whose type is `GoogleBigQueryLinkedServiceTypeProperties` + - Model `GoogleBigQueryObjectDataset` moved instance variable `table_name`, `table` and `dataset` under property `type_properties` whose type is `GoogleBigQueryDatasetTypeProperties` + - Model `GoogleBigQueryV2LinkedService` moved instance variable `project_id`, `authentication_type`, `client_id`, `client_secret`, `refresh_token`, `key_file_content` and `encrypted_credential` under property `type_properties` whose type is `GoogleBigQueryV2LinkedServiceTypeProperties` + - Model `GoogleBigQueryV2ObjectDataset` moved instance variable `table` and `dataset` under property `type_properties` whose type is `GoogleBigQueryV2DatasetTypeProperties` + - Model `GoogleCloudStorageLinkedService` moved instance variable `access_key_id`, `secret_access_key`, `service_url` and `encrypted_credential` under property `type_properties` whose type is `GoogleCloudStorageLinkedServiceTypeProperties` + - Model `GoogleSheetsLinkedService` moved instance variable `api_token` and `encrypted_credential` under property `type_properties` whose type is `GoogleSheetsLinkedServiceTypeProperties` + - Model `GreenplumLinkedService` moved instance variable `connection_string`, `pwd`, `encrypted_credential`, `authentication_type`, `host`, `port`, `username`, `database`, `ssl_mode`, `connection_timeout` and `command_timeout` under property `type_properties` whose type is `GreenplumLinkedServiceTypeProperties` + - Model `GreenplumTableDataset` moved instance variable `table_name`, `table` and `schema_type_properties_schema` under property `type_properties` whose type is `GreenplumDatasetTypeProperties` + - Model `HBaseLinkedService` moved instance variable `host`, `port`, `http_path`, `authentication_type`, `username`, `password`, `enable_ssl`, `trusted_cert_path`, `allow_host_name_cn_mismatch`, `allow_self_signed_server_cert` and `encrypted_credential` under property `type_properties` whose type is `HBaseLinkedServiceTypeProperties` + - Model `HBaseObjectDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `HDInsightHiveActivity` moved instance variable `storage_linked_services`, `arguments`, `get_debug_info`, `script_path`, `script_linked_service`, `defines`, `variables` and `query_timeout` under property `type_properties` whose type is `HDInsightHiveActivityTypeProperties` + - Model `HDInsightLinkedService` moved instance variable `cluster_uri`, `cluster_auth_type`, `user_name`, `password`, `linked_service_name`, `hcatalog_linked_service_name`, `encrypted_credential`, `is_esp_enabled`, `file_system` and `credential` under property `type_properties` whose type is `HDInsightLinkedServiceTypeProperties` + - Model `HDInsightMapReduceActivity` moved instance variable `storage_linked_services`, `arguments`, `get_debug_info`, `class_name`, `jar_file_path`, `jar_linked_service`, `jar_libs` and `defines` under property `type_properties` whose type is `HDInsightMapReduceActivityTypeProperties` + - Model `HDInsightOnDemandLinkedService` moved instance variable `cluster_size`, `time_to_live`, `version_type_properties_version`, `linked_service_name`, `host_subscription_id`, `service_principal_id`, `service_principal_key`, `tenant`, `cluster_resource_group`, `cluster_resource_group_auth_type`, `cluster_name_prefix`, `cluster_user_name`, `cluster_password`, `cluster_ssh_user_name`, `cluster_ssh_password`, `additional_linked_service_names`, `hcatalog_linked_service_name`, `cluster_type`, `spark_version`, `core_configuration`, `h_base_configuration`, `hdfs_configuration`, `hive_configuration`, `map_reduce_configuration`, `oozie_configuration`, `storm_configuration`, `yarn_configuration`, `encrypted_credential`, `head_node_size`, `data_node_size`, `zookeeper_node_size`, `script_actions`, `virtual_network_id`, `subnet_name` and `credential` under property `type_properties` whose type is `HDInsightOnDemandLinkedServiceTypeProperties` + - Model `HDInsightPigActivity` moved instance variable `storage_linked_services`, `arguments`, `get_debug_info`, `script_path`, `script_linked_service` and `defines` under property `type_properties` whose type is `HDInsightPigActivityTypeProperties` + - Model `HDInsightSparkActivity` moved instance variable `root_path`, `entry_file_path`, `arguments`, `get_debug_info`, `spark_job_linked_service`, `class_name`, `proxy_user` and `spark_config` under property `type_properties` whose type is `HDInsightSparkActivityTypeProperties` + - Model `HDInsightStreamingActivity` moved instance variable `storage_linked_services`, `arguments`, `get_debug_info`, `mapper`, `reducer`, `input`, `output`, `file_paths`, `file_linked_service`, `combiner`, `command_environment` and `defines` under property `type_properties` whose type is `HDInsightStreamingActivityTypeProperties` + - Model `HdfsLinkedService` moved instance variable `url`, `authentication_type`, `encrypted_credential`, `user_name` and `password` under property `type_properties` whose type is `HdfsLinkedServiceTypeProperties` + - Model `HiveLinkedService` moved instance variable `host`, `port`, `server_type`, `thrift_transport_protocol`, `authentication_type`, `service_discovery_mode`, `zoo_keeper_name_space`, `use_native_query`, `username`, `password`, `http_path`, `enable_ssl`, `enable_server_certificate_validation`, `trusted_cert_path`, `use_system_trust_store`, `allow_host_name_cn_mismatch`, `allow_self_signed_server_cert` and `encrypted_credential` under property `type_properties` whose type is `HiveLinkedServiceTypeProperties` + - Model `HiveObjectDataset` moved instance variable `table_name`, `table` and `schema_type_properties_schema` under property `type_properties` whose type is `HiveDatasetTypeProperties` + - Model `HttpDataset` moved instance variable `relative_url`, `request_method`, `request_body`, `additional_headers`, `format` and `compression` under property `type_properties` whose type is `HttpDatasetTypeProperties` + - Model `HttpLinkedService` moved instance variable `url`, `authentication_type`, `user_name`, `password`, `auth_headers`, `embedded_cert_data`, `cert_thumbprint`, `encrypted_credential` and `enable_server_certificate_validation` under property `type_properties` whose type is `HttpLinkedServiceTypeProperties` + - Model `HubspotLinkedService` moved instance variable `client_id`, `client_secret`, `access_token`, `refresh_token`, `use_encrypted_endpoints`, `use_host_verification`, `use_peer_verification` and `encrypted_credential` under property `type_properties` whose type is `HubspotLinkedServiceTypeProperties` + - Model `HubspotObjectDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `IcebergDataset` moved instance variable `location` under property `type_properties` whose type is `IcebergDatasetTypeProperties` + - Model `IfConditionActivity` moved instance variable `expression`, `if_true_activities` and `if_false_activities` under property `type_properties` whose type is `IfConditionActivityTypeProperties` + - Model `ImpalaLinkedService` moved instance variable `host`, `port`, `authentication_type`, `username`, `password`, `thrift_transport_protocol`, `enable_ssl`, `enable_server_certificate_validation`, `trusted_cert_path`, `use_system_trust_store`, `allow_host_name_cn_mismatch`, `allow_self_signed_server_cert` and `encrypted_credential` under property `type_properties` whose type is `ImpalaLinkedServiceTypeProperties` + - Model `ImpalaObjectDataset` moved instance variable `table_name`, `table` and `schema_type_properties_schema` under property `type_properties` whose type is `ImpalaDatasetTypeProperties` + - Model `InformixLinkedService` moved instance variable `connection_string`, `authentication_type`, `credential`, `user_name`, `password` and `encrypted_credential` under property `type_properties` whose type is `InformixLinkedServiceTypeProperties` + - Model `InformixTableDataset` moved instance variable `table_name` under property `type_properties` whose type is `InformixTableDatasetTypeProperties` + - Model `JiraLinkedService` moved instance variable `host`, `port`, `username`, `password`, `use_encrypted_endpoints`, `use_host_verification`, `use_peer_verification` and `encrypted_credential` under property `type_properties` whose type is `JiraLinkedServiceTypeProperties` + - Model `JiraObjectDataset` moved instance variable `table_name`, `schema_type_properties_schema` and `table` under property `type_properties` whose type is `JiraTableDatasetTypeProperties` + - Model `JsonDataset` moved instance variable `location`, `encoding_name` and `compression` under property `type_properties` whose type is `JsonDatasetTypeProperties` + - Model `LakeHouseLinkedService` moved instance variable `workspace_id`, `artifact_id`, `authentication_type`, `service_principal_id`, `service_principal_key`, `tenant`, `encrypted_credential`, `service_principal_credential_type`, `service_principal_credential` and `credential` under property `type_properties` whose type is `LakeHouseLinkedServiceTypeProperties` + - Model `LakeHouseTableDataset` moved instance variable `schema_type_properties_schema` and `table` under property `type_properties` whose type is `LakeHouseTableDatasetTypeProperties` + - Model `LookupActivity` moved instance variable `source`, `dataset`, `first_row_only` and `treat_decimal_as_string` under property `type_properties` whose type is `LookupActivityTypeProperties` + - Model `MagentoLinkedService` moved instance variable `host`, `access_token`, `use_encrypted_endpoints`, `use_host_verification`, `use_peer_verification` and `encrypted_credential` under property `type_properties` whose type is `MagentoLinkedServiceTypeProperties` + - Model `MagentoObjectDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `ManagedIdentityCredential` moved instance variable `resource_id` under property `type_properties` whose type is `ManagedIdentityTypeProperties` + - Model `ManagedIntegrationRuntime` moved instance variable `compute_properties`, `ssis_properties`, `customer_virtual_network` and `interactive_query` under property `type_properties` whose type is `ManagedIntegrationRuntimeTypeProperties` + - Model `ManagedIntegrationRuntimeStatus` moved instance variable `create_time`, `nodes`, `other_errors` and `last_operation` under property `type_properties` whose type is `ManagedIntegrationRuntimeStatusTypeProperties` + - Model `MappingDataFlow` moved instance variable `sources`, `sinks`, `transformations`, `script` and `script_lines` under property `type_properties` whose type is `MappingDataFlowTypeProperties` + - Model `MariaDBLinkedService` moved instance variable `driver_version`, `connection_string`, `server`, `port`, `username`, `database`, `ssl_mode`, `use_system_trust_store`, `password` and `encrypted_credential` under property `type_properties` whose type is `MariaDBLinkedServiceTypeProperties` + - Model `MariaDBTableDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `MarketoLinkedService` moved instance variable `endpoint`, `client_id`, `client_secret`, `use_encrypted_endpoints`, `use_host_verification`, `use_peer_verification` and `encrypted_credential` under property `type_properties` whose type is `MarketoLinkedServiceTypeProperties` + - Model `MarketoObjectDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `MicrosoftAccessLinkedService` moved instance variable `connection_string`, `authentication_type`, `credential`, `user_name`, `password` and `encrypted_credential` under property `type_properties` whose type is `MicrosoftAccessLinkedServiceTypeProperties` + - Model `MicrosoftAccessTableDataset` moved instance variable `table_name` under property `type_properties` whose type is `MicrosoftAccessTableDatasetTypeProperties` + - Model `MongoDbAtlasCollectionDataset` moved instance variable `collection` under property `type_properties` whose type is `MongoDbAtlasCollectionDatasetTypeProperties` + - Model `MongoDbAtlasLinkedService` moved instance variable `connection_string`, `database` and `driver_version` under property `type_properties` whose type is `MongoDbAtlasLinkedServiceTypeProperties` + - Model `MongoDbCollectionDataset` moved instance variable `collection_name` under property `type_properties` whose type is `MongoDbCollectionDatasetTypeProperties` + - Model `MongoDbLinkedService` moved instance variable `server`, `authentication_type`, `database_name`, `username`, `password`, `auth_source`, `port`, `enable_ssl`, `allow_self_signed_server_cert` and `encrypted_credential` under property `type_properties` whose type is `MongoDbLinkedServiceTypeProperties` + - Model `MongoDbV2CollectionDataset` moved instance variable `collection` under property `type_properties` whose type is `MongoDbV2CollectionDatasetTypeProperties` + - Model `MongoDbV2LinkedService` moved instance variable `connection_string` and `database` under property `type_properties` whose type is `MongoDbV2LinkedServiceTypeProperties` + - Model `MySqlLinkedService` moved instance variable `driver_version`, `connection_string`, `server`, `port`, `username`, `database`, `ssl_mode`, `use_system_trust_store`, `password`, `encrypted_credential`, `allow_zero_date_time`, `connection_timeout`, `convert_zero_date_time`, `guid_format`, `ssl_cert`, `ssl_key` and `treat_tiny_as_boolean` under property `type_properties` whose type is `MySqlLinkedServiceTypeProperties` + - Model `MySqlTableDataset` moved instance variable `table_name` under property `type_properties` whose type is `MySqlTableDatasetTypeProperties` + - Model `NetezzaLinkedService` moved instance variable `connection_string`, `server`, `port`, `uid`, `database`, `security_level`, `pwd` and `encrypted_credential` under property `type_properties` whose type is `NetezzaLinkedServiceTypeProperties` + - Model `NetezzaTableDataset` moved instance variable `table_name`, `table` and `schema_type_properties_schema` under property `type_properties` whose type is `NetezzaTableDatasetTypeProperties` + - Model `ODataLinkedService` moved instance variable `url`, `authentication_type`, `user_name`, `password`, `auth_headers`, `tenant`, `service_principal_id`, `azure_cloud_type`, `aad_resource_id`, `aad_service_principal_credential_type`, `service_principal_key`, `service_principal_embedded_cert`, `service_principal_embedded_cert_password` and `encrypted_credential` under property `type_properties` whose type is `ODataLinkedServiceTypeProperties` + - Model `ODataResourceDataset` moved instance variable `path` under property `type_properties` whose type is `ODataResourceDatasetTypeProperties` + - Model `OdbcLinkedService` moved instance variable `connection_string`, `authentication_type`, `credential`, `user_name`, `password` and `encrypted_credential` under property `type_properties` whose type is `OdbcLinkedServiceTypeProperties` + - Model `OdbcTableDataset` moved instance variable `table_name` under property `type_properties` whose type is `OdbcTableDatasetTypeProperties` + - Model `Office365Dataset` moved instance variable `table_name` and `predicate` under property `type_properties` whose type is `Office365DatasetTypeProperties` + - Model `Office365LinkedService` moved instance variable `office365_tenant_id`, `service_principal_tenant_id`, `service_principal_id`, `service_principal_key`, `service_principal_credential_type`, `service_principal_embedded_cert`, `service_principal_embedded_cert_password` and `encrypted_credential` under property `type_properties` whose type is `Office365LinkedServiceTypeProperties` + - Model `OracleCloudStorageLinkedService` moved instance variable `access_key_id`, `secret_access_key`, `service_url` and `encrypted_credential` under property `type_properties` whose type is `OracleCloudStorageLinkedServiceTypeProperties` + - Model `OracleLinkedService` moved instance variable `connection_string`, `server`, `authentication_type`, `username`, `password`, `encryption_client`, `encryption_types_client`, `crypto_checksum_client`, `crypto_checksum_types_client`, `initial_lob_fetch_size`, `fetch_size`, `statement_cache_size`, `initialization_string`, `enable_bulk_load`, `support_v1_data_types`, `fetch_tswtz_as_timestamp` and `encrypted_credential` under property `type_properties` whose type is `OracleLinkedServiceTypeProperties` + - Model `OracleServiceCloudLinkedService` moved instance variable `host`, `username`, `password`, `use_encrypted_endpoints`, `use_host_verification`, `use_peer_verification` and `encrypted_credential` under property `type_properties` whose type is `OracleServiceCloudLinkedServiceTypeProperties` + - Model `OracleServiceCloudObjectDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `OracleTableDataset` moved instance variable `table_name`, `schema_type_properties_schema` and `table` under property `type_properties` whose type is `OracleTableDatasetTypeProperties` + - Model `OrcDataset` moved instance variable `location` and `orc_compression_codec` under property `type_properties` whose type is `OrcDatasetTypeProperties` + - Model `ParquetDataset` moved instance variable `location` and `compression_codec` under property `type_properties` whose type is `ParquetDatasetTypeProperties` + - Model `PaypalLinkedService` moved instance variable `host`, `client_id`, `client_secret`, `use_encrypted_endpoints`, `use_host_verification`, `use_peer_verification` and `encrypted_credential` under property `type_properties` whose type is `PaypalLinkedServiceTypeProperties` + - Model `PaypalObjectDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `PhoenixLinkedService` moved instance variable `host`, `port`, `http_path`, `authentication_type`, `username`, `password`, `enable_ssl`, `trusted_cert_path`, `use_system_trust_store`, `allow_host_name_cn_mismatch`, `allow_self_signed_server_cert` and `encrypted_credential` under property `type_properties` whose type is `PhoenixLinkedServiceTypeProperties` + - Model `PhoenixObjectDataset` moved instance variable `table_name`, `table` and `schema_type_properties_schema` under property `type_properties` whose type is `PhoenixDatasetTypeProperties` + - Model `PipelineResource` moved instance variable `description`, `activities`, `parameters`, `variables`, `concurrency`, `annotations`, `run_dimensions`, `folder` and `policy` under property `properties` whose type is `Pipeline` + - Model `PostgreSqlLinkedService` moved instance variable `connection_string`, `password` and `encrypted_credential` under property `type_properties` whose type is `PostgreSqlLinkedServiceTypeProperties` + - Model `PostgreSqlTableDataset` moved instance variable `table_name`, `table` and `schema_type_properties_schema` under property `type_properties` whose type is `PostgreSqlTableDatasetTypeProperties` + - Model `PostgreSqlV2LinkedService` moved instance variable `server`, `port`, `username`, `database`, `authentication_type`, `ssl_mode`, `schema`, `pooling`, `connection_timeout`, `command_timeout`, `trust_server_certificate`, `ssl_certificate`, `ssl_key`, `ssl_password`, `read_buffer_size`, `log_parameters`, `timezone`, `encoding`, `password` and `encrypted_credential` under property `type_properties` whose type is `PostgreSqlV2LinkedServiceTypeProperties` + - Model `PostgreSqlV2TableDataset` moved instance variable `table` and `schema_type_properties_schema` under property `type_properties` whose type is `PostgreSqlV2TableDatasetTypeProperties` + - Model `PrestoLinkedService` moved instance variable `host`, `server_version`, `catalog`, `port`, `authentication_type`, `username`, `password`, `enable_ssl`, `enable_server_certificate_validation`, `trusted_cert_path`, `use_system_trust_store`, `allow_host_name_cn_mismatch`, `allow_self_signed_server_cert`, `time_zone_id` and `encrypted_credential` under property `type_properties` whose type is `PrestoLinkedServiceTypeProperties` + - Model `PrestoObjectDataset` moved instance variable `table_name`, `table` and `schema_type_properties_schema` under property `type_properties` whose type is `PrestoDatasetTypeProperties` + - Model `QuickBooksLinkedService` moved instance variable `connection_properties`, `endpoint`, `company_id`, `consumer_key`, `consumer_secret`, `access_token`, `access_token_secret`, `refresh_token`, `use_encrypted_endpoints` and `encrypted_credential` under property `type_properties` whose type is `QuickBooksLinkedServiceTypeProperties` + - Model `QuickBooksObjectDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `QuickbaseLinkedService` moved instance variable `url`, `user_token` and `encrypted_credential` under property `type_properties` whose type is `QuickbaseLinkedServiceTypeProperties` + - Model `RelationalTableDataset` moved instance variable `table_name` under property `type_properties` whose type is `RelationalTableDatasetTypeProperties` + - Model `RerunTumblingWindowTrigger` moved instance variable `parent_trigger`, `requested_start_time`, `requested_end_time` and `rerun_concurrency` under property `type_properties` whose type is `RerunTumblingWindowTriggerTypeProperties` + - Model `Resource` moved instance variable `location`, `tags` and `e_tag` under property `system_data` whose type is `SystemData` + - Model `ResponsysLinkedService` moved instance variable `endpoint`, `client_id`, `client_secret`, `use_encrypted_endpoints`, `use_host_verification`, `use_peer_verification` and `encrypted_credential` under property `type_properties` whose type is `ResponsysLinkedServiceTypeProperties` + - Model `ResponsysObjectDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `RestResourceDataset` moved instance variable `relative_url`, `request_method`, `request_body`, `additional_headers` and `pagination_rules` under property `type_properties` whose type is `RestResourceDatasetTypeProperties` + - Model `RestServiceLinkedService` moved instance variable `url`, `enable_server_certificate_validation`, `authentication_type`, `user_name`, `password`, `auth_headers`, `service_principal_id`, `service_principal_key`, `tenant`, `azure_cloud_type`, `aad_resource_id`, `encrypted_credential`, `credential`, `client_id`, `client_secret`, `token_endpoint`, `resource`, `scope`, `service_principal_credential_type`, `service_principal_embedded_cert` and `service_principal_embedded_cert_password` under property `type_properties` whose type is `RestServiceLinkedServiceTypeProperties` + - Model `RunQueryFilter` renamed its instance variable `values` to `values_property` + - Model `SSISLogLocation` moved instance variable `access_credential` and `log_refresh_interval` under property `type_properties` whose type is `SSISLogLocationTypeProperties` + - Model `SSISPackageLocation` moved instance variable `package_password`, `access_credential`, `configuration_path`, `configuration_access_credential`, `package_name`, `package_content`, `package_last_modified_date` and `child_packages` under property `type_properties` whose type is `SSISPackageLocationTypeProperties` + - Model `SalesforceLinkedService` moved instance variable `environment_url`, `username`, `password`, `security_token`, `api_version` and `encrypted_credential` under property `type_properties` whose type is `SalesforceLinkedServiceTypeProperties` + - Model `SalesforceMarketingCloudLinkedService` moved instance variable `connection_properties`, `client_id`, `client_secret`, `use_encrypted_endpoints`, `use_host_verification`, `use_peer_verification` and `encrypted_credential` under property `type_properties` whose type is `SalesforceMarketingCloudLinkedServiceTypeProperties` + - Model `SalesforceMarketingCloudObjectDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `SalesforceObjectDataset` moved instance variable `object_api_name` under property `type_properties` whose type is `SalesforceObjectDatasetTypeProperties` + - Model `SalesforceServiceCloudLinkedService` moved instance variable `environment_url`, `username`, `password`, `security_token`, `api_version`, `extended_properties` and `encrypted_credential` under property `type_properties` whose type is `SalesforceServiceCloudLinkedServiceTypeProperties` + - Model `SalesforceServiceCloudObjectDataset` moved instance variable `object_api_name` under property `type_properties` whose type is `SalesforceServiceCloudObjectDatasetTypeProperties` + - Model `SalesforceServiceCloudV2LinkedService` moved instance variable `environment_url`, `authentication_type`, `client_id`, `client_secret`, `api_version` and `encrypted_credential` under property `type_properties` whose type is `SalesforceServiceCloudV2LinkedServiceTypeProperties` + - Model `SalesforceServiceCloudV2ObjectDataset` moved instance variable `object_api_name` and `report_id` under property `type_properties` whose type is `SalesforceServiceCloudV2ObjectDatasetTypeProperties` + - Model `SalesforceV2LinkedService` moved instance variable `environment_url`, `authentication_type`, `client_id`, `client_secret`, `api_version` and `encrypted_credential` under property `type_properties` whose type is `SalesforceV2LinkedServiceTypeProperties` + - Model `SalesforceV2ObjectDataset` moved instance variable `object_api_name` and `report_id` under property `type_properties` whose type is `SalesforceV2ObjectDatasetTypeProperties` + - Model `SapBWLinkedService` moved instance variable `server`, `system_number`, `client_id`, `user_name`, `password` and `encrypted_credential` under property `type_properties` whose type is `SapBWLinkedServiceTypeProperties` + - Model `SapCloudForCustomerLinkedService` moved instance variable `url`, `username`, `password` and `encrypted_credential` under property `type_properties` whose type is `SapCloudForCustomerLinkedServiceTypeProperties` + - Model `SapCloudForCustomerResourceDataset` moved instance variable `path` under property `type_properties` whose type is `SapCloudForCustomerResourceDatasetTypeProperties` + - Model `SapEccLinkedService` moved instance variable `url`, `username`, `password` and `encrypted_credential` under property `type_properties` whose type is `SapEccLinkedServiceTypeProperties` + - Model `SapEccResourceDataset` moved instance variable `path` under property `type_properties` whose type is `SapEccResourceDatasetTypeProperties` + - Model `SapHanaLinkedService` moved instance variable `connection_string`, `server`, `authentication_type`, `user_name`, `password` and `encrypted_credential` under property `type_properties` whose type is `SapHanaLinkedServiceProperties` + - Model `SapHanaTableDataset` moved instance variable `schema_type_properties_schema` and `table` under property `type_properties` whose type is `SapHanaTableDatasetTypeProperties` + - Model `SapOdpLinkedService` moved instance variable `server`, `system_number`, `client_id`, `language`, `system_id`, `user_name`, `password`, `message_server`, `message_server_service`, `snc_mode`, `snc_my_name`, `snc_partner_name`, `snc_library_path`, `snc_qop`, `x509_certificate_path`, `logon_group`, `subscriber_name` and `encrypted_credential` under property `type_properties` whose type is `SapOdpLinkedServiceTypeProperties` + - Model `SapOdpResourceDataset` moved instance variable `context` and `object_name` under property `type_properties` whose type is `SapOdpResourceDatasetTypeProperties` + - Model `SapOpenHubLinkedService` moved instance variable `server`, `system_number`, `client_id`, `language`, `system_id`, `user_name`, `password`, `message_server`, `message_server_service`, `logon_group` and `encrypted_credential` under property `type_properties` whose type is `SapOpenHubLinkedServiceTypeProperties` + - Model `SapOpenHubTableDataset` moved instance variable `open_hub_destination_name`, `exclude_last_request` and `base_request_id` under property `type_properties` whose type is `SapOpenHubTableDatasetTypeProperties` + - Model `SapTableLinkedService` moved instance variable `server`, `system_number`, `client_id`, `language`, `system_id`, `user_name`, `password`, `message_server`, `message_server_service`, `snc_mode`, `snc_my_name`, `snc_partner_name`, `snc_library_path`, `snc_qop`, `logon_group` and `encrypted_credential` under property `type_properties` whose type is `SapTableLinkedServiceTypeProperties` + - Model `SapTableResourceDataset` moved instance variable `table_name` under property `type_properties` whose type is `SapTableResourceDatasetTypeProperties` + - Model `ScheduleTrigger` moved instance variable `recurrence` under property `type_properties` whose type is `ScheduleTriggerTypeProperties` + - Model `ScriptActivity` moved instance variable `script_block_execution_timeout`, `scripts`, `log_settings`, `return_multistatement_result` and `treat_decimal_as_string` under property `type_properties` whose type is `ScriptActivityTypeProperties` + - Model `SelfHostedIntegrationRuntime` moved instance variable `linked_info` and `self_contained_interactive_authoring_enabled` under property `type_properties` whose type is `SelfHostedIntegrationRuntimeTypeProperties` + - Model `SelfHostedIntegrationRuntimeStatus` moved instance variable `create_time`, `task_queue_id`, `internal_channel_encryption`, `version`, `nodes`, `scheduled_update_date`, `update_delay_offset`, `local_time_zone_offset`, `capabilities`, `service_urls`, `auto_update`, `version_status`, `links`, `pushed_version`, `latest_version`, `auto_update_eta` and `self_contained_interactive_authoring_enabled` under property `type_properties` whose type is `SelfHostedIntegrationRuntimeStatusTypeProperties` + - Model `ServiceNowLinkedService` moved instance variable `endpoint`, `authentication_type`, `username`, `password`, `client_id`, `client_secret`, `use_encrypted_endpoints`, `use_host_verification`, `use_peer_verification` and `encrypted_credential` under property `type_properties` whose type is `ServiceNowLinkedServiceTypeProperties` + - Model `ServiceNowObjectDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `ServiceNowV2LinkedService` moved instance variable `endpoint`, `authentication_type`, `username`, `password`, `client_id`, `client_secret`, `grant_type` and `encrypted_credential` under property `type_properties` whose type is `ServiceNowV2LinkedServiceTypeProperties` + - Model `ServiceNowV2ObjectDataset` moved instance variable `table_name` and `value_type` under property `type_properties` whose type is `ServiceNowV2DatasetTypeProperties` + - Model `ServicePrincipalCredential` moved instance variable `service_principal_id`, `service_principal_key` and `tenant` under property `type_properties` whose type is `ServicePrincipalCredentialTypeProperties` + - Model `SetVariableActivity` moved instance variable `variable_name`, `value` and `set_system_variable` under property `type_properties` whose type is `SetVariableActivityTypeProperties` + - Model `SftpServerLinkedService` moved instance variable `host`, `port`, `authentication_type`, `user_name`, `password`, `encrypted_credential`, `private_key_path`, `private_key_content`, `pass_phrase`, `skip_host_key_validation` and `host_key_fingerprint` under property `type_properties` whose type is `SftpServerLinkedServiceTypeProperties` + - Model `SharePointOnlineListLinkedService` moved instance variable `site_url`, `tenant_id`, `service_principal_id`, `service_principal_key`, `service_principal_credential_type`, `service_principal_embedded_cert`, `service_principal_embedded_cert_password` and `encrypted_credential` under property `type_properties` whose type is `SharePointOnlineListLinkedServiceTypeProperties` + - Model `SharePointOnlineListResourceDataset` moved instance variable `list_name` under property `type_properties` whose type is `SharePointOnlineListDatasetTypeProperties` + - Model `ShopifyLinkedService` moved instance variable `host`, `access_token`, `use_encrypted_endpoints`, `use_host_verification`, `use_peer_verification` and `encrypted_credential` under property `type_properties` whose type is `ShopifyLinkedServiceTypeProperties` + - Model `ShopifyObjectDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `SmartsheetLinkedService` moved instance variable `api_token` and `encrypted_credential` under property `type_properties` whose type is `SmartsheetLinkedServiceTypeProperties` + - Model `SnowflakeDataset` moved instance variable `schema_type_properties_schema` and `table` under property `type_properties` whose type is `SnowflakeDatasetTypeProperties` + - Model `SnowflakeLinkedService` moved instance variable `connection_string`, `password` and `encrypted_credential` under property `type_properties` whose type is `SnowflakeLinkedServiceTypeProperties` + - Model `SnowflakeV2Dataset` moved instance variable `schema_type_properties_schema` and `table` under property `type_properties` whose type is `SnowflakeDatasetTypeProperties` + - Model `SnowflakeV2LinkedService` moved instance variable `account_identifier`, `user`, `password`, `database`, `warehouse`, `authentication_type`, `client_id`, `client_secret`, `tenant_id`, `scope`, `private_key`, `private_key_passphrase`, `role`, `host`, `schema`, `encrypted_credential` and `use_utc_timestamps` under property `type_properties` whose type is `SnowflakeLinkedV2ServiceTypeProperties` + - Model `SparkLinkedService` moved instance variable `host`, `port`, `server_type`, `thrift_transport_protocol`, `authentication_type`, `username`, `password`, `http_path`, `enable_ssl`, `enable_server_certificate_validation`, `trusted_cert_path`, `use_system_trust_store`, `allow_host_name_cn_mismatch`, `allow_self_signed_server_cert` and `encrypted_credential` under property `type_properties` whose type is `SparkLinkedServiceTypeProperties` + - Model `SparkObjectDataset` moved instance variable `table_name`, `table` and `schema_type_properties_schema` under property `type_properties` whose type is `SparkDatasetTypeProperties` + - Model `SqlDWUpsertSettings` renamed its instance variable `keys` to `keys_property` + - Model `SqlServerLinkedService` moved instance variable `server`, `database`, `encrypt`, `trust_server_certificate`, `host_name_in_certificate`, `application_intent`, `connect_timeout`, `connect_retry_count`, `connect_retry_interval`, `load_balance_timeout`, `command_timeout`, `integrated_security`, `failover_partner`, `max_pool_size`, `min_pool_size`, `multiple_active_result_sets`, `multi_subnet_failover`, `packet_size`, `pooling`, `connection_string`, `authentication_type`, `user_name`, `password`, `encrypted_credential`, `always_encrypted_settings` and `credential` under property `type_properties` whose type is `SqlServerLinkedServiceTypeProperties` + - Model `SqlServerStoredProcedureActivity` moved instance variable `stored_procedure_name` and `stored_procedure_parameters` under property `type_properties` whose type is `SqlServerStoredProcedureActivityTypeProperties` + - Model `SqlServerTableDataset` moved instance variable `table_name`, `schema_type_properties_schema` and `table` under property `type_properties` whose type is `SqlServerTableDatasetTypeProperties` + - Model `SqlUpsertSettings` renamed its instance variable `keys` to `keys_property` + - Model `SquareLinkedService` moved instance variable `connection_properties`, `host`, `client_id`, `client_secret`, `redirect_uri`, `use_encrypted_endpoints`, `use_host_verification`, `use_peer_verification` and `encrypted_credential` under property `type_properties` whose type is `SquareLinkedServiceTypeProperties` + - Model `SquareObjectDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `SwitchActivity` moved instance variable `on`, `cases` and `default_activities` under property `type_properties` whose type is `SwitchActivityTypeProperties` + - Model `SybaseLinkedService` moved instance variable `server`, `database`, `schema`, `authentication_type`, `username`, `password` and `encrypted_credential` under property `type_properties` whose type is `SybaseLinkedServiceTypeProperties` + - Model `SybaseTableDataset` moved instance variable `table_name` under property `type_properties` whose type is `SybaseTableDatasetTypeProperties` + - Model `SynapseNotebookActivity` moved instance variable `notebook`, `spark_pool`, `parameters`, `executor_size`, `conf`, `driver_size`, `num_executors`, `configuration_type`, `target_spark_configuration` and `spark_config` under property `type_properties` whose type is `SynapseNotebookActivityTypeProperties` + - Model `SynapseSparkJobDefinitionActivity` moved instance variable `spark_job`, `arguments`, `file`, `scan_folder`, `class_name`, `files`, `python_code_reference`, `files_v2`, `target_big_data_pool`, `executor_size`, `conf`, `driver_size`, `num_executors`, `configuration_type`, `target_spark_configuration` and `spark_config` under property `type_properties` whose type is `SynapseSparkJobActivityTypeProperties` + - Model `TeamDeskLinkedService` moved instance variable `authentication_type`, `url`, `user_name`, `password`, `api_token` and `encrypted_credential` under property `type_properties` whose type is `TeamDeskLinkedServiceTypeProperties` + - Model `TeradataLinkedService` moved instance variable `connection_string`, `server`, `authentication_type`, `username`, `password`, `ssl_mode`, `port_number`, `https_port_number`, `use_data_encryption`, `character_set`, `max_resp_size` and `encrypted_credential` under property `type_properties` whose type is `TeradataLinkedServiceTypeProperties` + - Model `TeradataTableDataset` moved instance variable `database` and `table` under property `type_properties` whose type is `TeradataTableDatasetTypeProperties` + - Model `TumblingWindowTrigger` moved instance variable `frequency`, `interval`, `start_time`, `end_time`, `delay`, `max_concurrency`, `retry_policy` and `depends_on` under property `type_properties` whose type is `TumblingWindowTriggerTypeProperties` + - Model `TwilioLinkedService` moved instance variable `user_name` and `password` under property `type_properties` whose type is `TwilioLinkedServiceTypeProperties` + - Model `UntilActivity` moved instance variable `expression`, `timeout` and `activities` under property `type_properties` whose type is `UntilActivityTypeProperties` + - Model `ValidationActivity` moved instance variable `timeout`, `sleep`, `minimum_size`, `child_items` and `dataset` under property `type_properties` whose type is `ValidationActivityTypeProperties` + - Model `VerticaLinkedService` moved instance variable `connection_string`, `server`, `port`, `uid`, `database`, `pwd` and `encrypted_credential` under property `type_properties` whose type is `VerticaLinkedServiceTypeProperties` + - Model `VerticaTableDataset` moved instance variable `table_name`, `table` and `schema_type_properties_schema` under property `type_properties` whose type is `VerticaDatasetTypeProperties` + - Model `WaitActivity` moved instance variable `wait_time_in_seconds` under property `type_properties` whose type is `WaitActivityTypeProperties` + - Model `WarehouseLinkedService` moved instance variable `artifact_id`, `endpoint`, `workspace_id`, `authentication_type`, `service_principal_id`, `service_principal_key`, `tenant`, `encrypted_credential`, `service_principal_credential_type`, `service_principal_credential` and `credential` under property `type_properties` whose type is `WarehouseLinkedServiceTypeProperties` + - Model `WarehouseTableDataset` moved instance variable `schema_type_properties_schema` and `table` under property `type_properties` whose type is `WarehouseTableDatasetTypeProperties` + - Model `WebActivity` moved instance variable `method`, `url`, `headers`, `body`, `authentication`, `disable_cert_validation`, `http_request_timeout`, `turn_off_async`, `datasets`, `linked_services` and `connect_via` under property `type_properties` whose type is `WebActivityTypeProperties` + - Model `WebHookActivity` moved instance variable `method`, `url`, `timeout`, `headers`, `body`, `authentication` and `report_status_on_call_back` under property `type_properties` whose type is `WebHookActivityTypeProperties` + - Model `WebTableDataset` moved instance variable `index` and `path` under property `type_properties` whose type is `WebTableDatasetTypeProperties` + - Model `WranglingDataFlow` moved instance variable `sources`, `script` and `document_locale` under property `type_properties` whose type is `PowerQueryTypeProperties` + - Model `XeroLinkedService` moved instance variable `connection_properties`, `host`, `consumer_key`, `private_key`, `use_encrypted_endpoints`, `use_host_verification`, `use_peer_verification` and `encrypted_credential` under property `type_properties` whose type is `XeroLinkedServiceTypeProperties` + - Model `XeroObjectDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Model `XmlDataset` moved instance variable `location`, `encoding_name`, `null_value` and `compression` under property `type_properties` whose type is `XmlDatasetTypeProperties` + - Model `ZendeskLinkedService` moved instance variable `authentication_type`, `url`, `user_name`, `password`, `api_token` and `encrypted_credential` under property `type_properties` whose type is `ZendeskLinkedServiceTypeProperties` + - Model `ZohoLinkedService` moved instance variable `connection_properties`, `endpoint`, `access_token`, `use_encrypted_endpoints`, `use_host_verification`, `use_peer_verification` and `encrypted_credential` under property `type_properties` whose type is `ZohoLinkedServiceTypeProperties` + - Model `ZohoObjectDataset` moved instance variable `table_name` under property `type_properties` whose type is `GenericDatasetTypeProperties` + - Deleted or renamed model `AdditionalColumns` + - Deleted or renamed model `DatasetDataElement` + - Deleted or renamed model `DatasetSchemaDataElement` + - Deleted or renamed model `OutputColumn` + - Deleted or renamed model `ScriptType` + - Deleted or renamed model `SqlDWWriteBehaviorEnum` + - Deleted or renamed model `SqlWriteBehaviorEnum` + - Deleted or renamed model `StoredProcedureParameter` + - Method `ChangeDataCaptureOperations.create_or_update` replaced positional_or_keyword parameter `if_match` to keyword_only parameter `etag`/`match_condition` + - Method `ChangeDataCaptureOperations.get` replaced positional_or_keyword parameter `if_none_match` to keyword_only parameter `etag`/`match_condition` + - Method `CredentialOperationsOperations.create_or_update` replaced positional_or_keyword parameter `if_match` to keyword_only parameter `etag`/`match_condition` + - Method `CredentialOperationsOperations.get` replaced positional_or_keyword parameter `if_none_match` to keyword_only parameter `etag`/`match_condition` + - Method `DataFlowsOperations.create_or_update` replaced positional_or_keyword parameter `if_match` to keyword_only parameter `etag`/`match_condition` + - Method `DataFlowsOperations.get` replaced positional_or_keyword parameter `if_none_match` to keyword_only parameter `etag`/`match_condition` + - Method `DatasetsOperations.create_or_update` replaced positional_or_keyword parameter `if_match` to keyword_only parameter `etag`/`match_condition` + - Method `DatasetsOperations.get` replaced positional_or_keyword parameter `if_none_match` to keyword_only parameter `etag`/`match_condition` + - Method `FactoriesOperations.create_or_update` replaced positional_or_keyword parameter `if_match` to keyword_only parameter `etag`/`match_condition` + - Method `FactoriesOperations.get` replaced positional_or_keyword parameter `if_none_match` to keyword_only parameter `etag`/`match_condition` + - Method `IntegrationRuntimesOperations.create_or_update` replaced positional_or_keyword parameter `if_match` to keyword_only parameter `etag`/`match_condition` + - Method `IntegrationRuntimesOperations.get` replaced positional_or_keyword parameter `if_none_match` to keyword_only parameter `etag`/`match_condition` + - Method `LinkedServicesOperations.create_or_update` replaced positional_or_keyword parameter `if_match` to keyword_only parameter `etag`/`match_condition` + - Method `LinkedServicesOperations.get` replaced positional_or_keyword parameter `if_none_match` to keyword_only parameter `etag`/`match_condition` + - Method `ManagedPrivateEndpointsOperations.create_or_update` replaced positional_or_keyword parameter `if_match` to keyword_only parameter `etag`/`match_condition` + - Method `ManagedPrivateEndpointsOperations.get` replaced positional_or_keyword parameter `if_none_match` to keyword_only parameter `etag`/`match_condition` + - Method `ManagedVirtualNetworksOperations.create_or_update` replaced positional_or_keyword parameter `if_match` to keyword_only parameter `etag`/`match_condition` + - Method `ManagedVirtualNetworksOperations.get` replaced positional_or_keyword parameter `if_none_match` to keyword_only parameter `etag`/`match_condition` + - Method `PipelineRunsOperations.cancel` changed its parameter `is_recursive` from `positional_or_keyword` to `keyword_only` + - Method `PipelinesOperations.create_or_update` replaced positional_or_keyword parameter `if_match` to keyword_only parameter `etag`/`match_condition` + - Method `PipelinesOperations.create_run` changed its parameter `reference_pipeline_run_id`/`is_recovery`/`start_activity_name`/`start_from_failure` from `positional_or_keyword` to `keyword_only` + - Method `PipelinesOperations.get` replaced positional_or_keyword parameter `if_none_match` to keyword_only parameter `etag`/`match_condition` + - Method `PrivateEndpointConnectionOperations.create_or_update` replaced positional_or_keyword parameter `if_match` to keyword_only parameter `etag`/`match_condition` + - Method `PrivateEndpointConnectionOperations.get` replaced positional_or_keyword parameter `if_none_match` to keyword_only parameter `etag`/`match_condition` + - Method `TriggersOperations.create_or_update` replaced positional_or_keyword parameter `if_match` to keyword_only parameter `etag`/`match_condition` + - Method `TriggersOperations.get` replaced positional_or_keyword parameter `if_none_match` to keyword_only parameter `etag`/`match_condition` + +### Other Changes + + - Deleted model `ChangeDataCaptureListResponse`/`CredentialListResponse`/`DataFlowListResponse`/`DatasetListResponse`/`FactoryListResponse`/`GlobalParameterListResponse`/`IntegrationRuntimeListResponse`/`IntegrationRuntimeStatusListResponse`/`LinkedServiceListResponse`/`ManagedPrivateEndpointListResponse`/`ManagedVirtualNetworkListResponse`/`OperationListResponse`/`PipelineListResponse`/`PrivateEndpointConnectionListResponse`/`QueryDataFlowDebugSessionsResponse`/`TriggerListResponse` which actually were not used by SDK users + - Deleted model `CopyTranslator`/`GetDataFactoryOperationStatusResponse`/`TabularTranslator`/`TypeConversionSettings` which actually were not used by SDK users + - Deleted enum `AmazonRdsForOraclePartitionOption`/`AvroCompressionCodec`/`CompressionCodec`/`CopyBehaviorType`/`DatasetCompressionLevel`/`DynamicsAuthenticationType`/`DynamicsDeploymentType`/`HdiNodeTypes`/`JsonFormatFilePattern`/`JsonWriteFilePattern`/`NetezzaPartitionOption`/`OraclePartitionOption`/`OrcCompressionCodec`/`SalesforceSourceReadBehavior`/`SapHanaPartitionOption`/`SapTablePartitionOption`/`ServicePrincipalCredentialType`/`SqlPartitionOption`/`StoredProcedureParameterType`/`TeradataPartitionOption` which actually were not used by SDK users ## 9.3.0 (2026-03-10) ### Features Added diff --git a/sdk/datafactory/azure-mgmt-datafactory/README.md b/sdk/datafactory/azure-mgmt-datafactory/README.md index d59250fbcaf1..23965d9b4156 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/README.md +++ b/sdk/datafactory/azure-mgmt-datafactory/README.md @@ -1,7 +1,7 @@ # Microsoft Azure SDK for Python This is the Microsoft Azure Data Factory Management Client Library. -This package has been tested with Python 3.9+. +This package has been tested with Python 3.10+. For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all). ## _Disclaimer_ @@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For ### Prerequisites -- Python 3.9+ is required to use this package. +- Python 3.10+ is required to use this package. - [Azure subscription](https://azure.microsoft.com/free/) ### Install the package diff --git a/sdk/datafactory/azure-mgmt-datafactory/_metadata.json b/sdk/datafactory/azure-mgmt-datafactory/_metadata.json index a0449c40ed2f..e2917c11aad8 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/_metadata.json +++ b/sdk/datafactory/azure-mgmt-datafactory/_metadata.json @@ -1,11 +1,10 @@ { - "commit": "31c0f92613ba340053694ed55714a6f40f4fd7de", + "apiVersion": "2018-06-01", + "apiVersions": { + "Microsoft.DataFactory": "2018-06-01" + }, + "commit": "5c7cd01768cc4a537f309dff14af7be34f87cd14", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest": "3.10.2", - "use": [ - "@autorest/python@6.48.0", - "@autorest/modelerfour@4.27.0" - ], - "autorest_command": "autorest specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.48.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", - "readme": "specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/readme.md" + "typespec_src": "specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory", + "emitterVersion": "0.62.1" } \ No newline at end of file diff --git a/sdk/datafactory/azure-mgmt-datafactory/apiview-properties.json b/sdk/datafactory/azure-mgmt-datafactory/apiview-properties.json index dab96a88fbc7..36e862e9a17d 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/apiview-properties.json +++ b/sdk/datafactory/azure-mgmt-datafactory/apiview-properties.json @@ -1,1152 +1,1369 @@ { - "CrossLanguagePackageId": null, + "CrossLanguagePackageId": "Microsoft.DataFactory", "CrossLanguageDefinitionId": { - "azure.mgmt.datafactory.models.AccessPolicyResponse": null, - "azure.mgmt.datafactory.models.Activity": null, - "azure.mgmt.datafactory.models.ActivityDependency": null, - "azure.mgmt.datafactory.models.ActivityPolicy": null, - "azure.mgmt.datafactory.models.ActivityRun": null, - "azure.mgmt.datafactory.models.ActivityRunsQueryResponse": null, - "azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse": null, - "azure.mgmt.datafactory.models.AdditionalColumns": null, - "azure.mgmt.datafactory.models.LinkedService": null, - "azure.mgmt.datafactory.models.AmazonMWSLinkedService": null, - "azure.mgmt.datafactory.models.Dataset": null, - "azure.mgmt.datafactory.models.AmazonMWSObjectDataset": null, - "azure.mgmt.datafactory.models.CopySource": null, - "azure.mgmt.datafactory.models.TabularSource": null, - "azure.mgmt.datafactory.models.AmazonMWSSource": null, - "azure.mgmt.datafactory.models.AmazonRdsForOracleLinkedService": null, - "azure.mgmt.datafactory.models.AmazonRdsForOraclePartitionSettings": null, - "azure.mgmt.datafactory.models.AmazonRdsForOracleSource": null, - "azure.mgmt.datafactory.models.AmazonRdsForOracleTableDataset": null, - "azure.mgmt.datafactory.models.AmazonRdsForSqlServerLinkedService": null, - "azure.mgmt.datafactory.models.SqlServerBaseLinkedServiceTypeProperties": null, - "azure.mgmt.datafactory.models.AmazonRdsForSqlServerLinkedServiceTypeProperties": null, - "azure.mgmt.datafactory.models.AmazonRdsForSqlServerSource": null, - "azure.mgmt.datafactory.models.AmazonRdsForSqlServerTableDataset": null, - "azure.mgmt.datafactory.models.AmazonRedshiftLinkedService": null, - "azure.mgmt.datafactory.models.AmazonRedshiftSource": null, - "azure.mgmt.datafactory.models.AmazonRedshiftTableDataset": null, - "azure.mgmt.datafactory.models.AmazonS3CompatibleLinkedService": null, - "azure.mgmt.datafactory.models.DatasetLocation": null, - "azure.mgmt.datafactory.models.AmazonS3CompatibleLocation": null, - "azure.mgmt.datafactory.models.StoreReadSettings": null, - "azure.mgmt.datafactory.models.AmazonS3CompatibleReadSettings": null, - "azure.mgmt.datafactory.models.AmazonS3Dataset": null, - "azure.mgmt.datafactory.models.AmazonS3LinkedService": null, - "azure.mgmt.datafactory.models.AmazonS3Location": null, - "azure.mgmt.datafactory.models.AmazonS3ReadSettings": null, - "azure.mgmt.datafactory.models.ControlActivity": null, - "azure.mgmt.datafactory.models.AppendVariableActivity": null, - "azure.mgmt.datafactory.models.AppFiguresLinkedService": null, - "azure.mgmt.datafactory.models.ArmIdWrapper": null, - "azure.mgmt.datafactory.models.AsanaLinkedService": null, - "azure.mgmt.datafactory.models.AvroDataset": null, - "azure.mgmt.datafactory.models.DatasetStorageFormat": null, - "azure.mgmt.datafactory.models.AvroFormat": null, - "azure.mgmt.datafactory.models.CopySink": null, - "azure.mgmt.datafactory.models.AvroSink": null, - "azure.mgmt.datafactory.models.AvroSource": null, - "azure.mgmt.datafactory.models.FormatWriteSettings": null, - "azure.mgmt.datafactory.models.AvroWriteSettings": null, - "azure.mgmt.datafactory.models.CustomSetupBase": null, - "azure.mgmt.datafactory.models.AzPowerShellSetup": null, - "azure.mgmt.datafactory.models.AzureBatchLinkedService": null, - "azure.mgmt.datafactory.models.AzureBlobDataset": null, - "azure.mgmt.datafactory.models.AzureBlobFSDataset": null, - "azure.mgmt.datafactory.models.AzureBlobFSLinkedService": null, - "azure.mgmt.datafactory.models.AzureBlobFSLocation": null, - "azure.mgmt.datafactory.models.AzureBlobFSReadSettings": null, - "azure.mgmt.datafactory.models.AzureBlobFSSink": null, - "azure.mgmt.datafactory.models.AzureBlobFSSource": null, - "azure.mgmt.datafactory.models.StoreWriteSettings": null, - "azure.mgmt.datafactory.models.AzureBlobFSWriteSettings": null, - "azure.mgmt.datafactory.models.AzureBlobStorageLinkedService": null, - "azure.mgmt.datafactory.models.AzureBlobStorageLocation": null, - "azure.mgmt.datafactory.models.AzureBlobStorageReadSettings": null, - "azure.mgmt.datafactory.models.AzureBlobStorageWriteSettings": null, - "azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeDataset": null, - "azure.mgmt.datafactory.models.ExportSettings": null, - "azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeExportCommand": null, - "azure.mgmt.datafactory.models.ImportSettings": null, - "azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeImportCommand": null, - "azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeLinkedService": null, - "azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeSink": null, - "azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeSource": null, - "azure.mgmt.datafactory.models.AzureDatabricksLinkedService": null, - "azure.mgmt.datafactory.models.ExecutionActivity": null, - "azure.mgmt.datafactory.models.AzureDataExplorerCommandActivity": null, - "azure.mgmt.datafactory.models.AzureDataExplorerLinkedService": null, - "azure.mgmt.datafactory.models.AzureDataExplorerSink": null, - "azure.mgmt.datafactory.models.AzureDataExplorerSource": null, - "azure.mgmt.datafactory.models.AzureDataExplorerTableDataset": null, - "azure.mgmt.datafactory.models.AzureDataLakeAnalyticsLinkedService": null, - "azure.mgmt.datafactory.models.AzureDataLakeStoreDataset": null, - "azure.mgmt.datafactory.models.AzureDataLakeStoreLinkedService": null, - "azure.mgmt.datafactory.models.AzureDataLakeStoreLocation": null, - "azure.mgmt.datafactory.models.AzureDataLakeStoreReadSettings": null, - "azure.mgmt.datafactory.models.AzureDataLakeStoreSink": null, - "azure.mgmt.datafactory.models.AzureDataLakeStoreSource": null, - "azure.mgmt.datafactory.models.AzureDataLakeStoreWriteSettings": null, - "azure.mgmt.datafactory.models.AzureFileStorageLinkedService": null, - "azure.mgmt.datafactory.models.AzureFileStorageLocation": null, - "azure.mgmt.datafactory.models.AzureFileStorageReadSettings": null, - "azure.mgmt.datafactory.models.AzureFileStorageWriteSettings": null, - "azure.mgmt.datafactory.models.AzureFunctionActivity": null, - "azure.mgmt.datafactory.models.AzureFunctionLinkedService": null, - "azure.mgmt.datafactory.models.AzureKeyVaultLinkedService": null, - "azure.mgmt.datafactory.models.SecretBase": null, - "azure.mgmt.datafactory.models.AzureKeyVaultSecretReference": null, - "azure.mgmt.datafactory.models.AzureMariaDBLinkedService": null, - "azure.mgmt.datafactory.models.AzureMariaDBSource": null, - "azure.mgmt.datafactory.models.AzureMariaDBTableDataset": null, - "azure.mgmt.datafactory.models.AzureMLBatchExecutionActivity": null, - "azure.mgmt.datafactory.models.AzureMLExecutePipelineActivity": null, - "azure.mgmt.datafactory.models.AzureMLLinkedService": null, - "azure.mgmt.datafactory.models.AzureMLServiceLinkedService": null, - "azure.mgmt.datafactory.models.AzureMLUpdateResourceActivity": null, - "azure.mgmt.datafactory.models.AzureMLWebServiceFile": null, - "azure.mgmt.datafactory.models.AzureMySqlLinkedService": null, - "azure.mgmt.datafactory.models.AzureMySqlSink": null, - "azure.mgmt.datafactory.models.AzureMySqlSource": null, - "azure.mgmt.datafactory.models.AzureMySqlTableDataset": null, - "azure.mgmt.datafactory.models.AzurePostgreSqlLinkedService": null, - "azure.mgmt.datafactory.models.AzurePostgreSqlSink": null, - "azure.mgmt.datafactory.models.AzurePostgreSqlSinkUpsertSettings": null, - "azure.mgmt.datafactory.models.AzurePostgreSqlSource": null, - "azure.mgmt.datafactory.models.AzurePostgreSqlTableDataset": null, - "azure.mgmt.datafactory.models.AzureQueueSink": null, - "azure.mgmt.datafactory.models.AzureSearchIndexDataset": null, - "azure.mgmt.datafactory.models.AzureSearchIndexSink": null, - "azure.mgmt.datafactory.models.AzureSearchLinkedService": null, - "azure.mgmt.datafactory.models.AzureSqlDatabaseLinkedService": null, - "azure.mgmt.datafactory.models.AzureSqlDatabaseLinkedServiceTypeProperties": null, - "azure.mgmt.datafactory.models.AzureSqlDWLinkedService": null, - "azure.mgmt.datafactory.models.AzureSqlDWLinkedServiceTypeProperties": null, - "azure.mgmt.datafactory.models.AzureSqlDWTableDataset": null, - "azure.mgmt.datafactory.models.AzureSqlMILinkedService": null, - "azure.mgmt.datafactory.models.AzureSqlMILinkedServiceTypeProperties": null, - "azure.mgmt.datafactory.models.AzureSqlMITableDataset": null, - "azure.mgmt.datafactory.models.AzureSqlSink": null, - "azure.mgmt.datafactory.models.AzureSqlSource": null, - "azure.mgmt.datafactory.models.AzureSqlTableDataset": null, - "azure.mgmt.datafactory.models.AzureStorageLinkedService": null, - "azure.mgmt.datafactory.models.AzureStorageLinkedServiceTypeProperties": null, - "azure.mgmt.datafactory.models.AzureSynapseArtifactsLinkedService": null, - "azure.mgmt.datafactory.models.AzureTableDataset": null, - "azure.mgmt.datafactory.models.AzureTableSink": null, - "azure.mgmt.datafactory.models.AzureTableSource": null, - "azure.mgmt.datafactory.models.AzureTableStorageLinkedService": null, - "azure.mgmt.datafactory.models.AzureTableStorageLinkedServiceTypeProperties": null, - "azure.mgmt.datafactory.models.BigDataPoolParametrizationReference": null, - "azure.mgmt.datafactory.models.BinaryDataset": null, - "azure.mgmt.datafactory.models.FormatReadSettings": null, - "azure.mgmt.datafactory.models.BinaryReadSettings": null, - "azure.mgmt.datafactory.models.BinarySink": null, - "azure.mgmt.datafactory.models.BinarySource": null, - "azure.mgmt.datafactory.models.Trigger": null, - "azure.mgmt.datafactory.models.MultiplePipelineTrigger": null, - "azure.mgmt.datafactory.models.BlobEventsTrigger": null, - "azure.mgmt.datafactory.models.BlobSink": null, - "azure.mgmt.datafactory.models.BlobSource": null, - "azure.mgmt.datafactory.models.BlobTrigger": null, - "azure.mgmt.datafactory.models.CassandraLinkedService": null, - "azure.mgmt.datafactory.models.CassandraSource": null, - "azure.mgmt.datafactory.models.CassandraTableDataset": null, - "azure.mgmt.datafactory.models.ChainingTrigger": null, - "azure.mgmt.datafactory.models.ChangeDataCaptureFolder": null, - "azure.mgmt.datafactory.models.ChangeDataCaptureListResponse": null, - "azure.mgmt.datafactory.models.SubResource": null, - "azure.mgmt.datafactory.models.ChangeDataCaptureResource": null, - "azure.mgmt.datafactory.models.CloudError": null, - "azure.mgmt.datafactory.models.CmdkeySetup": null, - "azure.mgmt.datafactory.models.CMKIdentityDefinition": null, - "azure.mgmt.datafactory.models.CommonDataServiceForAppsEntityDataset": null, - "azure.mgmt.datafactory.models.CommonDataServiceForAppsLinkedService": null, - "azure.mgmt.datafactory.models.CommonDataServiceForAppsSink": null, - "azure.mgmt.datafactory.models.CommonDataServiceForAppsSource": null, - "azure.mgmt.datafactory.models.ComponentSetup": null, - "azure.mgmt.datafactory.models.CompressionReadSettings": null, - "azure.mgmt.datafactory.models.ConcurLinkedService": null, - "azure.mgmt.datafactory.models.ConcurObjectDataset": null, - "azure.mgmt.datafactory.models.ConcurSource": null, - "azure.mgmt.datafactory.models.ConnectionStateProperties": null, - "azure.mgmt.datafactory.models.ContinuationSettingsReference": null, - "azure.mgmt.datafactory.models.CopyActivity": null, - "azure.mgmt.datafactory.models.CopyActivityLogSettings": null, - "azure.mgmt.datafactory.models.CopyComputeScaleProperties": null, - "azure.mgmt.datafactory.models.CopyTranslator": null, - "azure.mgmt.datafactory.models.CosmosDbLinkedService": null, - "azure.mgmt.datafactory.models.CosmosDbMongoDbApiCollectionDataset": null, - "azure.mgmt.datafactory.models.CosmosDbMongoDbApiLinkedService": null, - "azure.mgmt.datafactory.models.CosmosDbMongoDbApiSink": null, - "azure.mgmt.datafactory.models.CosmosDbMongoDbApiSource": null, - "azure.mgmt.datafactory.models.CosmosDbSqlApiCollectionDataset": null, - "azure.mgmt.datafactory.models.CosmosDbSqlApiSink": null, - "azure.mgmt.datafactory.models.CosmosDbSqlApiSource": null, - "azure.mgmt.datafactory.models.CouchbaseLinkedService": null, - "azure.mgmt.datafactory.models.CouchbaseSource": null, - "azure.mgmt.datafactory.models.CouchbaseTableDataset": null, - "azure.mgmt.datafactory.models.CreateDataFlowDebugSessionRequest": null, - "azure.mgmt.datafactory.models.CreateDataFlowDebugSessionResponse": null, - "azure.mgmt.datafactory.models.CreateLinkedIntegrationRuntimeRequest": null, - "azure.mgmt.datafactory.models.CreateRunResponse": null, - "azure.mgmt.datafactory.models.Credential": null, - "azure.mgmt.datafactory.models.CredentialListResponse": null, - "azure.mgmt.datafactory.models.CredentialReference": null, - "azure.mgmt.datafactory.models.CredentialResource": null, - "azure.mgmt.datafactory.models.CustomActivity": null, - "azure.mgmt.datafactory.models.CustomActivityReferenceObject": null, - "azure.mgmt.datafactory.models.CustomDataset": null, - "azure.mgmt.datafactory.models.CustomDataSourceLinkedService": null, - "azure.mgmt.datafactory.models.CustomEventsTrigger": null, - "azure.mgmt.datafactory.models.DatabricksJobActivity": null, - "azure.mgmt.datafactory.models.DatabricksNotebookActivity": null, - "azure.mgmt.datafactory.models.DatabricksSparkJarActivity": null, - "azure.mgmt.datafactory.models.DatabricksSparkPythonActivity": null, - "azure.mgmt.datafactory.models.DataFlow": null, - "azure.mgmt.datafactory.models.DataFlowDebugCommandPayload": null, - "azure.mgmt.datafactory.models.DataFlowDebugCommandRequest": null, - "azure.mgmt.datafactory.models.DataFlowDebugCommandResponse": null, - "azure.mgmt.datafactory.models.DataFlowDebugPackage": null, - "azure.mgmt.datafactory.models.DataFlowDebugPackageDebugSettings": null, - "azure.mgmt.datafactory.models.SubResourceDebugResource": null, - "azure.mgmt.datafactory.models.DataFlowDebugResource": null, - "azure.mgmt.datafactory.models.DataFlowDebugSessionInfo": null, - "azure.mgmt.datafactory.models.DataFlowFolder": null, - "azure.mgmt.datafactory.models.DataFlowListResponse": null, - "azure.mgmt.datafactory.models.DataFlowReference": null, - "azure.mgmt.datafactory.models.DataFlowResource": null, - "azure.mgmt.datafactory.models.Transformation": null, - "azure.mgmt.datafactory.models.DataFlowSink": null, - "azure.mgmt.datafactory.models.DataFlowSource": null, - "azure.mgmt.datafactory.models.DataFlowSourceSetting": null, - "azure.mgmt.datafactory.models.DataFlowStagingInfo": null, - "azure.mgmt.datafactory.models.DataLakeAnalyticsUSQLActivity": null, - "azure.mgmt.datafactory.models.DataMapperMapping": null, - "azure.mgmt.datafactory.models.DatasetCompression": null, - "azure.mgmt.datafactory.models.DatasetDataElement": null, - "azure.mgmt.datafactory.models.DatasetDebugResource": null, - "azure.mgmt.datafactory.models.DatasetFolder": null, - "azure.mgmt.datafactory.models.DatasetListResponse": null, - "azure.mgmt.datafactory.models.DatasetReference": null, - "azure.mgmt.datafactory.models.DatasetResource": null, - "azure.mgmt.datafactory.models.DatasetSchemaDataElement": null, - "azure.mgmt.datafactory.models.DataworldLinkedService": null, - "azure.mgmt.datafactory.models.Db2LinkedService": null, - "azure.mgmt.datafactory.models.Db2Source": null, - "azure.mgmt.datafactory.models.Db2TableDataset": null, - "azure.mgmt.datafactory.models.DeleteActivity": null, - "azure.mgmt.datafactory.models.DeleteDataFlowDebugSessionRequest": null, - "azure.mgmt.datafactory.models.DelimitedTextDataset": null, - "azure.mgmt.datafactory.models.DelimitedTextReadSettings": null, - "azure.mgmt.datafactory.models.DelimitedTextSink": null, - "azure.mgmt.datafactory.models.DelimitedTextSource": null, - "azure.mgmt.datafactory.models.DelimitedTextWriteSettings": null, - "azure.mgmt.datafactory.models.DependencyReference": null, - "azure.mgmt.datafactory.models.DistcpSettings": null, - "azure.mgmt.datafactory.models.DocumentDbCollectionDataset": null, - "azure.mgmt.datafactory.models.DocumentDbCollectionSink": null, - "azure.mgmt.datafactory.models.DocumentDbCollectionSource": null, - "azure.mgmt.datafactory.models.DrillLinkedService": null, - "azure.mgmt.datafactory.models.DrillSource": null, - "azure.mgmt.datafactory.models.DrillTableDataset": null, - "azure.mgmt.datafactory.models.DWCopyCommandDefaultValue": null, - "azure.mgmt.datafactory.models.DWCopyCommandSettings": null, - "azure.mgmt.datafactory.models.DynamicsAXLinkedService": null, - "azure.mgmt.datafactory.models.DynamicsAXResourceDataset": null, - "azure.mgmt.datafactory.models.DynamicsAXSource": null, - "azure.mgmt.datafactory.models.DynamicsCrmEntityDataset": null, - "azure.mgmt.datafactory.models.DynamicsCrmLinkedService": null, - "azure.mgmt.datafactory.models.DynamicsCrmSink": null, - "azure.mgmt.datafactory.models.DynamicsCrmSource": null, - "azure.mgmt.datafactory.models.DynamicsEntityDataset": null, - "azure.mgmt.datafactory.models.DynamicsLinkedService": null, - "azure.mgmt.datafactory.models.DynamicsSink": null, - "azure.mgmt.datafactory.models.DynamicsSource": null, - "azure.mgmt.datafactory.models.EloquaLinkedService": null, - "azure.mgmt.datafactory.models.EloquaObjectDataset": null, - "azure.mgmt.datafactory.models.EloquaSource": null, - "azure.mgmt.datafactory.models.EnableInteractiveQueryRequest": null, - "azure.mgmt.datafactory.models.EncryptionConfiguration": null, - "azure.mgmt.datafactory.models.EntityReference": null, - "azure.mgmt.datafactory.models.EnvironmentVariableSetup": null, - "azure.mgmt.datafactory.models.ErrorAdditionalInfo": null, - "azure.mgmt.datafactory.models.ErrorDetail": null, - "azure.mgmt.datafactory.models.ErrorResponse": null, - "azure.mgmt.datafactory.models.ExcelDataset": null, - "azure.mgmt.datafactory.models.ExcelSource": null, - "azure.mgmt.datafactory.models.ExecuteDataFlowActivity": null, - "azure.mgmt.datafactory.models.ExecuteDataFlowActivityTypeProperties": null, - "azure.mgmt.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute": null, - "azure.mgmt.datafactory.models.ExecutePipelineActivity": null, - "azure.mgmt.datafactory.models.ExecutePipelineActivityPolicy": null, - "azure.mgmt.datafactory.models.ExecutePowerQueryActivityTypeProperties": null, - "azure.mgmt.datafactory.models.ExecuteSSISPackageActivity": null, - "azure.mgmt.datafactory.models.ExecuteWranglingDataflowActivity": null, - "azure.mgmt.datafactory.models.ExposureControlBatchRequest": null, - "azure.mgmt.datafactory.models.ExposureControlBatchResponse": null, - "azure.mgmt.datafactory.models.ExposureControlRequest": null, - "azure.mgmt.datafactory.models.ExposureControlResponse": null, - "azure.mgmt.datafactory.models.Expression": null, - "azure.mgmt.datafactory.models.ExpressionV2": null, - "azure.mgmt.datafactory.models.Resource": null, - "azure.mgmt.datafactory.models.Factory": null, - "azure.mgmt.datafactory.models.FactoryRepoConfiguration": null, - "azure.mgmt.datafactory.models.FactoryGitHubConfiguration": null, - "azure.mgmt.datafactory.models.FactoryIdentity": null, - "azure.mgmt.datafactory.models.FactoryListResponse": null, - "azure.mgmt.datafactory.models.FactoryRepoUpdate": null, - "azure.mgmt.datafactory.models.FactoryUpdateParameters": null, - "azure.mgmt.datafactory.models.FactoryVSTSConfiguration": null, - "azure.mgmt.datafactory.models.FailActivity": null, - "azure.mgmt.datafactory.models.FileServerLinkedService": null, - "azure.mgmt.datafactory.models.FileServerLocation": null, - "azure.mgmt.datafactory.models.FileServerReadSettings": null, - "azure.mgmt.datafactory.models.FileServerWriteSettings": null, - "azure.mgmt.datafactory.models.FileShareDataset": null, - "azure.mgmt.datafactory.models.FileSystemSink": null, - "azure.mgmt.datafactory.models.FileSystemSource": null, - "azure.mgmt.datafactory.models.FilterActivity": null, - "azure.mgmt.datafactory.models.Flowlet": null, - "azure.mgmt.datafactory.models.ForEachActivity": null, - "azure.mgmt.datafactory.models.FtpReadSettings": null, - "azure.mgmt.datafactory.models.FtpServerLinkedService": null, - "azure.mgmt.datafactory.models.FtpServerLocation": null, - "azure.mgmt.datafactory.models.GetDataFactoryOperationStatusResponse": null, - "azure.mgmt.datafactory.models.GetMetadataActivity": null, - "azure.mgmt.datafactory.models.GetSsisObjectMetadataRequest": null, - "azure.mgmt.datafactory.models.GitHubAccessTokenRequest": null, - "azure.mgmt.datafactory.models.GitHubAccessTokenResponse": null, - "azure.mgmt.datafactory.models.GitHubClientSecret": null, - "azure.mgmt.datafactory.models.GlobalParameterListResponse": null, - "azure.mgmt.datafactory.models.GlobalParameterResource": null, - "azure.mgmt.datafactory.models.GlobalParameterSpecification": null, - "azure.mgmt.datafactory.models.GoogleAdWordsLinkedService": null, - "azure.mgmt.datafactory.models.GoogleAdWordsObjectDataset": null, - "azure.mgmt.datafactory.models.GoogleAdWordsSource": null, - "azure.mgmt.datafactory.models.GoogleBigQueryLinkedService": null, - "azure.mgmt.datafactory.models.GoogleBigQueryObjectDataset": null, - "azure.mgmt.datafactory.models.GoogleBigQuerySource": null, - "azure.mgmt.datafactory.models.GoogleBigQueryV2LinkedService": null, - "azure.mgmt.datafactory.models.GoogleBigQueryV2ObjectDataset": null, - "azure.mgmt.datafactory.models.GoogleBigQueryV2Source": null, - "azure.mgmt.datafactory.models.GoogleCloudStorageLinkedService": null, - "azure.mgmt.datafactory.models.GoogleCloudStorageLocation": null, - "azure.mgmt.datafactory.models.GoogleCloudStorageReadSettings": null, - "azure.mgmt.datafactory.models.GoogleSheetsLinkedService": null, - "azure.mgmt.datafactory.models.GreenplumLinkedService": null, - "azure.mgmt.datafactory.models.GreenplumSource": null, - "azure.mgmt.datafactory.models.GreenplumTableDataset": null, - "azure.mgmt.datafactory.models.HBaseLinkedService": null, - "azure.mgmt.datafactory.models.HBaseObjectDataset": null, - "azure.mgmt.datafactory.models.HBaseSource": null, - "azure.mgmt.datafactory.models.HdfsLinkedService": null, - "azure.mgmt.datafactory.models.HdfsLocation": null, - "azure.mgmt.datafactory.models.HdfsReadSettings": null, - "azure.mgmt.datafactory.models.HdfsSource": null, - "azure.mgmt.datafactory.models.HDInsightHiveActivity": null, - "azure.mgmt.datafactory.models.HDInsightLinkedService": null, - "azure.mgmt.datafactory.models.HDInsightMapReduceActivity": null, - "azure.mgmt.datafactory.models.HDInsightOnDemandLinkedService": null, - "azure.mgmt.datafactory.models.HDInsightPigActivity": null, - "azure.mgmt.datafactory.models.HDInsightSparkActivity": null, - "azure.mgmt.datafactory.models.HDInsightStreamingActivity": null, - "azure.mgmt.datafactory.models.HiveLinkedService": null, - "azure.mgmt.datafactory.models.HiveObjectDataset": null, - "azure.mgmt.datafactory.models.HiveSource": null, - "azure.mgmt.datafactory.models.HttpDataset": null, - "azure.mgmt.datafactory.models.HttpLinkedService": null, - "azure.mgmt.datafactory.models.HttpReadSettings": null, - "azure.mgmt.datafactory.models.HttpServerLocation": null, - "azure.mgmt.datafactory.models.HttpSource": null, - "azure.mgmt.datafactory.models.HubspotLinkedService": null, - "azure.mgmt.datafactory.models.HubspotObjectDataset": null, - "azure.mgmt.datafactory.models.HubspotSource": null, - "azure.mgmt.datafactory.models.IcebergDataset": null, - "azure.mgmt.datafactory.models.IcebergSink": null, - "azure.mgmt.datafactory.models.IcebergWriteSettings": null, - "azure.mgmt.datafactory.models.IfConditionActivity": null, - "azure.mgmt.datafactory.models.ImpalaLinkedService": null, - "azure.mgmt.datafactory.models.ImpalaObjectDataset": null, - "azure.mgmt.datafactory.models.ImpalaSource": null, - "azure.mgmt.datafactory.models.InformixLinkedService": null, - "azure.mgmt.datafactory.models.InformixSink": null, - "azure.mgmt.datafactory.models.InformixSource": null, - "azure.mgmt.datafactory.models.InformixTableDataset": null, - "azure.mgmt.datafactory.models.IntegrationRuntime": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeComputeProperties": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeConnectionInfo": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeCustomerVirtualNetwork": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeCustomSetupScriptProperties": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeDataFlowProperties": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeDataProxyProperties": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeDebugResource": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeListResponse": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeMonitoringData": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeNodeIpAddress": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeNodeMonitoringData": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeReference": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeRegenerateKeyParameters": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeResource": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeSsisCatalogInfo": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeSsisProperties": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeStatus": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeStatusListResponse": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeVNetProperties": null, - "azure.mgmt.datafactory.models.InteractiveQueryProperties": null, - "azure.mgmt.datafactory.models.JiraLinkedService": null, - "azure.mgmt.datafactory.models.JiraObjectDataset": null, - "azure.mgmt.datafactory.models.JiraSource": null, - "azure.mgmt.datafactory.models.JsonDataset": null, - "azure.mgmt.datafactory.models.JsonFormat": null, - "azure.mgmt.datafactory.models.JsonReadSettings": null, - "azure.mgmt.datafactory.models.JsonSink": null, - "azure.mgmt.datafactory.models.JsonSource": null, - "azure.mgmt.datafactory.models.JsonWriteSettings": null, - "azure.mgmt.datafactory.models.LakeHouseLinkedService": null, - "azure.mgmt.datafactory.models.LakeHouseLocation": null, - "azure.mgmt.datafactory.models.LakeHouseReadSettings": null, - "azure.mgmt.datafactory.models.LakeHouseTableDataset": null, - "azure.mgmt.datafactory.models.LakeHouseTableSink": null, - "azure.mgmt.datafactory.models.LakeHouseTableSource": null, - "azure.mgmt.datafactory.models.LakeHouseWriteSettings": null, - "azure.mgmt.datafactory.models.LinkedIntegrationRuntime": null, - "azure.mgmt.datafactory.models.LinkedIntegrationRuntimeType": null, - "azure.mgmt.datafactory.models.LinkedIntegrationRuntimeKeyAuthorization": null, - "azure.mgmt.datafactory.models.LinkedIntegrationRuntimeRbacAuthorization": null, - "azure.mgmt.datafactory.models.LinkedIntegrationRuntimeRequest": null, - "azure.mgmt.datafactory.models.LinkedServiceDebugResource": null, - "azure.mgmt.datafactory.models.LinkedServiceListResponse": null, - "azure.mgmt.datafactory.models.LinkedServiceReference": null, - "azure.mgmt.datafactory.models.LinkedServiceResource": null, - "azure.mgmt.datafactory.models.LogLocationSettings": null, - "azure.mgmt.datafactory.models.LogSettings": null, - "azure.mgmt.datafactory.models.LogStorageSettings": null, - "azure.mgmt.datafactory.models.LookupActivity": null, - "azure.mgmt.datafactory.models.MagentoLinkedService": null, - "azure.mgmt.datafactory.models.MagentoObjectDataset": null, - "azure.mgmt.datafactory.models.MagentoSource": null, - "azure.mgmt.datafactory.models.ManagedIdentityCredential": null, - "azure.mgmt.datafactory.models.ManagedIntegrationRuntime": null, - "azure.mgmt.datafactory.models.ManagedIntegrationRuntimeError": null, - "azure.mgmt.datafactory.models.ManagedIntegrationRuntimeNode": null, - "azure.mgmt.datafactory.models.ManagedIntegrationRuntimeOperationResult": null, - "azure.mgmt.datafactory.models.ManagedIntegrationRuntimeStatus": null, - "azure.mgmt.datafactory.models.ManagedPrivateEndpoint": null, - "azure.mgmt.datafactory.models.ManagedPrivateEndpointListResponse": null, - "azure.mgmt.datafactory.models.ManagedPrivateEndpointResource": null, - "azure.mgmt.datafactory.models.ManagedVirtualNetwork": null, - "azure.mgmt.datafactory.models.ManagedVirtualNetworkListResponse": null, - "azure.mgmt.datafactory.models.ManagedVirtualNetworkReference": null, - "azure.mgmt.datafactory.models.ManagedVirtualNetworkResource": null, - "azure.mgmt.datafactory.models.MapperAttributeMapping": null, - "azure.mgmt.datafactory.models.MapperAttributeMappings": null, - "azure.mgmt.datafactory.models.MapperAttributeReference": null, - "azure.mgmt.datafactory.models.MapperConnection": null, - "azure.mgmt.datafactory.models.MapperConnectionReference": null, - "azure.mgmt.datafactory.models.MapperDslConnectorProperties": null, - "azure.mgmt.datafactory.models.MapperPolicy": null, - "azure.mgmt.datafactory.models.MapperPolicyRecurrence": null, - "azure.mgmt.datafactory.models.MapperSourceConnectionsInfo": null, - "azure.mgmt.datafactory.models.MapperTable": null, - "azure.mgmt.datafactory.models.MapperTableSchema": null, - "azure.mgmt.datafactory.models.MapperTargetConnectionsInfo": null, - "azure.mgmt.datafactory.models.MappingDataFlow": null, - "azure.mgmt.datafactory.models.MariaDBLinkedService": null, - "azure.mgmt.datafactory.models.MariaDBSource": null, - "azure.mgmt.datafactory.models.MariaDBTableDataset": null, - "azure.mgmt.datafactory.models.MarketoLinkedService": null, - "azure.mgmt.datafactory.models.MarketoObjectDataset": null, - "azure.mgmt.datafactory.models.MarketoSource": null, - "azure.mgmt.datafactory.models.MetadataItem": null, - "azure.mgmt.datafactory.models.MicrosoftAccessLinkedService": null, - "azure.mgmt.datafactory.models.MicrosoftAccessSink": null, - "azure.mgmt.datafactory.models.MicrosoftAccessSource": null, - "azure.mgmt.datafactory.models.MicrosoftAccessTableDataset": null, - "azure.mgmt.datafactory.models.MongoDbAtlasCollectionDataset": null, - "azure.mgmt.datafactory.models.MongoDbAtlasLinkedService": null, - "azure.mgmt.datafactory.models.MongoDbAtlasSink": null, - "azure.mgmt.datafactory.models.MongoDbAtlasSource": null, - "azure.mgmt.datafactory.models.MongoDbCollectionDataset": null, - "azure.mgmt.datafactory.models.MongoDbCursorMethodsProperties": null, - "azure.mgmt.datafactory.models.MongoDbLinkedService": null, - "azure.mgmt.datafactory.models.MongoDbSource": null, - "azure.mgmt.datafactory.models.MongoDbV2CollectionDataset": null, - "azure.mgmt.datafactory.models.MongoDbV2LinkedService": null, - "azure.mgmt.datafactory.models.MongoDbV2Sink": null, - "azure.mgmt.datafactory.models.MongoDbV2Source": null, - "azure.mgmt.datafactory.models.MySqlLinkedService": null, - "azure.mgmt.datafactory.models.MySqlSource": null, - "azure.mgmt.datafactory.models.MySqlTableDataset": null, - "azure.mgmt.datafactory.models.NetezzaLinkedService": null, - "azure.mgmt.datafactory.models.NetezzaPartitionSettings": null, - "azure.mgmt.datafactory.models.NetezzaSource": null, - "azure.mgmt.datafactory.models.NetezzaTableDataset": null, - "azure.mgmt.datafactory.models.NotebookParameter": null, - "azure.mgmt.datafactory.models.ODataLinkedService": null, - "azure.mgmt.datafactory.models.ODataResourceDataset": null, - "azure.mgmt.datafactory.models.ODataSource": null, - "azure.mgmt.datafactory.models.OdbcLinkedService": null, - "azure.mgmt.datafactory.models.OdbcSink": null, - "azure.mgmt.datafactory.models.OdbcSource": null, - "azure.mgmt.datafactory.models.OdbcTableDataset": null, - "azure.mgmt.datafactory.models.Office365Dataset": null, - "azure.mgmt.datafactory.models.Office365LinkedService": null, - "azure.mgmt.datafactory.models.Office365Source": null, - "azure.mgmt.datafactory.models.Operation": null, - "azure.mgmt.datafactory.models.OperationDisplay": null, - "azure.mgmt.datafactory.models.OperationListResponse": null, - "azure.mgmt.datafactory.models.OperationLogSpecification": null, - "azure.mgmt.datafactory.models.OperationMetricAvailability": null, - "azure.mgmt.datafactory.models.OperationMetricDimension": null, - "azure.mgmt.datafactory.models.OperationMetricSpecification": null, - "azure.mgmt.datafactory.models.OperationServiceSpecification": null, - "azure.mgmt.datafactory.models.OracleCloudStorageLinkedService": null, - "azure.mgmt.datafactory.models.OracleCloudStorageLocation": null, - "azure.mgmt.datafactory.models.OracleCloudStorageReadSettings": null, - "azure.mgmt.datafactory.models.OracleLinkedService": null, - "azure.mgmt.datafactory.models.OraclePartitionSettings": null, - "azure.mgmt.datafactory.models.OracleServiceCloudLinkedService": null, - "azure.mgmt.datafactory.models.OracleServiceCloudObjectDataset": null, - "azure.mgmt.datafactory.models.OracleServiceCloudSource": null, - "azure.mgmt.datafactory.models.OracleSink": null, - "azure.mgmt.datafactory.models.OracleSource": null, - "azure.mgmt.datafactory.models.OracleTableDataset": null, - "azure.mgmt.datafactory.models.OrcDataset": null, - "azure.mgmt.datafactory.models.OrcFormat": null, - "azure.mgmt.datafactory.models.OrcSink": null, - "azure.mgmt.datafactory.models.OrcSource": null, - "azure.mgmt.datafactory.models.OrcWriteSettings": null, - "azure.mgmt.datafactory.models.OutputColumn": null, - "azure.mgmt.datafactory.models.PackageStore": null, - "azure.mgmt.datafactory.models.ParameterSpecification": null, - "azure.mgmt.datafactory.models.ParquetDataset": null, - "azure.mgmt.datafactory.models.ParquetFormat": null, - "azure.mgmt.datafactory.models.ParquetReadSettings": null, - "azure.mgmt.datafactory.models.ParquetSink": null, - "azure.mgmt.datafactory.models.ParquetSource": null, - "azure.mgmt.datafactory.models.ParquetWriteSettings": null, - "azure.mgmt.datafactory.models.PaypalLinkedService": null, - "azure.mgmt.datafactory.models.PaypalObjectDataset": null, - "azure.mgmt.datafactory.models.PaypalSource": null, - "azure.mgmt.datafactory.models.PhoenixLinkedService": null, - "azure.mgmt.datafactory.models.PhoenixObjectDataset": null, - "azure.mgmt.datafactory.models.PhoenixSource": null, - "azure.mgmt.datafactory.models.PipelineElapsedTimeMetricPolicy": null, - "azure.mgmt.datafactory.models.PipelineExternalComputeScaleProperties": null, - "azure.mgmt.datafactory.models.PipelineFolder": null, - "azure.mgmt.datafactory.models.PipelineListResponse": null, - "azure.mgmt.datafactory.models.PipelinePolicy": null, - "azure.mgmt.datafactory.models.PipelineReference": null, - "azure.mgmt.datafactory.models.PipelineResource": null, - "azure.mgmt.datafactory.models.PipelineRun": null, - "azure.mgmt.datafactory.models.PipelineRunInvokedBy": null, - "azure.mgmt.datafactory.models.PipelineRunsQueryResponse": null, - "azure.mgmt.datafactory.models.PolybaseSettings": null, - "azure.mgmt.datafactory.models.PostgreSqlLinkedService": null, - "azure.mgmt.datafactory.models.PostgreSqlSource": null, - "azure.mgmt.datafactory.models.PostgreSqlTableDataset": null, - "azure.mgmt.datafactory.models.PostgreSqlV2LinkedService": null, - "azure.mgmt.datafactory.models.PostgreSqlV2Source": null, - "azure.mgmt.datafactory.models.PostgreSqlV2TableDataset": null, - "azure.mgmt.datafactory.models.PowerQuerySink": null, - "azure.mgmt.datafactory.models.PowerQuerySinkMapping": null, - "azure.mgmt.datafactory.models.PowerQuerySource": null, - "azure.mgmt.datafactory.models.PrestoLinkedService": null, - "azure.mgmt.datafactory.models.PrestoObjectDataset": null, - "azure.mgmt.datafactory.models.PrestoSource": null, - "azure.mgmt.datafactory.models.PrivateEndpoint": null, - "azure.mgmt.datafactory.models.PrivateEndpointConnectionListResponse": null, - "azure.mgmt.datafactory.models.PrivateEndpointConnectionResource": null, - "azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequest": null, - "azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequestResource": null, - "azure.mgmt.datafactory.models.PrivateLinkConnectionState": null, - "azure.mgmt.datafactory.models.PrivateLinkResource": null, - "azure.mgmt.datafactory.models.PrivateLinkResourceProperties": null, - "azure.mgmt.datafactory.models.PrivateLinkResourcesWrapper": null, - "azure.mgmt.datafactory.models.PurviewConfiguration": null, - "azure.mgmt.datafactory.models.QueryDataFlowDebugSessionsResponse": null, - "azure.mgmt.datafactory.models.QuickbaseLinkedService": null, - "azure.mgmt.datafactory.models.QuickBooksLinkedService": null, - "azure.mgmt.datafactory.models.QuickBooksObjectDataset": null, - "azure.mgmt.datafactory.models.QuickBooksSource": null, - "azure.mgmt.datafactory.models.RecurrenceSchedule": null, - "azure.mgmt.datafactory.models.RecurrenceScheduleOccurrence": null, - "azure.mgmt.datafactory.models.RedirectIncompatibleRowSettings": null, - "azure.mgmt.datafactory.models.RedshiftUnloadSettings": null, - "azure.mgmt.datafactory.models.RelationalSource": null, - "azure.mgmt.datafactory.models.RelationalTableDataset": null, - "azure.mgmt.datafactory.models.RemotePrivateEndpointConnection": null, - "azure.mgmt.datafactory.models.RerunTumblingWindowTrigger": null, - "azure.mgmt.datafactory.models.ResponsysLinkedService": null, - "azure.mgmt.datafactory.models.ResponsysObjectDataset": null, - "azure.mgmt.datafactory.models.ResponsysSource": null, - "azure.mgmt.datafactory.models.RestResourceDataset": null, - "azure.mgmt.datafactory.models.RestServiceLinkedService": null, - "azure.mgmt.datafactory.models.RestSink": null, - "azure.mgmt.datafactory.models.RestSource": null, - "azure.mgmt.datafactory.models.RetryPolicy": null, - "azure.mgmt.datafactory.models.RunFilterParameters": null, - "azure.mgmt.datafactory.models.RunQueryFilter": null, - "azure.mgmt.datafactory.models.RunQueryOrderBy": null, - "azure.mgmt.datafactory.models.SalesforceLinkedService": null, - "azure.mgmt.datafactory.models.SalesforceMarketingCloudLinkedService": null, - "azure.mgmt.datafactory.models.SalesforceMarketingCloudObjectDataset": null, - "azure.mgmt.datafactory.models.SalesforceMarketingCloudSource": null, - "azure.mgmt.datafactory.models.SalesforceObjectDataset": null, - "azure.mgmt.datafactory.models.SalesforceServiceCloudLinkedService": null, - "azure.mgmt.datafactory.models.SalesforceServiceCloudObjectDataset": null, - "azure.mgmt.datafactory.models.SalesforceServiceCloudSink": null, - "azure.mgmt.datafactory.models.SalesforceServiceCloudSource": null, - "azure.mgmt.datafactory.models.SalesforceServiceCloudV2LinkedService": null, - "azure.mgmt.datafactory.models.SalesforceServiceCloudV2ObjectDataset": null, - "azure.mgmt.datafactory.models.SalesforceServiceCloudV2Sink": null, - "azure.mgmt.datafactory.models.SalesforceServiceCloudV2Source": null, - "azure.mgmt.datafactory.models.SalesforceSink": null, - "azure.mgmt.datafactory.models.SalesforceSource": null, - "azure.mgmt.datafactory.models.SalesforceV2LinkedService": null, - "azure.mgmt.datafactory.models.SalesforceV2ObjectDataset": null, - "azure.mgmt.datafactory.models.SalesforceV2Sink": null, - "azure.mgmt.datafactory.models.SalesforceV2Source": null, - "azure.mgmt.datafactory.models.SapBwCubeDataset": null, - "azure.mgmt.datafactory.models.SapBWLinkedService": null, - "azure.mgmt.datafactory.models.SapBwSource": null, - "azure.mgmt.datafactory.models.SapCloudForCustomerLinkedService": null, - "azure.mgmt.datafactory.models.SapCloudForCustomerResourceDataset": null, - "azure.mgmt.datafactory.models.SapCloudForCustomerSink": null, - "azure.mgmt.datafactory.models.SapCloudForCustomerSource": null, - "azure.mgmt.datafactory.models.SapEccLinkedService": null, - "azure.mgmt.datafactory.models.SapEccResourceDataset": null, - "azure.mgmt.datafactory.models.SapEccSource": null, - "azure.mgmt.datafactory.models.SapHanaLinkedService": null, - "azure.mgmt.datafactory.models.SapHanaPartitionSettings": null, - "azure.mgmt.datafactory.models.SapHanaSource": null, - "azure.mgmt.datafactory.models.SapHanaTableDataset": null, - "azure.mgmt.datafactory.models.SapOdpLinkedService": null, - "azure.mgmt.datafactory.models.SapOdpResourceDataset": null, - "azure.mgmt.datafactory.models.SapOdpSource": null, - "azure.mgmt.datafactory.models.SapOpenHubLinkedService": null, - "azure.mgmt.datafactory.models.SapOpenHubSource": null, - "azure.mgmt.datafactory.models.SapOpenHubTableDataset": null, - "azure.mgmt.datafactory.models.SapTableLinkedService": null, - "azure.mgmt.datafactory.models.SapTablePartitionSettings": null, - "azure.mgmt.datafactory.models.SapTableResourceDataset": null, - "azure.mgmt.datafactory.models.SapTableSource": null, - "azure.mgmt.datafactory.models.ScheduleTrigger": null, - "azure.mgmt.datafactory.models.ScheduleTriggerRecurrence": null, - "azure.mgmt.datafactory.models.ScriptAction": null, - "azure.mgmt.datafactory.models.ScriptActivity": null, - "azure.mgmt.datafactory.models.ScriptActivityParameter": null, - "azure.mgmt.datafactory.models.ScriptActivityScriptBlock": null, - "azure.mgmt.datafactory.models.ScriptActivityTypePropertiesLogSettings": null, - "azure.mgmt.datafactory.models.SecureInputOutputPolicy": null, - "azure.mgmt.datafactory.models.SecureString": null, - "azure.mgmt.datafactory.models.SelfDependencyTumblingWindowTriggerReference": null, - "azure.mgmt.datafactory.models.SelfHostedIntegrationRuntime": null, - "azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode": null, - "azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeStatus": null, - "azure.mgmt.datafactory.models.ServiceNowLinkedService": null, - "azure.mgmt.datafactory.models.ServiceNowObjectDataset": null, - "azure.mgmt.datafactory.models.ServiceNowSource": null, - "azure.mgmt.datafactory.models.ServiceNowV2LinkedService": null, - "azure.mgmt.datafactory.models.ServiceNowV2ObjectDataset": null, - "azure.mgmt.datafactory.models.ServiceNowV2Source": null, - "azure.mgmt.datafactory.models.ServicePrincipalCredential": null, - "azure.mgmt.datafactory.models.SetVariableActivity": null, - "azure.mgmt.datafactory.models.SftpLocation": null, - "azure.mgmt.datafactory.models.SftpReadSettings": null, - "azure.mgmt.datafactory.models.SftpServerLinkedService": null, - "azure.mgmt.datafactory.models.SftpWriteSettings": null, - "azure.mgmt.datafactory.models.SharePointOnlineListLinkedService": null, - "azure.mgmt.datafactory.models.SharePointOnlineListResourceDataset": null, - "azure.mgmt.datafactory.models.SharePointOnlineListSource": null, - "azure.mgmt.datafactory.models.ShopifyLinkedService": null, - "azure.mgmt.datafactory.models.ShopifyObjectDataset": null, - "azure.mgmt.datafactory.models.ShopifySource": null, - "azure.mgmt.datafactory.models.SkipErrorFile": null, - "azure.mgmt.datafactory.models.SmartsheetLinkedService": null, - "azure.mgmt.datafactory.models.SnowflakeDataset": null, - "azure.mgmt.datafactory.models.SnowflakeExportCopyCommand": null, - "azure.mgmt.datafactory.models.SnowflakeImportCopyCommand": null, - "azure.mgmt.datafactory.models.SnowflakeLinkedService": null, - "azure.mgmt.datafactory.models.SnowflakeSink": null, - "azure.mgmt.datafactory.models.SnowflakeSource": null, - "azure.mgmt.datafactory.models.SnowflakeV2Dataset": null, - "azure.mgmt.datafactory.models.SnowflakeV2LinkedService": null, - "azure.mgmt.datafactory.models.SnowflakeV2Sink": null, - "azure.mgmt.datafactory.models.SnowflakeV2Source": null, - "azure.mgmt.datafactory.models.SparkConfigurationParametrizationReference": null, - "azure.mgmt.datafactory.models.SparkLinkedService": null, - "azure.mgmt.datafactory.models.SparkObjectDataset": null, - "azure.mgmt.datafactory.models.SparkSource": null, - "azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties": null, - "azure.mgmt.datafactory.models.SqlDWSink": null, - "azure.mgmt.datafactory.models.SqlDWSource": null, - "azure.mgmt.datafactory.models.SqlDWUpsertSettings": null, - "azure.mgmt.datafactory.models.SqlMISink": null, - "azure.mgmt.datafactory.models.SqlMISource": null, - "azure.mgmt.datafactory.models.SqlPartitionSettings": null, - "azure.mgmt.datafactory.models.SqlServerLinkedService": null, - "azure.mgmt.datafactory.models.SqlServerLinkedServiceTypeProperties": null, - "azure.mgmt.datafactory.models.SqlServerSink": null, - "azure.mgmt.datafactory.models.SqlServerSource": null, - "azure.mgmt.datafactory.models.SqlServerStoredProcedureActivity": null, - "azure.mgmt.datafactory.models.SqlServerTableDataset": null, - "azure.mgmt.datafactory.models.SqlSink": null, - "azure.mgmt.datafactory.models.SqlSource": null, - "azure.mgmt.datafactory.models.SqlUpsertSettings": null, - "azure.mgmt.datafactory.models.SquareLinkedService": null, - "azure.mgmt.datafactory.models.SquareObjectDataset": null, - "azure.mgmt.datafactory.models.SquareSource": null, - "azure.mgmt.datafactory.models.SSISAccessCredential": null, - "azure.mgmt.datafactory.models.SSISChildPackage": null, - "azure.mgmt.datafactory.models.SsisObjectMetadata": null, - "azure.mgmt.datafactory.models.SsisEnvironment": null, - "azure.mgmt.datafactory.models.SsisEnvironmentReference": null, - "azure.mgmt.datafactory.models.SSISExecutionCredential": null, - "azure.mgmt.datafactory.models.SSISExecutionParameter": null, - "azure.mgmt.datafactory.models.SsisFolder": null, - "azure.mgmt.datafactory.models.SSISLogLocation": null, - "azure.mgmt.datafactory.models.SsisObjectMetadataListResponse": null, - "azure.mgmt.datafactory.models.SsisObjectMetadataStatusResponse": null, - "azure.mgmt.datafactory.models.SsisPackage": null, - "azure.mgmt.datafactory.models.SSISPackageLocation": null, - "azure.mgmt.datafactory.models.SsisParameter": null, - "azure.mgmt.datafactory.models.SsisProject": null, - "azure.mgmt.datafactory.models.SSISPropertyOverride": null, - "azure.mgmt.datafactory.models.SsisVariable": null, - "azure.mgmt.datafactory.models.StagingSettings": null, - "azure.mgmt.datafactory.models.StoredProcedureParameter": null, - "azure.mgmt.datafactory.models.SwitchActivity": null, - "azure.mgmt.datafactory.models.SwitchCase": null, - "azure.mgmt.datafactory.models.SybaseLinkedService": null, - "azure.mgmt.datafactory.models.SybaseSource": null, - "azure.mgmt.datafactory.models.SybaseTableDataset": null, - "azure.mgmt.datafactory.models.SynapseNotebookActivity": null, - "azure.mgmt.datafactory.models.SynapseNotebookReference": null, - "azure.mgmt.datafactory.models.SynapseSparkJobDefinitionActivity": null, - "azure.mgmt.datafactory.models.SynapseSparkJobReference": null, - "azure.mgmt.datafactory.models.TabularTranslator": null, - "azure.mgmt.datafactory.models.TarGZipReadSettings": null, - "azure.mgmt.datafactory.models.TarReadSettings": null, - "azure.mgmt.datafactory.models.TeamDeskLinkedService": null, - "azure.mgmt.datafactory.models.TeradataImportCommand": null, - "azure.mgmt.datafactory.models.TeradataLinkedService": null, - "azure.mgmt.datafactory.models.TeradataPartitionSettings": null, - "azure.mgmt.datafactory.models.TeradataSink": null, - "azure.mgmt.datafactory.models.TeradataSource": null, - "azure.mgmt.datafactory.models.TeradataTableDataset": null, - "azure.mgmt.datafactory.models.TextFormat": null, - "azure.mgmt.datafactory.models.TriggerDependencyReference": null, - "azure.mgmt.datafactory.models.TriggerFilterParameters": null, - "azure.mgmt.datafactory.models.TriggerListResponse": null, - "azure.mgmt.datafactory.models.TriggerPipelineReference": null, - "azure.mgmt.datafactory.models.TriggerQueryResponse": null, - "azure.mgmt.datafactory.models.TriggerReference": null, - "azure.mgmt.datafactory.models.TriggerResource": null, - "azure.mgmt.datafactory.models.TriggerRun": null, - "azure.mgmt.datafactory.models.TriggerRunsQueryResponse": null, - "azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus": null, - "azure.mgmt.datafactory.models.TumblingWindowTrigger": null, - "azure.mgmt.datafactory.models.TumblingWindowTriggerDependencyReference": null, - "azure.mgmt.datafactory.models.TwilioLinkedService": null, - "azure.mgmt.datafactory.models.TypeConversionSettings": null, - "azure.mgmt.datafactory.models.UntilActivity": null, - "azure.mgmt.datafactory.models.UpdateIntegrationRuntimeNodeRequest": null, - "azure.mgmt.datafactory.models.UpdateIntegrationRuntimeRequest": null, - "azure.mgmt.datafactory.models.UserAccessPolicy": null, - "azure.mgmt.datafactory.models.UserProperty": null, - "azure.mgmt.datafactory.models.ValidationActivity": null, - "azure.mgmt.datafactory.models.VariableSpecification": null, - "azure.mgmt.datafactory.models.VerticaLinkedService": null, - "azure.mgmt.datafactory.models.VerticaSource": null, - "azure.mgmt.datafactory.models.VerticaTableDataset": null, - "azure.mgmt.datafactory.models.WaitActivity": null, - "azure.mgmt.datafactory.models.WarehouseLinkedService": null, - "azure.mgmt.datafactory.models.WarehouseSink": null, - "azure.mgmt.datafactory.models.WarehouseSource": null, - "azure.mgmt.datafactory.models.WarehouseTableDataset": null, - "azure.mgmt.datafactory.models.WebActivity": null, - "azure.mgmt.datafactory.models.WebActivityAuthentication": null, - "azure.mgmt.datafactory.models.WebLinkedServiceTypeProperties": null, - "azure.mgmt.datafactory.models.WebAnonymousAuthentication": null, - "azure.mgmt.datafactory.models.WebBasicAuthentication": null, - "azure.mgmt.datafactory.models.WebClientCertificateAuthentication": null, - "azure.mgmt.datafactory.models.WebHookActivity": null, - "azure.mgmt.datafactory.models.WebLinkedService": null, - "azure.mgmt.datafactory.models.WebSource": null, - "azure.mgmt.datafactory.models.WebTableDataset": null, - "azure.mgmt.datafactory.models.WranglingDataFlow": null, - "azure.mgmt.datafactory.models.XeroLinkedService": null, - "azure.mgmt.datafactory.models.XeroObjectDataset": null, - "azure.mgmt.datafactory.models.XeroSource": null, - "azure.mgmt.datafactory.models.XmlDataset": null, - "azure.mgmt.datafactory.models.XmlReadSettings": null, - "azure.mgmt.datafactory.models.XmlSource": null, - "azure.mgmt.datafactory.models.ZendeskLinkedService": null, - "azure.mgmt.datafactory.models.ZipDeflateReadSettings": null, - "azure.mgmt.datafactory.models.ZohoLinkedService": null, - "azure.mgmt.datafactory.models.ZohoObjectDataset": null, - "azure.mgmt.datafactory.models.ZohoSource": null, - "azure.mgmt.datafactory.models.FactoryIdentityType": null, - "azure.mgmt.datafactory.models.GlobalParameterType": null, - "azure.mgmt.datafactory.models.PublicNetworkAccess": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeType": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeState": null, - "azure.mgmt.datafactory.models.ManagedVirtualNetworkReferenceType": null, - "azure.mgmt.datafactory.models.DataFlowComputeType": null, - "azure.mgmt.datafactory.models.Type": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeSsisCatalogPricingTier": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeLicenseType": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeEntityReferenceType": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeEdition": null, - "azure.mgmt.datafactory.models.CredentialReferenceType": null, - "azure.mgmt.datafactory.models.InteractiveCapabilityStatus": null, - "azure.mgmt.datafactory.models.SsisObjectMetadataType": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeReferenceType": null, - "azure.mgmt.datafactory.models.ParameterType": null, - "azure.mgmt.datafactory.models.AmazonRdsForOracleAuthenticationType": null, - "azure.mgmt.datafactory.models.AmazonRdsForSqlAuthenticationType": null, - "azure.mgmt.datafactory.models.SqlAlwaysEncryptedAkvAuthType": null, - "azure.mgmt.datafactory.models.AzureStorageAuthenticationType": null, - "azure.mgmt.datafactory.models.AzureSqlDWAuthenticationType": null, - "azure.mgmt.datafactory.models.AzureSqlDatabaseAuthenticationType": null, - "azure.mgmt.datafactory.models.AzureSqlMIAuthenticationType": null, - "azure.mgmt.datafactory.models.CosmosDbConnectionMode": null, - "azure.mgmt.datafactory.models.Db2AuthenticationType": null, - "azure.mgmt.datafactory.models.FtpAuthenticationType": null, - "azure.mgmt.datafactory.models.GoogleAdWordsAuthenticationType": null, - "azure.mgmt.datafactory.models.GoogleBigQueryAuthenticationType": null, - "azure.mgmt.datafactory.models.GoogleBigQueryV2AuthenticationType": null, - "azure.mgmt.datafactory.models.GreenplumAuthenticationType": null, - "azure.mgmt.datafactory.models.HBaseAuthenticationType": null, - "azure.mgmt.datafactory.models.HDInsightClusterAuthenticationType": null, - "azure.mgmt.datafactory.models.HDInsightOndemandClusterResourceGroupAuthenticationType": null, - "azure.mgmt.datafactory.models.HiveServerType": null, - "azure.mgmt.datafactory.models.HiveThriftTransportProtocol": null, - "azure.mgmt.datafactory.models.HiveAuthenticationType": null, - "azure.mgmt.datafactory.models.HttpAuthenticationType": null, - "azure.mgmt.datafactory.models.ImpalaAuthenticationType": null, - "azure.mgmt.datafactory.models.ImpalaThriftTransportProtocol": null, - "azure.mgmt.datafactory.models.LakehouseAuthenticationType": null, - "azure.mgmt.datafactory.models.MongoDbAuthenticationType": null, - "azure.mgmt.datafactory.models.NetezzaSecurityLevelType": null, - "azure.mgmt.datafactory.models.ODataAuthenticationType": null, - "azure.mgmt.datafactory.models.ODataAadServicePrincipalCredentialType": null, - "azure.mgmt.datafactory.models.OracleAuthenticationType": null, - "azure.mgmt.datafactory.models.PhoenixAuthenticationType": null, - "azure.mgmt.datafactory.models.PrestoAuthenticationType": null, - "azure.mgmt.datafactory.models.RestServiceAuthenticationType": null, - "azure.mgmt.datafactory.models.SapHanaAuthenticationType": null, - "azure.mgmt.datafactory.models.ServiceNowAuthenticationType": null, - "azure.mgmt.datafactory.models.ServiceNowV2AuthenticationType": null, - "azure.mgmt.datafactory.models.SftpAuthenticationType": null, - "azure.mgmt.datafactory.models.SnowflakeAuthenticationType": null, - "azure.mgmt.datafactory.models.SparkServerType": null, - "azure.mgmt.datafactory.models.SparkThriftTransportProtocol": null, - "azure.mgmt.datafactory.models.SparkAuthenticationType": null, - "azure.mgmt.datafactory.models.SqlServerAuthenticationType": null, - "azure.mgmt.datafactory.models.SybaseAuthenticationType": null, - "azure.mgmt.datafactory.models.TeamDeskAuthenticationType": null, - "azure.mgmt.datafactory.models.TeradataAuthenticationType": null, - "azure.mgmt.datafactory.models.WarehouseAuthenticationType": null, - "azure.mgmt.datafactory.models.WebAuthenticationType": null, - "azure.mgmt.datafactory.models.ZendeskAuthenticationType": null, - "azure.mgmt.datafactory.models.ValueType": null, - "azure.mgmt.datafactory.models.DependencyCondition": null, - "azure.mgmt.datafactory.models.ActivityState": null, - "azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs": null, - "azure.mgmt.datafactory.models.PipelineReferenceType": null, - "azure.mgmt.datafactory.models.ExpressionType": null, - "azure.mgmt.datafactory.models.DatasetReferenceType": null, - "azure.mgmt.datafactory.models.WebHookActivityMethod": null, - "azure.mgmt.datafactory.models.DataFlowReferenceType": null, - "azure.mgmt.datafactory.models.AzureFunctionActivityMethod": null, - "azure.mgmt.datafactory.models.CassandraSourceReadConsistencyLevels": null, - "azure.mgmt.datafactory.models.ExpressionV2Type": null, - "azure.mgmt.datafactory.models.AzurePostgreSqlWriteMethodEnum": null, - "azure.mgmt.datafactory.models.AzureSearchIndexWriteBehaviorType": null, - "azure.mgmt.datafactory.models.DynamicsSinkWriteBehavior": null, - "azure.mgmt.datafactory.models.SalesforceSinkWriteBehavior": null, - "azure.mgmt.datafactory.models.SalesforceV2SinkWriteBehavior": null, - "azure.mgmt.datafactory.models.SapCloudForCustomerSinkWriteBehavior": null, - "azure.mgmt.datafactory.models.PolybaseSettingsRejectType": null, - "azure.mgmt.datafactory.models.SsisPackageLocationType": null, - "azure.mgmt.datafactory.models.SsisLogLocationType": null, - "azure.mgmt.datafactory.models.HDInsightActivityDebugInfoOption": null, - "azure.mgmt.datafactory.models.ScriptActivityParameterType": null, - "azure.mgmt.datafactory.models.ScriptActivityParameterDirection": null, - "azure.mgmt.datafactory.models.ScriptActivityLogDestination": null, - "azure.mgmt.datafactory.models.SparkJobReferenceType": null, - "azure.mgmt.datafactory.models.BigDataPoolReferenceType": null, - "azure.mgmt.datafactory.models.ConfigurationType": null, - "azure.mgmt.datafactory.models.SparkConfigurationReferenceType": null, - "azure.mgmt.datafactory.models.NotebookReferenceType": null, - "azure.mgmt.datafactory.models.NotebookParameterType": null, - "azure.mgmt.datafactory.models.WebActivityMethod": null, - "azure.mgmt.datafactory.models.VariableType": null, - "azure.mgmt.datafactory.models.RunQueryFilterOperand": null, - "azure.mgmt.datafactory.models.RunQueryFilterOperator": null, - "azure.mgmt.datafactory.models.RunQueryOrderByField": null, - "azure.mgmt.datafactory.models.RunQueryOrder": null, - "azure.mgmt.datafactory.models.TriggerRuntimeState": null, - "azure.mgmt.datafactory.models.BlobEventTypes": null, - "azure.mgmt.datafactory.models.RecurrenceFrequency": null, - "azure.mgmt.datafactory.models.DaysOfWeek": null, - "azure.mgmt.datafactory.models.DayOfWeek": null, - "azure.mgmt.datafactory.models.TumblingWindowFrequency": null, - "azure.mgmt.datafactory.models.TriggerReferenceType": null, - "azure.mgmt.datafactory.models.TriggerRunStatus": null, - "azure.mgmt.datafactory.models.ConnectionType": null, - "azure.mgmt.datafactory.models.MappingType": null, - "azure.mgmt.datafactory.models.FrequencyType": null, - "azure.mgmt.datafactory.models.ManagedIntegrationRuntimeNodeStatus": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeInternalChannelEncryptionMode": null, - "azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNodeStatus": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeUpdateResult": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeAutoUpdate": null, - "azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeyName": null, - "azure.mgmt.datafactory.models.EventSubscriptionStatus": null, - "azure.mgmt.datafactory.models.DataFlowDebugCommandType": null, - "azure.mgmt.datafactory.models.StoredProcedureParameterType": null, - "azure.mgmt.datafactory.models.JsonFormatFilePattern": null, - "azure.mgmt.datafactory.models.DatasetCompressionLevel": null, - "azure.mgmt.datafactory.models.AvroCompressionCodec": null, - "azure.mgmt.datafactory.models.CompressionCodec": null, - "azure.mgmt.datafactory.models.OrcCompressionCodec": null, - "azure.mgmt.datafactory.models.DynamicsDeploymentType": null, - "azure.mgmt.datafactory.models.DynamicsAuthenticationType": null, - "azure.mgmt.datafactory.models.ServicePrincipalCredentialType": null, - "azure.mgmt.datafactory.models.HdiNodeTypes": null, - "azure.mgmt.datafactory.models.JsonWriteFilePattern": null, - "azure.mgmt.datafactory.models.SalesforceSourceReadBehavior": null, - "azure.mgmt.datafactory.models.AmazonRdsForOraclePartitionOption": null, - "azure.mgmt.datafactory.models.CopyBehaviorType": null, - "azure.mgmt.datafactory.models.SqlWriteBehaviorEnum": null, - "azure.mgmt.datafactory.models.SqlDWWriteBehaviorEnum": null, - "azure.mgmt.datafactory.models.ScriptType": null, - "azure.mgmt.datafactory.models.SqlPartitionOption": null, - "azure.mgmt.datafactory.models.SapHanaPartitionOption": null, - "azure.mgmt.datafactory.models.SapTablePartitionOption": null, - "azure.mgmt.datafactory.models.OraclePartitionOption": null, - "azure.mgmt.datafactory.models.TeradataPartitionOption": null, - "azure.mgmt.datafactory.models.NetezzaPartitionOption": null, - "azure.mgmt.datafactory.operations.Operations.list": null, - "azure.mgmt.datafactory.aio.operations.Operations.list": null, - "azure.mgmt.datafactory.operations.FactoriesOperations.list": null, - "azure.mgmt.datafactory.aio.operations.FactoriesOperations.list": null, - "azure.mgmt.datafactory.operations.FactoriesOperations.configure_factory_repo": null, - "azure.mgmt.datafactory.aio.operations.FactoriesOperations.configure_factory_repo": null, - "azure.mgmt.datafactory.operations.FactoriesOperations.list_by_resource_group": null, - "azure.mgmt.datafactory.aio.operations.FactoriesOperations.list_by_resource_group": null, - "azure.mgmt.datafactory.operations.FactoriesOperations.create_or_update": null, - "azure.mgmt.datafactory.aio.operations.FactoriesOperations.create_or_update": null, - "azure.mgmt.datafactory.operations.FactoriesOperations.update": null, - "azure.mgmt.datafactory.aio.operations.FactoriesOperations.update": null, - "azure.mgmt.datafactory.operations.FactoriesOperations.get": null, - "azure.mgmt.datafactory.aio.operations.FactoriesOperations.get": null, - "azure.mgmt.datafactory.operations.FactoriesOperations.delete": null, - "azure.mgmt.datafactory.aio.operations.FactoriesOperations.delete": null, - "azure.mgmt.datafactory.operations.FactoriesOperations.get_git_hub_access_token": null, - "azure.mgmt.datafactory.aio.operations.FactoriesOperations.get_git_hub_access_token": null, - "azure.mgmt.datafactory.operations.FactoriesOperations.get_data_plane_access": null, - "azure.mgmt.datafactory.aio.operations.FactoriesOperations.get_data_plane_access": null, - "azure.mgmt.datafactory.operations.ExposureControlOperations.get_feature_value": null, - "azure.mgmt.datafactory.aio.operations.ExposureControlOperations.get_feature_value": null, - "azure.mgmt.datafactory.operations.ExposureControlOperations.get_feature_value_by_factory": null, - "azure.mgmt.datafactory.aio.operations.ExposureControlOperations.get_feature_value_by_factory": null, - "azure.mgmt.datafactory.operations.ExposureControlOperations.query_feature_values_by_factory": null, - "azure.mgmt.datafactory.aio.operations.ExposureControlOperations.query_feature_values_by_factory": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.list_by_factory": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.list_by_factory": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.create_or_update": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.create_or_update": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.get": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.get": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.update": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.update": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.delete": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.delete": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.get_status": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.get_status": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.list_outbound_network_dependencies_endpoints": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.list_outbound_network_dependencies_endpoints": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.get_connection_info": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.get_connection_info": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.regenerate_auth_key": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.regenerate_auth_key": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.list_auth_keys": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.list_auth_keys": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.begin_start": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.begin_start": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.begin_stop": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.begin_stop": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.sync_credentials": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.sync_credentials": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.get_monitoring_data": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.get_monitoring_data": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.upgrade": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.upgrade": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.remove_links": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.remove_links": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.create_linked_integration_runtime": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.create_linked_integration_runtime": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimeObjectMetadataOperations.begin_refresh": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimeObjectMetadataOperations.begin_refresh": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimeObjectMetadataOperations.get": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimeObjectMetadataOperations.get": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimeNodesOperations.get": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimeNodesOperations.get": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimeNodesOperations.delete": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimeNodesOperations.delete": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimeNodesOperations.update": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimeNodesOperations.update": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimeNodesOperations.get_ip_address": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimeNodesOperations.get_ip_address": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimeOperations.begin_enable_interactive_query": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimeOperations.begin_enable_interactive_query": null, - "azure.mgmt.datafactory.operations.IntegrationRuntimeOperations.begin_disable_interactive_query": null, - "azure.mgmt.datafactory.aio.operations.IntegrationRuntimeOperations.begin_disable_interactive_query": null, - "azure.mgmt.datafactory.operations.LinkedServicesOperations.list_by_factory": null, - "azure.mgmt.datafactory.aio.operations.LinkedServicesOperations.list_by_factory": null, - "azure.mgmt.datafactory.operations.LinkedServicesOperations.create_or_update": null, - "azure.mgmt.datafactory.aio.operations.LinkedServicesOperations.create_or_update": null, - "azure.mgmt.datafactory.operations.LinkedServicesOperations.get": null, - "azure.mgmt.datafactory.aio.operations.LinkedServicesOperations.get": null, - "azure.mgmt.datafactory.operations.LinkedServicesOperations.delete": null, - "azure.mgmt.datafactory.aio.operations.LinkedServicesOperations.delete": null, - "azure.mgmt.datafactory.operations.DatasetsOperations.list_by_factory": null, - "azure.mgmt.datafactory.aio.operations.DatasetsOperations.list_by_factory": null, - "azure.mgmt.datafactory.operations.DatasetsOperations.create_or_update": null, - "azure.mgmt.datafactory.aio.operations.DatasetsOperations.create_or_update": null, - "azure.mgmt.datafactory.operations.DatasetsOperations.get": null, - "azure.mgmt.datafactory.aio.operations.DatasetsOperations.get": null, - "azure.mgmt.datafactory.operations.DatasetsOperations.delete": null, - "azure.mgmt.datafactory.aio.operations.DatasetsOperations.delete": null, - "azure.mgmt.datafactory.operations.PipelinesOperations.list_by_factory": null, - "azure.mgmt.datafactory.aio.operations.PipelinesOperations.list_by_factory": null, - "azure.mgmt.datafactory.operations.PipelinesOperations.create_or_update": null, - "azure.mgmt.datafactory.aio.operations.PipelinesOperations.create_or_update": null, - "azure.mgmt.datafactory.operations.PipelinesOperations.get": null, - "azure.mgmt.datafactory.aio.operations.PipelinesOperations.get": null, - "azure.mgmt.datafactory.operations.PipelinesOperations.delete": null, - "azure.mgmt.datafactory.aio.operations.PipelinesOperations.delete": null, - "azure.mgmt.datafactory.operations.PipelinesOperations.create_run": null, - "azure.mgmt.datafactory.aio.operations.PipelinesOperations.create_run": null, - "azure.mgmt.datafactory.operations.PipelineRunsOperations.query_by_factory": null, - "azure.mgmt.datafactory.aio.operations.PipelineRunsOperations.query_by_factory": null, - "azure.mgmt.datafactory.operations.PipelineRunsOperations.get": null, - "azure.mgmt.datafactory.aio.operations.PipelineRunsOperations.get": null, - "azure.mgmt.datafactory.operations.PipelineRunsOperations.cancel": null, - "azure.mgmt.datafactory.aio.operations.PipelineRunsOperations.cancel": null, - "azure.mgmt.datafactory.operations.ActivityRunsOperations.query_by_pipeline_run": null, - "azure.mgmt.datafactory.aio.operations.ActivityRunsOperations.query_by_pipeline_run": null, - "azure.mgmt.datafactory.operations.TriggersOperations.list_by_factory": null, - "azure.mgmt.datafactory.aio.operations.TriggersOperations.list_by_factory": null, - "azure.mgmt.datafactory.operations.TriggersOperations.query_by_factory": null, - "azure.mgmt.datafactory.aio.operations.TriggersOperations.query_by_factory": null, - "azure.mgmt.datafactory.operations.TriggersOperations.create_or_update": null, - "azure.mgmt.datafactory.aio.operations.TriggersOperations.create_or_update": null, - "azure.mgmt.datafactory.operations.TriggersOperations.get": null, - "azure.mgmt.datafactory.aio.operations.TriggersOperations.get": null, - "azure.mgmt.datafactory.operations.TriggersOperations.delete": null, - "azure.mgmt.datafactory.aio.operations.TriggersOperations.delete": null, - "azure.mgmt.datafactory.operations.TriggersOperations.begin_subscribe_to_events": null, - "azure.mgmt.datafactory.aio.operations.TriggersOperations.begin_subscribe_to_events": null, - "azure.mgmt.datafactory.operations.TriggersOperations.get_event_subscription_status": null, - "azure.mgmt.datafactory.aio.operations.TriggersOperations.get_event_subscription_status": null, - "azure.mgmt.datafactory.operations.TriggersOperations.begin_unsubscribe_from_events": null, - "azure.mgmt.datafactory.aio.operations.TriggersOperations.begin_unsubscribe_from_events": null, - "azure.mgmt.datafactory.operations.TriggersOperations.begin_start": null, - "azure.mgmt.datafactory.aio.operations.TriggersOperations.begin_start": null, - "azure.mgmt.datafactory.operations.TriggersOperations.begin_stop": null, - "azure.mgmt.datafactory.aio.operations.TriggersOperations.begin_stop": null, - "azure.mgmt.datafactory.operations.TriggerRunsOperations.rerun": null, - "azure.mgmt.datafactory.aio.operations.TriggerRunsOperations.rerun": null, - "azure.mgmt.datafactory.operations.TriggerRunsOperations.cancel": null, - "azure.mgmt.datafactory.aio.operations.TriggerRunsOperations.cancel": null, - "azure.mgmt.datafactory.operations.TriggerRunsOperations.query_by_factory": null, - "azure.mgmt.datafactory.aio.operations.TriggerRunsOperations.query_by_factory": null, - "azure.mgmt.datafactory.operations.DataFlowsOperations.create_or_update": null, - "azure.mgmt.datafactory.aio.operations.DataFlowsOperations.create_or_update": null, - "azure.mgmt.datafactory.operations.DataFlowsOperations.get": null, - "azure.mgmt.datafactory.aio.operations.DataFlowsOperations.get": null, - "azure.mgmt.datafactory.operations.DataFlowsOperations.delete": null, - "azure.mgmt.datafactory.aio.operations.DataFlowsOperations.delete": null, - "azure.mgmt.datafactory.operations.DataFlowsOperations.list_by_factory": null, - "azure.mgmt.datafactory.aio.operations.DataFlowsOperations.list_by_factory": null, - "azure.mgmt.datafactory.operations.DataFlowDebugSessionOperations.begin_create": null, - "azure.mgmt.datafactory.aio.operations.DataFlowDebugSessionOperations.begin_create": null, - "azure.mgmt.datafactory.operations.DataFlowDebugSessionOperations.query_by_factory": null, - "azure.mgmt.datafactory.aio.operations.DataFlowDebugSessionOperations.query_by_factory": null, - "azure.mgmt.datafactory.operations.DataFlowDebugSessionOperations.add_data_flow": null, - "azure.mgmt.datafactory.aio.operations.DataFlowDebugSessionOperations.add_data_flow": null, - "azure.mgmt.datafactory.operations.DataFlowDebugSessionOperations.delete": null, - "azure.mgmt.datafactory.aio.operations.DataFlowDebugSessionOperations.delete": null, - "azure.mgmt.datafactory.operations.DataFlowDebugSessionOperations.begin_execute_command": null, - "azure.mgmt.datafactory.aio.operations.DataFlowDebugSessionOperations.begin_execute_command": null, - "azure.mgmt.datafactory.operations.ManagedVirtualNetworksOperations.list_by_factory": null, - "azure.mgmt.datafactory.aio.operations.ManagedVirtualNetworksOperations.list_by_factory": null, - "azure.mgmt.datafactory.operations.ManagedVirtualNetworksOperations.create_or_update": null, - "azure.mgmt.datafactory.aio.operations.ManagedVirtualNetworksOperations.create_or_update": null, - "azure.mgmt.datafactory.operations.ManagedVirtualNetworksOperations.get": null, - "azure.mgmt.datafactory.aio.operations.ManagedVirtualNetworksOperations.get": null, - "azure.mgmt.datafactory.operations.ManagedPrivateEndpointsOperations.list_by_factory": null, - "azure.mgmt.datafactory.aio.operations.ManagedPrivateEndpointsOperations.list_by_factory": null, - "azure.mgmt.datafactory.operations.ManagedPrivateEndpointsOperations.create_or_update": null, - "azure.mgmt.datafactory.aio.operations.ManagedPrivateEndpointsOperations.create_or_update": null, - "azure.mgmt.datafactory.operations.ManagedPrivateEndpointsOperations.get": null, - "azure.mgmt.datafactory.aio.operations.ManagedPrivateEndpointsOperations.get": null, - "azure.mgmt.datafactory.operations.ManagedPrivateEndpointsOperations.delete": null, - "azure.mgmt.datafactory.aio.operations.ManagedPrivateEndpointsOperations.delete": null, - "azure.mgmt.datafactory.operations.CredentialOperationsOperations.list_by_factory": null, - "azure.mgmt.datafactory.aio.operations.CredentialOperationsOperations.list_by_factory": null, - "azure.mgmt.datafactory.operations.CredentialOperationsOperations.create_or_update": null, - "azure.mgmt.datafactory.aio.operations.CredentialOperationsOperations.create_or_update": null, - "azure.mgmt.datafactory.operations.CredentialOperationsOperations.get": null, - "azure.mgmt.datafactory.aio.operations.CredentialOperationsOperations.get": null, - "azure.mgmt.datafactory.operations.CredentialOperationsOperations.delete": null, - "azure.mgmt.datafactory.aio.operations.CredentialOperationsOperations.delete": null, - "azure.mgmt.datafactory.operations.PrivateEndPointConnectionsOperations.list_by_factory": null, - "azure.mgmt.datafactory.aio.operations.PrivateEndPointConnectionsOperations.list_by_factory": null, - "azure.mgmt.datafactory.operations.PrivateEndpointConnectionOperations.create_or_update": null, - "azure.mgmt.datafactory.aio.operations.PrivateEndpointConnectionOperations.create_or_update": null, - "azure.mgmt.datafactory.operations.PrivateEndpointConnectionOperations.get": null, - "azure.mgmt.datafactory.aio.operations.PrivateEndpointConnectionOperations.get": null, - "azure.mgmt.datafactory.operations.PrivateEndpointConnectionOperations.delete": null, - "azure.mgmt.datafactory.aio.operations.PrivateEndpointConnectionOperations.delete": null, - "azure.mgmt.datafactory.operations.PrivateLinkResourcesOperations.get": null, - "azure.mgmt.datafactory.aio.operations.PrivateLinkResourcesOperations.get": null, - "azure.mgmt.datafactory.operations.GlobalParametersOperations.list_by_factory": null, - "azure.mgmt.datafactory.aio.operations.GlobalParametersOperations.list_by_factory": null, - "azure.mgmt.datafactory.operations.GlobalParametersOperations.get": null, - "azure.mgmt.datafactory.aio.operations.GlobalParametersOperations.get": null, - "azure.mgmt.datafactory.operations.GlobalParametersOperations.create_or_update": null, - "azure.mgmt.datafactory.aio.operations.GlobalParametersOperations.create_or_update": null, - "azure.mgmt.datafactory.operations.GlobalParametersOperations.delete": null, - "azure.mgmt.datafactory.aio.operations.GlobalParametersOperations.delete": null, - "azure.mgmt.datafactory.operations.ChangeDataCaptureOperations.list_by_factory": null, - "azure.mgmt.datafactory.aio.operations.ChangeDataCaptureOperations.list_by_factory": null, - "azure.mgmt.datafactory.operations.ChangeDataCaptureOperations.create_or_update": null, - "azure.mgmt.datafactory.aio.operations.ChangeDataCaptureOperations.create_or_update": null, - "azure.mgmt.datafactory.operations.ChangeDataCaptureOperations.get": null, - "azure.mgmt.datafactory.aio.operations.ChangeDataCaptureOperations.get": null, - "azure.mgmt.datafactory.operations.ChangeDataCaptureOperations.delete": null, - "azure.mgmt.datafactory.aio.operations.ChangeDataCaptureOperations.delete": null, - "azure.mgmt.datafactory.operations.ChangeDataCaptureOperations.start": null, - "azure.mgmt.datafactory.aio.operations.ChangeDataCaptureOperations.start": null, - "azure.mgmt.datafactory.operations.ChangeDataCaptureOperations.stop": null, - "azure.mgmt.datafactory.aio.operations.ChangeDataCaptureOperations.stop": null, - "azure.mgmt.datafactory.operations.ChangeDataCaptureOperations.status": null, - "azure.mgmt.datafactory.aio.operations.ChangeDataCaptureOperations.status": null - } + "azure.mgmt.datafactory.models.AccessPolicyResponse": "Microsoft.DataFactory.AccessPolicyResponse", + "azure.mgmt.datafactory.models.Activity": "Microsoft.DataFactory.Activity", + "azure.mgmt.datafactory.models.ActivityDependency": "Microsoft.DataFactory.ActivityDependency", + "azure.mgmt.datafactory.models.ActivityPolicy": "Microsoft.DataFactory.ActivityPolicy", + "azure.mgmt.datafactory.models.ActivityRun": "Microsoft.DataFactory.ActivityRun", + "azure.mgmt.datafactory.models.ActivityRunsQueryResponse": "Microsoft.DataFactory.ActivityRunsQueryResponse", + "azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse": "Microsoft.DataFactory.AddDataFlowToDebugSessionResponse", + "azure.mgmt.datafactory.models.LinkedService": "Microsoft.DataFactory.LinkedService", + "azure.mgmt.datafactory.models.AmazonMWSLinkedService": "Microsoft.DataFactory.AmazonMWSLinkedService", + "azure.mgmt.datafactory.models.AmazonMWSLinkedServiceTypeProperties": "Microsoft.DataFactory.AmazonMWSLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.Dataset": "Microsoft.DataFactory.Dataset", + "azure.mgmt.datafactory.models.AmazonMWSObjectDataset": "Microsoft.DataFactory.AmazonMWSObjectDataset", + "azure.mgmt.datafactory.models.CopySource": "Microsoft.DataFactory.CopySource", + "azure.mgmt.datafactory.models.TabularSource": "Microsoft.DataFactory.TabularSource", + "azure.mgmt.datafactory.models.AmazonMWSSource": "Microsoft.DataFactory.AmazonMWSSource", + "azure.mgmt.datafactory.models.AmazonRdsForLinkedServiceTypeProperties": "Microsoft.DataFactory.AmazonRdsForLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AmazonRdsForOracleLinkedService": "Microsoft.DataFactory.AmazonRdsForOracleLinkedService", + "azure.mgmt.datafactory.models.AmazonRdsForOraclePartitionSettings": "Microsoft.DataFactory.AmazonRdsForOraclePartitionSettings", + "azure.mgmt.datafactory.models.AmazonRdsForOracleSource": "Microsoft.DataFactory.AmazonRdsForOracleSource", + "azure.mgmt.datafactory.models.AmazonRdsForOracleTableDataset": "Microsoft.DataFactory.AmazonRdsForOracleTableDataset", + "azure.mgmt.datafactory.models.AmazonRdsForOracleTableDatasetTypeProperties": "Microsoft.DataFactory.AmazonRdsForOracleTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.AmazonRdsForSqlServerLinkedService": "Microsoft.DataFactory.AmazonRdsForSqlServerLinkedService", + "azure.mgmt.datafactory.models.SqlServerBaseLinkedServiceTypeProperties": "Microsoft.DataFactory.SqlServerBaseLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AmazonRdsForSqlServerLinkedServiceTypeProperties": "Microsoft.DataFactory.AmazonRdsForSqlServerLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AmazonRdsForSqlServerSource": "Microsoft.DataFactory.AmazonRdsForSqlServerSource", + "azure.mgmt.datafactory.models.AmazonRdsForSqlServerTableDataset": "Microsoft.DataFactory.AmazonRdsForSqlServerTableDataset", + "azure.mgmt.datafactory.models.AmazonRdsForSqlServerTableDatasetTypeProperties": "Microsoft.DataFactory.AmazonRdsForSqlServerTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.AmazonRedshiftLinkedService": "Microsoft.DataFactory.AmazonRedshiftLinkedService", + "azure.mgmt.datafactory.models.AmazonRedshiftLinkedServiceTypeProperties": "Microsoft.DataFactory.AmazonRedshiftLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AmazonRedshiftSource": "Microsoft.DataFactory.AmazonRedshiftSource", + "azure.mgmt.datafactory.models.AmazonRedshiftTableDataset": "Microsoft.DataFactory.AmazonRedshiftTableDataset", + "azure.mgmt.datafactory.models.AmazonRedshiftTableDatasetTypeProperties": "Microsoft.DataFactory.AmazonRedshiftTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.AmazonS3CompatibleLinkedService": "Microsoft.DataFactory.AmazonS3CompatibleLinkedService", + "azure.mgmt.datafactory.models.AmazonS3CompatibleLinkedServiceTypeProperties": "Microsoft.DataFactory.AmazonS3CompatibleLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.DatasetLocation": "Microsoft.DataFactory.DatasetLocation", + "azure.mgmt.datafactory.models.AmazonS3CompatibleLocation": "Microsoft.DataFactory.AmazonS3CompatibleLocation", + "azure.mgmt.datafactory.models.StoreReadSettings": "Microsoft.DataFactory.StoreReadSettings", + "azure.mgmt.datafactory.models.AmazonS3CompatibleReadSettings": "Microsoft.DataFactory.AmazonS3CompatibleReadSettings", + "azure.mgmt.datafactory.models.AmazonS3Dataset": "Microsoft.DataFactory.AmazonS3Dataset", + "azure.mgmt.datafactory.models.AmazonS3DatasetTypeProperties": "Microsoft.DataFactory.AmazonS3DatasetTypeProperties", + "azure.mgmt.datafactory.models.AmazonS3LinkedService": "Microsoft.DataFactory.AmazonS3LinkedService", + "azure.mgmt.datafactory.models.AmazonS3LinkedServiceTypeProperties": "Microsoft.DataFactory.AmazonS3LinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AmazonS3Location": "Microsoft.DataFactory.AmazonS3Location", + "azure.mgmt.datafactory.models.AmazonS3ReadSettings": "Microsoft.DataFactory.AmazonS3ReadSettings", + "azure.mgmt.datafactory.models.ControlActivity": "Microsoft.DataFactory.ControlActivity", + "azure.mgmt.datafactory.models.AppendVariableActivity": "Microsoft.DataFactory.AppendVariableActivity", + "azure.mgmt.datafactory.models.AppendVariableActivityTypeProperties": "Microsoft.DataFactory.AppendVariableActivityTypeProperties", + "azure.mgmt.datafactory.models.AppFiguresLinkedService": "Microsoft.DataFactory.AppFiguresLinkedService", + "azure.mgmt.datafactory.models.AppFiguresLinkedServiceTypeProperties": "Microsoft.DataFactory.AppFiguresLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.ArmIdWrapper": "Microsoft.DataFactory.ArmIdWrapper", + "azure.mgmt.datafactory.models.AsanaLinkedService": "Microsoft.DataFactory.AsanaLinkedService", + "azure.mgmt.datafactory.models.AsanaLinkedServiceTypeProperties": "Microsoft.DataFactory.AsanaLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AvroDataset": "Microsoft.DataFactory.AvroDataset", + "azure.mgmt.datafactory.models.AvroDatasetTypeProperties": "Microsoft.DataFactory.AvroDatasetTypeProperties", + "azure.mgmt.datafactory.models.DatasetStorageFormat": "Microsoft.DataFactory.DatasetStorageFormat", + "azure.mgmt.datafactory.models.AvroFormat": "Microsoft.DataFactory.AvroFormat", + "azure.mgmt.datafactory.models.CopySink": "Microsoft.DataFactory.CopySink", + "azure.mgmt.datafactory.models.AvroSink": "Microsoft.DataFactory.AvroSink", + "azure.mgmt.datafactory.models.AvroSource": "Microsoft.DataFactory.AvroSource", + "azure.mgmt.datafactory.models.FormatWriteSettings": "Microsoft.DataFactory.FormatWriteSettings", + "azure.mgmt.datafactory.models.AvroWriteSettings": "Microsoft.DataFactory.AvroWriteSettings", + "azure.mgmt.datafactory.models.CustomSetupBase": "Microsoft.DataFactory.CustomSetupBase", + "azure.mgmt.datafactory.models.AzPowerShellSetup": "Microsoft.DataFactory.AzPowerShellSetup", + "azure.mgmt.datafactory.models.AzPowerShellSetupTypeProperties": "Microsoft.DataFactory.AzPowerShellSetupTypeProperties", + "azure.mgmt.datafactory.models.AzureBatchLinkedService": "Microsoft.DataFactory.AzureBatchLinkedService", + "azure.mgmt.datafactory.models.AzureBatchLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureBatchLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureBlobDataset": "Microsoft.DataFactory.AzureBlobDataset", + "azure.mgmt.datafactory.models.AzureBlobDatasetTypeProperties": "Microsoft.DataFactory.AzureBlobDatasetTypeProperties", + "azure.mgmt.datafactory.models.AzureBlobFSDataset": "Microsoft.DataFactory.AzureBlobFSDataset", + "azure.mgmt.datafactory.models.AzureBlobFSDatasetTypeProperties": "Microsoft.DataFactory.AzureBlobFSDatasetTypeProperties", + "azure.mgmt.datafactory.models.AzureBlobFSLinkedService": "Microsoft.DataFactory.AzureBlobFSLinkedService", + "azure.mgmt.datafactory.models.AzureBlobFSLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureBlobFSLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureBlobFSLocation": "Microsoft.DataFactory.AzureBlobFSLocation", + "azure.mgmt.datafactory.models.AzureBlobFSReadSettings": "Microsoft.DataFactory.AzureBlobFSReadSettings", + "azure.mgmt.datafactory.models.AzureBlobFSSink": "Microsoft.DataFactory.AzureBlobFSSink", + "azure.mgmt.datafactory.models.AzureBlobFSSource": "Microsoft.DataFactory.AzureBlobFSSource", + "azure.mgmt.datafactory.models.StoreWriteSettings": "Microsoft.DataFactory.StoreWriteSettings", + "azure.mgmt.datafactory.models.AzureBlobFSWriteSettings": "Microsoft.DataFactory.AzureBlobFSWriteSettings", + "azure.mgmt.datafactory.models.AzureBlobStorageLinkedService": "Microsoft.DataFactory.AzureBlobStorageLinkedService", + "azure.mgmt.datafactory.models.AzureBlobStorageLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureBlobStorageLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureBlobStorageLocation": "Microsoft.DataFactory.AzureBlobStorageLocation", + "azure.mgmt.datafactory.models.AzureBlobStorageReadSettings": "Microsoft.DataFactory.AzureBlobStorageReadSettings", + "azure.mgmt.datafactory.models.AzureBlobStorageWriteSettings": "Microsoft.DataFactory.AzureBlobStorageWriteSettings", + "azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeDataset": "Microsoft.DataFactory.AzureDatabricksDeltaLakeDataset", + "azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeDatasetTypeProperties": "Microsoft.DataFactory.AzureDatabricksDeltaLakeDatasetTypeProperties", + "azure.mgmt.datafactory.models.ExportSettings": "Microsoft.DataFactory.ExportSettings", + "azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeExportCommand": "Microsoft.DataFactory.AzureDatabricksDeltaLakeExportCommand", + "azure.mgmt.datafactory.models.ImportSettings": "Microsoft.DataFactory.ImportSettings", + "azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeImportCommand": "Microsoft.DataFactory.AzureDatabricksDeltaLakeImportCommand", + "azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeLinkedService": "Microsoft.DataFactory.AzureDatabricksDeltaLakeLinkedService", + "azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeSink": "Microsoft.DataFactory.AzureDatabricksDeltaLakeSink", + "azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeSource": "Microsoft.DataFactory.AzureDatabricksDeltaLakeSource", + "azure.mgmt.datafactory.models.AzureDatabricksDetltaLakeLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureDatabricksDetltaLakeLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureDatabricksLinkedService": "Microsoft.DataFactory.AzureDatabricksLinkedService", + "azure.mgmt.datafactory.models.AzureDatabricksLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureDatabricksLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.ExecutionActivity": "Microsoft.DataFactory.ExecutionActivity", + "azure.mgmt.datafactory.models.AzureDataExplorerCommandActivity": "Microsoft.DataFactory.AzureDataExplorerCommandActivity", + "azure.mgmt.datafactory.models.AzureDataExplorerCommandActivityTypeProperties": "Microsoft.DataFactory.AzureDataExplorerCommandActivityTypeProperties", + "azure.mgmt.datafactory.models.AzureDataExplorerDatasetTypeProperties": "Microsoft.DataFactory.AzureDataExplorerDatasetTypeProperties", + "azure.mgmt.datafactory.models.AzureDataExplorerLinkedService": "Microsoft.DataFactory.AzureDataExplorerLinkedService", + "azure.mgmt.datafactory.models.AzureDataExplorerLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureDataExplorerLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureDataExplorerSink": "Microsoft.DataFactory.AzureDataExplorerSink", + "azure.mgmt.datafactory.models.AzureDataExplorerSource": "Microsoft.DataFactory.AzureDataExplorerSource", + "azure.mgmt.datafactory.models.AzureDataExplorerTableDataset": "Microsoft.DataFactory.AzureDataExplorerTableDataset", + "azure.mgmt.datafactory.models.AzureDataLakeAnalyticsLinkedService": "Microsoft.DataFactory.AzureDataLakeAnalyticsLinkedService", + "azure.mgmt.datafactory.models.AzureDataLakeAnalyticsLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureDataLakeAnalyticsLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureDataLakeStoreDataset": "Microsoft.DataFactory.AzureDataLakeStoreDataset", + "azure.mgmt.datafactory.models.AzureDataLakeStoreDatasetTypeProperties": "Microsoft.DataFactory.AzureDataLakeStoreDatasetTypeProperties", + "azure.mgmt.datafactory.models.AzureDataLakeStoreLinkedService": "Microsoft.DataFactory.AzureDataLakeStoreLinkedService", + "azure.mgmt.datafactory.models.AzureDataLakeStoreLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureDataLakeStoreLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureDataLakeStoreLocation": "Microsoft.DataFactory.AzureDataLakeStoreLocation", + "azure.mgmt.datafactory.models.AzureDataLakeStoreReadSettings": "Microsoft.DataFactory.AzureDataLakeStoreReadSettings", + "azure.mgmt.datafactory.models.AzureDataLakeStoreSink": "Microsoft.DataFactory.AzureDataLakeStoreSink", + "azure.mgmt.datafactory.models.AzureDataLakeStoreSource": "Microsoft.DataFactory.AzureDataLakeStoreSource", + "azure.mgmt.datafactory.models.AzureDataLakeStoreWriteSettings": "Microsoft.DataFactory.AzureDataLakeStoreWriteSettings", + "azure.mgmt.datafactory.models.AzureFileStorageLinkedService": "Microsoft.DataFactory.AzureFileStorageLinkedService", + "azure.mgmt.datafactory.models.AzureFileStorageLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureFileStorageLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureFileStorageLocation": "Microsoft.DataFactory.AzureFileStorageLocation", + "azure.mgmt.datafactory.models.AzureFileStorageReadSettings": "Microsoft.DataFactory.AzureFileStorageReadSettings", + "azure.mgmt.datafactory.models.AzureFileStorageWriteSettings": "Microsoft.DataFactory.AzureFileStorageWriteSettings", + "azure.mgmt.datafactory.models.AzureFunctionActivity": "Microsoft.DataFactory.AzureFunctionActivity", + "azure.mgmt.datafactory.models.AzureFunctionActivityTypeProperties": "Microsoft.DataFactory.AzureFunctionActivityTypeProperties", + "azure.mgmt.datafactory.models.AzureFunctionLinkedService": "Microsoft.DataFactory.AzureFunctionLinkedService", + "azure.mgmt.datafactory.models.AzureFunctionLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureFunctionLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureKeyVaultLinkedService": "Microsoft.DataFactory.AzureKeyVaultLinkedService", + "azure.mgmt.datafactory.models.AzureKeyVaultLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureKeyVaultLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SecretBase": "Microsoft.DataFactory.SecretBase", + "azure.mgmt.datafactory.models.AzureKeyVaultSecretReference": "Microsoft.DataFactory.AzureKeyVaultSecretReference", + "azure.mgmt.datafactory.models.AzureMariaDBLinkedService": "Microsoft.DataFactory.AzureMariaDBLinkedService", + "azure.mgmt.datafactory.models.AzureMariaDBLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureMariaDBLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureMariaDBSource": "Microsoft.DataFactory.AzureMariaDBSource", + "azure.mgmt.datafactory.models.AzureMariaDBTableDataset": "Microsoft.DataFactory.AzureMariaDBTableDataset", + "azure.mgmt.datafactory.models.AzureMLBatchExecutionActivity": "Microsoft.DataFactory.AzureMLBatchExecutionActivity", + "azure.mgmt.datafactory.models.AzureMLBatchExecutionActivityTypeProperties": "Microsoft.DataFactory.AzureMLBatchExecutionActivityTypeProperties", + "azure.mgmt.datafactory.models.AzureMLExecutePipelineActivity": "Microsoft.DataFactory.AzureMLExecutePipelineActivity", + "azure.mgmt.datafactory.models.AzureMLExecutePipelineActivityTypeProperties": "Microsoft.DataFactory.AzureMLExecutePipelineActivityTypeProperties", + "azure.mgmt.datafactory.models.AzureMLLinkedService": "Microsoft.DataFactory.AzureMLLinkedService", + "azure.mgmt.datafactory.models.AzureMLLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureMLLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureMLServiceLinkedService": "Microsoft.DataFactory.AzureMLServiceLinkedService", + "azure.mgmt.datafactory.models.AzureMLServiceLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureMLServiceLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureMLUpdateResourceActivity": "Microsoft.DataFactory.AzureMLUpdateResourceActivity", + "azure.mgmt.datafactory.models.AzureMLUpdateResourceActivityTypeProperties": "Microsoft.DataFactory.AzureMLUpdateResourceActivityTypeProperties", + "azure.mgmt.datafactory.models.AzureMLWebServiceFile": "Microsoft.DataFactory.AzureMLWebServiceFile", + "azure.mgmt.datafactory.models.AzureMySqlLinkedService": "Microsoft.DataFactory.AzureMySqlLinkedService", + "azure.mgmt.datafactory.models.AzureMySqlLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureMySqlLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureMySqlSink": "Microsoft.DataFactory.AzureMySqlSink", + "azure.mgmt.datafactory.models.AzureMySqlSource": "Microsoft.DataFactory.AzureMySqlSource", + "azure.mgmt.datafactory.models.AzureMySqlTableDataset": "Microsoft.DataFactory.AzureMySqlTableDataset", + "azure.mgmt.datafactory.models.AzureMySqlTableDatasetTypeProperties": "Microsoft.DataFactory.AzureMySqlTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.AzurePostgreSqlLinkedService": "Microsoft.DataFactory.AzurePostgreSqlLinkedService", + "azure.mgmt.datafactory.models.AzurePostgreSqlLinkedServiceTypeProperties": "Microsoft.DataFactory.AzurePostgreSqlLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzurePostgreSqlSink": "Microsoft.DataFactory.AzurePostgreSqlSink", + "azure.mgmt.datafactory.models.AzurePostgreSqlSinkUpsertSettings": "Microsoft.DataFactory.AzurePostgreSqlSinkUpsertSettings", + "azure.mgmt.datafactory.models.AzurePostgreSqlSource": "Microsoft.DataFactory.AzurePostgreSqlSource", + "azure.mgmt.datafactory.models.AzurePostgreSqlTableDataset": "Microsoft.DataFactory.AzurePostgreSqlTableDataset", + "azure.mgmt.datafactory.models.AzurePostgreSqlTableDatasetTypeProperties": "Microsoft.DataFactory.AzurePostgreSqlTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.AzureQueueSink": "Microsoft.DataFactory.AzureQueueSink", + "azure.mgmt.datafactory.models.AzureSearchIndexDataset": "Microsoft.DataFactory.AzureSearchIndexDataset", + "azure.mgmt.datafactory.models.AzureSearchIndexDatasetTypeProperties": "Microsoft.DataFactory.AzureSearchIndexDatasetTypeProperties", + "azure.mgmt.datafactory.models.AzureSearchIndexSink": "Microsoft.DataFactory.AzureSearchIndexSink", + "azure.mgmt.datafactory.models.AzureSearchLinkedService": "Microsoft.DataFactory.AzureSearchLinkedService", + "azure.mgmt.datafactory.models.AzureSearchLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureSearchLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureSqlDatabaseLinkedService": "Microsoft.DataFactory.AzureSqlDatabaseLinkedService", + "azure.mgmt.datafactory.models.AzureSqlDatabaseLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureSqlDatabaseLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureSqlDWLinkedService": "Microsoft.DataFactory.AzureSqlDWLinkedService", + "azure.mgmt.datafactory.models.AzureSqlDWLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureSqlDWLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureSqlDWTableDataset": "Microsoft.DataFactory.AzureSqlDWTableDataset", + "azure.mgmt.datafactory.models.AzureSqlDWTableDatasetTypeProperties": "Microsoft.DataFactory.AzureSqlDWTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.AzureSqlMILinkedService": "Microsoft.DataFactory.AzureSqlMILinkedService", + "azure.mgmt.datafactory.models.AzureSqlMILinkedServiceTypeProperties": "Microsoft.DataFactory.AzureSqlMILinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureSqlMITableDataset": "Microsoft.DataFactory.AzureSqlMITableDataset", + "azure.mgmt.datafactory.models.AzureSqlMITableDatasetTypeProperties": "Microsoft.DataFactory.AzureSqlMITableDatasetTypeProperties", + "azure.mgmt.datafactory.models.AzureSqlSink": "Microsoft.DataFactory.AzureSqlSink", + "azure.mgmt.datafactory.models.AzureSqlSource": "Microsoft.DataFactory.AzureSqlSource", + "azure.mgmt.datafactory.models.AzureSqlTableDataset": "Microsoft.DataFactory.AzureSqlTableDataset", + "azure.mgmt.datafactory.models.AzureSqlTableDatasetTypeProperties": "Microsoft.DataFactory.AzureSqlTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.AzureStorageLinkedService": "Microsoft.DataFactory.AzureStorageLinkedService", + "azure.mgmt.datafactory.models.AzureStorageLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureStorageLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureSynapseArtifactsLinkedService": "Microsoft.DataFactory.AzureSynapseArtifactsLinkedService", + "azure.mgmt.datafactory.models.AzureSynapseArtifactsLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureSynapseArtifactsLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.AzureTableDataset": "Microsoft.DataFactory.AzureTableDataset", + "azure.mgmt.datafactory.models.AzureTableDatasetTypeProperties": "Microsoft.DataFactory.AzureTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.AzureTableSink": "Microsoft.DataFactory.AzureTableSink", + "azure.mgmt.datafactory.models.AzureTableSource": "Microsoft.DataFactory.AzureTableSource", + "azure.mgmt.datafactory.models.AzureTableStorageLinkedService": "Microsoft.DataFactory.AzureTableStorageLinkedService", + "azure.mgmt.datafactory.models.AzureTableStorageLinkedServiceTypeProperties": "Microsoft.DataFactory.AzureTableStorageLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.BigDataPoolParametrizationReference": "Microsoft.DataFactory.BigDataPoolParametrizationReference", + "azure.mgmt.datafactory.models.BinaryDataset": "Microsoft.DataFactory.BinaryDataset", + "azure.mgmt.datafactory.models.BinaryDatasetTypeProperties": "Microsoft.DataFactory.BinaryDatasetTypeProperties", + "azure.mgmt.datafactory.models.FormatReadSettings": "Microsoft.DataFactory.FormatReadSettings", + "azure.mgmt.datafactory.models.BinaryReadSettings": "Microsoft.DataFactory.BinaryReadSettings", + "azure.mgmt.datafactory.models.BinarySink": "Microsoft.DataFactory.BinarySink", + "azure.mgmt.datafactory.models.BinarySource": "Microsoft.DataFactory.BinarySource", + "azure.mgmt.datafactory.models.Trigger": "Microsoft.DataFactory.Trigger", + "azure.mgmt.datafactory.models.MultiplePipelineTrigger": "Microsoft.DataFactory.MultiplePipelineTrigger", + "azure.mgmt.datafactory.models.BlobEventsTrigger": "Microsoft.DataFactory.BlobEventsTrigger", + "azure.mgmt.datafactory.models.BlobEventsTriggerTypeProperties": "Microsoft.DataFactory.BlobEventsTriggerTypeProperties", + "azure.mgmt.datafactory.models.BlobSink": "Microsoft.DataFactory.BlobSink", + "azure.mgmt.datafactory.models.BlobSource": "Microsoft.DataFactory.BlobSource", + "azure.mgmt.datafactory.models.BlobTrigger": "Microsoft.DataFactory.BlobTrigger", + "azure.mgmt.datafactory.models.BlobTriggerTypeProperties": "Microsoft.DataFactory.BlobTriggerTypeProperties", + "azure.mgmt.datafactory.models.CassandraLinkedService": "Microsoft.DataFactory.CassandraLinkedService", + "azure.mgmt.datafactory.models.CassandraLinkedServiceTypeProperties": "Microsoft.DataFactory.CassandraLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.CassandraSource": "Microsoft.DataFactory.CassandraSource", + "azure.mgmt.datafactory.models.CassandraTableDataset": "Microsoft.DataFactory.CassandraTableDataset", + "azure.mgmt.datafactory.models.CassandraTableDatasetTypeProperties": "Microsoft.DataFactory.CassandraTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.ChainingTrigger": "Microsoft.DataFactory.ChainingTrigger", + "azure.mgmt.datafactory.models.ChainingTriggerTypeProperties": "Microsoft.DataFactory.ChainingTriggerTypeProperties", + "azure.mgmt.datafactory.models.ChangeDataCapture": "Microsoft.DataFactory.ChangeDataCapture", + "azure.mgmt.datafactory.models.ChangeDataCaptureFolder": "Microsoft.DataFactory.ChangeDataCaptureFolder", + "azure.mgmt.datafactory.models.Resource": "Azure.ResourceManager.CommonTypes.Resource", + "azure.mgmt.datafactory.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource", + "azure.mgmt.datafactory.models.ChangeDataCaptureResource": "Microsoft.DataFactory.ChangeDataCaptureResource", + "azure.mgmt.datafactory.models.CloudError": "Microsoft.DataFactory.CloudError", + "azure.mgmt.datafactory.models.CloudErrorBody": "Microsoft.DataFactory.CloudErrorBody", + "azure.mgmt.datafactory.models.CmdkeySetup": "Microsoft.DataFactory.CmdkeySetup", + "azure.mgmt.datafactory.models.CmdkeySetupTypeProperties": "Microsoft.DataFactory.CmdkeySetupTypeProperties", + "azure.mgmt.datafactory.models.CMKIdentityDefinition": "Microsoft.DataFactory.CMKIdentityDefinition", + "azure.mgmt.datafactory.models.CommonDataServiceForAppsEntityDataset": "Microsoft.DataFactory.CommonDataServiceForAppsEntityDataset", + "azure.mgmt.datafactory.models.CommonDataServiceForAppsEntityDatasetTypeProperties": "Microsoft.DataFactory.CommonDataServiceForAppsEntityDatasetTypeProperties", + "azure.mgmt.datafactory.models.CommonDataServiceForAppsLinkedService": "Microsoft.DataFactory.CommonDataServiceForAppsLinkedService", + "azure.mgmt.datafactory.models.CommonDataServiceForAppsLinkedServiceTypeProperties": "Microsoft.DataFactory.CommonDataServiceForAppsLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.CommonDataServiceForAppsSink": "Microsoft.DataFactory.CommonDataServiceForAppsSink", + "azure.mgmt.datafactory.models.CommonDataServiceForAppsSource": "Microsoft.DataFactory.CommonDataServiceForAppsSource", + "azure.mgmt.datafactory.models.ComponentSetup": "Microsoft.DataFactory.ComponentSetup", + "azure.mgmt.datafactory.models.CompressionReadSettings": "Microsoft.DataFactory.CompressionReadSettings", + "azure.mgmt.datafactory.models.ConcurLinkedService": "Microsoft.DataFactory.ConcurLinkedService", + "azure.mgmt.datafactory.models.ConcurLinkedServiceTypeProperties": "Microsoft.DataFactory.ConcurLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.ConcurObjectDataset": "Microsoft.DataFactory.ConcurObjectDataset", + "azure.mgmt.datafactory.models.ConcurSource": "Microsoft.DataFactory.ConcurSource", + "azure.mgmt.datafactory.models.ConnectionStateProperties": "Microsoft.DataFactory.ConnectionStateProperties", + "azure.mgmt.datafactory.models.ContinuationSettingsReference": "Microsoft.DataFactory.ContinuationSettingsReference", + "azure.mgmt.datafactory.models.CopyActivity": "Microsoft.DataFactory.CopyActivity", + "azure.mgmt.datafactory.models.CopyActivityLogSettings": "Microsoft.DataFactory.CopyActivityLogSettings", + "azure.mgmt.datafactory.models.CopyActivityTypeProperties": "Microsoft.DataFactory.CopyActivityTypeProperties", + "azure.mgmt.datafactory.models.CopyComputeScaleProperties": "Microsoft.DataFactory.CopyComputeScaleProperties", + "azure.mgmt.datafactory.models.CosmosDbLinkedService": "Microsoft.DataFactory.CosmosDbLinkedService", + "azure.mgmt.datafactory.models.CosmosDbLinkedServiceTypeProperties": "Microsoft.DataFactory.CosmosDbLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.CosmosDbMongoDbApiCollectionDataset": "Microsoft.DataFactory.CosmosDbMongoDbApiCollectionDataset", + "azure.mgmt.datafactory.models.CosmosDbMongoDbApiCollectionDatasetTypeProperties": "Microsoft.DataFactory.CosmosDbMongoDbApiCollectionDatasetTypeProperties", + "azure.mgmt.datafactory.models.CosmosDbMongoDbApiLinkedService": "Microsoft.DataFactory.CosmosDbMongoDbApiLinkedService", + "azure.mgmt.datafactory.models.CosmosDbMongoDbApiLinkedServiceTypeProperties": "Microsoft.DataFactory.CosmosDbMongoDbApiLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.CosmosDbMongoDbApiSink": "Microsoft.DataFactory.CosmosDbMongoDbApiSink", + "azure.mgmt.datafactory.models.CosmosDbMongoDbApiSource": "Microsoft.DataFactory.CosmosDbMongoDbApiSource", + "azure.mgmt.datafactory.models.CosmosDbSqlApiCollectionDataset": "Microsoft.DataFactory.CosmosDbSqlApiCollectionDataset", + "azure.mgmt.datafactory.models.CosmosDbSqlApiCollectionDatasetTypeProperties": "Microsoft.DataFactory.CosmosDbSqlApiCollectionDatasetTypeProperties", + "azure.mgmt.datafactory.models.CosmosDbSqlApiSink": "Microsoft.DataFactory.CosmosDbSqlApiSink", + "azure.mgmt.datafactory.models.CosmosDbSqlApiSource": "Microsoft.DataFactory.CosmosDbSqlApiSource", + "azure.mgmt.datafactory.models.CouchbaseLinkedService": "Microsoft.DataFactory.CouchbaseLinkedService", + "azure.mgmt.datafactory.models.CouchbaseLinkedServiceTypeProperties": "Microsoft.DataFactory.CouchbaseLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.CouchbaseSource": "Microsoft.DataFactory.CouchbaseSource", + "azure.mgmt.datafactory.models.CouchbaseTableDataset": "Microsoft.DataFactory.CouchbaseTableDataset", + "azure.mgmt.datafactory.models.CreateDataFlowDebugSessionRequest": "Microsoft.DataFactory.CreateDataFlowDebugSessionRequest", + "azure.mgmt.datafactory.models.CreateDataFlowDebugSessionResponse": "Microsoft.DataFactory.CreateDataFlowDebugSessionResponse", + "azure.mgmt.datafactory.models.CreateLinkedIntegrationRuntimeRequest": "Microsoft.DataFactory.CreateLinkedIntegrationRuntimeRequest", + "azure.mgmt.datafactory.models.CreateRunResponse": "Microsoft.DataFactory.CreateRunResponse", + "azure.mgmt.datafactory.models.Credential": "Microsoft.DataFactory.Credential", + "azure.mgmt.datafactory.models.CredentialReference": "Microsoft.DataFactory.CredentialReference", + "azure.mgmt.datafactory.models.CredentialResource": "Microsoft.DataFactory.CredentialResource", + "azure.mgmt.datafactory.models.CustomActivity": "Microsoft.DataFactory.CustomActivity", + "azure.mgmt.datafactory.models.CustomActivityReferenceObject": "Microsoft.DataFactory.CustomActivityReferenceObject", + "azure.mgmt.datafactory.models.CustomActivityTypeProperties": "Microsoft.DataFactory.CustomActivityTypeProperties", + "azure.mgmt.datafactory.models.CustomDataset": "Microsoft.DataFactory.CustomDataset", + "azure.mgmt.datafactory.models.CustomDataSourceLinkedService": "Microsoft.DataFactory.CustomDataSourceLinkedService", + "azure.mgmt.datafactory.models.CustomEventsTrigger": "Microsoft.DataFactory.CustomEventsTrigger", + "azure.mgmt.datafactory.models.CustomEventsTriggerTypeProperties": "Microsoft.DataFactory.CustomEventsTriggerTypeProperties", + "azure.mgmt.datafactory.models.DatabricksJobActivity": "Microsoft.DataFactory.DatabricksJobActivity", + "azure.mgmt.datafactory.models.DatabricksJobActivityTypeProperties": "Microsoft.DataFactory.DatabricksJobActivityTypeProperties", + "azure.mgmt.datafactory.models.DatabricksNotebookActivity": "Microsoft.DataFactory.DatabricksNotebookActivity", + "azure.mgmt.datafactory.models.DatabricksNotebookActivityTypeProperties": "Microsoft.DataFactory.DatabricksNotebookActivityTypeProperties", + "azure.mgmt.datafactory.models.DatabricksSparkJarActivity": "Microsoft.DataFactory.DatabricksSparkJarActivity", + "azure.mgmt.datafactory.models.DatabricksSparkJarActivityTypeProperties": "Microsoft.DataFactory.DatabricksSparkJarActivityTypeProperties", + "azure.mgmt.datafactory.models.DatabricksSparkPythonActivity": "Microsoft.DataFactory.DatabricksSparkPythonActivity", + "azure.mgmt.datafactory.models.DatabricksSparkPythonActivityTypeProperties": "Microsoft.DataFactory.DatabricksSparkPythonActivityTypeProperties", + "azure.mgmt.datafactory.models.DataFlow": "Microsoft.DataFactory.DataFlow", + "azure.mgmt.datafactory.models.DataFlowDebugCommandPayload": "Microsoft.DataFactory.DataFlowDebugCommandPayload", + "azure.mgmt.datafactory.models.DataFlowDebugCommandRequest": "Microsoft.DataFactory.DataFlowDebugCommandRequest", + "azure.mgmt.datafactory.models.DataFlowDebugCommandResponse": "Microsoft.DataFactory.DataFlowDebugCommandResponse", + "azure.mgmt.datafactory.models.DataFlowDebugPackage": "Microsoft.DataFactory.DataFlowDebugPackage", + "azure.mgmt.datafactory.models.DataFlowDebugPackageDebugSettings": "Microsoft.DataFactory.DataFlowDebugPackageDebugSettings", + "azure.mgmt.datafactory.models.SubResourceDebugResource": "Microsoft.DataFactory.SubResourceDebugResource", + "azure.mgmt.datafactory.models.DataFlowDebugResource": "Microsoft.DataFactory.DataFlowDebugResource", + "azure.mgmt.datafactory.models.DataFlowDebugSessionInfo": "Microsoft.DataFactory.DataFlowDebugSessionInfo", + "azure.mgmt.datafactory.models.DataFlowFolder": "Microsoft.DataFactory.DataFlowFolder", + "azure.mgmt.datafactory.models.DataFlowReference": "Microsoft.DataFactory.DataFlowReference", + "azure.mgmt.datafactory.models.DataFlowResource": "Microsoft.DataFactory.DataFlowResource", + "azure.mgmt.datafactory.models.Transformation": "Microsoft.DataFactory.Transformation", + "azure.mgmt.datafactory.models.DataFlowSink": "Microsoft.DataFactory.DataFlowSink", + "azure.mgmt.datafactory.models.DataFlowSource": "Microsoft.DataFactory.DataFlowSource", + "azure.mgmt.datafactory.models.DataFlowSourceSetting": "Microsoft.DataFactory.DataFlowSourceSetting", + "azure.mgmt.datafactory.models.DataFlowStagingInfo": "Microsoft.DataFactory.DataFlowStagingInfo", + "azure.mgmt.datafactory.models.DataLakeAnalyticsUSQLActivity": "Microsoft.DataFactory.DataLakeAnalyticsUSQLActivity", + "azure.mgmt.datafactory.models.DataLakeAnalyticsUSQLActivityTypeProperties": "Microsoft.DataFactory.DataLakeAnalyticsUSQLActivityTypeProperties", + "azure.mgmt.datafactory.models.DataMapperMapping": "Microsoft.DataFactory.DataMapperMapping", + "azure.mgmt.datafactory.models.DatasetCompression": "Microsoft.DataFactory.DatasetCompression", + "azure.mgmt.datafactory.models.DatasetDebugResource": "Microsoft.DataFactory.DatasetDebugResource", + "azure.mgmt.datafactory.models.DatasetFolder": "Microsoft.DataFactory.DatasetFolder", + "azure.mgmt.datafactory.models.DatasetReference": "Microsoft.DataFactory.DatasetReference", + "azure.mgmt.datafactory.models.DatasetResource": "Microsoft.DataFactory.DatasetResource", + "azure.mgmt.datafactory.models.DataworldLinkedService": "Microsoft.DataFactory.DataworldLinkedService", + "azure.mgmt.datafactory.models.DataworldLinkedServiceTypeProperties": "Microsoft.DataFactory.DataworldLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.Db2LinkedService": "Microsoft.DataFactory.Db2LinkedService", + "azure.mgmt.datafactory.models.Db2LinkedServiceTypeProperties": "Microsoft.DataFactory.Db2LinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.Db2Source": "Microsoft.DataFactory.Db2Source", + "azure.mgmt.datafactory.models.Db2TableDataset": "Microsoft.DataFactory.Db2TableDataset", + "azure.mgmt.datafactory.models.Db2TableDatasetTypeProperties": "Microsoft.DataFactory.Db2TableDatasetTypeProperties", + "azure.mgmt.datafactory.models.DeleteActivity": "Microsoft.DataFactory.DeleteActivity", + "azure.mgmt.datafactory.models.DeleteActivityTypeProperties": "Microsoft.DataFactory.DeleteActivityTypeProperties", + "azure.mgmt.datafactory.models.DeleteDataFlowDebugSessionRequest": "Microsoft.DataFactory.DeleteDataFlowDebugSessionRequest", + "azure.mgmt.datafactory.models.DelimitedTextDataset": "Microsoft.DataFactory.DelimitedTextDataset", + "azure.mgmt.datafactory.models.DelimitedTextDatasetTypeProperties": "Microsoft.DataFactory.DelimitedTextDatasetTypeProperties", + "azure.mgmt.datafactory.models.DelimitedTextReadSettings": "Microsoft.DataFactory.DelimitedTextReadSettings", + "azure.mgmt.datafactory.models.DelimitedTextSink": "Microsoft.DataFactory.DelimitedTextSink", + "azure.mgmt.datafactory.models.DelimitedTextSource": "Microsoft.DataFactory.DelimitedTextSource", + "azure.mgmt.datafactory.models.DelimitedTextWriteSettings": "Microsoft.DataFactory.DelimitedTextWriteSettings", + "azure.mgmt.datafactory.models.DependencyReference": "Microsoft.DataFactory.DependencyReference", + "azure.mgmt.datafactory.models.DistcpSettings": "Microsoft.DataFactory.DistcpSettings", + "azure.mgmt.datafactory.models.DocumentDbCollectionDataset": "Microsoft.DataFactory.DocumentDbCollectionDataset", + "azure.mgmt.datafactory.models.DocumentDbCollectionDatasetTypeProperties": "Microsoft.DataFactory.DocumentDbCollectionDatasetTypeProperties", + "azure.mgmt.datafactory.models.DocumentDbCollectionSink": "Microsoft.DataFactory.DocumentDbCollectionSink", + "azure.mgmt.datafactory.models.DocumentDbCollectionSource": "Microsoft.DataFactory.DocumentDbCollectionSource", + "azure.mgmt.datafactory.models.DrillDatasetTypeProperties": "Microsoft.DataFactory.DrillDatasetTypeProperties", + "azure.mgmt.datafactory.models.DrillLinkedService": "Microsoft.DataFactory.DrillLinkedService", + "azure.mgmt.datafactory.models.DrillLinkedServiceTypeProperties": "Microsoft.DataFactory.DrillLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.DrillSource": "Microsoft.DataFactory.DrillSource", + "azure.mgmt.datafactory.models.DrillTableDataset": "Microsoft.DataFactory.DrillTableDataset", + "azure.mgmt.datafactory.models.DWCopyCommandDefaultValue": "Microsoft.DataFactory.DWCopyCommandDefaultValue", + "azure.mgmt.datafactory.models.DWCopyCommandSettings": "Microsoft.DataFactory.DWCopyCommandSettings", + "azure.mgmt.datafactory.models.DynamicsAXLinkedService": "Microsoft.DataFactory.DynamicsAXLinkedService", + "azure.mgmt.datafactory.models.DynamicsAXLinkedServiceTypeProperties": "Microsoft.DataFactory.DynamicsAXLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.DynamicsAXResourceDataset": "Microsoft.DataFactory.DynamicsAXResourceDataset", + "azure.mgmt.datafactory.models.DynamicsAXResourceDatasetTypeProperties": "Microsoft.DataFactory.DynamicsAXResourceDatasetTypeProperties", + "azure.mgmt.datafactory.models.DynamicsAXSource": "Microsoft.DataFactory.DynamicsAXSource", + "azure.mgmt.datafactory.models.DynamicsCrmEntityDataset": "Microsoft.DataFactory.DynamicsCrmEntityDataset", + "azure.mgmt.datafactory.models.DynamicsCrmEntityDatasetTypeProperties": "Microsoft.DataFactory.DynamicsCrmEntityDatasetTypeProperties", + "azure.mgmt.datafactory.models.DynamicsCrmLinkedService": "Microsoft.DataFactory.DynamicsCrmLinkedService", + "azure.mgmt.datafactory.models.DynamicsCrmLinkedServiceTypeProperties": "Microsoft.DataFactory.DynamicsCrmLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.DynamicsCrmSink": "Microsoft.DataFactory.DynamicsCrmSink", + "azure.mgmt.datafactory.models.DynamicsCrmSource": "Microsoft.DataFactory.DynamicsCrmSource", + "azure.mgmt.datafactory.models.DynamicsEntityDataset": "Microsoft.DataFactory.DynamicsEntityDataset", + "azure.mgmt.datafactory.models.DynamicsEntityDatasetTypeProperties": "Microsoft.DataFactory.DynamicsEntityDatasetTypeProperties", + "azure.mgmt.datafactory.models.DynamicsLinkedService": "Microsoft.DataFactory.DynamicsLinkedService", + "azure.mgmt.datafactory.models.DynamicsLinkedServiceTypeProperties": "Microsoft.DataFactory.DynamicsLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.DynamicsSink": "Microsoft.DataFactory.DynamicsSink", + "azure.mgmt.datafactory.models.DynamicsSource": "Microsoft.DataFactory.DynamicsSource", + "azure.mgmt.datafactory.models.EloquaLinkedService": "Microsoft.DataFactory.EloquaLinkedService", + "azure.mgmt.datafactory.models.EloquaLinkedServiceTypeProperties": "Microsoft.DataFactory.EloquaLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.EloquaObjectDataset": "Microsoft.DataFactory.EloquaObjectDataset", + "azure.mgmt.datafactory.models.EloquaSource": "Microsoft.DataFactory.EloquaSource", + "azure.mgmt.datafactory.models.EnableInteractiveQueryRequest": "Microsoft.DataFactory.EnableInteractiveQueryRequest", + "azure.mgmt.datafactory.models.EncryptionConfiguration": "Microsoft.DataFactory.EncryptionConfiguration", + "azure.mgmt.datafactory.models.EntityReference": "Microsoft.DataFactory.EntityReference", + "azure.mgmt.datafactory.models.EnvironmentVariableSetup": "Microsoft.DataFactory.EnvironmentVariableSetup", + "azure.mgmt.datafactory.models.EnvironmentVariableSetupTypeProperties": "Microsoft.DataFactory.EnvironmentVariableSetupTypeProperties", + "azure.mgmt.datafactory.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo", + "azure.mgmt.datafactory.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail", + "azure.mgmt.datafactory.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse", + "azure.mgmt.datafactory.models.ExcelDataset": "Microsoft.DataFactory.ExcelDataset", + "azure.mgmt.datafactory.models.ExcelDatasetTypeProperties": "Microsoft.DataFactory.ExcelDatasetTypeProperties", + "azure.mgmt.datafactory.models.ExcelSource": "Microsoft.DataFactory.ExcelSource", + "azure.mgmt.datafactory.models.ExecuteDataFlowActivity": "Microsoft.DataFactory.ExecuteDataFlowActivity", + "azure.mgmt.datafactory.models.ExecuteDataFlowActivityTypeProperties": "Microsoft.DataFactory.ExecuteDataFlowActivityTypeProperties", + "azure.mgmt.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute": "Microsoft.DataFactory.ExecuteDataFlowActivityTypePropertiesCompute", + "azure.mgmt.datafactory.models.ExecutePipelineActivity": "Microsoft.DataFactory.ExecutePipelineActivity", + "azure.mgmt.datafactory.models.ExecutePipelineActivityPolicy": "Microsoft.DataFactory.ExecutePipelineActivityPolicy", + "azure.mgmt.datafactory.models.ExecutePipelineActivityTypeProperties": "Microsoft.DataFactory.ExecutePipelineActivityTypeProperties", + "azure.mgmt.datafactory.models.ExecutePowerQueryActivityTypeProperties": "Microsoft.DataFactory.ExecutePowerQueryActivityTypeProperties", + "azure.mgmt.datafactory.models.ExecuteSSISPackageActivity": "Microsoft.DataFactory.ExecuteSSISPackageActivity", + "azure.mgmt.datafactory.models.ExecuteSSISPackageActivityTypeProperties": "Microsoft.DataFactory.ExecuteSSISPackageActivityTypeProperties", + "azure.mgmt.datafactory.models.ExecuteWranglingDataflowActivity": "Microsoft.DataFactory.ExecuteWranglingDataflowActivity", + "azure.mgmt.datafactory.models.ExposureControlBatchRequest": "Microsoft.DataFactory.ExposureControlBatchRequest", + "azure.mgmt.datafactory.models.ExposureControlBatchResponse": "Microsoft.DataFactory.ExposureControlBatchResponse", + "azure.mgmt.datafactory.models.ExposureControlRequest": "Microsoft.DataFactory.ExposureControlRequest", + "azure.mgmt.datafactory.models.ExposureControlResponse": "Microsoft.DataFactory.ExposureControlResponse", + "azure.mgmt.datafactory.models.Expression": "Microsoft.DataFactory.Expression", + "azure.mgmt.datafactory.models.ExpressionV2": "Microsoft.DataFactory.ExpressionV2", + "azure.mgmt.datafactory.models.Factory": "Microsoft.DataFactory.Factory", + "azure.mgmt.datafactory.models.FactoryRepoConfiguration": "Microsoft.DataFactory.FactoryRepoConfiguration", + "azure.mgmt.datafactory.models.FactoryGitHubConfiguration": "Microsoft.DataFactory.FactoryGitHubConfiguration", + "azure.mgmt.datafactory.models.FactoryIdentity": "Microsoft.DataFactory.FactoryIdentity", + "azure.mgmt.datafactory.models.FactoryProperties": "Microsoft.DataFactory.FactoryProperties", + "azure.mgmt.datafactory.models.FactoryRepoUpdate": "Microsoft.DataFactory.FactoryRepoUpdate", + "azure.mgmt.datafactory.models.FactoryUpdateParameters": "Microsoft.DataFactory.FactoryUpdateParameters", + "azure.mgmt.datafactory.models.FactoryUpdateProperties": "Microsoft.DataFactory.FactoryUpdateProperties", + "azure.mgmt.datafactory.models.FactoryVSTSConfiguration": "Microsoft.DataFactory.FactoryVSTSConfiguration", + "azure.mgmt.datafactory.models.FailActivity": "Microsoft.DataFactory.FailActivity", + "azure.mgmt.datafactory.models.FailActivityTypeProperties": "Microsoft.DataFactory.FailActivityTypeProperties", + "azure.mgmt.datafactory.models.FileServerLinkedService": "Microsoft.DataFactory.FileServerLinkedService", + "azure.mgmt.datafactory.models.FileServerLinkedServiceTypeProperties": "Microsoft.DataFactory.FileServerLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.FileServerLocation": "Microsoft.DataFactory.FileServerLocation", + "azure.mgmt.datafactory.models.FileServerReadSettings": "Microsoft.DataFactory.FileServerReadSettings", + "azure.mgmt.datafactory.models.FileServerWriteSettings": "Microsoft.DataFactory.FileServerWriteSettings", + "azure.mgmt.datafactory.models.FileShareDataset": "Microsoft.DataFactory.FileShareDataset", + "azure.mgmt.datafactory.models.FileShareDatasetTypeProperties": "Microsoft.DataFactory.FileShareDatasetTypeProperties", + "azure.mgmt.datafactory.models.FileSystemSink": "Microsoft.DataFactory.FileSystemSink", + "azure.mgmt.datafactory.models.FileSystemSource": "Microsoft.DataFactory.FileSystemSource", + "azure.mgmt.datafactory.models.FilterActivity": "Microsoft.DataFactory.FilterActivity", + "azure.mgmt.datafactory.models.FilterActivityTypeProperties": "Microsoft.DataFactory.FilterActivityTypeProperties", + "azure.mgmt.datafactory.models.Flowlet": "Microsoft.DataFactory.Flowlet", + "azure.mgmt.datafactory.models.FlowletTypeProperties": "Microsoft.DataFactory.FlowletTypeProperties", + "azure.mgmt.datafactory.models.ForEachActivity": "Microsoft.DataFactory.ForEachActivity", + "azure.mgmt.datafactory.models.ForEachActivityTypeProperties": "Microsoft.DataFactory.ForEachActivityTypeProperties", + "azure.mgmt.datafactory.models.FtpReadSettings": "Microsoft.DataFactory.FtpReadSettings", + "azure.mgmt.datafactory.models.FtpServerLinkedService": "Microsoft.DataFactory.FtpServerLinkedService", + "azure.mgmt.datafactory.models.FtpServerLinkedServiceTypeProperties": "Microsoft.DataFactory.FtpServerLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.FtpServerLocation": "Microsoft.DataFactory.FtpServerLocation", + "azure.mgmt.datafactory.models.GenericDatasetTypeProperties": "Microsoft.DataFactory.GenericDatasetTypeProperties", + "azure.mgmt.datafactory.models.GetMetadataActivity": "Microsoft.DataFactory.GetMetadataActivity", + "azure.mgmt.datafactory.models.GetMetadataActivityTypeProperties": "Microsoft.DataFactory.GetMetadataActivityTypeProperties", + "azure.mgmt.datafactory.models.GetSsisObjectMetadataRequest": "Microsoft.DataFactory.GetSsisObjectMetadataRequest", + "azure.mgmt.datafactory.models.GitHubAccessTokenRequest": "Microsoft.DataFactory.GitHubAccessTokenRequest", + "azure.mgmt.datafactory.models.GitHubAccessTokenResponse": "Microsoft.DataFactory.GitHubAccessTokenResponse", + "azure.mgmt.datafactory.models.GitHubClientSecret": "Microsoft.DataFactory.GitHubClientSecret", + "azure.mgmt.datafactory.models.GlobalParameterResource": "Microsoft.DataFactory.GlobalParameterResource", + "azure.mgmt.datafactory.models.GlobalParameterSpecification": "Microsoft.DataFactory.GlobalParameterSpecification", + "azure.mgmt.datafactory.models.GoogleAdWordsLinkedService": "Microsoft.DataFactory.GoogleAdWordsLinkedService", + "azure.mgmt.datafactory.models.GoogleAdWordsLinkedServiceTypeProperties": "Microsoft.DataFactory.GoogleAdWordsLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.GoogleAdWordsObjectDataset": "Microsoft.DataFactory.GoogleAdWordsObjectDataset", + "azure.mgmt.datafactory.models.GoogleAdWordsSource": "Microsoft.DataFactory.GoogleAdWordsSource", + "azure.mgmt.datafactory.models.GoogleBigQueryDatasetTypeProperties": "Microsoft.DataFactory.GoogleBigQueryDatasetTypeProperties", + "azure.mgmt.datafactory.models.GoogleBigQueryLinkedService": "Microsoft.DataFactory.GoogleBigQueryLinkedService", + "azure.mgmt.datafactory.models.GoogleBigQueryLinkedServiceTypeProperties": "Microsoft.DataFactory.GoogleBigQueryLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.GoogleBigQueryObjectDataset": "Microsoft.DataFactory.GoogleBigQueryObjectDataset", + "azure.mgmt.datafactory.models.GoogleBigQuerySource": "Microsoft.DataFactory.GoogleBigQuerySource", + "azure.mgmt.datafactory.models.GoogleBigQueryV2DatasetTypeProperties": "Microsoft.DataFactory.GoogleBigQueryV2DatasetTypeProperties", + "azure.mgmt.datafactory.models.GoogleBigQueryV2LinkedService": "Microsoft.DataFactory.GoogleBigQueryV2LinkedService", + "azure.mgmt.datafactory.models.GoogleBigQueryV2LinkedServiceTypeProperties": "Microsoft.DataFactory.GoogleBigQueryV2LinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.GoogleBigQueryV2ObjectDataset": "Microsoft.DataFactory.GoogleBigQueryV2ObjectDataset", + "azure.mgmt.datafactory.models.GoogleBigQueryV2Source": "Microsoft.DataFactory.GoogleBigQueryV2Source", + "azure.mgmt.datafactory.models.GoogleCloudStorageLinkedService": "Microsoft.DataFactory.GoogleCloudStorageLinkedService", + "azure.mgmt.datafactory.models.GoogleCloudStorageLinkedServiceTypeProperties": "Microsoft.DataFactory.GoogleCloudStorageLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.GoogleCloudStorageLocation": "Microsoft.DataFactory.GoogleCloudStorageLocation", + "azure.mgmt.datafactory.models.GoogleCloudStorageReadSettings": "Microsoft.DataFactory.GoogleCloudStorageReadSettings", + "azure.mgmt.datafactory.models.GoogleSheetsLinkedService": "Microsoft.DataFactory.GoogleSheetsLinkedService", + "azure.mgmt.datafactory.models.GoogleSheetsLinkedServiceTypeProperties": "Microsoft.DataFactory.GoogleSheetsLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.GreenplumDatasetTypeProperties": "Microsoft.DataFactory.GreenplumDatasetTypeProperties", + "azure.mgmt.datafactory.models.GreenplumLinkedService": "Microsoft.DataFactory.GreenplumLinkedService", + "azure.mgmt.datafactory.models.GreenplumLinkedServiceTypeProperties": "Microsoft.DataFactory.GreenplumLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.GreenplumSource": "Microsoft.DataFactory.GreenplumSource", + "azure.mgmt.datafactory.models.GreenplumTableDataset": "Microsoft.DataFactory.GreenplumTableDataset", + "azure.mgmt.datafactory.models.HBaseLinkedService": "Microsoft.DataFactory.HBaseLinkedService", + "azure.mgmt.datafactory.models.HBaseLinkedServiceTypeProperties": "Microsoft.DataFactory.HBaseLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.HBaseObjectDataset": "Microsoft.DataFactory.HBaseObjectDataset", + "azure.mgmt.datafactory.models.HBaseSource": "Microsoft.DataFactory.HBaseSource", + "azure.mgmt.datafactory.models.HdfsLinkedService": "Microsoft.DataFactory.HdfsLinkedService", + "azure.mgmt.datafactory.models.HdfsLinkedServiceTypeProperties": "Microsoft.DataFactory.HdfsLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.HdfsLocation": "Microsoft.DataFactory.HdfsLocation", + "azure.mgmt.datafactory.models.HdfsReadSettings": "Microsoft.DataFactory.HdfsReadSettings", + "azure.mgmt.datafactory.models.HdfsSource": "Microsoft.DataFactory.HdfsSource", + "azure.mgmt.datafactory.models.HDInsightHiveActivity": "Microsoft.DataFactory.HDInsightHiveActivity", + "azure.mgmt.datafactory.models.HDInsightHiveActivityTypeProperties": "Microsoft.DataFactory.HDInsightHiveActivityTypeProperties", + "azure.mgmt.datafactory.models.HDInsightLinkedService": "Microsoft.DataFactory.HDInsightLinkedService", + "azure.mgmt.datafactory.models.HDInsightLinkedServiceTypeProperties": "Microsoft.DataFactory.HDInsightLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.HDInsightMapReduceActivity": "Microsoft.DataFactory.HDInsightMapReduceActivity", + "azure.mgmt.datafactory.models.HDInsightMapReduceActivityTypeProperties": "Microsoft.DataFactory.HDInsightMapReduceActivityTypeProperties", + "azure.mgmt.datafactory.models.HDInsightOnDemandLinkedService": "Microsoft.DataFactory.HDInsightOnDemandLinkedService", + "azure.mgmt.datafactory.models.HDInsightOnDemandLinkedServiceTypeProperties": "Microsoft.DataFactory.HDInsightOnDemandLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.HDInsightPigActivity": "Microsoft.DataFactory.HDInsightPigActivity", + "azure.mgmt.datafactory.models.HDInsightPigActivityTypeProperties": "Microsoft.DataFactory.HDInsightPigActivityTypeProperties", + "azure.mgmt.datafactory.models.HDInsightSparkActivity": "Microsoft.DataFactory.HDInsightSparkActivity", + "azure.mgmt.datafactory.models.HDInsightSparkActivityTypeProperties": "Microsoft.DataFactory.HDInsightSparkActivityTypeProperties", + "azure.mgmt.datafactory.models.HDInsightStreamingActivity": "Microsoft.DataFactory.HDInsightStreamingActivity", + "azure.mgmt.datafactory.models.HDInsightStreamingActivityTypeProperties": "Microsoft.DataFactory.HDInsightStreamingActivityTypeProperties", + "azure.mgmt.datafactory.models.HiveDatasetTypeProperties": "Microsoft.DataFactory.HiveDatasetTypeProperties", + "azure.mgmt.datafactory.models.HiveLinkedService": "Microsoft.DataFactory.HiveLinkedService", + "azure.mgmt.datafactory.models.HiveLinkedServiceTypeProperties": "Microsoft.DataFactory.HiveLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.HiveObjectDataset": "Microsoft.DataFactory.HiveObjectDataset", + "azure.mgmt.datafactory.models.HiveSource": "Microsoft.DataFactory.HiveSource", + "azure.mgmt.datafactory.models.HttpDataset": "Microsoft.DataFactory.HttpDataset", + "azure.mgmt.datafactory.models.HttpDatasetTypeProperties": "Microsoft.DataFactory.HttpDatasetTypeProperties", + "azure.mgmt.datafactory.models.HttpLinkedService": "Microsoft.DataFactory.HttpLinkedService", + "azure.mgmt.datafactory.models.HttpLinkedServiceTypeProperties": "Microsoft.DataFactory.HttpLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.HttpReadSettings": "Microsoft.DataFactory.HttpReadSettings", + "azure.mgmt.datafactory.models.HttpServerLocation": "Microsoft.DataFactory.HttpServerLocation", + "azure.mgmt.datafactory.models.HttpSource": "Microsoft.DataFactory.HttpSource", + "azure.mgmt.datafactory.models.HubspotLinkedService": "Microsoft.DataFactory.HubspotLinkedService", + "azure.mgmt.datafactory.models.HubspotLinkedServiceTypeProperties": "Microsoft.DataFactory.HubspotLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.HubspotObjectDataset": "Microsoft.DataFactory.HubspotObjectDataset", + "azure.mgmt.datafactory.models.HubspotSource": "Microsoft.DataFactory.HubspotSource", + "azure.mgmt.datafactory.models.IcebergDataset": "Microsoft.DataFactory.IcebergDataset", + "azure.mgmt.datafactory.models.IcebergDatasetTypeProperties": "Microsoft.DataFactory.IcebergDatasetTypeProperties", + "azure.mgmt.datafactory.models.IcebergSink": "Microsoft.DataFactory.IcebergSink", + "azure.mgmt.datafactory.models.IcebergWriteSettings": "Microsoft.DataFactory.IcebergWriteSettings", + "azure.mgmt.datafactory.models.IfConditionActivity": "Microsoft.DataFactory.IfConditionActivity", + "azure.mgmt.datafactory.models.IfConditionActivityTypeProperties": "Microsoft.DataFactory.IfConditionActivityTypeProperties", + "azure.mgmt.datafactory.models.ImpalaDatasetTypeProperties": "Microsoft.DataFactory.ImpalaDatasetTypeProperties", + "azure.mgmt.datafactory.models.ImpalaLinkedService": "Microsoft.DataFactory.ImpalaLinkedService", + "azure.mgmt.datafactory.models.ImpalaLinkedServiceTypeProperties": "Microsoft.DataFactory.ImpalaLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.ImpalaObjectDataset": "Microsoft.DataFactory.ImpalaObjectDataset", + "azure.mgmt.datafactory.models.ImpalaSource": "Microsoft.DataFactory.ImpalaSource", + "azure.mgmt.datafactory.models.InformixLinkedService": "Microsoft.DataFactory.InformixLinkedService", + "azure.mgmt.datafactory.models.InformixLinkedServiceTypeProperties": "Microsoft.DataFactory.InformixLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.InformixSink": "Microsoft.DataFactory.InformixSink", + "azure.mgmt.datafactory.models.InformixSource": "Microsoft.DataFactory.InformixSource", + "azure.mgmt.datafactory.models.InformixTableDataset": "Microsoft.DataFactory.InformixTableDataset", + "azure.mgmt.datafactory.models.InformixTableDatasetTypeProperties": "Microsoft.DataFactory.InformixTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.IntegrationRuntime": "Microsoft.DataFactory.IntegrationRuntime", + "azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys": "Microsoft.DataFactory.IntegrationRuntimeAuthKeys", + "azure.mgmt.datafactory.models.IntegrationRuntimeComputeProperties": "Microsoft.DataFactory.IntegrationRuntimeComputeProperties", + "azure.mgmt.datafactory.models.IntegrationRuntimeConnectionInfo": "Microsoft.DataFactory.IntegrationRuntimeConnectionInfo", + "azure.mgmt.datafactory.models.IntegrationRuntimeCustomerVirtualNetwork": "Microsoft.DataFactory.IntegrationRuntimeCustomerVirtualNetwork", + "azure.mgmt.datafactory.models.IntegrationRuntimeCustomSetupScriptProperties": "Microsoft.DataFactory.IntegrationRuntimeCustomSetupScriptProperties", + "azure.mgmt.datafactory.models.IntegrationRuntimeDataFlowProperties": "Microsoft.DataFactory.IntegrationRuntimeDataFlowProperties", + "azure.mgmt.datafactory.models.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem": "Microsoft.DataFactory.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem", + "azure.mgmt.datafactory.models.IntegrationRuntimeDataProxyProperties": "Microsoft.DataFactory.IntegrationRuntimeDataProxyProperties", + "azure.mgmt.datafactory.models.IntegrationRuntimeDebugResource": "Microsoft.DataFactory.IntegrationRuntimeDebugResource", + "azure.mgmt.datafactory.models.IntegrationRuntimeMonitoringData": "Microsoft.DataFactory.IntegrationRuntimeMonitoringData", + "azure.mgmt.datafactory.models.IntegrationRuntimeNodeIpAddress": "Microsoft.DataFactory.IntegrationRuntimeNodeIpAddress", + "azure.mgmt.datafactory.models.IntegrationRuntimeNodeMonitoringData": "Microsoft.DataFactory.IntegrationRuntimeNodeMonitoringData", + "azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint": "Microsoft.DataFactory.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint", + "azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint": "Microsoft.DataFactory.IntegrationRuntimeOutboundNetworkDependenciesEndpoint", + "azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails": "Microsoft.DataFactory.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails", + "azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse": "Microsoft.DataFactory.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse", + "azure.mgmt.datafactory.models.IntegrationRuntimeReference": "Microsoft.DataFactory.IntegrationRuntimeReference", + "azure.mgmt.datafactory.models.IntegrationRuntimeRegenerateKeyParameters": "Microsoft.DataFactory.IntegrationRuntimeRegenerateKeyParameters", + "azure.mgmt.datafactory.models.IntegrationRuntimeResource": "Microsoft.DataFactory.IntegrationRuntimeResource", + "azure.mgmt.datafactory.models.IntegrationRuntimeSsisCatalogInfo": "Microsoft.DataFactory.IntegrationRuntimeSsisCatalogInfo", + "azure.mgmt.datafactory.models.IntegrationRuntimeSsisProperties": "Microsoft.DataFactory.IntegrationRuntimeSsisProperties", + "azure.mgmt.datafactory.models.IntegrationRuntimeStatus": "Microsoft.DataFactory.IntegrationRuntimeStatus", + "azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse": "Microsoft.DataFactory.IntegrationRuntimeStatusResponse", + "azure.mgmt.datafactory.models.IntegrationRuntimeVNetProperties": "Microsoft.DataFactory.IntegrationRuntimeVNetProperties", + "azure.mgmt.datafactory.models.InteractiveQueryProperties": "Microsoft.DataFactory.InteractiveQueryProperties", + "azure.mgmt.datafactory.models.JiraLinkedService": "Microsoft.DataFactory.JiraLinkedService", + "azure.mgmt.datafactory.models.JiraLinkedServiceTypeProperties": "Microsoft.DataFactory.JiraLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.JiraObjectDataset": "Microsoft.DataFactory.JiraObjectDataset", + "azure.mgmt.datafactory.models.JiraSource": "Microsoft.DataFactory.JiraSource", + "azure.mgmt.datafactory.models.JiraTableDatasetTypeProperties": "Microsoft.DataFactory.JiraTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.JsonDataset": "Microsoft.DataFactory.JsonDataset", + "azure.mgmt.datafactory.models.JsonDatasetTypeProperties": "Microsoft.DataFactory.JsonDatasetTypeProperties", + "azure.mgmt.datafactory.models.JsonFormat": "Microsoft.DataFactory.JsonFormat", + "azure.mgmt.datafactory.models.JsonReadSettings": "Microsoft.DataFactory.JsonReadSettings", + "azure.mgmt.datafactory.models.JsonSink": "Microsoft.DataFactory.JsonSink", + "azure.mgmt.datafactory.models.JsonSource": "Microsoft.DataFactory.JsonSource", + "azure.mgmt.datafactory.models.JsonWriteSettings": "Microsoft.DataFactory.JsonWriteSettings", + "azure.mgmt.datafactory.models.LakeHouseLinkedService": "Microsoft.DataFactory.LakeHouseLinkedService", + "azure.mgmt.datafactory.models.LakeHouseLinkedServiceTypeProperties": "Microsoft.DataFactory.LakeHouseLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.LakeHouseLocation": "Microsoft.DataFactory.LakeHouseLocation", + "azure.mgmt.datafactory.models.LakeHouseReadSettings": "Microsoft.DataFactory.LakeHouseReadSettings", + "azure.mgmt.datafactory.models.LakeHouseTableDataset": "Microsoft.DataFactory.LakeHouseTableDataset", + "azure.mgmt.datafactory.models.LakeHouseTableDatasetTypeProperties": "Microsoft.DataFactory.LakeHouseTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.LakeHouseTableSink": "Microsoft.DataFactory.LakeHouseTableSink", + "azure.mgmt.datafactory.models.LakeHouseTableSource": "Microsoft.DataFactory.LakeHouseTableSource", + "azure.mgmt.datafactory.models.LakeHouseWriteSettings": "Microsoft.DataFactory.LakeHouseWriteSettings", + "azure.mgmt.datafactory.models.LicensedComponentSetupTypeProperties": "Microsoft.DataFactory.LicensedComponentSetupTypeProperties", + "azure.mgmt.datafactory.models.LinkedIntegrationRuntime": "Microsoft.DataFactory.LinkedIntegrationRuntime", + "azure.mgmt.datafactory.models.LinkedIntegrationRuntimeType": "Microsoft.DataFactory.LinkedIntegrationRuntimeType", + "azure.mgmt.datafactory.models.LinkedIntegrationRuntimeKeyAuthorization": "Microsoft.DataFactory.LinkedIntegrationRuntimeKeyAuthorization", + "azure.mgmt.datafactory.models.LinkedIntegrationRuntimeRbacAuthorization": "Microsoft.DataFactory.LinkedIntegrationRuntimeRbacAuthorization", + "azure.mgmt.datafactory.models.LinkedIntegrationRuntimeRequest": "Microsoft.DataFactory.LinkedIntegrationRuntimeRequest", + "azure.mgmt.datafactory.models.LinkedServiceDebugResource": "Microsoft.DataFactory.LinkedServiceDebugResource", + "azure.mgmt.datafactory.models.LinkedServiceReference": "Microsoft.DataFactory.LinkedServiceReference", + "azure.mgmt.datafactory.models.LinkedServiceResource": "Microsoft.DataFactory.LinkedServiceResource", + "azure.mgmt.datafactory.models.LogLocationSettings": "Microsoft.DataFactory.LogLocationSettings", + "azure.mgmt.datafactory.models.LogSettings": "Microsoft.DataFactory.LogSettings", + "azure.mgmt.datafactory.models.LogStorageSettings": "Microsoft.DataFactory.LogStorageSettings", + "azure.mgmt.datafactory.models.LookupActivity": "Microsoft.DataFactory.LookupActivity", + "azure.mgmt.datafactory.models.LookupActivityTypeProperties": "Microsoft.DataFactory.LookupActivityTypeProperties", + "azure.mgmt.datafactory.models.MagentoLinkedService": "Microsoft.DataFactory.MagentoLinkedService", + "azure.mgmt.datafactory.models.MagentoLinkedServiceTypeProperties": "Microsoft.DataFactory.MagentoLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.MagentoObjectDataset": "Microsoft.DataFactory.MagentoObjectDataset", + "azure.mgmt.datafactory.models.MagentoSource": "Microsoft.DataFactory.MagentoSource", + "azure.mgmt.datafactory.models.ManagedIdentityCredential": "Microsoft.DataFactory.ManagedIdentityCredential", + "azure.mgmt.datafactory.models.ManagedIdentityTypeProperties": "Microsoft.DataFactory.ManagedIdentityTypeProperties", + "azure.mgmt.datafactory.models.ManagedIntegrationRuntime": "Microsoft.DataFactory.ManagedIntegrationRuntime", + "azure.mgmt.datafactory.models.ManagedIntegrationRuntimeError": "Microsoft.DataFactory.ManagedIntegrationRuntimeError", + "azure.mgmt.datafactory.models.ManagedIntegrationRuntimeNode": "Microsoft.DataFactory.ManagedIntegrationRuntimeNode", + "azure.mgmt.datafactory.models.ManagedIntegrationRuntimeOperationResult": "Microsoft.DataFactory.ManagedIntegrationRuntimeOperationResult", + "azure.mgmt.datafactory.models.ManagedIntegrationRuntimeStatus": "Microsoft.DataFactory.ManagedIntegrationRuntimeStatus", + "azure.mgmt.datafactory.models.ManagedIntegrationRuntimeStatusTypeProperties": "Microsoft.DataFactory.ManagedIntegrationRuntimeStatusTypeProperties", + "azure.mgmt.datafactory.models.ManagedIntegrationRuntimeTypeProperties": "Microsoft.DataFactory.ManagedIntegrationRuntimeTypeProperties", + "azure.mgmt.datafactory.models.ManagedPrivateEndpoint": "Microsoft.DataFactory.ManagedPrivateEndpoint", + "azure.mgmt.datafactory.models.ManagedPrivateEndpointResource": "Microsoft.DataFactory.ManagedPrivateEndpointResource", + "azure.mgmt.datafactory.models.ManagedVirtualNetwork": "Microsoft.DataFactory.ManagedVirtualNetwork", + "azure.mgmt.datafactory.models.ManagedVirtualNetworkReference": "Microsoft.DataFactory.ManagedVirtualNetworkReference", + "azure.mgmt.datafactory.models.ManagedVirtualNetworkResource": "Microsoft.DataFactory.ManagedVirtualNetworkResource", + "azure.mgmt.datafactory.models.MapperAttributeMapping": "Microsoft.DataFactory.MapperAttributeMapping", + "azure.mgmt.datafactory.models.MapperAttributeMappings": "Microsoft.DataFactory.MapperAttributeMappings", + "azure.mgmt.datafactory.models.MapperAttributeReference": "Microsoft.DataFactory.MapperAttributeReference", + "azure.mgmt.datafactory.models.MapperConnection": "Microsoft.DataFactory.MapperConnection", + "azure.mgmt.datafactory.models.MapperConnectionReference": "Microsoft.DataFactory.MapperConnectionReference", + "azure.mgmt.datafactory.models.MapperDslConnectorProperties": "Microsoft.DataFactory.MapperDslConnectorProperties", + "azure.mgmt.datafactory.models.MapperPolicy": "Microsoft.DataFactory.MapperPolicy", + "azure.mgmt.datafactory.models.MapperPolicyRecurrence": "Microsoft.DataFactory.MapperPolicyRecurrence", + "azure.mgmt.datafactory.models.MapperSourceConnectionsInfo": "Microsoft.DataFactory.MapperSourceConnectionsInfo", + "azure.mgmt.datafactory.models.MapperTable": "Microsoft.DataFactory.MapperTable", + "azure.mgmt.datafactory.models.MapperTableProperties": "Microsoft.DataFactory.MapperTableProperties", + "azure.mgmt.datafactory.models.MapperTableSchema": "Microsoft.DataFactory.MapperTableSchema", + "azure.mgmt.datafactory.models.MapperTargetConnectionsInfo": "Microsoft.DataFactory.MapperTargetConnectionsInfo", + "azure.mgmt.datafactory.models.MappingDataFlow": "Microsoft.DataFactory.MappingDataFlow", + "azure.mgmt.datafactory.models.MappingDataFlowTypeProperties": "Microsoft.DataFactory.MappingDataFlowTypeProperties", + "azure.mgmt.datafactory.models.MariaDBLinkedService": "Microsoft.DataFactory.MariaDBLinkedService", + "azure.mgmt.datafactory.models.MariaDBLinkedServiceTypeProperties": "Microsoft.DataFactory.MariaDBLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.MariaDBSource": "Microsoft.DataFactory.MariaDBSource", + "azure.mgmt.datafactory.models.MariaDBTableDataset": "Microsoft.DataFactory.MariaDBTableDataset", + "azure.mgmt.datafactory.models.MarketoLinkedService": "Microsoft.DataFactory.MarketoLinkedService", + "azure.mgmt.datafactory.models.MarketoLinkedServiceTypeProperties": "Microsoft.DataFactory.MarketoLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.MarketoObjectDataset": "Microsoft.DataFactory.MarketoObjectDataset", + "azure.mgmt.datafactory.models.MarketoSource": "Microsoft.DataFactory.MarketoSource", + "azure.mgmt.datafactory.models.MetadataItem": "Microsoft.DataFactory.MetadataItem", + "azure.mgmt.datafactory.models.MicrosoftAccessLinkedService": "Microsoft.DataFactory.MicrosoftAccessLinkedService", + "azure.mgmt.datafactory.models.MicrosoftAccessLinkedServiceTypeProperties": "Microsoft.DataFactory.MicrosoftAccessLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.MicrosoftAccessSink": "Microsoft.DataFactory.MicrosoftAccessSink", + "azure.mgmt.datafactory.models.MicrosoftAccessSource": "Microsoft.DataFactory.MicrosoftAccessSource", + "azure.mgmt.datafactory.models.MicrosoftAccessTableDataset": "Microsoft.DataFactory.MicrosoftAccessTableDataset", + "azure.mgmt.datafactory.models.MicrosoftAccessTableDatasetTypeProperties": "Microsoft.DataFactory.MicrosoftAccessTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.MongoDbAtlasCollectionDataset": "Microsoft.DataFactory.MongoDbAtlasCollectionDataset", + "azure.mgmt.datafactory.models.MongoDbAtlasCollectionDatasetTypeProperties": "Microsoft.DataFactory.MongoDbAtlasCollectionDatasetTypeProperties", + "azure.mgmt.datafactory.models.MongoDbAtlasLinkedService": "Microsoft.DataFactory.MongoDbAtlasLinkedService", + "azure.mgmt.datafactory.models.MongoDbAtlasLinkedServiceTypeProperties": "Microsoft.DataFactory.MongoDbAtlasLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.MongoDbAtlasSink": "Microsoft.DataFactory.MongoDbAtlasSink", + "azure.mgmt.datafactory.models.MongoDbAtlasSource": "Microsoft.DataFactory.MongoDbAtlasSource", + "azure.mgmt.datafactory.models.MongoDbCollectionDataset": "Microsoft.DataFactory.MongoDbCollectionDataset", + "azure.mgmt.datafactory.models.MongoDbCollectionDatasetTypeProperties": "Microsoft.DataFactory.MongoDbCollectionDatasetTypeProperties", + "azure.mgmt.datafactory.models.MongoDbCursorMethodsProperties": "Microsoft.DataFactory.MongoDbCursorMethodsProperties", + "azure.mgmt.datafactory.models.MongoDbLinkedService": "Microsoft.DataFactory.MongoDbLinkedService", + "azure.mgmt.datafactory.models.MongoDbLinkedServiceTypeProperties": "Microsoft.DataFactory.MongoDbLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.MongoDbSource": "Microsoft.DataFactory.MongoDbSource", + "azure.mgmt.datafactory.models.MongoDbV2CollectionDataset": "Microsoft.DataFactory.MongoDbV2CollectionDataset", + "azure.mgmt.datafactory.models.MongoDbV2CollectionDatasetTypeProperties": "Microsoft.DataFactory.MongoDbV2CollectionDatasetTypeProperties", + "azure.mgmt.datafactory.models.MongoDbV2LinkedService": "Microsoft.DataFactory.MongoDbV2LinkedService", + "azure.mgmt.datafactory.models.MongoDbV2LinkedServiceTypeProperties": "Microsoft.DataFactory.MongoDbV2LinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.MongoDbV2Sink": "Microsoft.DataFactory.MongoDbV2Sink", + "azure.mgmt.datafactory.models.MongoDbV2Source": "Microsoft.DataFactory.MongoDbV2Source", + "azure.mgmt.datafactory.models.MySqlLinkedService": "Microsoft.DataFactory.MySqlLinkedService", + "azure.mgmt.datafactory.models.MySqlLinkedServiceTypeProperties": "Microsoft.DataFactory.MySqlLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.MySqlSource": "Microsoft.DataFactory.MySqlSource", + "azure.mgmt.datafactory.models.MySqlTableDataset": "Microsoft.DataFactory.MySqlTableDataset", + "azure.mgmt.datafactory.models.MySqlTableDatasetTypeProperties": "Microsoft.DataFactory.MySqlTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.NetezzaLinkedService": "Microsoft.DataFactory.NetezzaLinkedService", + "azure.mgmt.datafactory.models.NetezzaLinkedServiceTypeProperties": "Microsoft.DataFactory.NetezzaLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.NetezzaPartitionSettings": "Microsoft.DataFactory.NetezzaPartitionSettings", + "azure.mgmt.datafactory.models.NetezzaSource": "Microsoft.DataFactory.NetezzaSource", + "azure.mgmt.datafactory.models.NetezzaTableDataset": "Microsoft.DataFactory.NetezzaTableDataset", + "azure.mgmt.datafactory.models.NetezzaTableDatasetTypeProperties": "Microsoft.DataFactory.NetezzaTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.NotebookParameter": "Microsoft.DataFactory.NotebookParameter", + "azure.mgmt.datafactory.models.ODataLinkedService": "Microsoft.DataFactory.ODataLinkedService", + "azure.mgmt.datafactory.models.ODataLinkedServiceTypeProperties": "Microsoft.DataFactory.ODataLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.ODataResourceDataset": "Microsoft.DataFactory.ODataResourceDataset", + "azure.mgmt.datafactory.models.ODataResourceDatasetTypeProperties": "Microsoft.DataFactory.ODataResourceDatasetTypeProperties", + "azure.mgmt.datafactory.models.ODataSource": "Microsoft.DataFactory.ODataSource", + "azure.mgmt.datafactory.models.OdbcLinkedService": "Microsoft.DataFactory.OdbcLinkedService", + "azure.mgmt.datafactory.models.OdbcLinkedServiceTypeProperties": "Microsoft.DataFactory.OdbcLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.OdbcSink": "Microsoft.DataFactory.OdbcSink", + "azure.mgmt.datafactory.models.OdbcSource": "Microsoft.DataFactory.OdbcSource", + "azure.mgmt.datafactory.models.OdbcTableDataset": "Microsoft.DataFactory.OdbcTableDataset", + "azure.mgmt.datafactory.models.OdbcTableDatasetTypeProperties": "Microsoft.DataFactory.OdbcTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.Office365Dataset": "Microsoft.DataFactory.Office365Dataset", + "azure.mgmt.datafactory.models.Office365DatasetTypeProperties": "Microsoft.DataFactory.Office365DatasetTypeProperties", + "azure.mgmt.datafactory.models.Office365LinkedService": "Microsoft.DataFactory.Office365LinkedService", + "azure.mgmt.datafactory.models.Office365LinkedServiceTypeProperties": "Microsoft.DataFactory.Office365LinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.Office365Source": "Microsoft.DataFactory.Office365Source", + "azure.mgmt.datafactory.models.Operation": "Microsoft.DataFactory.Operation", + "azure.mgmt.datafactory.models.OperationDisplay": "Microsoft.DataFactory.OperationDisplay", + "azure.mgmt.datafactory.models.OperationLogSpecification": "Microsoft.DataFactory.OperationLogSpecification", + "azure.mgmt.datafactory.models.OperationMetricAvailability": "Microsoft.DataFactory.OperationMetricAvailability", + "azure.mgmt.datafactory.models.OperationMetricDimension": "Microsoft.DataFactory.OperationMetricDimension", + "azure.mgmt.datafactory.models.OperationMetricSpecification": "Microsoft.DataFactory.OperationMetricSpecification", + "azure.mgmt.datafactory.models.OperationProperties": "Microsoft.DataFactory.OperationProperties", + "azure.mgmt.datafactory.models.OperationServiceSpecification": "Microsoft.DataFactory.OperationServiceSpecification", + "azure.mgmt.datafactory.models.OracleCloudStorageLinkedService": "Microsoft.DataFactory.OracleCloudStorageLinkedService", + "azure.mgmt.datafactory.models.OracleCloudStorageLinkedServiceTypeProperties": "Microsoft.DataFactory.OracleCloudStorageLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.OracleCloudStorageLocation": "Microsoft.DataFactory.OracleCloudStorageLocation", + "azure.mgmt.datafactory.models.OracleCloudStorageReadSettings": "Microsoft.DataFactory.OracleCloudStorageReadSettings", + "azure.mgmt.datafactory.models.OracleLinkedService": "Microsoft.DataFactory.OracleLinkedService", + "azure.mgmt.datafactory.models.OracleLinkedServiceTypeProperties": "Microsoft.DataFactory.OracleLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.OraclePartitionSettings": "Microsoft.DataFactory.OraclePartitionSettings", + "azure.mgmt.datafactory.models.OracleServiceCloudLinkedService": "Microsoft.DataFactory.OracleServiceCloudLinkedService", + "azure.mgmt.datafactory.models.OracleServiceCloudLinkedServiceTypeProperties": "Microsoft.DataFactory.OracleServiceCloudLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.OracleServiceCloudObjectDataset": "Microsoft.DataFactory.OracleServiceCloudObjectDataset", + "azure.mgmt.datafactory.models.OracleServiceCloudSource": "Microsoft.DataFactory.OracleServiceCloudSource", + "azure.mgmt.datafactory.models.OracleSink": "Microsoft.DataFactory.OracleSink", + "azure.mgmt.datafactory.models.OracleSource": "Microsoft.DataFactory.OracleSource", + "azure.mgmt.datafactory.models.OracleTableDataset": "Microsoft.DataFactory.OracleTableDataset", + "azure.mgmt.datafactory.models.OracleTableDatasetTypeProperties": "Microsoft.DataFactory.OracleTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.OrcDataset": "Microsoft.DataFactory.OrcDataset", + "azure.mgmt.datafactory.models.OrcDatasetTypeProperties": "Microsoft.DataFactory.OrcDatasetTypeProperties", + "azure.mgmt.datafactory.models.OrcFormat": "Microsoft.DataFactory.OrcFormat", + "azure.mgmt.datafactory.models.OrcSink": "Microsoft.DataFactory.OrcSink", + "azure.mgmt.datafactory.models.OrcSource": "Microsoft.DataFactory.OrcSource", + "azure.mgmt.datafactory.models.OrcWriteSettings": "Microsoft.DataFactory.OrcWriteSettings", + "azure.mgmt.datafactory.models.PackageStore": "Microsoft.DataFactory.PackageStore", + "azure.mgmt.datafactory.models.ParameterSpecification": "Microsoft.DataFactory.ParameterSpecification", + "azure.mgmt.datafactory.models.ParquetDataset": "Microsoft.DataFactory.ParquetDataset", + "azure.mgmt.datafactory.models.ParquetDatasetTypeProperties": "Microsoft.DataFactory.ParquetDatasetTypeProperties", + "azure.mgmt.datafactory.models.ParquetFormat": "Microsoft.DataFactory.ParquetFormat", + "azure.mgmt.datafactory.models.ParquetReadSettings": "Microsoft.DataFactory.ParquetReadSettings", + "azure.mgmt.datafactory.models.ParquetSink": "Microsoft.DataFactory.ParquetSink", + "azure.mgmt.datafactory.models.ParquetSource": "Microsoft.DataFactory.ParquetSource", + "azure.mgmt.datafactory.models.ParquetWriteSettings": "Microsoft.DataFactory.ParquetWriteSettings", + "azure.mgmt.datafactory.models.PaypalLinkedService": "Microsoft.DataFactory.PaypalLinkedService", + "azure.mgmt.datafactory.models.PaypalLinkedServiceTypeProperties": "Microsoft.DataFactory.PaypalLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.PaypalObjectDataset": "Microsoft.DataFactory.PaypalObjectDataset", + "azure.mgmt.datafactory.models.PaypalSource": "Microsoft.DataFactory.PaypalSource", + "azure.mgmt.datafactory.models.PhoenixDatasetTypeProperties": "Microsoft.DataFactory.PhoenixDatasetTypeProperties", + "azure.mgmt.datafactory.models.PhoenixLinkedService": "Microsoft.DataFactory.PhoenixLinkedService", + "azure.mgmt.datafactory.models.PhoenixLinkedServiceTypeProperties": "Microsoft.DataFactory.PhoenixLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.PhoenixObjectDataset": "Microsoft.DataFactory.PhoenixObjectDataset", + "azure.mgmt.datafactory.models.PhoenixSource": "Microsoft.DataFactory.PhoenixSource", + "azure.mgmt.datafactory.models.Pipeline": "Microsoft.DataFactory.Pipeline", + "azure.mgmt.datafactory.models.PipelineElapsedTimeMetricPolicy": "Microsoft.DataFactory.PipelineElapsedTimeMetricPolicy", + "azure.mgmt.datafactory.models.PipelineExternalComputeScaleProperties": "Microsoft.DataFactory.PipelineExternalComputeScaleProperties", + "azure.mgmt.datafactory.models.PipelineFolder": "Microsoft.DataFactory.PipelineFolder", + "azure.mgmt.datafactory.models.PipelinePolicy": "Microsoft.DataFactory.PipelinePolicy", + "azure.mgmt.datafactory.models.PipelineReference": "Microsoft.DataFactory.PipelineReference", + "azure.mgmt.datafactory.models.PipelineResource": "Microsoft.DataFactory.PipelineResource", + "azure.mgmt.datafactory.models.PipelineRun": "Microsoft.DataFactory.PipelineRun", + "azure.mgmt.datafactory.models.PipelineRunInvokedBy": "Microsoft.DataFactory.PipelineRunInvokedBy", + "azure.mgmt.datafactory.models.PipelineRunsQueryResponse": "Microsoft.DataFactory.PipelineRunsQueryResponse", + "azure.mgmt.datafactory.models.PolybaseSettings": "Microsoft.DataFactory.PolybaseSettings", + "azure.mgmt.datafactory.models.PostgreSqlLinkedService": "Microsoft.DataFactory.PostgreSqlLinkedService", + "azure.mgmt.datafactory.models.PostgreSqlLinkedServiceTypeProperties": "Microsoft.DataFactory.PostgreSqlLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.PostgreSqlSource": "Microsoft.DataFactory.PostgreSqlSource", + "azure.mgmt.datafactory.models.PostgreSqlTableDataset": "Microsoft.DataFactory.PostgreSqlTableDataset", + "azure.mgmt.datafactory.models.PostgreSqlTableDatasetTypeProperties": "Microsoft.DataFactory.PostgreSqlTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.PostgreSqlV2LinkedService": "Microsoft.DataFactory.PostgreSqlV2LinkedService", + "azure.mgmt.datafactory.models.PostgreSqlV2LinkedServiceTypeProperties": "Microsoft.DataFactory.PostgreSqlV2LinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.PostgreSqlV2Source": "Microsoft.DataFactory.PostgreSqlV2Source", + "azure.mgmt.datafactory.models.PostgreSqlV2TableDataset": "Microsoft.DataFactory.PostgreSqlV2TableDataset", + "azure.mgmt.datafactory.models.PostgreSqlV2TableDatasetTypeProperties": "Microsoft.DataFactory.PostgreSqlV2TableDatasetTypeProperties", + "azure.mgmt.datafactory.models.PowerQuerySink": "Microsoft.DataFactory.PowerQuerySink", + "azure.mgmt.datafactory.models.PowerQuerySinkMapping": "Microsoft.DataFactory.PowerQuerySinkMapping", + "azure.mgmt.datafactory.models.PowerQuerySource": "Microsoft.DataFactory.PowerQuerySource", + "azure.mgmt.datafactory.models.PowerQueryTypeProperties": "Microsoft.DataFactory.PowerQueryTypeProperties", + "azure.mgmt.datafactory.models.PrestoDatasetTypeProperties": "Microsoft.DataFactory.PrestoDatasetTypeProperties", + "azure.mgmt.datafactory.models.PrestoLinkedService": "Microsoft.DataFactory.PrestoLinkedService", + "azure.mgmt.datafactory.models.PrestoLinkedServiceTypeProperties": "Microsoft.DataFactory.PrestoLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.PrestoObjectDataset": "Microsoft.DataFactory.PrestoObjectDataset", + "azure.mgmt.datafactory.models.PrestoSource": "Microsoft.DataFactory.PrestoSource", + "azure.mgmt.datafactory.models.PrivateEndpoint": "Microsoft.DataFactory.PrivateEndpoint", + "azure.mgmt.datafactory.models.PrivateEndpointConnectionResource": "Microsoft.DataFactory.PrivateEndpointConnectionResource", + "azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequest": "Microsoft.DataFactory.PrivateLinkConnectionApprovalRequest", + "azure.mgmt.datafactory.models.SubResource": "Microsoft.DataFactory.SubResource", + "azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequestResource": "Microsoft.DataFactory.PrivateLinkConnectionApprovalRequestResource", + "azure.mgmt.datafactory.models.PrivateLinkConnectionState": "Microsoft.DataFactory.PrivateLinkConnectionState", + "azure.mgmt.datafactory.models.PrivateLinkResource": "Microsoft.DataFactory.PrivateLinkResource", + "azure.mgmt.datafactory.models.PrivateLinkResourceProperties": "Microsoft.DataFactory.PrivateLinkResourceProperties", + "azure.mgmt.datafactory.models.PrivateLinkResourcesWrapper": "Microsoft.DataFactory.PrivateLinkResourcesWrapper", + "azure.mgmt.datafactory.models.PurviewConfiguration": "Microsoft.DataFactory.PurviewConfiguration", + "azure.mgmt.datafactory.models.QuickbaseLinkedService": "Microsoft.DataFactory.QuickbaseLinkedService", + "azure.mgmt.datafactory.models.QuickbaseLinkedServiceTypeProperties": "Microsoft.DataFactory.QuickbaseLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.QuickBooksLinkedService": "Microsoft.DataFactory.QuickBooksLinkedService", + "azure.mgmt.datafactory.models.QuickBooksLinkedServiceTypeProperties": "Microsoft.DataFactory.QuickBooksLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.QuickBooksObjectDataset": "Microsoft.DataFactory.QuickBooksObjectDataset", + "azure.mgmt.datafactory.models.QuickBooksSource": "Microsoft.DataFactory.QuickBooksSource", + "azure.mgmt.datafactory.models.RecurrenceSchedule": "Microsoft.DataFactory.RecurrenceSchedule", + "azure.mgmt.datafactory.models.RecurrenceScheduleOccurrence": "Microsoft.DataFactory.RecurrenceScheduleOccurrence", + "azure.mgmt.datafactory.models.RedirectIncompatibleRowSettings": "Microsoft.DataFactory.RedirectIncompatibleRowSettings", + "azure.mgmt.datafactory.models.RedshiftUnloadSettings": "Microsoft.DataFactory.RedshiftUnloadSettings", + "azure.mgmt.datafactory.models.RelationalSource": "Microsoft.DataFactory.RelationalSource", + "azure.mgmt.datafactory.models.RelationalTableDataset": "Microsoft.DataFactory.RelationalTableDataset", + "azure.mgmt.datafactory.models.RelationalTableDatasetTypeProperties": "Microsoft.DataFactory.RelationalTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.RemotePrivateEndpointConnection": "Microsoft.DataFactory.RemotePrivateEndpointConnection", + "azure.mgmt.datafactory.models.RerunTumblingWindowTrigger": "Microsoft.DataFactory.RerunTumblingWindowTrigger", + "azure.mgmt.datafactory.models.RerunTumblingWindowTriggerTypeProperties": "Microsoft.DataFactory.RerunTumblingWindowTriggerTypeProperties", + "azure.mgmt.datafactory.models.ResponsysLinkedService": "Microsoft.DataFactory.ResponsysLinkedService", + "azure.mgmt.datafactory.models.ResponsysLinkedServiceTypeProperties": "Microsoft.DataFactory.ResponsysLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.ResponsysObjectDataset": "Microsoft.DataFactory.ResponsysObjectDataset", + "azure.mgmt.datafactory.models.ResponsysSource": "Microsoft.DataFactory.ResponsysSource", + "azure.mgmt.datafactory.models.RestResourceDataset": "Microsoft.DataFactory.RestResourceDataset", + "azure.mgmt.datafactory.models.RestResourceDatasetTypeProperties": "Microsoft.DataFactory.RestResourceDatasetTypeProperties", + "azure.mgmt.datafactory.models.RestServiceLinkedService": "Microsoft.DataFactory.RestServiceLinkedService", + "azure.mgmt.datafactory.models.RestServiceLinkedServiceTypeProperties": "Microsoft.DataFactory.RestServiceLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.RestSink": "Microsoft.DataFactory.RestSink", + "azure.mgmt.datafactory.models.RestSource": "Microsoft.DataFactory.RestSource", + "azure.mgmt.datafactory.models.RetryPolicy": "Microsoft.DataFactory.RetryPolicy", + "azure.mgmt.datafactory.models.RunFilterParameters": "Microsoft.DataFactory.RunFilterParameters", + "azure.mgmt.datafactory.models.RunQueryFilter": "Microsoft.DataFactory.RunQueryFilter", + "azure.mgmt.datafactory.models.RunQueryOrderBy": "Microsoft.DataFactory.RunQueryOrderBy", + "azure.mgmt.datafactory.models.SalesforceLinkedService": "Microsoft.DataFactory.SalesforceLinkedService", + "azure.mgmt.datafactory.models.SalesforceLinkedServiceTypeProperties": "Microsoft.DataFactory.SalesforceLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SalesforceMarketingCloudLinkedService": "Microsoft.DataFactory.SalesforceMarketingCloudLinkedService", + "azure.mgmt.datafactory.models.SalesforceMarketingCloudLinkedServiceTypeProperties": "Microsoft.DataFactory.SalesforceMarketingCloudLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SalesforceMarketingCloudObjectDataset": "Microsoft.DataFactory.SalesforceMarketingCloudObjectDataset", + "azure.mgmt.datafactory.models.SalesforceMarketingCloudSource": "Microsoft.DataFactory.SalesforceMarketingCloudSource", + "azure.mgmt.datafactory.models.SalesforceObjectDataset": "Microsoft.DataFactory.SalesforceObjectDataset", + "azure.mgmt.datafactory.models.SalesforceObjectDatasetTypeProperties": "Microsoft.DataFactory.SalesforceObjectDatasetTypeProperties", + "azure.mgmt.datafactory.models.SalesforceServiceCloudLinkedService": "Microsoft.DataFactory.SalesforceServiceCloudLinkedService", + "azure.mgmt.datafactory.models.SalesforceServiceCloudLinkedServiceTypeProperties": "Microsoft.DataFactory.SalesforceServiceCloudLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SalesforceServiceCloudObjectDataset": "Microsoft.DataFactory.SalesforceServiceCloudObjectDataset", + "azure.mgmt.datafactory.models.SalesforceServiceCloudObjectDatasetTypeProperties": "Microsoft.DataFactory.SalesforceServiceCloudObjectDatasetTypeProperties", + "azure.mgmt.datafactory.models.SalesforceServiceCloudSink": "Microsoft.DataFactory.SalesforceServiceCloudSink", + "azure.mgmt.datafactory.models.SalesforceServiceCloudSource": "Microsoft.DataFactory.SalesforceServiceCloudSource", + "azure.mgmt.datafactory.models.SalesforceServiceCloudV2LinkedService": "Microsoft.DataFactory.SalesforceServiceCloudV2LinkedService", + "azure.mgmt.datafactory.models.SalesforceServiceCloudV2LinkedServiceTypeProperties": "Microsoft.DataFactory.SalesforceServiceCloudV2LinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SalesforceServiceCloudV2ObjectDataset": "Microsoft.DataFactory.SalesforceServiceCloudV2ObjectDataset", + "azure.mgmt.datafactory.models.SalesforceServiceCloudV2ObjectDatasetTypeProperties": "Microsoft.DataFactory.SalesforceServiceCloudV2ObjectDatasetTypeProperties", + "azure.mgmt.datafactory.models.SalesforceServiceCloudV2Sink": "Microsoft.DataFactory.SalesforceServiceCloudV2Sink", + "azure.mgmt.datafactory.models.SalesforceServiceCloudV2Source": "Microsoft.DataFactory.SalesforceServiceCloudV2Source", + "azure.mgmt.datafactory.models.SalesforceSink": "Microsoft.DataFactory.SalesforceSink", + "azure.mgmt.datafactory.models.SalesforceSource": "Microsoft.DataFactory.SalesforceSource", + "azure.mgmt.datafactory.models.SalesforceV2LinkedService": "Microsoft.DataFactory.SalesforceV2LinkedService", + "azure.mgmt.datafactory.models.SalesforceV2LinkedServiceTypeProperties": "Microsoft.DataFactory.SalesforceV2LinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SalesforceV2ObjectDataset": "Microsoft.DataFactory.SalesforceV2ObjectDataset", + "azure.mgmt.datafactory.models.SalesforceV2ObjectDatasetTypeProperties": "Microsoft.DataFactory.SalesforceV2ObjectDatasetTypeProperties", + "azure.mgmt.datafactory.models.SalesforceV2Sink": "Microsoft.DataFactory.SalesforceV2Sink", + "azure.mgmt.datafactory.models.SalesforceV2Source": "Microsoft.DataFactory.SalesforceV2Source", + "azure.mgmt.datafactory.models.SapBwCubeDataset": "Microsoft.DataFactory.SapBwCubeDataset", + "azure.mgmt.datafactory.models.SapBWLinkedService": "Microsoft.DataFactory.SapBWLinkedService", + "azure.mgmt.datafactory.models.SapBWLinkedServiceTypeProperties": "Microsoft.DataFactory.SapBWLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SapBwSource": "Microsoft.DataFactory.SapBwSource", + "azure.mgmt.datafactory.models.SapCloudForCustomerLinkedService": "Microsoft.DataFactory.SapCloudForCustomerLinkedService", + "azure.mgmt.datafactory.models.SapCloudForCustomerLinkedServiceTypeProperties": "Microsoft.DataFactory.SapCloudForCustomerLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SapCloudForCustomerResourceDataset": "Microsoft.DataFactory.SapCloudForCustomerResourceDataset", + "azure.mgmt.datafactory.models.SapCloudForCustomerResourceDatasetTypeProperties": "Microsoft.DataFactory.SapCloudForCustomerResourceDatasetTypeProperties", + "azure.mgmt.datafactory.models.SapCloudForCustomerSink": "Microsoft.DataFactory.SapCloudForCustomerSink", + "azure.mgmt.datafactory.models.SapCloudForCustomerSource": "Microsoft.DataFactory.SapCloudForCustomerSource", + "azure.mgmt.datafactory.models.SapEccLinkedService": "Microsoft.DataFactory.SapEccLinkedService", + "azure.mgmt.datafactory.models.SapEccLinkedServiceTypeProperties": "Microsoft.DataFactory.SapEccLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SapEccResourceDataset": "Microsoft.DataFactory.SapEccResourceDataset", + "azure.mgmt.datafactory.models.SapEccResourceDatasetTypeProperties": "Microsoft.DataFactory.SapEccResourceDatasetTypeProperties", + "azure.mgmt.datafactory.models.SapEccSource": "Microsoft.DataFactory.SapEccSource", + "azure.mgmt.datafactory.models.SapHanaLinkedService": "Microsoft.DataFactory.SapHanaLinkedService", + "azure.mgmt.datafactory.models.SapHanaLinkedServiceProperties": "Microsoft.DataFactory.SapHanaLinkedServiceProperties", + "azure.mgmt.datafactory.models.SapHanaPartitionSettings": "Microsoft.DataFactory.SapHanaPartitionSettings", + "azure.mgmt.datafactory.models.SapHanaSource": "Microsoft.DataFactory.SapHanaSource", + "azure.mgmt.datafactory.models.SapHanaTableDataset": "Microsoft.DataFactory.SapHanaTableDataset", + "azure.mgmt.datafactory.models.SapHanaTableDatasetTypeProperties": "Microsoft.DataFactory.SapHanaTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.SapOdpLinkedService": "Microsoft.DataFactory.SapOdpLinkedService", + "azure.mgmt.datafactory.models.SapOdpLinkedServiceTypeProperties": "Microsoft.DataFactory.SapOdpLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SapOdpResourceDataset": "Microsoft.DataFactory.SapOdpResourceDataset", + "azure.mgmt.datafactory.models.SapOdpResourceDatasetTypeProperties": "Microsoft.DataFactory.SapOdpResourceDatasetTypeProperties", + "azure.mgmt.datafactory.models.SapOdpSource": "Microsoft.DataFactory.SapOdpSource", + "azure.mgmt.datafactory.models.SapOpenHubLinkedService": "Microsoft.DataFactory.SapOpenHubLinkedService", + "azure.mgmt.datafactory.models.SapOpenHubLinkedServiceTypeProperties": "Microsoft.DataFactory.SapOpenHubLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SapOpenHubSource": "Microsoft.DataFactory.SapOpenHubSource", + "azure.mgmt.datafactory.models.SapOpenHubTableDataset": "Microsoft.DataFactory.SapOpenHubTableDataset", + "azure.mgmt.datafactory.models.SapOpenHubTableDatasetTypeProperties": "Microsoft.DataFactory.SapOpenHubTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.SapTableLinkedService": "Microsoft.DataFactory.SapTableLinkedService", + "azure.mgmt.datafactory.models.SapTableLinkedServiceTypeProperties": "Microsoft.DataFactory.SapTableLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SapTablePartitionSettings": "Microsoft.DataFactory.SapTablePartitionSettings", + "azure.mgmt.datafactory.models.SapTableResourceDataset": "Microsoft.DataFactory.SapTableResourceDataset", + "azure.mgmt.datafactory.models.SapTableResourceDatasetTypeProperties": "Microsoft.DataFactory.SapTableResourceDatasetTypeProperties", + "azure.mgmt.datafactory.models.SapTableSource": "Microsoft.DataFactory.SapTableSource", + "azure.mgmt.datafactory.models.ScheduleTrigger": "Microsoft.DataFactory.ScheduleTrigger", + "azure.mgmt.datafactory.models.ScheduleTriggerRecurrence": "Microsoft.DataFactory.ScheduleTriggerRecurrence", + "azure.mgmt.datafactory.models.ScheduleTriggerTypeProperties": "Microsoft.DataFactory.ScheduleTriggerTypeProperties", + "azure.mgmt.datafactory.models.ScriptAction": "Microsoft.DataFactory.ScriptAction", + "azure.mgmt.datafactory.models.ScriptActivity": "Microsoft.DataFactory.ScriptActivity", + "azure.mgmt.datafactory.models.ScriptActivityParameter": "Microsoft.DataFactory.ScriptActivityParameter", + "azure.mgmt.datafactory.models.ScriptActivityScriptBlock": "Microsoft.DataFactory.ScriptActivityScriptBlock", + "azure.mgmt.datafactory.models.ScriptActivityTypeProperties": "Microsoft.DataFactory.ScriptActivityTypeProperties", + "azure.mgmt.datafactory.models.ScriptActivityTypePropertiesLogSettings": "Microsoft.DataFactory.ScriptActivityTypePropertiesLogSettings", + "azure.mgmt.datafactory.models.SecureInputOutputPolicy": "Microsoft.DataFactory.SecureInputOutputPolicy", + "azure.mgmt.datafactory.models.SecureString": "Microsoft.DataFactory.SecureString", + "azure.mgmt.datafactory.models.SelfDependencyTumblingWindowTriggerReference": "Microsoft.DataFactory.SelfDependencyTumblingWindowTriggerReference", + "azure.mgmt.datafactory.models.SelfHostedIntegrationRuntime": "Microsoft.DataFactory.SelfHostedIntegrationRuntime", + "azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode": "Microsoft.DataFactory.SelfHostedIntegrationRuntimeNode", + "azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeStatus": "Microsoft.DataFactory.SelfHostedIntegrationRuntimeStatus", + "azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeStatusTypeProperties": "Microsoft.DataFactory.SelfHostedIntegrationRuntimeStatusTypeProperties", + "azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeTypeProperties": "Microsoft.DataFactory.SelfHostedIntegrationRuntimeTypeProperties", + "azure.mgmt.datafactory.models.ServiceNowLinkedService": "Microsoft.DataFactory.ServiceNowLinkedService", + "azure.mgmt.datafactory.models.ServiceNowLinkedServiceTypeProperties": "Microsoft.DataFactory.ServiceNowLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.ServiceNowObjectDataset": "Microsoft.DataFactory.ServiceNowObjectDataset", + "azure.mgmt.datafactory.models.ServiceNowSource": "Microsoft.DataFactory.ServiceNowSource", + "azure.mgmt.datafactory.models.ServiceNowV2DatasetTypeProperties": "Microsoft.DataFactory.ServiceNowV2DatasetTypeProperties", + "azure.mgmt.datafactory.models.ServiceNowV2LinkedService": "Microsoft.DataFactory.ServiceNowV2LinkedService", + "azure.mgmt.datafactory.models.ServiceNowV2LinkedServiceTypeProperties": "Microsoft.DataFactory.ServiceNowV2LinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.ServiceNowV2ObjectDataset": "Microsoft.DataFactory.ServiceNowV2ObjectDataset", + "azure.mgmt.datafactory.models.ServiceNowV2Source": "Microsoft.DataFactory.ServiceNowV2Source", + "azure.mgmt.datafactory.models.ServicePrincipalCredential": "Microsoft.DataFactory.ServicePrincipalCredential", + "azure.mgmt.datafactory.models.ServicePrincipalCredentialTypeProperties": "Microsoft.DataFactory.ServicePrincipalCredentialTypeProperties", + "azure.mgmt.datafactory.models.SetVariableActivity": "Microsoft.DataFactory.SetVariableActivity", + "azure.mgmt.datafactory.models.SetVariableActivityTypeProperties": "Microsoft.DataFactory.SetVariableActivityTypeProperties", + "azure.mgmt.datafactory.models.SftpLocation": "Microsoft.DataFactory.SftpLocation", + "azure.mgmt.datafactory.models.SftpReadSettings": "Microsoft.DataFactory.SftpReadSettings", + "azure.mgmt.datafactory.models.SftpServerLinkedService": "Microsoft.DataFactory.SftpServerLinkedService", + "azure.mgmt.datafactory.models.SftpServerLinkedServiceTypeProperties": "Microsoft.DataFactory.SftpServerLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SftpWriteSettings": "Microsoft.DataFactory.SftpWriteSettings", + "azure.mgmt.datafactory.models.SharePointOnlineListDatasetTypeProperties": "Microsoft.DataFactory.SharePointOnlineListDatasetTypeProperties", + "azure.mgmt.datafactory.models.SharePointOnlineListLinkedService": "Microsoft.DataFactory.SharePointOnlineListLinkedService", + "azure.mgmt.datafactory.models.SharePointOnlineListLinkedServiceTypeProperties": "Microsoft.DataFactory.SharePointOnlineListLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SharePointOnlineListResourceDataset": "Microsoft.DataFactory.SharePointOnlineListResourceDataset", + "azure.mgmt.datafactory.models.SharePointOnlineListSource": "Microsoft.DataFactory.SharePointOnlineListSource", + "azure.mgmt.datafactory.models.ShopifyLinkedService": "Microsoft.DataFactory.ShopifyLinkedService", + "azure.mgmt.datafactory.models.ShopifyLinkedServiceTypeProperties": "Microsoft.DataFactory.ShopifyLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.ShopifyObjectDataset": "Microsoft.DataFactory.ShopifyObjectDataset", + "azure.mgmt.datafactory.models.ShopifySource": "Microsoft.DataFactory.ShopifySource", + "azure.mgmt.datafactory.models.SkipErrorFile": "Microsoft.DataFactory.SkipErrorFile", + "azure.mgmt.datafactory.models.SmartsheetLinkedService": "Microsoft.DataFactory.SmartsheetLinkedService", + "azure.mgmt.datafactory.models.SmartsheetLinkedServiceTypeProperties": "Microsoft.DataFactory.SmartsheetLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SnowflakeDataset": "Microsoft.DataFactory.SnowflakeDataset", + "azure.mgmt.datafactory.models.SnowflakeDatasetTypeProperties": "Microsoft.DataFactory.SnowflakeDatasetTypeProperties", + "azure.mgmt.datafactory.models.SnowflakeExportCopyCommand": "Microsoft.DataFactory.SnowflakeExportCopyCommand", + "azure.mgmt.datafactory.models.SnowflakeImportCopyCommand": "Microsoft.DataFactory.SnowflakeImportCopyCommand", + "azure.mgmt.datafactory.models.SnowflakeLinkedService": "Microsoft.DataFactory.SnowflakeLinkedService", + "azure.mgmt.datafactory.models.SnowflakeLinkedServiceTypeProperties": "Microsoft.DataFactory.SnowflakeLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SnowflakeLinkedV2ServiceTypeProperties": "Microsoft.DataFactory.SnowflakeLinkedV2ServiceTypeProperties", + "azure.mgmt.datafactory.models.SnowflakeSink": "Microsoft.DataFactory.SnowflakeSink", + "azure.mgmt.datafactory.models.SnowflakeSource": "Microsoft.DataFactory.SnowflakeSource", + "azure.mgmt.datafactory.models.SnowflakeV2Dataset": "Microsoft.DataFactory.SnowflakeV2Dataset", + "azure.mgmt.datafactory.models.SnowflakeV2LinkedService": "Microsoft.DataFactory.SnowflakeV2LinkedService", + "azure.mgmt.datafactory.models.SnowflakeV2Sink": "Microsoft.DataFactory.SnowflakeV2Sink", + "azure.mgmt.datafactory.models.SnowflakeV2Source": "Microsoft.DataFactory.SnowflakeV2Source", + "azure.mgmt.datafactory.models.SparkConfigurationParametrizationReference": "Microsoft.DataFactory.SparkConfigurationParametrizationReference", + "azure.mgmt.datafactory.models.SparkDatasetTypeProperties": "Microsoft.DataFactory.SparkDatasetTypeProperties", + "azure.mgmt.datafactory.models.SparkLinkedService": "Microsoft.DataFactory.SparkLinkedService", + "azure.mgmt.datafactory.models.SparkLinkedServiceTypeProperties": "Microsoft.DataFactory.SparkLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SparkObjectDataset": "Microsoft.DataFactory.SparkObjectDataset", + "azure.mgmt.datafactory.models.SparkSource": "Microsoft.DataFactory.SparkSource", + "azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties": "Microsoft.DataFactory.SqlAlwaysEncryptedProperties", + "azure.mgmt.datafactory.models.SqlDWSink": "Microsoft.DataFactory.SqlDWSink", + "azure.mgmt.datafactory.models.SqlDWSource": "Microsoft.DataFactory.SqlDWSource", + "azure.mgmt.datafactory.models.SqlDWUpsertSettings": "Microsoft.DataFactory.SqlDWUpsertSettings", + "azure.mgmt.datafactory.models.SqlMISink": "Microsoft.DataFactory.SqlMISink", + "azure.mgmt.datafactory.models.SqlMISource": "Microsoft.DataFactory.SqlMISource", + "azure.mgmt.datafactory.models.SqlPartitionSettings": "Microsoft.DataFactory.SqlPartitionSettings", + "azure.mgmt.datafactory.models.SqlServerLinkedService": "Microsoft.DataFactory.SqlServerLinkedService", + "azure.mgmt.datafactory.models.SqlServerLinkedServiceTypeProperties": "Microsoft.DataFactory.SqlServerLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SqlServerSink": "Microsoft.DataFactory.SqlServerSink", + "azure.mgmt.datafactory.models.SqlServerSource": "Microsoft.DataFactory.SqlServerSource", + "azure.mgmt.datafactory.models.SqlServerStoredProcedureActivity": "Microsoft.DataFactory.SqlServerStoredProcedureActivity", + "azure.mgmt.datafactory.models.SqlServerStoredProcedureActivityTypeProperties": "Microsoft.DataFactory.SqlServerStoredProcedureActivityTypeProperties", + "azure.mgmt.datafactory.models.SqlServerTableDataset": "Microsoft.DataFactory.SqlServerTableDataset", + "azure.mgmt.datafactory.models.SqlServerTableDatasetTypeProperties": "Microsoft.DataFactory.SqlServerTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.SqlSink": "Microsoft.DataFactory.SqlSink", + "azure.mgmt.datafactory.models.SqlSource": "Microsoft.DataFactory.SqlSource", + "azure.mgmt.datafactory.models.SqlUpsertSettings": "Microsoft.DataFactory.SqlUpsertSettings", + "azure.mgmt.datafactory.models.SquareLinkedService": "Microsoft.DataFactory.SquareLinkedService", + "azure.mgmt.datafactory.models.SquareLinkedServiceTypeProperties": "Microsoft.DataFactory.SquareLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SquareObjectDataset": "Microsoft.DataFactory.SquareObjectDataset", + "azure.mgmt.datafactory.models.SquareSource": "Microsoft.DataFactory.SquareSource", + "azure.mgmt.datafactory.models.SSISAccessCredential": "Microsoft.DataFactory.SSISAccessCredential", + "azure.mgmt.datafactory.models.SSISChildPackage": "Microsoft.DataFactory.SSISChildPackage", + "azure.mgmt.datafactory.models.SsisObjectMetadata": "Microsoft.DataFactory.SsisObjectMetadata", + "azure.mgmt.datafactory.models.SsisEnvironment": "Microsoft.DataFactory.SsisEnvironment", + "azure.mgmt.datafactory.models.SsisEnvironmentReference": "Microsoft.DataFactory.SsisEnvironmentReference", + "azure.mgmt.datafactory.models.SSISExecutionCredential": "Microsoft.DataFactory.SSISExecutionCredential", + "azure.mgmt.datafactory.models.SSISExecutionParameter": "Microsoft.DataFactory.SSISExecutionParameter", + "azure.mgmt.datafactory.models.SsisFolder": "Microsoft.DataFactory.SsisFolder", + "azure.mgmt.datafactory.models.SSISLogLocation": "Microsoft.DataFactory.SSISLogLocation", + "azure.mgmt.datafactory.models.SSISLogLocationTypeProperties": "Microsoft.DataFactory.SSISLogLocationTypeProperties", + "azure.mgmt.datafactory.models.SsisObjectMetadataListResponse": "Microsoft.DataFactory.SsisObjectMetadataListResponse", + "azure.mgmt.datafactory.models.SsisObjectMetadataStatusResponse": "Microsoft.DataFactory.SsisObjectMetadataStatusResponse", + "azure.mgmt.datafactory.models.SsisPackage": "Microsoft.DataFactory.SsisPackage", + "azure.mgmt.datafactory.models.SSISPackageLocation": "Microsoft.DataFactory.SSISPackageLocation", + "azure.mgmt.datafactory.models.SSISPackageLocationTypeProperties": "Microsoft.DataFactory.SSISPackageLocationTypeProperties", + "azure.mgmt.datafactory.models.SsisParameter": "Microsoft.DataFactory.SsisParameter", + "azure.mgmt.datafactory.models.SsisProject": "Microsoft.DataFactory.SsisProject", + "azure.mgmt.datafactory.models.SSISPropertyOverride": "Microsoft.DataFactory.SSISPropertyOverride", + "azure.mgmt.datafactory.models.SsisVariable": "Microsoft.DataFactory.SsisVariable", + "azure.mgmt.datafactory.models.StagingSettings": "Microsoft.DataFactory.StagingSettings", + "azure.mgmt.datafactory.models.SwitchActivity": "Microsoft.DataFactory.SwitchActivity", + "azure.mgmt.datafactory.models.SwitchActivityTypeProperties": "Microsoft.DataFactory.SwitchActivityTypeProperties", + "azure.mgmt.datafactory.models.SwitchCase": "Microsoft.DataFactory.SwitchCase", + "azure.mgmt.datafactory.models.SybaseLinkedService": "Microsoft.DataFactory.SybaseLinkedService", + "azure.mgmt.datafactory.models.SybaseLinkedServiceTypeProperties": "Microsoft.DataFactory.SybaseLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.SybaseSource": "Microsoft.DataFactory.SybaseSource", + "azure.mgmt.datafactory.models.SybaseTableDataset": "Microsoft.DataFactory.SybaseTableDataset", + "azure.mgmt.datafactory.models.SybaseTableDatasetTypeProperties": "Microsoft.DataFactory.SybaseTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.SynapseNotebookActivity": "Microsoft.DataFactory.SynapseNotebookActivity", + "azure.mgmt.datafactory.models.SynapseNotebookActivityTypeProperties": "Microsoft.DataFactory.SynapseNotebookActivityTypeProperties", + "azure.mgmt.datafactory.models.SynapseNotebookReference": "Microsoft.DataFactory.SynapseNotebookReference", + "azure.mgmt.datafactory.models.SynapseSparkJobActivityTypeProperties": "Microsoft.DataFactory.SynapseSparkJobActivityTypeProperties", + "azure.mgmt.datafactory.models.SynapseSparkJobDefinitionActivity": "Microsoft.DataFactory.SynapseSparkJobDefinitionActivity", + "azure.mgmt.datafactory.models.SynapseSparkJobReference": "Microsoft.DataFactory.SynapseSparkJobReference", + "azure.mgmt.datafactory.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData", + "azure.mgmt.datafactory.models.TarGZipReadSettings": "Microsoft.DataFactory.TarGZipReadSettings", + "azure.mgmt.datafactory.models.TarReadSettings": "Microsoft.DataFactory.TarReadSettings", + "azure.mgmt.datafactory.models.TeamDeskLinkedService": "Microsoft.DataFactory.TeamDeskLinkedService", + "azure.mgmt.datafactory.models.TeamDeskLinkedServiceTypeProperties": "Microsoft.DataFactory.TeamDeskLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.TeradataImportCommand": "Microsoft.DataFactory.TeradataImportCommand", + "azure.mgmt.datafactory.models.TeradataLinkedService": "Microsoft.DataFactory.TeradataLinkedService", + "azure.mgmt.datafactory.models.TeradataLinkedServiceTypeProperties": "Microsoft.DataFactory.TeradataLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.TeradataPartitionSettings": "Microsoft.DataFactory.TeradataPartitionSettings", + "azure.mgmt.datafactory.models.TeradataSink": "Microsoft.DataFactory.TeradataSink", + "azure.mgmt.datafactory.models.TeradataSource": "Microsoft.DataFactory.TeradataSource", + "azure.mgmt.datafactory.models.TeradataTableDataset": "Microsoft.DataFactory.TeradataTableDataset", + "azure.mgmt.datafactory.models.TeradataTableDatasetTypeProperties": "Microsoft.DataFactory.TeradataTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.TextFormat": "Microsoft.DataFactory.TextFormat", + "azure.mgmt.datafactory.models.TriggerDependencyReference": "Microsoft.DataFactory.TriggerDependencyReference", + "azure.mgmt.datafactory.models.TriggerFilterParameters": "Microsoft.DataFactory.TriggerFilterParameters", + "azure.mgmt.datafactory.models.TriggerPipelineReference": "Microsoft.DataFactory.TriggerPipelineReference", + "azure.mgmt.datafactory.models.TriggerQueryResponse": "Microsoft.DataFactory.TriggerQueryResponse", + "azure.mgmt.datafactory.models.TriggerReference": "Microsoft.DataFactory.TriggerReference", + "azure.mgmt.datafactory.models.TriggerResource": "Microsoft.DataFactory.TriggerResource", + "azure.mgmt.datafactory.models.TriggerRun": "Microsoft.DataFactory.TriggerRun", + "azure.mgmt.datafactory.models.TriggerRunsQueryResponse": "Microsoft.DataFactory.TriggerRunsQueryResponse", + "azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus": "Microsoft.DataFactory.TriggerSubscriptionOperationStatus", + "azure.mgmt.datafactory.models.TumblingWindowTrigger": "Microsoft.DataFactory.TumblingWindowTrigger", + "azure.mgmt.datafactory.models.TumblingWindowTriggerDependencyReference": "Microsoft.DataFactory.TumblingWindowTriggerDependencyReference", + "azure.mgmt.datafactory.models.TumblingWindowTriggerTypeProperties": "Microsoft.DataFactory.TumblingWindowTriggerTypeProperties", + "azure.mgmt.datafactory.models.TwilioLinkedService": "Microsoft.DataFactory.TwilioLinkedService", + "azure.mgmt.datafactory.models.TwilioLinkedServiceTypeProperties": "Microsoft.DataFactory.TwilioLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.UntilActivity": "Microsoft.DataFactory.UntilActivity", + "azure.mgmt.datafactory.models.UntilActivityTypeProperties": "Microsoft.DataFactory.UntilActivityTypeProperties", + "azure.mgmt.datafactory.models.UpdateIntegrationRuntimeNodeRequest": "Microsoft.DataFactory.UpdateIntegrationRuntimeNodeRequest", + "azure.mgmt.datafactory.models.UpdateIntegrationRuntimeRequest": "Microsoft.DataFactory.UpdateIntegrationRuntimeRequest", + "azure.mgmt.datafactory.models.UserAccessPolicy": "Microsoft.DataFactory.UserAccessPolicy", + "azure.mgmt.datafactory.models.UserProperty": "Microsoft.DataFactory.UserProperty", + "azure.mgmt.datafactory.models.ValidationActivity": "Microsoft.DataFactory.ValidationActivity", + "azure.mgmt.datafactory.models.ValidationActivityTypeProperties": "Microsoft.DataFactory.ValidationActivityTypeProperties", + "azure.mgmt.datafactory.models.VariableSpecification": "Microsoft.DataFactory.VariableSpecification", + "azure.mgmt.datafactory.models.VerticaDatasetTypeProperties": "Microsoft.DataFactory.VerticaDatasetTypeProperties", + "azure.mgmt.datafactory.models.VerticaLinkedService": "Microsoft.DataFactory.VerticaLinkedService", + "azure.mgmt.datafactory.models.VerticaLinkedServiceTypeProperties": "Microsoft.DataFactory.VerticaLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.VerticaSource": "Microsoft.DataFactory.VerticaSource", + "azure.mgmt.datafactory.models.VerticaTableDataset": "Microsoft.DataFactory.VerticaTableDataset", + "azure.mgmt.datafactory.models.WaitActivity": "Microsoft.DataFactory.WaitActivity", + "azure.mgmt.datafactory.models.WaitActivityTypeProperties": "Microsoft.DataFactory.WaitActivityTypeProperties", + "azure.mgmt.datafactory.models.WarehouseLinkedService": "Microsoft.DataFactory.WarehouseLinkedService", + "azure.mgmt.datafactory.models.WarehouseLinkedServiceTypeProperties": "Microsoft.DataFactory.WarehouseLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.WarehouseSink": "Microsoft.DataFactory.WarehouseSink", + "azure.mgmt.datafactory.models.WarehouseSource": "Microsoft.DataFactory.WarehouseSource", + "azure.mgmt.datafactory.models.WarehouseTableDataset": "Microsoft.DataFactory.WarehouseTableDataset", + "azure.mgmt.datafactory.models.WarehouseTableDatasetTypeProperties": "Microsoft.DataFactory.WarehouseTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.WebActivity": "Microsoft.DataFactory.WebActivity", + "azure.mgmt.datafactory.models.WebActivityAuthentication": "Microsoft.DataFactory.WebActivityAuthentication", + "azure.mgmt.datafactory.models.WebActivityTypeProperties": "Microsoft.DataFactory.WebActivityTypeProperties", + "azure.mgmt.datafactory.models.WebLinkedServiceTypeProperties": "Microsoft.DataFactory.WebLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.WebAnonymousAuthentication": "Microsoft.DataFactory.WebAnonymousAuthentication", + "azure.mgmt.datafactory.models.WebBasicAuthentication": "Microsoft.DataFactory.WebBasicAuthentication", + "azure.mgmt.datafactory.models.WebClientCertificateAuthentication": "Microsoft.DataFactory.WebClientCertificateAuthentication", + "azure.mgmt.datafactory.models.WebHookActivity": "Microsoft.DataFactory.WebHookActivity", + "azure.mgmt.datafactory.models.WebHookActivityTypeProperties": "Microsoft.DataFactory.WebHookActivityTypeProperties", + "azure.mgmt.datafactory.models.WebLinkedService": "Microsoft.DataFactory.WebLinkedService", + "azure.mgmt.datafactory.models.WebSource": "Microsoft.DataFactory.WebSource", + "azure.mgmt.datafactory.models.WebTableDataset": "Microsoft.DataFactory.WebTableDataset", + "azure.mgmt.datafactory.models.WebTableDatasetTypeProperties": "Microsoft.DataFactory.WebTableDatasetTypeProperties", + "azure.mgmt.datafactory.models.WranglingDataFlow": "Microsoft.DataFactory.WranglingDataFlow", + "azure.mgmt.datafactory.models.XeroLinkedService": "Microsoft.DataFactory.XeroLinkedService", + "azure.mgmt.datafactory.models.XeroLinkedServiceTypeProperties": "Microsoft.DataFactory.XeroLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.XeroObjectDataset": "Microsoft.DataFactory.XeroObjectDataset", + "azure.mgmt.datafactory.models.XeroSource": "Microsoft.DataFactory.XeroSource", + "azure.mgmt.datafactory.models.XmlDataset": "Microsoft.DataFactory.XmlDataset", + "azure.mgmt.datafactory.models.XmlDatasetTypeProperties": "Microsoft.DataFactory.XmlDatasetTypeProperties", + "azure.mgmt.datafactory.models.XmlReadSettings": "Microsoft.DataFactory.XmlReadSettings", + "azure.mgmt.datafactory.models.XmlSource": "Microsoft.DataFactory.XmlSource", + "azure.mgmt.datafactory.models.ZendeskLinkedService": "Microsoft.DataFactory.ZendeskLinkedService", + "azure.mgmt.datafactory.models.ZendeskLinkedServiceTypeProperties": "Microsoft.DataFactory.ZendeskLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.ZipDeflateReadSettings": "Microsoft.DataFactory.ZipDeflateReadSettings", + "azure.mgmt.datafactory.models.ZohoLinkedService": "Microsoft.DataFactory.ZohoLinkedService", + "azure.mgmt.datafactory.models.ZohoLinkedServiceTypeProperties": "Microsoft.DataFactory.ZohoLinkedServiceTypeProperties", + "azure.mgmt.datafactory.models.ZohoObjectDataset": "Microsoft.DataFactory.ZohoObjectDataset", + "azure.mgmt.datafactory.models.ZohoSource": "Microsoft.DataFactory.ZohoSource", + "azure.mgmt.datafactory.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType", + "azure.mgmt.datafactory.models.GlobalParameterType": "Microsoft.DataFactory.GlobalParameterType", + "azure.mgmt.datafactory.models.PublicNetworkAccess": "Microsoft.DataFactory.PublicNetworkAccess", + "azure.mgmt.datafactory.models.FactoryIdentityType": "Microsoft.DataFactory.FactoryIdentityType", + "azure.mgmt.datafactory.models.RunQueryFilterOperand": "Microsoft.DataFactory.RunQueryFilterOperand", + "azure.mgmt.datafactory.models.RunQueryFilterOperator": "Microsoft.DataFactory.RunQueryFilterOperator", + "azure.mgmt.datafactory.models.RunQueryOrderByField": "Microsoft.DataFactory.RunQueryOrderByField", + "azure.mgmt.datafactory.models.RunQueryOrder": "Microsoft.DataFactory.RunQueryOrder", + "azure.mgmt.datafactory.models.TriggerRuntimeState": "Microsoft.DataFactory.TriggerRuntimeState", + "azure.mgmt.datafactory.models.PipelineReferenceType": "Microsoft.DataFactory.PipelineReferenceType", + "azure.mgmt.datafactory.models.Type": "Microsoft.DataFactory.Type", + "azure.mgmt.datafactory.models.RecurrenceFrequency": "Microsoft.DataFactory.RecurrenceFrequency", + "azure.mgmt.datafactory.models.DaysOfWeek": "Microsoft.DataFactory.DaysOfWeek", + "azure.mgmt.datafactory.models.DayOfWeek": "Microsoft.DataFactory.DayOfWeek", + "azure.mgmt.datafactory.models.BlobEventTypes": "Microsoft.DataFactory.BlobEventTypes", + "azure.mgmt.datafactory.models.TumblingWindowFrequency": "Microsoft.DataFactory.TumblingWindowFrequency", + "azure.mgmt.datafactory.models.TriggerReferenceType": "Microsoft.DataFactory.TriggerReferenceType", + "azure.mgmt.datafactory.models.EventSubscriptionStatus": "Microsoft.DataFactory.EventSubscriptionStatus", + "azure.mgmt.datafactory.models.TriggerRunStatus": "Microsoft.DataFactory.TriggerRunStatus", + "azure.mgmt.datafactory.models.IntegrationRuntimeType": "Microsoft.DataFactory.IntegrationRuntimeType", + "azure.mgmt.datafactory.models.IntegrationRuntimeState": "Microsoft.DataFactory.IntegrationRuntimeState", + "azure.mgmt.datafactory.models.DataFlowComputeType": "Microsoft.DataFactory.DataFlowComputeType", + "azure.mgmt.datafactory.models.IntegrationRuntimeSsisCatalogPricingTier": "Microsoft.DataFactory.IntegrationRuntimeSsisCatalogPricingTier", + "azure.mgmt.datafactory.models.IntegrationRuntimeLicenseType": "Microsoft.DataFactory.IntegrationRuntimeLicenseType", + "azure.mgmt.datafactory.models.IntegrationRuntimeEntityReferenceType": "Microsoft.DataFactory.IntegrationRuntimeEntityReferenceType", + "azure.mgmt.datafactory.models.IntegrationRuntimeEdition": "Microsoft.DataFactory.IntegrationRuntimeEdition", + "azure.mgmt.datafactory.models.CredentialReferenceType": "Microsoft.DataFactory.CredentialReferenceType", + "azure.mgmt.datafactory.models.InteractiveCapabilityStatus": "Microsoft.DataFactory.InteractiveCapabilityStatus", + "azure.mgmt.datafactory.models.ManagedVirtualNetworkReferenceType": "Microsoft.DataFactory.ManagedVirtualNetworkReferenceType", + "azure.mgmt.datafactory.models.DatasetReferenceType": "Microsoft.DataFactory.DatasetReferenceType", + "azure.mgmt.datafactory.models.DataFlowReferenceType": "Microsoft.DataFactory.DataFlowReferenceType", + "azure.mgmt.datafactory.models.ParameterType": "Microsoft.DataFactory.ParameterType", + "azure.mgmt.datafactory.models.ValueType": "Microsoft.DataFactory.ValueType", + "azure.mgmt.datafactory.models.IntegrationRuntimeReferenceType": "Microsoft.DataFactory.IntegrationRuntimeReferenceType", + "azure.mgmt.datafactory.models.AmazonRdsForOracleAuthenticationType": "Microsoft.DataFactory.AmazonRdsForOracleAuthenticationType", + "azure.mgmt.datafactory.models.AmazonRdsForSqlAuthenticationType": "Microsoft.DataFactory.AmazonRdsForSqlAuthenticationType", + "azure.mgmt.datafactory.models.SqlAlwaysEncryptedAkvAuthType": "Microsoft.DataFactory.SqlAlwaysEncryptedAkvAuthType", + "azure.mgmt.datafactory.models.AzureStorageAuthenticationType": "Microsoft.DataFactory.AzureStorageAuthenticationType", + "azure.mgmt.datafactory.models.AzureSqlDWAuthenticationType": "Microsoft.DataFactory.AzureSqlDWAuthenticationType", + "azure.mgmt.datafactory.models.AzureSqlDatabaseAuthenticationType": "Microsoft.DataFactory.AzureSqlDatabaseAuthenticationType", + "azure.mgmt.datafactory.models.AzureSqlMIAuthenticationType": "Microsoft.DataFactory.AzureSqlMIAuthenticationType", + "azure.mgmt.datafactory.models.CosmosDbConnectionMode": "Microsoft.DataFactory.CosmosDbConnectionMode", + "azure.mgmt.datafactory.models.Db2AuthenticationType": "Microsoft.DataFactory.Db2AuthenticationType", + "azure.mgmt.datafactory.models.FtpAuthenticationType": "Microsoft.DataFactory.FtpAuthenticationType", + "azure.mgmt.datafactory.models.GoogleAdWordsAuthenticationType": "Microsoft.DataFactory.GoogleAdWordsAuthenticationType", + "azure.mgmt.datafactory.models.GoogleBigQueryAuthenticationType": "Microsoft.DataFactory.GoogleBigQueryAuthenticationType", + "azure.mgmt.datafactory.models.GoogleBigQueryV2AuthenticationType": "Microsoft.DataFactory.GoogleBigQueryV2AuthenticationType", + "azure.mgmt.datafactory.models.GreenplumAuthenticationType": "Microsoft.DataFactory.GreenplumAuthenticationType", + "azure.mgmt.datafactory.models.HBaseAuthenticationType": "Microsoft.DataFactory.HBaseAuthenticationType", + "azure.mgmt.datafactory.models.HDInsightClusterAuthenticationType": "Microsoft.DataFactory.HDInsightClusterAuthenticationType", + "azure.mgmt.datafactory.models.HDInsightOndemandClusterResourceGroupAuthenticationType": "Microsoft.DataFactory.HDInsightOndemandClusterResourceGroupAuthenticationType", + "azure.mgmt.datafactory.models.HiveServerType": "Microsoft.DataFactory.HiveServerType", + "azure.mgmt.datafactory.models.HiveThriftTransportProtocol": "Microsoft.DataFactory.HiveThriftTransportProtocol", + "azure.mgmt.datafactory.models.HiveAuthenticationType": "Microsoft.DataFactory.HiveAuthenticationType", + "azure.mgmt.datafactory.models.HttpAuthenticationType": "Microsoft.DataFactory.HttpAuthenticationType", + "azure.mgmt.datafactory.models.ImpalaAuthenticationType": "Microsoft.DataFactory.ImpalaAuthenticationType", + "azure.mgmt.datafactory.models.ImpalaThriftTransportProtocol": "Microsoft.DataFactory.ImpalaThriftTransportProtocol", + "azure.mgmt.datafactory.models.LakehouseAuthenticationType": "Microsoft.DataFactory.LakehouseAuthenticationType", + "azure.mgmt.datafactory.models.MongoDbAuthenticationType": "Microsoft.DataFactory.MongoDbAuthenticationType", + "azure.mgmt.datafactory.models.NetezzaSecurityLevelType": "Microsoft.DataFactory.NetezzaSecurityLevelType", + "azure.mgmt.datafactory.models.ODataAuthenticationType": "Microsoft.DataFactory.ODataAuthenticationType", + "azure.mgmt.datafactory.models.ODataAadServicePrincipalCredentialType": "Microsoft.DataFactory.ODataAadServicePrincipalCredentialType", + "azure.mgmt.datafactory.models.OracleAuthenticationType": "Microsoft.DataFactory.OracleAuthenticationType", + "azure.mgmt.datafactory.models.PhoenixAuthenticationType": "Microsoft.DataFactory.PhoenixAuthenticationType", + "azure.mgmt.datafactory.models.PrestoAuthenticationType": "Microsoft.DataFactory.PrestoAuthenticationType", + "azure.mgmt.datafactory.models.RestServiceAuthenticationType": "Microsoft.DataFactory.RestServiceAuthenticationType", + "azure.mgmt.datafactory.models.SapHanaAuthenticationType": "Microsoft.DataFactory.SapHanaAuthenticationType", + "azure.mgmt.datafactory.models.ServiceNowAuthenticationType": "Microsoft.DataFactory.ServiceNowAuthenticationType", + "azure.mgmt.datafactory.models.ServiceNowV2AuthenticationType": "Microsoft.DataFactory.ServiceNowV2AuthenticationType", + "azure.mgmt.datafactory.models.SftpAuthenticationType": "Microsoft.DataFactory.SftpAuthenticationType", + "azure.mgmt.datafactory.models.SnowflakeAuthenticationType": "Microsoft.DataFactory.SnowflakeAuthenticationType", + "azure.mgmt.datafactory.models.SparkServerType": "Microsoft.DataFactory.SparkServerType", + "azure.mgmt.datafactory.models.SparkThriftTransportProtocol": "Microsoft.DataFactory.SparkThriftTransportProtocol", + "azure.mgmt.datafactory.models.SparkAuthenticationType": "Microsoft.DataFactory.SparkAuthenticationType", + "azure.mgmt.datafactory.models.SqlServerAuthenticationType": "Microsoft.DataFactory.SqlServerAuthenticationType", + "azure.mgmt.datafactory.models.SybaseAuthenticationType": "Microsoft.DataFactory.SybaseAuthenticationType", + "azure.mgmt.datafactory.models.TeamDeskAuthenticationType": "Microsoft.DataFactory.TeamDeskAuthenticationType", + "azure.mgmt.datafactory.models.TeradataAuthenticationType": "Microsoft.DataFactory.TeradataAuthenticationType", + "azure.mgmt.datafactory.models.WarehouseAuthenticationType": "Microsoft.DataFactory.WarehouseAuthenticationType", + "azure.mgmt.datafactory.models.WebAuthenticationType": "Microsoft.DataFactory.WebAuthenticationType", + "azure.mgmt.datafactory.models.ZendeskAuthenticationType": "Microsoft.DataFactory.ZendeskAuthenticationType", + "azure.mgmt.datafactory.models.DataFlowDebugCommandType": "Microsoft.DataFactory.DataFlowDebugCommandType", + "azure.mgmt.datafactory.models.IntegrationRuntimeAutoUpdate": "Microsoft.DataFactory.IntegrationRuntimeAutoUpdate", + "azure.mgmt.datafactory.models.ManagedIntegrationRuntimeNodeStatus": "Microsoft.DataFactory.ManagedIntegrationRuntimeNodeStatus", + "azure.mgmt.datafactory.models.IntegrationRuntimeInternalChannelEncryptionMode": "Microsoft.DataFactory.IntegrationRuntimeInternalChannelEncryptionMode", + "azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNodeStatus": "Microsoft.DataFactory.SelfHostedIntegrationRuntimeNodeStatus", + "azure.mgmt.datafactory.models.IntegrationRuntimeUpdateResult": "Microsoft.DataFactory.IntegrationRuntimeUpdateResult", + "azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeyName": "Microsoft.DataFactory.IntegrationRuntimeAuthKeyName", + "azure.mgmt.datafactory.models.SsisObjectMetadataType": "Microsoft.DataFactory.SsisObjectMetadataType", + "azure.mgmt.datafactory.models.ActivityState": "Microsoft.DataFactory.ActivityState", + "azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs": "Microsoft.DataFactory.ActivityOnInactiveMarkAs", + "azure.mgmt.datafactory.models.DependencyCondition": "Microsoft.DataFactory.DependencyCondition", + "azure.mgmt.datafactory.models.ExpressionType": "Microsoft.DataFactory.ExpressionType", + "azure.mgmt.datafactory.models.WebHookActivityMethod": "Microsoft.DataFactory.WebHookActivityMethod", + "azure.mgmt.datafactory.models.AzureFunctionActivityMethod": "Microsoft.DataFactory.AzureFunctionActivityMethod", + "azure.mgmt.datafactory.models.CassandraSourceReadConsistencyLevels": "Microsoft.DataFactory.CassandraSourceReadConsistencyLevels", + "azure.mgmt.datafactory.models.ExpressionV2Type": "Microsoft.DataFactory.ExpressionV2Type", + "azure.mgmt.datafactory.models.AzurePostgreSqlWriteMethodEnum": "Microsoft.DataFactory.AzurePostgreSqlWriteMethodEnum", + "azure.mgmt.datafactory.models.AzureSearchIndexWriteBehaviorType": "Microsoft.DataFactory.AzureSearchIndexWriteBehaviorType", + "azure.mgmt.datafactory.models.DynamicsSinkWriteBehavior": "Microsoft.DataFactory.DynamicsSinkWriteBehavior", + "azure.mgmt.datafactory.models.SalesforceSinkWriteBehavior": "Microsoft.DataFactory.SalesforceSinkWriteBehavior", + "azure.mgmt.datafactory.models.SalesforceV2SinkWriteBehavior": "Microsoft.DataFactory.SalesforceV2SinkWriteBehavior", + "azure.mgmt.datafactory.models.SapCloudForCustomerSinkWriteBehavior": "Microsoft.DataFactory.SapCloudForCustomerSinkWriteBehavior", + "azure.mgmt.datafactory.models.PolybaseSettingsRejectType": "Microsoft.DataFactory.PolybaseSettingsRejectType", + "azure.mgmt.datafactory.models.SsisPackageLocationType": "Microsoft.DataFactory.SsisPackageLocationType", + "azure.mgmt.datafactory.models.SsisLogLocationType": "Microsoft.DataFactory.SsisLogLocationType", + "azure.mgmt.datafactory.models.HDInsightActivityDebugInfoOption": "Microsoft.DataFactory.HDInsightActivityDebugInfoOption", + "azure.mgmt.datafactory.models.ScriptActivityParameterType": "Microsoft.DataFactory.ScriptActivityParameterType", + "azure.mgmt.datafactory.models.ScriptActivityParameterDirection": "Microsoft.DataFactory.ScriptActivityParameterDirection", + "azure.mgmt.datafactory.models.ScriptActivityLogDestination": "Microsoft.DataFactory.ScriptActivityLogDestination", + "azure.mgmt.datafactory.models.SparkJobReferenceType": "Microsoft.DataFactory.SparkJobReferenceType", + "azure.mgmt.datafactory.models.BigDataPoolReferenceType": "Microsoft.DataFactory.BigDataPoolReferenceType", + "azure.mgmt.datafactory.models.ConfigurationType": "Microsoft.DataFactory.ConfigurationType", + "azure.mgmt.datafactory.models.SparkConfigurationReferenceType": "Microsoft.DataFactory.SparkConfigurationReferenceType", + "azure.mgmt.datafactory.models.NotebookReferenceType": "Microsoft.DataFactory.NotebookReferenceType", + "azure.mgmt.datafactory.models.NotebookParameterType": "Microsoft.DataFactory.NotebookParameterType", + "azure.mgmt.datafactory.models.WebActivityMethod": "Microsoft.DataFactory.WebActivityMethod", + "azure.mgmt.datafactory.models.VariableType": "Microsoft.DataFactory.VariableType", + "azure.mgmt.datafactory.models.ConnectionType": "Microsoft.DataFactory.ConnectionType", + "azure.mgmt.datafactory.models.MappingType": "Microsoft.DataFactory.MappingType", + "azure.mgmt.datafactory.models.FrequencyType": "Microsoft.DataFactory.FrequencyType", + "azure.mgmt.datafactory.operations.Operations.list": "Azure.ResourceManager.Legacy.Operations.list", + "azure.mgmt.datafactory.aio.operations.Operations.list": "Azure.ResourceManager.Legacy.Operations.list", + "azure.mgmt.datafactory.operations.FactoriesOperations.get": "Microsoft.DataFactory.Factories.get", + "azure.mgmt.datafactory.aio.operations.FactoriesOperations.get": "Microsoft.DataFactory.Factories.get", + "azure.mgmt.datafactory.operations.FactoriesOperations.create_or_update": "Microsoft.DataFactory.Factories.createOrUpdate", + "azure.mgmt.datafactory.aio.operations.FactoriesOperations.create_or_update": "Microsoft.DataFactory.Factories.createOrUpdate", + "azure.mgmt.datafactory.operations.FactoriesOperations.update": "Microsoft.DataFactory.Factories.update", + "azure.mgmt.datafactory.aio.operations.FactoriesOperations.update": "Microsoft.DataFactory.Factories.update", + "azure.mgmt.datafactory.operations.FactoriesOperations.delete": "Microsoft.DataFactory.Factories.delete", + "azure.mgmt.datafactory.aio.operations.FactoriesOperations.delete": "Microsoft.DataFactory.Factories.delete", + "azure.mgmt.datafactory.operations.FactoriesOperations.list_by_resource_group": "Microsoft.DataFactory.Factories.listByResourceGroup", + "azure.mgmt.datafactory.aio.operations.FactoriesOperations.list_by_resource_group": "Microsoft.DataFactory.Factories.listByResourceGroup", + "azure.mgmt.datafactory.operations.FactoriesOperations.list": "Microsoft.DataFactory.Factories.list", + "azure.mgmt.datafactory.aio.operations.FactoriesOperations.list": "Microsoft.DataFactory.Factories.list", + "azure.mgmt.datafactory.operations.FactoriesOperations.get_git_hub_access_token": "Microsoft.DataFactory.Factories.getGitHubAccessToken", + "azure.mgmt.datafactory.aio.operations.FactoriesOperations.get_git_hub_access_token": "Microsoft.DataFactory.Factories.getGitHubAccessToken", + "azure.mgmt.datafactory.operations.FactoriesOperations.get_data_plane_access": "Microsoft.DataFactory.Factories.getDataPlaneAccess", + "azure.mgmt.datafactory.aio.operations.FactoriesOperations.get_data_plane_access": "Microsoft.DataFactory.Factories.getDataPlaneAccess", + "azure.mgmt.datafactory.operations.FactoriesOperations.configure_factory_repo": "Microsoft.DataFactory.FactoriesOperationGroup.configureFactoryRepo", + "azure.mgmt.datafactory.aio.operations.FactoriesOperations.configure_factory_repo": "Microsoft.DataFactory.FactoriesOperationGroup.configureFactoryRepo", + "azure.mgmt.datafactory.operations.ExposureControlOperations.get_feature_value_by_factory": "Microsoft.DataFactory.Factories.getFeatureValueByFactory", + "azure.mgmt.datafactory.aio.operations.ExposureControlOperations.get_feature_value_by_factory": "Microsoft.DataFactory.Factories.getFeatureValueByFactory", + "azure.mgmt.datafactory.operations.ExposureControlOperations.query_feature_values_by_factory": "Microsoft.DataFactory.Factories.queryFeatureValuesByFactory", + "azure.mgmt.datafactory.aio.operations.ExposureControlOperations.query_feature_values_by_factory": "Microsoft.DataFactory.Factories.queryFeatureValuesByFactory", + "azure.mgmt.datafactory.operations.ExposureControlOperations.get_feature_value": "Microsoft.DataFactory.ExposureControlOperationGroup.getFeatureValue", + "azure.mgmt.datafactory.aio.operations.ExposureControlOperations.get_feature_value": "Microsoft.DataFactory.ExposureControlOperationGroup.getFeatureValue", + "azure.mgmt.datafactory.operations.PipelineRunsOperations.query_by_factory": "Microsoft.DataFactory.Factories.queryByFactory", + "azure.mgmt.datafactory.aio.operations.PipelineRunsOperations.query_by_factory": "Microsoft.DataFactory.Factories.queryByFactory", + "azure.mgmt.datafactory.operations.PipelineRunsOperations.get": "Microsoft.DataFactory.Factories.pipelineRunsGet", + "azure.mgmt.datafactory.aio.operations.PipelineRunsOperations.get": "Microsoft.DataFactory.Factories.pipelineRunsGet", + "azure.mgmt.datafactory.operations.PipelineRunsOperations.cancel": "Microsoft.DataFactory.Factories.cancel", + "azure.mgmt.datafactory.aio.operations.PipelineRunsOperations.cancel": "Microsoft.DataFactory.Factories.cancel", + "azure.mgmt.datafactory.operations.ActivityRunsOperations.query_by_pipeline_run": "Microsoft.DataFactory.Factories.queryByPipelineRun", + "azure.mgmt.datafactory.aio.operations.ActivityRunsOperations.query_by_pipeline_run": "Microsoft.DataFactory.Factories.queryByPipelineRun", + "azure.mgmt.datafactory.operations.TriggersOperations.query_by_factory": "Microsoft.DataFactory.Factories.triggersQueryByFactory", + "azure.mgmt.datafactory.aio.operations.TriggersOperations.query_by_factory": "Microsoft.DataFactory.Factories.triggersQueryByFactory", + "azure.mgmt.datafactory.operations.TriggersOperations.get": "Microsoft.DataFactory.TriggerResources.get", + "azure.mgmt.datafactory.aio.operations.TriggersOperations.get": "Microsoft.DataFactory.TriggerResources.get", + "azure.mgmt.datafactory.operations.TriggersOperations.create_or_update": "Microsoft.DataFactory.TriggerResources.createOrUpdate", + "azure.mgmt.datafactory.aio.operations.TriggersOperations.create_or_update": "Microsoft.DataFactory.TriggerResources.createOrUpdate", + "azure.mgmt.datafactory.operations.TriggersOperations.delete": "Microsoft.DataFactory.TriggerResources.delete", + "azure.mgmt.datafactory.aio.operations.TriggersOperations.delete": "Microsoft.DataFactory.TriggerResources.delete", + "azure.mgmt.datafactory.operations.TriggersOperations.list_by_factory": "Microsoft.DataFactory.TriggerResources.listByFactory", + "azure.mgmt.datafactory.aio.operations.TriggersOperations.list_by_factory": "Microsoft.DataFactory.TriggerResources.listByFactory", + "azure.mgmt.datafactory.operations.TriggersOperations.begin_subscribe_to_events": "Microsoft.DataFactory.TriggerResources.subscribeToEvents", + "azure.mgmt.datafactory.aio.operations.TriggersOperations.begin_subscribe_to_events": "Microsoft.DataFactory.TriggerResources.subscribeToEvents", + "azure.mgmt.datafactory.operations.TriggersOperations.get_event_subscription_status": "Microsoft.DataFactory.TriggerResources.getEventSubscriptionStatus", + "azure.mgmt.datafactory.aio.operations.TriggersOperations.get_event_subscription_status": "Microsoft.DataFactory.TriggerResources.getEventSubscriptionStatus", + "azure.mgmt.datafactory.operations.TriggersOperations.begin_unsubscribe_from_events": "Microsoft.DataFactory.TriggerResources.unsubscribeFromEvents", + "azure.mgmt.datafactory.aio.operations.TriggersOperations.begin_unsubscribe_from_events": "Microsoft.DataFactory.TriggerResources.unsubscribeFromEvents", + "azure.mgmt.datafactory.operations.TriggersOperations.begin_start": "Microsoft.DataFactory.TriggerResources.start", + "azure.mgmt.datafactory.aio.operations.TriggersOperations.begin_start": "Microsoft.DataFactory.TriggerResources.start", + "azure.mgmt.datafactory.operations.TriggersOperations.begin_stop": "Microsoft.DataFactory.TriggerResources.stop", + "azure.mgmt.datafactory.aio.operations.TriggersOperations.begin_stop": "Microsoft.DataFactory.TriggerResources.stop", + "azure.mgmt.datafactory.operations.TriggerRunsOperations.query_by_factory": "Microsoft.DataFactory.Factories.triggerRunsQueryByFactory", + "azure.mgmt.datafactory.aio.operations.TriggerRunsOperations.query_by_factory": "Microsoft.DataFactory.Factories.triggerRunsQueryByFactory", + "azure.mgmt.datafactory.operations.TriggerRunsOperations.rerun": "Microsoft.DataFactory.TriggerResources.rerun", + "azure.mgmt.datafactory.aio.operations.TriggerRunsOperations.rerun": "Microsoft.DataFactory.TriggerResources.rerun", + "azure.mgmt.datafactory.operations.TriggerRunsOperations.cancel": "Microsoft.DataFactory.TriggerResources.cancel", + "azure.mgmt.datafactory.aio.operations.TriggerRunsOperations.cancel": "Microsoft.DataFactory.TriggerResources.cancel", + "azure.mgmt.datafactory.operations.DataFlowDebugSessionOperations.begin_create": "Microsoft.DataFactory.Factories.create", + "azure.mgmt.datafactory.aio.operations.DataFlowDebugSessionOperations.begin_create": "Microsoft.DataFactory.Factories.create", + "azure.mgmt.datafactory.operations.DataFlowDebugSessionOperations.query_by_factory": "Microsoft.DataFactory.Factories.dataFlowDebugSessionQueryByFactory", + "azure.mgmt.datafactory.aio.operations.DataFlowDebugSessionOperations.query_by_factory": "Microsoft.DataFactory.Factories.dataFlowDebugSessionQueryByFactory", + "azure.mgmt.datafactory.operations.DataFlowDebugSessionOperations.add_data_flow": "Microsoft.DataFactory.Factories.addDataFlow", + "azure.mgmt.datafactory.aio.operations.DataFlowDebugSessionOperations.add_data_flow": "Microsoft.DataFactory.Factories.addDataFlow", + "azure.mgmt.datafactory.operations.DataFlowDebugSessionOperations.delete": "Microsoft.DataFactory.Factories.dataFlowDebugSessionDelete", + "azure.mgmt.datafactory.aio.operations.DataFlowDebugSessionOperations.delete": "Microsoft.DataFactory.Factories.dataFlowDebugSessionDelete", + "azure.mgmt.datafactory.operations.DataFlowDebugSessionOperations.begin_execute_command": "Microsoft.DataFactory.Factories.executeCommand", + "azure.mgmt.datafactory.aio.operations.DataFlowDebugSessionOperations.begin_execute_command": "Microsoft.DataFactory.Factories.executeCommand", + "azure.mgmt.datafactory.operations.PrivateLinkResourcesOperations.get": "Microsoft.DataFactory.Factories.privateLinkResourcesGet", + "azure.mgmt.datafactory.aio.operations.PrivateLinkResourcesOperations.get": "Microsoft.DataFactory.Factories.privateLinkResourcesGet", + "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.get": "Microsoft.DataFactory.IntegrationRuntimeResources.get", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.get": "Microsoft.DataFactory.IntegrationRuntimeResources.get", + "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.create_or_update": "Microsoft.DataFactory.IntegrationRuntimeResources.createOrUpdate", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.create_or_update": "Microsoft.DataFactory.IntegrationRuntimeResources.createOrUpdate", + "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.update": "Microsoft.DataFactory.IntegrationRuntimeResources.update", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.update": "Microsoft.DataFactory.IntegrationRuntimeResources.update", + "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.delete": "Microsoft.DataFactory.IntegrationRuntimeResources.delete", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.delete": "Microsoft.DataFactory.IntegrationRuntimeResources.delete", + "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.list_by_factory": "Microsoft.DataFactory.IntegrationRuntimeResources.listByFactory", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.list_by_factory": "Microsoft.DataFactory.IntegrationRuntimeResources.listByFactory", + "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.get_status": "Microsoft.DataFactory.IntegrationRuntimeResources.getStatus", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.get_status": "Microsoft.DataFactory.IntegrationRuntimeResources.getStatus", + "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.list_outbound_network_dependencies_endpoints": "Microsoft.DataFactory.IntegrationRuntimeResources.listOutboundNetworkDependenciesEndpoints", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.list_outbound_network_dependencies_endpoints": "Microsoft.DataFactory.IntegrationRuntimeResources.listOutboundNetworkDependenciesEndpoints", + "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.get_connection_info": "Microsoft.DataFactory.IntegrationRuntimeResources.getConnectionInfo", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.get_connection_info": "Microsoft.DataFactory.IntegrationRuntimeResources.getConnectionInfo", + "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.regenerate_auth_key": "Microsoft.DataFactory.IntegrationRuntimeResources.regenerateAuthKey", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.regenerate_auth_key": "Microsoft.DataFactory.IntegrationRuntimeResources.regenerateAuthKey", + "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.list_auth_keys": "Microsoft.DataFactory.IntegrationRuntimeResources.listAuthKeys", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.list_auth_keys": "Microsoft.DataFactory.IntegrationRuntimeResources.listAuthKeys", + "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.begin_start": "Microsoft.DataFactory.IntegrationRuntimeResources.start", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.begin_start": "Microsoft.DataFactory.IntegrationRuntimeResources.start", + "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.begin_stop": "Microsoft.DataFactory.IntegrationRuntimeResources.stop", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.begin_stop": "Microsoft.DataFactory.IntegrationRuntimeResources.stop", + "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.sync_credentials": "Microsoft.DataFactory.IntegrationRuntimeResources.syncCredentials", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.sync_credentials": "Microsoft.DataFactory.IntegrationRuntimeResources.syncCredentials", + "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.get_monitoring_data": "Microsoft.DataFactory.IntegrationRuntimeResources.getMonitoringData", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.get_monitoring_data": "Microsoft.DataFactory.IntegrationRuntimeResources.getMonitoringData", + "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.upgrade": "Microsoft.DataFactory.IntegrationRuntimeResources.upgrade", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.upgrade": "Microsoft.DataFactory.IntegrationRuntimeResources.upgrade", + "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.remove_links": "Microsoft.DataFactory.IntegrationRuntimeResources.removeLinks", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.remove_links": "Microsoft.DataFactory.IntegrationRuntimeResources.removeLinks", + "azure.mgmt.datafactory.operations.IntegrationRuntimesOperations.create_linked_integration_runtime": "Microsoft.DataFactory.IntegrationRuntimeResources.createLinkedIntegrationRuntime", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations.create_linked_integration_runtime": "Microsoft.DataFactory.IntegrationRuntimeResources.createLinkedIntegrationRuntime", + "azure.mgmt.datafactory.operations.IntegrationRuntimeObjectMetadataOperations.begin_refresh": "Microsoft.DataFactory.IntegrationRuntimeResources.refresh", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimeObjectMetadataOperations.begin_refresh": "Microsoft.DataFactory.IntegrationRuntimeResources.refresh", + "azure.mgmt.datafactory.operations.IntegrationRuntimeObjectMetadataOperations.get": "Microsoft.DataFactory.IntegrationRuntimeResources.integrationRuntimeObjectMetadataGet", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimeObjectMetadataOperations.get": "Microsoft.DataFactory.IntegrationRuntimeResources.integrationRuntimeObjectMetadataGet", + "azure.mgmt.datafactory.operations.IntegrationRuntimeNodesOperations.get": "Microsoft.DataFactory.IntegrationRuntimeResources.integrationRuntimeNodesGet", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimeNodesOperations.get": "Microsoft.DataFactory.IntegrationRuntimeResources.integrationRuntimeNodesGet", + "azure.mgmt.datafactory.operations.IntegrationRuntimeNodesOperations.delete": "Microsoft.DataFactory.IntegrationRuntimeResources.integrationRuntimeNodesDelete", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimeNodesOperations.delete": "Microsoft.DataFactory.IntegrationRuntimeResources.integrationRuntimeNodesDelete", + "azure.mgmt.datafactory.operations.IntegrationRuntimeNodesOperations.update": "Microsoft.DataFactory.IntegrationRuntimeResources.integrationRuntimeNodesUpdate", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimeNodesOperations.update": "Microsoft.DataFactory.IntegrationRuntimeResources.integrationRuntimeNodesUpdate", + "azure.mgmt.datafactory.operations.IntegrationRuntimeNodesOperations.get_ip_address": "Microsoft.DataFactory.IntegrationRuntimeResources.getIpAddress", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimeNodesOperations.get_ip_address": "Microsoft.DataFactory.IntegrationRuntimeResources.getIpAddress", + "azure.mgmt.datafactory.operations.IntegrationRuntimeOperations.begin_enable_interactive_query": "Microsoft.DataFactory.IntegrationRuntimeResources.enableInteractiveQuery", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimeOperations.begin_enable_interactive_query": "Microsoft.DataFactory.IntegrationRuntimeResources.enableInteractiveQuery", + "azure.mgmt.datafactory.operations.IntegrationRuntimeOperations.begin_disable_interactive_query": "Microsoft.DataFactory.IntegrationRuntimeResources.disableInteractiveQuery", + "azure.mgmt.datafactory.aio.operations.IntegrationRuntimeOperations.begin_disable_interactive_query": "Microsoft.DataFactory.IntegrationRuntimeResources.disableInteractiveQuery", + "azure.mgmt.datafactory.operations.LinkedServicesOperations.get": "Microsoft.DataFactory.LinkedServiceResources.get", + "azure.mgmt.datafactory.aio.operations.LinkedServicesOperations.get": "Microsoft.DataFactory.LinkedServiceResources.get", + "azure.mgmt.datafactory.operations.LinkedServicesOperations.create_or_update": "Microsoft.DataFactory.LinkedServiceResources.createOrUpdate", + "azure.mgmt.datafactory.aio.operations.LinkedServicesOperations.create_or_update": "Microsoft.DataFactory.LinkedServiceResources.createOrUpdate", + "azure.mgmt.datafactory.operations.LinkedServicesOperations.delete": "Microsoft.DataFactory.LinkedServiceResources.delete", + "azure.mgmt.datafactory.aio.operations.LinkedServicesOperations.delete": "Microsoft.DataFactory.LinkedServiceResources.delete", + "azure.mgmt.datafactory.operations.LinkedServicesOperations.list_by_factory": "Microsoft.DataFactory.LinkedServiceResources.listByFactory", + "azure.mgmt.datafactory.aio.operations.LinkedServicesOperations.list_by_factory": "Microsoft.DataFactory.LinkedServiceResources.listByFactory", + "azure.mgmt.datafactory.operations.DatasetsOperations.get": "Microsoft.DataFactory.DatasetResources.get", + "azure.mgmt.datafactory.aio.operations.DatasetsOperations.get": "Microsoft.DataFactory.DatasetResources.get", + "azure.mgmt.datafactory.operations.DatasetsOperations.create_or_update": "Microsoft.DataFactory.DatasetResources.createOrUpdate", + "azure.mgmt.datafactory.aio.operations.DatasetsOperations.create_or_update": "Microsoft.DataFactory.DatasetResources.createOrUpdate", + "azure.mgmt.datafactory.operations.DatasetsOperations.delete": "Microsoft.DataFactory.DatasetResources.delete", + "azure.mgmt.datafactory.aio.operations.DatasetsOperations.delete": "Microsoft.DataFactory.DatasetResources.delete", + "azure.mgmt.datafactory.operations.DatasetsOperations.list_by_factory": "Microsoft.DataFactory.DatasetResources.listByFactory", + "azure.mgmt.datafactory.aio.operations.DatasetsOperations.list_by_factory": "Microsoft.DataFactory.DatasetResources.listByFactory", + "azure.mgmt.datafactory.operations.PipelinesOperations.get": "Microsoft.DataFactory.PipelineResources.get", + "azure.mgmt.datafactory.aio.operations.PipelinesOperations.get": "Microsoft.DataFactory.PipelineResources.get", + "azure.mgmt.datafactory.operations.PipelinesOperations.create_or_update": "Microsoft.DataFactory.PipelineResources.createOrUpdate", + "azure.mgmt.datafactory.aio.operations.PipelinesOperations.create_or_update": "Microsoft.DataFactory.PipelineResources.createOrUpdate", + "azure.mgmt.datafactory.operations.PipelinesOperations.delete": "Microsoft.DataFactory.PipelineResources.delete", + "azure.mgmt.datafactory.aio.operations.PipelinesOperations.delete": "Microsoft.DataFactory.PipelineResources.delete", + "azure.mgmt.datafactory.operations.PipelinesOperations.list_by_factory": "Microsoft.DataFactory.PipelineResources.listByFactory", + "azure.mgmt.datafactory.aio.operations.PipelinesOperations.list_by_factory": "Microsoft.DataFactory.PipelineResources.listByFactory", + "azure.mgmt.datafactory.operations.PipelinesOperations.create_run": "Microsoft.DataFactory.PipelineResources.createRun", + "azure.mgmt.datafactory.aio.operations.PipelinesOperations.create_run": "Microsoft.DataFactory.PipelineResources.createRun", + "azure.mgmt.datafactory.operations.DataFlowsOperations.get": "Microsoft.DataFactory.DataFlowResources.get", + "azure.mgmt.datafactory.aio.operations.DataFlowsOperations.get": "Microsoft.DataFactory.DataFlowResources.get", + "azure.mgmt.datafactory.operations.DataFlowsOperations.create_or_update": "Microsoft.DataFactory.DataFlowResources.createOrUpdate", + "azure.mgmt.datafactory.aio.operations.DataFlowsOperations.create_or_update": "Microsoft.DataFactory.DataFlowResources.createOrUpdate", + "azure.mgmt.datafactory.operations.DataFlowsOperations.delete": "Microsoft.DataFactory.DataFlowResources.delete", + "azure.mgmt.datafactory.aio.operations.DataFlowsOperations.delete": "Microsoft.DataFactory.DataFlowResources.delete", + "azure.mgmt.datafactory.operations.DataFlowsOperations.list_by_factory": "Microsoft.DataFactory.DataFlowResources.listByFactory", + "azure.mgmt.datafactory.aio.operations.DataFlowsOperations.list_by_factory": "Microsoft.DataFactory.DataFlowResources.listByFactory", + "azure.mgmt.datafactory.operations.ManagedVirtualNetworksOperations.get": "Microsoft.DataFactory.ManagedVirtualNetworkResources.get", + "azure.mgmt.datafactory.aio.operations.ManagedVirtualNetworksOperations.get": "Microsoft.DataFactory.ManagedVirtualNetworkResources.get", + "azure.mgmt.datafactory.operations.ManagedVirtualNetworksOperations.create_or_update": "Microsoft.DataFactory.ManagedVirtualNetworkResources.createOrUpdate", + "azure.mgmt.datafactory.aio.operations.ManagedVirtualNetworksOperations.create_or_update": "Microsoft.DataFactory.ManagedVirtualNetworkResources.createOrUpdate", + "azure.mgmt.datafactory.operations.ManagedVirtualNetworksOperations.list_by_factory": "Microsoft.DataFactory.ManagedVirtualNetworkResources.listByFactory", + "azure.mgmt.datafactory.aio.operations.ManagedVirtualNetworksOperations.list_by_factory": "Microsoft.DataFactory.ManagedVirtualNetworkResources.listByFactory", + "azure.mgmt.datafactory.operations.ManagedPrivateEndpointsOperations.get": "Microsoft.DataFactory.ManagedPrivateEndpointResources.get", + "azure.mgmt.datafactory.aio.operations.ManagedPrivateEndpointsOperations.get": "Microsoft.DataFactory.ManagedPrivateEndpointResources.get", + "azure.mgmt.datafactory.operations.ManagedPrivateEndpointsOperations.create_or_update": "Microsoft.DataFactory.ManagedPrivateEndpointResources.createOrUpdate", + "azure.mgmt.datafactory.aio.operations.ManagedPrivateEndpointsOperations.create_or_update": "Microsoft.DataFactory.ManagedPrivateEndpointResources.createOrUpdate", + "azure.mgmt.datafactory.operations.ManagedPrivateEndpointsOperations.delete": "Microsoft.DataFactory.ManagedPrivateEndpointResources.delete", + "azure.mgmt.datafactory.aio.operations.ManagedPrivateEndpointsOperations.delete": "Microsoft.DataFactory.ManagedPrivateEndpointResources.delete", + "azure.mgmt.datafactory.operations.ManagedPrivateEndpointsOperations.list_by_factory": "Microsoft.DataFactory.ManagedPrivateEndpointResources.listByFactory", + "azure.mgmt.datafactory.aio.operations.ManagedPrivateEndpointsOperations.list_by_factory": "Microsoft.DataFactory.ManagedPrivateEndpointResources.listByFactory", + "azure.mgmt.datafactory.operations.CredentialOperationsOperations.get": "Microsoft.DataFactory.CredentialResources.get", + "azure.mgmt.datafactory.aio.operations.CredentialOperationsOperations.get": "Microsoft.DataFactory.CredentialResources.get", + "azure.mgmt.datafactory.operations.CredentialOperationsOperations.create_or_update": "Microsoft.DataFactory.CredentialResources.createOrUpdate", + "azure.mgmt.datafactory.aio.operations.CredentialOperationsOperations.create_or_update": "Microsoft.DataFactory.CredentialResources.createOrUpdate", + "azure.mgmt.datafactory.operations.CredentialOperationsOperations.delete": "Microsoft.DataFactory.CredentialResources.delete", + "azure.mgmt.datafactory.aio.operations.CredentialOperationsOperations.delete": "Microsoft.DataFactory.CredentialResources.delete", + "azure.mgmt.datafactory.operations.CredentialOperationsOperations.list_by_factory": "Microsoft.DataFactory.CredentialResources.listByFactory", + "azure.mgmt.datafactory.aio.operations.CredentialOperationsOperations.list_by_factory": "Microsoft.DataFactory.CredentialResources.listByFactory", + "azure.mgmt.datafactory.operations.PrivateEndpointConnectionOperations.get": "Microsoft.DataFactory.PrivateEndpointConnectionResources.get", + "azure.mgmt.datafactory.aio.operations.PrivateEndpointConnectionOperations.get": "Microsoft.DataFactory.PrivateEndpointConnectionResources.get", + "azure.mgmt.datafactory.operations.PrivateEndpointConnectionOperations.create_or_update": "Microsoft.DataFactory.PrivateEndpointConnectionResources.createOrUpdate", + "azure.mgmt.datafactory.aio.operations.PrivateEndpointConnectionOperations.create_or_update": "Microsoft.DataFactory.PrivateEndpointConnectionResources.createOrUpdate", + "azure.mgmt.datafactory.operations.PrivateEndpointConnectionOperations.delete": "Microsoft.DataFactory.PrivateEndpointConnectionResources.delete", + "azure.mgmt.datafactory.aio.operations.PrivateEndpointConnectionOperations.delete": "Microsoft.DataFactory.PrivateEndpointConnectionResources.delete", + "azure.mgmt.datafactory.operations.PrivateEndPointConnectionsOperations.list_by_factory": "Microsoft.DataFactory.PrivateEndpointConnectionResources.listByFactory", + "azure.mgmt.datafactory.aio.operations.PrivateEndPointConnectionsOperations.list_by_factory": "Microsoft.DataFactory.PrivateEndpointConnectionResources.listByFactory", + "azure.mgmt.datafactory.operations.GlobalParametersOperations.get": "Microsoft.DataFactory.GlobalParameterResources.get", + "azure.mgmt.datafactory.aio.operations.GlobalParametersOperations.get": "Microsoft.DataFactory.GlobalParameterResources.get", + "azure.mgmt.datafactory.operations.GlobalParametersOperations.create_or_update": "Microsoft.DataFactory.GlobalParameterResources.createOrUpdate", + "azure.mgmt.datafactory.aio.operations.GlobalParametersOperations.create_or_update": "Microsoft.DataFactory.GlobalParameterResources.createOrUpdate", + "azure.mgmt.datafactory.operations.GlobalParametersOperations.delete": "Microsoft.DataFactory.GlobalParameterResources.delete", + "azure.mgmt.datafactory.aio.operations.GlobalParametersOperations.delete": "Microsoft.DataFactory.GlobalParameterResources.delete", + "azure.mgmt.datafactory.operations.GlobalParametersOperations.list_by_factory": "Microsoft.DataFactory.GlobalParameterResources.listByFactory", + "azure.mgmt.datafactory.aio.operations.GlobalParametersOperations.list_by_factory": "Microsoft.DataFactory.GlobalParameterResources.listByFactory", + "azure.mgmt.datafactory.operations.ChangeDataCaptureOperations.get": "Microsoft.DataFactory.ChangeDataCaptureResources.get", + "azure.mgmt.datafactory.aio.operations.ChangeDataCaptureOperations.get": "Microsoft.DataFactory.ChangeDataCaptureResources.get", + "azure.mgmt.datafactory.operations.ChangeDataCaptureOperations.create_or_update": "Microsoft.DataFactory.ChangeDataCaptureResources.createOrUpdate", + "azure.mgmt.datafactory.aio.operations.ChangeDataCaptureOperations.create_or_update": "Microsoft.DataFactory.ChangeDataCaptureResources.createOrUpdate", + "azure.mgmt.datafactory.operations.ChangeDataCaptureOperations.delete": "Microsoft.DataFactory.ChangeDataCaptureResources.delete", + "azure.mgmt.datafactory.aio.operations.ChangeDataCaptureOperations.delete": "Microsoft.DataFactory.ChangeDataCaptureResources.delete", + "azure.mgmt.datafactory.operations.ChangeDataCaptureOperations.list_by_factory": "Microsoft.DataFactory.ChangeDataCaptureResources.listByFactory", + "azure.mgmt.datafactory.aio.operations.ChangeDataCaptureOperations.list_by_factory": "Microsoft.DataFactory.ChangeDataCaptureResources.listByFactory", + "azure.mgmt.datafactory.operations.ChangeDataCaptureOperations.start": "Microsoft.DataFactory.ChangeDataCaptureResources.start", + "azure.mgmt.datafactory.aio.operations.ChangeDataCaptureOperations.start": "Microsoft.DataFactory.ChangeDataCaptureResources.start", + "azure.mgmt.datafactory.operations.ChangeDataCaptureOperations.stop": "Microsoft.DataFactory.ChangeDataCaptureResources.stop", + "azure.mgmt.datafactory.aio.operations.ChangeDataCaptureOperations.stop": "Microsoft.DataFactory.ChangeDataCaptureResources.stop", + "azure.mgmt.datafactory.operations.ChangeDataCaptureOperations.status": "Microsoft.DataFactory.ChangeDataCaptureResources.status", + "azure.mgmt.datafactory.aio.operations.ChangeDataCaptureOperations.status": "Microsoft.DataFactory.ChangeDataCaptureResources.status" + }, + "CrossLanguageVersion": "c5415d338f16" } \ No newline at end of file diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/__init__.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/__init__.py index 3306f38dc916..d74fe3bb0cd9 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/__init__.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -12,7 +12,7 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._data_factory_management_client import DataFactoryManagementClient # type: ignore +from ._client import DataFactoryManagementClient # type: ignore from ._version import VERSION __version__ = VERSION diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_data_factory_management_client.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_client.py similarity index 90% rename from sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_data_factory_management_client.py rename to sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_client.py index d8544146537a..642adabc7f09 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_data_factory_management_client.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_client.py @@ -2,13 +2,13 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from copy import deepcopy +import sys from typing import Any, Optional, TYPE_CHECKING, cast -from typing_extensions import Self from azure.core.pipeline import policies from azure.core.rest import HttpRequest, HttpResponse @@ -17,7 +17,6 @@ from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy from azure.mgmt.core.tools import get_arm_endpoints -from . import models as _models from ._configuration import DataFactoryManagementClientConfiguration from ._utils.serialization import Deserializer, Serializer from .operations import ( @@ -47,14 +46,18 @@ TriggersOperations, ) +if sys.version_info >= (3, 11): + from typing import Self +else: + from typing_extensions import Self # type: ignore + if TYPE_CHECKING: from azure.core import AzureClouds from azure.core.credentials import TokenCredential class DataFactoryManagementClient: # pylint: disable=too-many-instance-attributes - """The Azure Data Factory V2 management API provides a RESTful set of web services that interact - with Azure Data Factory V2 services. + """DataFactoryManagementClient. :ivar operations: Operations operations :vartype operations: azure.mgmt.datafactory.operations.Operations @@ -62,6 +65,20 @@ class DataFactoryManagementClient: # pylint: disable=too-many-instance-attribut :vartype factories: azure.mgmt.datafactory.operations.FactoriesOperations :ivar exposure_control: ExposureControlOperations operations :vartype exposure_control: azure.mgmt.datafactory.operations.ExposureControlOperations + :ivar pipeline_runs: PipelineRunsOperations operations + :vartype pipeline_runs: azure.mgmt.datafactory.operations.PipelineRunsOperations + :ivar activity_runs: ActivityRunsOperations operations + :vartype activity_runs: azure.mgmt.datafactory.operations.ActivityRunsOperations + :ivar triggers: TriggersOperations operations + :vartype triggers: azure.mgmt.datafactory.operations.TriggersOperations + :ivar trigger_runs: TriggerRunsOperations operations + :vartype trigger_runs: azure.mgmt.datafactory.operations.TriggerRunsOperations + :ivar data_flow_debug_session: DataFlowDebugSessionOperations operations + :vartype data_flow_debug_session: + azure.mgmt.datafactory.operations.DataFlowDebugSessionOperations + :ivar private_link_resources: PrivateLinkResourcesOperations operations + :vartype private_link_resources: + azure.mgmt.datafactory.operations.PrivateLinkResourcesOperations :ivar integration_runtimes: IntegrationRuntimesOperations operations :vartype integration_runtimes: azure.mgmt.datafactory.operations.IntegrationRuntimesOperations :ivar integration_runtime_object_metadata: IntegrationRuntimeObjectMetadataOperations @@ -79,19 +96,8 @@ class DataFactoryManagementClient: # pylint: disable=too-many-instance-attribut :vartype datasets: azure.mgmt.datafactory.operations.DatasetsOperations :ivar pipelines: PipelinesOperations operations :vartype pipelines: azure.mgmt.datafactory.operations.PipelinesOperations - :ivar pipeline_runs: PipelineRunsOperations operations - :vartype pipeline_runs: azure.mgmt.datafactory.operations.PipelineRunsOperations - :ivar activity_runs: ActivityRunsOperations operations - :vartype activity_runs: azure.mgmt.datafactory.operations.ActivityRunsOperations - :ivar triggers: TriggersOperations operations - :vartype triggers: azure.mgmt.datafactory.operations.TriggersOperations - :ivar trigger_runs: TriggerRunsOperations operations - :vartype trigger_runs: azure.mgmt.datafactory.operations.TriggerRunsOperations :ivar data_flows: DataFlowsOperations operations :vartype data_flows: azure.mgmt.datafactory.operations.DataFlowsOperations - :ivar data_flow_debug_session: DataFlowDebugSessionOperations operations - :vartype data_flow_debug_session: - azure.mgmt.datafactory.operations.DataFlowDebugSessionOperations :ivar managed_virtual_networks: ManagedVirtualNetworksOperations operations :vartype managed_virtual_networks: azure.mgmt.datafactory.operations.ManagedVirtualNetworksOperations @@ -101,30 +107,28 @@ class DataFactoryManagementClient: # pylint: disable=too-many-instance-attribut :ivar credential_operations: CredentialOperationsOperations operations :vartype credential_operations: azure.mgmt.datafactory.operations.CredentialOperationsOperations - :ivar private_end_point_connections: PrivateEndPointConnectionsOperations operations - :vartype private_end_point_connections: - azure.mgmt.datafactory.operations.PrivateEndPointConnectionsOperations :ivar private_endpoint_connection: PrivateEndpointConnectionOperations operations :vartype private_endpoint_connection: azure.mgmt.datafactory.operations.PrivateEndpointConnectionOperations - :ivar private_link_resources: PrivateLinkResourcesOperations operations - :vartype private_link_resources: - azure.mgmt.datafactory.operations.PrivateLinkResourcesOperations + :ivar private_end_point_connections: PrivateEndPointConnectionsOperations operations + :vartype private_end_point_connections: + azure.mgmt.datafactory.operations.PrivateEndPointConnectionsOperations :ivar global_parameters: GlobalParametersOperations operations :vartype global_parameters: azure.mgmt.datafactory.operations.GlobalParametersOperations :ivar change_data_capture: ChangeDataCaptureOperations operations :vartype change_data_capture: azure.mgmt.datafactory.operations.ChangeDataCaptureOperations - :param credential: Credential needed for the client to connect to Azure. Required. + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: The subscription identifier. Required. + :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str - :param base_url: Service URL. Default value is None. + :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2018-06-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are "2018-06-01" + and None. Default value is None. If not set, the operation's default API version will be used. + Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. @@ -139,6 +143,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: + _endpoint = "{endpoint}" _cloud = cloud_setting or settings.current.azure_cloud # type: ignore _endpoints = get_arm_endpoints(_cloud) if not base_url: @@ -147,6 +152,7 @@ def __init__( self._config = DataFactoryManagementClientConfiguration( credential=credential, subscription_id=subscription_id, + base_url=cast(str, base_url), cloud_setting=cloud_setting, credential_scopes=credential_scopes, **kwargs @@ -170,17 +176,26 @@ def __init__( policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, self._config.http_logging_policy, ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs) + self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, _endpoint), policies=_policies, **kwargs) - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) + self._serialize = Serializer() + self._deserialize = Deserializer() self._serialize.client_side_validation = False self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) self.factories = FactoriesOperations(self._client, self._config, self._serialize, self._deserialize) self.exposure_control = ExposureControlOperations( self._client, self._config, self._serialize, self._deserialize ) + self.pipeline_runs = PipelineRunsOperations(self._client, self._config, self._serialize, self._deserialize) + self.activity_runs = ActivityRunsOperations(self._client, self._config, self._serialize, self._deserialize) + self.triggers = TriggersOperations(self._client, self._config, self._serialize, self._deserialize) + self.trigger_runs = TriggerRunsOperations(self._client, self._config, self._serialize, self._deserialize) + self.data_flow_debug_session = DataFlowDebugSessionOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.private_link_resources = PrivateLinkResourcesOperations( + self._client, self._config, self._serialize, self._deserialize + ) self.integration_runtimes = IntegrationRuntimesOperations( self._client, self._config, self._serialize, self._deserialize ) @@ -196,14 +211,7 @@ def __init__( self.linked_services = LinkedServicesOperations(self._client, self._config, self._serialize, self._deserialize) self.datasets = DatasetsOperations(self._client, self._config, self._serialize, self._deserialize) self.pipelines = PipelinesOperations(self._client, self._config, self._serialize, self._deserialize) - self.pipeline_runs = PipelineRunsOperations(self._client, self._config, self._serialize, self._deserialize) - self.activity_runs = ActivityRunsOperations(self._client, self._config, self._serialize, self._deserialize) - self.triggers = TriggersOperations(self._client, self._config, self._serialize, self._deserialize) - self.trigger_runs = TriggerRunsOperations(self._client, self._config, self._serialize, self._deserialize) self.data_flows = DataFlowsOperations(self._client, self._config, self._serialize, self._deserialize) - self.data_flow_debug_session = DataFlowDebugSessionOperations( - self._client, self._config, self._serialize, self._deserialize - ) self.managed_virtual_networks = ManagedVirtualNetworksOperations( self._client, self._config, self._serialize, self._deserialize ) @@ -213,13 +221,10 @@ def __init__( self.credential_operations = CredentialOperationsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.private_end_point_connections = PrivateEndPointConnectionsOperations( - self._client, self._config, self._serialize, self._deserialize - ) self.private_endpoint_connection = PrivateEndpointConnectionOperations( self._client, self._config, self._serialize, self._deserialize ) - self.private_link_resources = PrivateLinkResourcesOperations( + self.private_end_point_connections = PrivateEndPointConnectionsOperations( self._client, self._config, self._serialize, self._deserialize ) self.global_parameters = GlobalParametersOperations( @@ -229,13 +234,13 @@ def __init__( self._client, self._config, self._serialize, self._deserialize ) - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: + def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: """Runs the network request through the client's chained policies. >>> from azure.core.rest import HttpRequest >>> request = HttpRequest("GET", "https://www.example.org/") - >>> response = client._send_request(request) + >>> response = client.send_request(request) For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request @@ -248,7 +253,11 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: """ request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore def close(self) -> None: diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_configuration.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_configuration.py index 7ffb7602a63d..8326395982db 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_configuration.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_configuration.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -24,15 +24,18 @@ class DataFactoryManagementClientConfiguration: # pylint: disable=too-many-inst Note that all parameters used to create this instance are saved as instance attributes. - :param credential: Credential needed for the client to connect to Azure. Required. + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: The subscription identifier. Required. + :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str + :param base_url: Service host. Default value is "https://management.azure.com". + :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2018-06-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are "2018-06-01" + and None. Default value is None. If not set, the operation's default API version will be used. + Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ @@ -40,6 +43,7 @@ def __init__( self, credential: "TokenCredential", subscription_id: str, + base_url: str = "https://management.azure.com", cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: @@ -52,6 +56,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id + self.base_url = base_url self.cloud_setting = cloud_setting self.api_version = api_version self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_patch.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_patch.py index 17dbc073e01b..ea765788358a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_patch.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_patch.py @@ -1,32 +1,20 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# # Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------- +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" + +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level -# This file is used for handwritten extensions to the generated code. Example: -# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): - pass + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_utils/__init__.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_utils/__init__.py index 0af9b28f6607..8026245c2abc 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_utils/__init__.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_utils/__init__.py @@ -1,6 +1,6 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_utils/model_base.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_utils/model_base.py new file mode 100644 index 000000000000..bd5b9caf1022 --- /dev/null +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_utils/model_base.py @@ -0,0 +1,1755 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +# pylint: disable=protected-access, broad-except + +import copy +import calendar +import decimal +import functools +import sys +import logging +import base64 +import re +import typing +import enum +import email.utils +from datetime import datetime, date, time, timedelta, timezone +from json import JSONEncoder +import xml.etree.ElementTree as ET +from collections.abc import MutableMapping +import isodate +from azure.core.exceptions import DeserializationError +from azure.core import CaseInsensitiveEnumMeta +from azure.core.pipeline import PipelineResponse +from azure.core.serialization import _Null + +from azure.core.rest import HttpResponse + +if sys.version_info >= (3, 11): + from typing import Self +else: + from typing_extensions import Self + +_LOGGER = logging.getLogger(__name__) + +__all__ = ["SdkJSONEncoder", "Model", "rest_field", "rest_discriminator"] + +TZ_UTC = timezone.utc +_T = typing.TypeVar("_T") +_NONE_TYPE = type(None) + + +def _timedelta_as_isostr(td: timedelta) -> str: + """Converts a datetime.timedelta object into an ISO 8601 formatted string, e.g. 'P4DT12H30M05S' + + Function adapted from the Tin Can Python project: https://github.com/RusticiSoftware/TinCanPython + + :param timedelta td: The timedelta to convert + :rtype: str + :return: ISO8601 version of this timedelta + """ + + # Split seconds to larger units + seconds = td.total_seconds() + minutes, seconds = divmod(seconds, 60) + hours, minutes = divmod(minutes, 60) + days, hours = divmod(hours, 24) + + days, hours, minutes = list(map(int, (days, hours, minutes))) + seconds = round(seconds, 6) + + # Build date + date_str = "" + if days: + date_str = "%sD" % days + + if hours or minutes or seconds: + # Build time + time_str = "T" + + # Hours + bigger_exists = date_str or hours + if bigger_exists: + time_str += "{:02}H".format(hours) + + # Minutes + bigger_exists = bigger_exists or minutes + if bigger_exists: + time_str += "{:02}M".format(minutes) + + # Seconds + try: + if seconds.is_integer(): + seconds_string = "{:02}".format(int(seconds)) + else: + # 9 chars long w/ leading 0, 6 digits after decimal + seconds_string = "%09.6f" % seconds + # Remove trailing zeros + seconds_string = seconds_string.rstrip("0") + except AttributeError: # int.is_integer() raises + seconds_string = "{:02}".format(seconds) + + time_str += "{}S".format(seconds_string) + else: + time_str = "" + + return "P" + date_str + time_str + + +def _serialize_bytes(o, format: typing.Optional[str] = None) -> str: + encoded = base64.b64encode(o).decode() + if format == "base64url": + return encoded.strip("=").replace("+", "-").replace("/", "_") + return encoded + + +def _serialize_datetime(o, format: typing.Optional[str] = None): + if hasattr(o, "year") and hasattr(o, "hour"): + if format == "rfc7231": + return email.utils.format_datetime(o, usegmt=True) + if format == "unix-timestamp": + return int(calendar.timegm(o.utctimetuple())) + + # astimezone() fails for naive times in Python 2.7, so make make sure o is aware (tzinfo is set) + if not o.tzinfo: + iso_formatted = o.replace(tzinfo=TZ_UTC).isoformat() + else: + iso_formatted = o.astimezone(TZ_UTC).isoformat() + # Replace the trailing "+00:00" UTC offset with "Z" (RFC 3339: https://www.ietf.org/rfc/rfc3339.txt) + return iso_formatted.replace("+00:00", "Z") + # Next try datetime.date or datetime.time + return o.isoformat() + + +def _is_readonly(p): + try: + return p._visibility == ["read"] + except AttributeError: + return False + + +class SdkJSONEncoder(JSONEncoder): + """A JSON encoder that's capable of serializing datetime objects and bytes.""" + + def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs): + super().__init__(*args, **kwargs) + self.exclude_readonly = exclude_readonly + self.format = format + + def default(self, o): # pylint: disable=too-many-return-statements + if _is_model(o): + if self.exclude_readonly: + readonly_props = [p._rest_name for p in o._attr_to_rest_field.values() if _is_readonly(p)] + return {k: v for k, v in o.items() if k not in readonly_props} + return dict(o.items()) + try: + return super(SdkJSONEncoder, self).default(o) + except TypeError: + if isinstance(o, _Null): + return None + if isinstance(o, decimal.Decimal): + return float(o) + if isinstance(o, (bytes, bytearray)): + return _serialize_bytes(o, self.format) + try: + # First try datetime.datetime + return _serialize_datetime(o, self.format) + except AttributeError: + pass + # Last, try datetime.timedelta + try: + return _timedelta_as_isostr(o) + except AttributeError: + # This will be raised when it hits value.total_seconds in the method above + pass + return super(SdkJSONEncoder, self).default(o) + + +_VALID_DATE = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}" + r"\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?") +_VALID_RFC7231 = re.compile( + r"(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s\d{2}\s" + r"(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s\d{4}\s\d{2}:\d{2}:\d{2}\sGMT" +) + +_ARRAY_ENCODE_MAPPING = { + "pipeDelimited": "|", + "spaceDelimited": " ", + "commaDelimited": ",", + "newlineDelimited": "\n", +} + + +def _deserialize_array_encoded(delimit: str, attr): + if isinstance(attr, str): + if attr == "": + return [] + return attr.split(delimit) + return attr + + +def _deserialize_datetime(attr: typing.Union[str, datetime]) -> datetime: + """Deserialize ISO-8601 formatted string into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: ~datetime.datetime + :returns: The datetime object from that input + """ + if isinstance(attr, datetime): + # i'm already deserialized + return attr + attr = attr.upper() + match = _VALID_DATE.match(attr) + if not match: + raise ValueError("Invalid datetime string: " + attr) + + check_decimal = attr.split(".") + if len(check_decimal) > 1: + decimal_str = "" + for digit in check_decimal[1]: + if digit.isdigit(): + decimal_str += digit + else: + break + if len(decimal_str) > 6: + attr = attr.replace(decimal_str, decimal_str[0:6]) + + date_obj = isodate.parse_datetime(attr) + test_utc = date_obj.utctimetuple() + if test_utc.tm_year > 9999 or test_utc.tm_year < 1: + raise OverflowError("Hit max or min date") + return date_obj # type: ignore[no-any-return] + + +def _deserialize_datetime_rfc7231(attr: typing.Union[str, datetime]) -> datetime: + """Deserialize RFC7231 formatted string into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: ~datetime.datetime + :returns: The datetime object from that input + """ + if isinstance(attr, datetime): + # i'm already deserialized + return attr + match = _VALID_RFC7231.match(attr) + if not match: + raise ValueError("Invalid datetime string: " + attr) + + return email.utils.parsedate_to_datetime(attr) + + +def _deserialize_datetime_unix_timestamp(attr: typing.Union[float, datetime]) -> datetime: + """Deserialize unix timestamp into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: ~datetime.datetime + :returns: The datetime object from that input + """ + if isinstance(attr, datetime): + # i'm already deserialized + return attr + return datetime.fromtimestamp(attr, TZ_UTC) + + +def _deserialize_date(attr: typing.Union[str, date]) -> date: + """Deserialize ISO-8601 formatted string into Date object. + :param str attr: response string to be deserialized. + :rtype: date + :returns: The date object from that input + """ + # This must NOT use defaultmonth/defaultday. Using None ensure this raises an exception. + if isinstance(attr, date): + return attr + return isodate.parse_date(attr, defaultmonth=None, defaultday=None) # type: ignore + + +def _deserialize_time(attr: typing.Union[str, time]) -> time: + """Deserialize ISO-8601 formatted string into time object. + + :param str attr: response string to be deserialized. + :rtype: datetime.time + :returns: The time object from that input + """ + if isinstance(attr, time): + return attr + return isodate.parse_time(attr) # type: ignore[no-any-return] + + +def _deserialize_bytes(attr): + if isinstance(attr, (bytes, bytearray)): + return attr + return bytes(base64.b64decode(attr)) + + +def _deserialize_bytes_base64(attr): + if isinstance(attr, (bytes, bytearray)): + return attr + padding = "=" * (3 - (len(attr) + 3) % 4) # type: ignore + attr = attr + padding # type: ignore + encoded = attr.replace("-", "+").replace("_", "/") + return bytes(base64.b64decode(encoded)) + + +def _deserialize_duration(attr): + if isinstance(attr, timedelta): + return attr + return isodate.parse_duration(attr) + + +def _deserialize_decimal(attr): + if isinstance(attr, decimal.Decimal): + return attr + return decimal.Decimal(str(attr)) + + +def _deserialize_int_as_str(attr): + if isinstance(attr, int): + return attr + return int(attr) + + +_DESERIALIZE_MAPPING = { + datetime: _deserialize_datetime, + date: _deserialize_date, + time: _deserialize_time, + bytes: _deserialize_bytes, + bytearray: _deserialize_bytes, + timedelta: _deserialize_duration, + typing.Any: lambda x: x, + decimal.Decimal: _deserialize_decimal, +} + +_DESERIALIZE_MAPPING_WITHFORMAT = { + "rfc3339": _deserialize_datetime, + "rfc7231": _deserialize_datetime_rfc7231, + "unix-timestamp": _deserialize_datetime_unix_timestamp, + "base64": _deserialize_bytes, + "base64url": _deserialize_bytes_base64, +} + + +def get_deserializer(annotation: typing.Any, rf: typing.Optional["_RestField"] = None): + if annotation is int and rf and rf._format == "str": + return _deserialize_int_as_str + if annotation is str and rf and rf._format in _ARRAY_ENCODE_MAPPING: + return functools.partial(_deserialize_array_encoded, _ARRAY_ENCODE_MAPPING[rf._format]) + if rf and rf._format: + return _DESERIALIZE_MAPPING_WITHFORMAT.get(rf._format) + return _DESERIALIZE_MAPPING.get(annotation) # pyright: ignore + + +def _get_type_alias_type(module_name: str, alias_name: str): + types = { + k: v + for k, v in sys.modules[module_name].__dict__.items() + if isinstance(v, typing._GenericAlias) # type: ignore + } + if alias_name not in types: + return alias_name + return types[alias_name] + + +def _get_model(module_name: str, model_name: str): + models = {k: v for k, v in sys.modules[module_name].__dict__.items() if isinstance(v, type)} + module_end = module_name.rsplit(".", 1)[0] + models.update({k: v for k, v in sys.modules[module_end].__dict__.items() if isinstance(v, type)}) + if isinstance(model_name, str): + model_name = model_name.split(".")[-1] + if model_name not in models: + return model_name + return models[model_name] + + +_UNSET = object() + + +class _MyMutableMapping(MutableMapping[str, typing.Any]): + def __init__(self, data: dict[str, typing.Any]) -> None: + self._data = data + + def __contains__(self, key: typing.Any) -> bool: + return key in self._data + + def __getitem__(self, key: str) -> typing.Any: + # If this key has been deserialized (for mutable types), we need to handle serialization + if hasattr(self, "_attr_to_rest_field"): + cache_attr = f"_deserialized_{key}" + if hasattr(self, cache_attr): + rf = _get_rest_field(getattr(self, "_attr_to_rest_field"), key) + if rf: + value = self._data.get(key) + if isinstance(value, (dict, list, set)): + # For mutable types, serialize and return + # But also update _data with serialized form and clear flag + # so mutations via this returned value affect _data + serialized = _serialize(value, rf._format) + # If serialized form is same type (no transformation needed), + # return _data directly so mutations work + if isinstance(serialized, type(value)) and serialized == value: + return self._data.get(key) + # Otherwise return serialized copy and clear flag + try: + object.__delattr__(self, cache_attr) + except AttributeError: + pass + # Store serialized form back + self._data[key] = serialized + return serialized + return self._data.__getitem__(key) + + def __setitem__(self, key: str, value: typing.Any) -> None: + # Clear any cached deserialized value when setting through dictionary access + cache_attr = f"_deserialized_{key}" + try: + object.__delattr__(self, cache_attr) + except AttributeError: + pass + self._data.__setitem__(key, value) + + def __delitem__(self, key: str) -> None: + self._data.__delitem__(key) + + def __iter__(self) -> typing.Iterator[typing.Any]: + return self._data.__iter__() + + def __len__(self) -> int: + return self._data.__len__() + + def __ne__(self, other: typing.Any) -> bool: + return not self.__eq__(other) + + def keys(self) -> typing.KeysView[str]: + """ + :returns: a set-like object providing a view on D's keys + :rtype: ~typing.KeysView + """ + return self._data.keys() + + def values(self) -> typing.ValuesView[typing.Any]: + """ + :returns: an object providing a view on D's values + :rtype: ~typing.ValuesView + """ + return self._data.values() + + def items(self) -> typing.ItemsView[str, typing.Any]: + """ + :returns: set-like object providing a view on D's items + :rtype: ~typing.ItemsView + """ + return self._data.items() + + def get(self, key: str, default: typing.Any = None) -> typing.Any: + """ + Get the value for key if key is in the dictionary, else default. + :param str key: The key to look up. + :param any default: The value to return if key is not in the dictionary. Defaults to None + :returns: D[k] if k in D, else d. + :rtype: any + """ + try: + return self[key] + except KeyError: + return default + + @typing.overload + def pop(self, key: str) -> typing.Any: ... # pylint: disable=arguments-differ + + @typing.overload + def pop(self, key: str, default: _T) -> _T: ... # pylint: disable=signature-differs + + @typing.overload + def pop(self, key: str, default: typing.Any) -> typing.Any: ... # pylint: disable=signature-differs + + def pop(self, key: str, default: typing.Any = _UNSET) -> typing.Any: + """ + Removes specified key and return the corresponding value. + :param str key: The key to pop. + :param any default: The value to return if key is not in the dictionary + :returns: The value corresponding to the key. + :rtype: any + :raises KeyError: If key is not found and default is not given. + """ + if default is _UNSET: + return self._data.pop(key) + return self._data.pop(key, default) + + def popitem(self) -> tuple[str, typing.Any]: + """ + Removes and returns some (key, value) pair + :returns: The (key, value) pair. + :rtype: tuple + :raises KeyError: if D is empty. + """ + return self._data.popitem() + + def clear(self) -> None: + """ + Remove all items from D. + """ + self._data.clear() + + def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ + """ + Updates D from mapping/iterable E and F. + :param any args: Either a mapping object or an iterable of key-value pairs. + """ + self._data.update(*args, **kwargs) + + @typing.overload + def setdefault(self, key: str, default: None = None) -> None: ... + + @typing.overload + def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint: disable=signature-differs + + def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any: + """ + Same as calling D.get(k, d), and setting D[k]=d if k not found + :param str key: The key to look up. + :param any default: The value to set if key is not in the dictionary + :returns: D[k] if k in D, else d. + :rtype: any + """ + if default is _UNSET: + return self._data.setdefault(key) + return self._data.setdefault(key, default) + + def __eq__(self, other: typing.Any) -> bool: + if isinstance(other, _MyMutableMapping): + return self._data == other._data + try: + other_model = self.__class__(other) + except Exception: + return False + return self._data == other_model._data + + def __repr__(self) -> str: + return str(self._data) + + +def _is_model(obj: typing.Any) -> bool: + return getattr(obj, "_is_model", False) + + +def _serialize(o, format: typing.Optional[str] = None): # pylint: disable=too-many-return-statements + if isinstance(o, list): + if format in _ARRAY_ENCODE_MAPPING and all(isinstance(x, str) for x in o): + return _ARRAY_ENCODE_MAPPING[format].join(o) + return [_serialize(x, format) for x in o] + if isinstance(o, dict): + return {k: _serialize(v, format) for k, v in o.items()} + if isinstance(o, set): + return {_serialize(x, format) for x in o} + if isinstance(o, tuple): + return tuple(_serialize(x, format) for x in o) + if isinstance(o, (bytes, bytearray)): + return _serialize_bytes(o, format) + if isinstance(o, decimal.Decimal): + return float(o) + if isinstance(o, enum.Enum): + return o.value + if isinstance(o, int): + if format == "str": + return str(o) + return o + try: + # First try datetime.datetime + return _serialize_datetime(o, format) + except AttributeError: + pass + # Last, try datetime.timedelta + try: + return _timedelta_as_isostr(o) + except AttributeError: + # This will be raised when it hits value.total_seconds in the method above + pass + return o + + +def _get_rest_field(attr_to_rest_field: dict[str, "_RestField"], rest_name: str) -> typing.Optional["_RestField"]: + try: + return next(rf for rf in attr_to_rest_field.values() if rf._rest_name == rest_name) + except StopIteration: + return None + + +def _create_value(rf: typing.Optional["_RestField"], value: typing.Any) -> typing.Any: + if not rf: + return _serialize(value, None) + if rf._is_multipart_file_input: + return value + if rf._is_model: + return _deserialize(rf._type, value) + if isinstance(value, ET.Element): + value = _deserialize(rf._type, value) + return _serialize(value, rf._format) + + +# ============================================================================ +# Fast-path scalar deserializer functions for rest_field(deserializer=...) +# These are referenced from rest_field declarations to bypass the generic +# _deserialize -> _deserialize_with_callable chain. +# Only simple/primitive types — no models or container types. +# ============================================================================ + + +def _xml_deser_str(value): + if isinstance(value, ET.Element): + return value.text or "" + return str(value) if value is not None else None + + +def _xml_deser_int(value): + if isinstance(value, ET.Element): + return int(value.text) if value.text else None + return int(value) if value is not None else None + + +def _xml_deser_float(value): + if isinstance(value, ET.Element): + return float(value.text) if value.text else None + return float(value) if value is not None else None + + +def _xml_deser_bool(value): + if isinstance(value, ET.Element): + text = value.text + else: + text = value + if text is None: + return None + if text in (True, False): + return text + return text.lower() == "true" + + +# pylint: disable=docstring-missing-param +def _xml_deser_bytes(value): + """Deserialize bytes from XML (base64).""" + if isinstance(value, ET.Element): + text = value.text + else: + text = value + if text is None: + return None + return _deserialize_bytes(text) + + +def _xml_deser_bytes_base64url(value): + """Deserialize bytes from XML (base64url).""" + if isinstance(value, ET.Element): + text = value.text + else: + text = value + if text is None: + return None + return _deserialize_bytes_base64(text) + + +def _xml_deser_datetime(value): + """Deserialize a datetime from XML (ISO 8601 / rfc3339).""" + if isinstance(value, ET.Element): + text = value.text + else: + text = value + if text is None: + return None + return _deserialize_datetime(text) + + +def _xml_deser_datetime_rfc7231(value): + """Deserialize a datetime from XML (RFC7231 format).""" + if isinstance(value, ET.Element): + text = value.text + else: + text = value + if text is None: + return None + return _deserialize_datetime_rfc7231(text) + + +def _xml_deser_datetime_unix_timestamp(value): + """Deserialize a datetime from XML (Unix timestamp).""" + if isinstance(value, ET.Element): + text = value.text + else: + text = value + if text is None: + return None + return _deserialize_datetime_unix_timestamp(float(text)) + + +def _xml_deser_date(value): + """Deserialize a date from XML (ISO 8601).""" + if isinstance(value, ET.Element): + text = value.text + else: + text = value + if text is None: + return None + return _deserialize_date(text) + + +def _xml_deser_time(value): + """Deserialize a time from XML (ISO 8601).""" + if isinstance(value, ET.Element): + text = value.text + else: + text = value + if text is None: + return None + return _deserialize_time(text) + + +def _xml_deser_duration(value): + """Deserialize a timedelta from XML (ISO 8601 duration).""" + if isinstance(value, ET.Element): + text = value.text + else: + text = value + if text is None: + return None + return _deserialize_duration(text) + + +def _xml_deser_decimal(value): + """Deserialize a Decimal from XML.""" + if isinstance(value, ET.Element): + text = value.text + else: + text = value + if text is None: + return None + return _deserialize_decimal(text) + + +def _xml_deser_enum_or_str(enum_cls, value): + """Deserialize a Union[EnumType, str] from XML.""" + text = value.text if isinstance(value, ET.Element) else value + if text is None: + return None + try: + return enum_cls(text) + except ValueError: + return text + + +def _extract_xml_model_type(rf_type): + """Extract the concrete Model class from a resolved rf._type partial chain. + + Unwraps ``Optional[Model]`` and ``_deserialize_model(Model, ...)`` + wrappers. Only handles Model and Optional[Model] — other composite + types (List, Dict, Union, etc.) return None and fall through to the + generic ``_deserialize`` path at runtime. + """ + if rf_type is None: + return None + if isinstance(rf_type, type) and _is_model(rf_type): + return rf_type + if not isinstance(rf_type, functools.partial): + return None + func = rf_type.func + args = rf_type.args + if func is _deserialize_with_optional and args: + return _extract_xml_model_type(args[0]) + if func is _deserialize_model and args: + cls = args[0] + return cls if isinstance(cls, type) and _is_model(cls) else None + return None + + +def _build_xml_field_plan( # pylint: disable=docstring-missing-return, docstring-missing-rtype, unused-variable + cls, attr_to_rest_field: dict +) -> list: + """Build a precomputed XML field plan for fast _init_from_xml iteration. + + Called once per model class in __new__. Returns a list of tuples: + (rest_name, xml_name, kind, deser, rf_type, is_optional, items_name) + + kind: 0=wrapped, 1=attribute, 2=unwrapped, 3=text + + For Model and Optional[Model] fields that lack a scalar + ``_deserializer``, this function precomputes the Model class as the + deserializer so ``_init_from_xml`` can call ``ModelClass(element)`` + directly instead of going through the expensive + ``_get_deserialize_callable_from_annotation`` chain at runtime. + """ + model_meta = getattr(cls, "_xml", {}) + model_ns = model_meta.get("ns") or model_meta.get("namespace") + plan = [] + + for rf in attr_to_rest_field.values(): + prop_meta = getattr(rf, "_xml", {}) + deser = rf._deserializer + + xml_name = prop_meta.get("name", rf._rest_name) + xml_ns = _resolve_xml_ns(prop_meta, model_meta) + if xml_ns: + xml_name = "{" + xml_ns + "}" + xml_name + + is_optional = rf._is_optional + + # For Model / Optional[Model] fields without a scalar deserializer, + # precompute the Model class as the deserializer. + if deser is None and rf._type is not None: + model_cls = _extract_xml_model_type(rf._type) + if model_cls is not None: + deser = model_cls + + if prop_meta.get("attribute", False): + plan.append((rf._rest_name, xml_name, 1, deser, rf._type, is_optional, None)) + elif prop_meta.get("unwrapped", False): + items_name = prop_meta.get("itemsName") + if items_name: + items_ns = prop_meta.get("itemsNs") + if items_ns is not None: + xml_ns = items_ns + if xml_ns: + items_name = "{" + xml_ns + "}" + items_name + else: + items_name = xml_name + plan.append((rf._rest_name, xml_name, 2, deser, rf._type, is_optional, items_name)) + elif prop_meta.get("text", False): + plan.append((rf._rest_name, xml_name, 3, deser, rf._type, is_optional, None)) + else: + plan.append((rf._rest_name, xml_name, 0, deser, rf._type, is_optional, None)) + + return plan + + +# pylint: enable=docstring-missing-param +class Model(_MyMutableMapping): + _is_model = True + # label whether current class's _attr_to_rest_field has been calculated + # could not see _attr_to_rest_field directly because subclass inherits it from parent class + _calculated: set[str] = set() + + def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None: + class_name = self.__class__.__name__ + if len(args) > 1: + raise TypeError(f"{class_name}.__init__() takes 2 positional arguments but {len(args) + 1} were given") + dict_to_pass: dict[str, typing.Any] = {} + if args: + if isinstance(args[0], ET.Element): + dict_to_pass.update(self._init_from_xml(args[0])) + else: + dict_to_pass.update( + {k: _create_value(_get_rest_field(self._attr_to_rest_field, k), v) for k, v in args[0].items()} + ) + else: + non_attr_kwargs = [k for k in kwargs if k not in self._attr_to_rest_field] + if non_attr_kwargs: + # actual type errors only throw the first wrong keyword arg they see, so following that. + raise TypeError(f"{class_name}.__init__() got an unexpected keyword argument '{non_attr_kwargs[0]}'") + dict_to_pass.update( + { + self._attr_to_rest_field[k]._rest_name: _create_value(self._attr_to_rest_field[k], v) + for k, v in kwargs.items() + if v is not None + } + ) + # Apply client default values for fields the caller didn't set so that + # defaults are part of `_data` and therefore included during serialization. + for rf in self._attr_to_rest_field.values(): + if rf._default is _UNSET: + continue + if rf._rest_name in dict_to_pass: + continue + dict_to_pass[rf._rest_name] = _create_value(rf, rf._default) + super().__init__(dict_to_pass) + + def _init_from_xml( # pylint: disable=too-many-branches, too-many-statements + self, element: ET.Element + ) -> dict[str, typing.Any]: + """Deserialize an XML element into a dict mapping rest field names to values. + + :param ET.Element element: The XML element to deserialize from. + :returns: A dictionary of rest_name to deserialized value pairs. + :rtype: dict + """ + result: dict[str, typing.Any] = {} + existed_attr_keys: list[str] = [] + + field_plan = getattr(self, "_xml_field_plan", None) + if field_plan: + for rest_name, xml_name, kind, deser, rf_type, is_optional, items_name in field_plan: + if kind == 0: # wrapped element (most common) + item = element.find(xml_name) + if item is not None: + existed_attr_keys.append(xml_name) + if deser: + result[rest_name] = deser(item) + else: + result[rest_name] = _deserialize(rf_type, item) + elif kind == 1: # attribute + attr_val = element.get(xml_name) + if attr_val is not None: + existed_attr_keys.append(xml_name) + if deser: + result[rest_name] = deser(attr_val) + else: + result[rest_name] = attr_val + elif kind == 2: # unwrapped array + items = element.findall(items_name) # pyright: ignore + if len(items) > 0: + existed_attr_keys.append(items_name) + if deser: + result[rest_name] = deser(items) + else: + result[rest_name] = _deserialize(rf_type, items) + elif not is_optional: + existed_attr_keys.append(items_name) + result[rest_name] = [] + elif kind == 3: # text + if element.text is not None: + if deser: + result[rest_name] = deser(element.text) + else: + result[rest_name] = element.text + else: + model_meta = getattr(self, "_xml", {}) + for rf in self._attr_to_rest_field.values(): + prop_meta = getattr(rf, "_xml", {}) + xml_name = prop_meta.get("name", rf._rest_name) + xml_ns = _resolve_xml_ns(prop_meta, model_meta) + if xml_ns: + xml_name = "{" + xml_ns + "}" + xml_name + + # attribute + if prop_meta.get("attribute", False) and element.get(xml_name) is not None: + existed_attr_keys.append(xml_name) + result[rf._rest_name] = _deserialize(rf._type, element.get(xml_name)) + continue + + # unwrapped element is array + if prop_meta.get("unwrapped", False): + _items_name = prop_meta.get("itemsName") + if _items_name: + xml_name = _items_name + _items_ns = prop_meta.get("itemsNs") + if _items_ns is not None: + xml_ns = _items_ns + if xml_ns: + xml_name = "{" + xml_ns + "}" + xml_name + items = element.findall(xml_name) # pyright: ignore + if len(items) > 0: + existed_attr_keys.append(xml_name) + result[rf._rest_name] = _deserialize(rf._type, items) + elif not rf._is_optional: + existed_attr_keys.append(xml_name) + result[rf._rest_name] = [] + continue + + # text element is primitive type + if prop_meta.get("text", False): + if element.text is not None: + result[rf._rest_name] = _deserialize(rf._type, element.text) + continue + + # wrapped element could be normal property or array + item = element.find(xml_name) + if item is not None: + existed_attr_keys.append(xml_name) + result[rf._rest_name] = _deserialize(rf._type, item) + + # rest thing is additional properties + for e in element: + if e.tag not in existed_attr_keys: + result[e.tag] = _convert_element(e) + + return result + + def copy(self) -> "Model": + return Model(self.__dict__) + + def __new__(cls, *args: typing.Any, **kwargs: typing.Any) -> Self: + if f"{cls.__module__}.{cls.__qualname__}" not in cls._calculated: + # we know the last nine classes in mro are going to be 'Model', '_MyMutableMapping', 'MutableMapping', + # 'Mapping', 'Collection', 'Sized', 'Iterable', 'Container' and 'object' + mros = cls.__mro__[:-9][::-1] # ignore parents, and reverse the mro order + attr_to_rest_field: dict[str, _RestField] = { # map attribute name to rest_field property + k: v for mro_class in mros for k, v in mro_class.__dict__.items() if k[0] != "_" and hasattr(v, "_type") + } + annotations = { + k: v + for mro_class in mros + if hasattr(mro_class, "__annotations__") + for k, v in mro_class.__annotations__.items() + } + for attr, rf in attr_to_rest_field.items(): + rf._module = cls.__module__ + if not rf._type: + rf._type = rf._get_deserialize_callable_from_annotation(annotations.get(attr, None)) + if not rf._rest_name_input: + rf._rest_name_input = attr + cls._attr_to_rest_field: dict[str, _RestField] = dict(attr_to_rest_field.items()) + cls._backcompat_attr_to_rest_field: dict[str, _RestField] = { + Model._get_backcompat_attribute_name(cls._attr_to_rest_field, attr): rf + for attr, rf in cls._attr_to_rest_field.items() + } + # Build XML field plan for fast _init_from_xml (only for XML models) + if getattr(cls, "_xml", None): + cls._xml_field_plan = _build_xml_field_plan(cls, attr_to_rest_field) + cls._calculated.add(f"{cls.__module__}.{cls.__qualname__}") + + return super().__new__(cls) + + def __init_subclass__(cls, discriminator: typing.Optional[str] = None) -> None: + for base in cls.__bases__: + if hasattr(base, "__mapping__"): + base.__mapping__[discriminator or cls.__name__] = cls # type: ignore + + @classmethod + def _get_backcompat_attribute_name(cls, attr_to_rest_field: dict[str, "_RestField"], attr_name: str) -> str: + rest_field_obj = attr_to_rest_field.get(attr_name) # pylint: disable=protected-access + if rest_field_obj is None: + return attr_name + original_tsp_name = getattr(rest_field_obj, "_original_tsp_name", None) # pylint: disable=protected-access + if original_tsp_name: + return original_tsp_name + return attr_name + + @classmethod + def _get_discriminator(cls, exist_discriminators) -> typing.Optional["_RestField"]: + for v in cls.__dict__.values(): + if isinstance(v, _RestField) and v._is_discriminator and v._rest_name not in exist_discriminators: + return v + return None + + @classmethod + def _deserialize(cls, data, exist_discriminators): + if not hasattr(cls, "__mapping__"): + return cls(data) + discriminator = cls._get_discriminator(exist_discriminators) + if discriminator is None: + return cls(data) + exist_discriminators.append(discriminator._rest_name) + if isinstance(data, ET.Element): + model_meta = getattr(cls, "_xml", {}) + prop_meta = getattr(discriminator, "_xml", {}) + xml_name = prop_meta.get("name", discriminator._rest_name) + xml_ns = _resolve_xml_ns(prop_meta, model_meta) + if xml_ns: + xml_name = "{" + xml_ns + "}" + xml_name + + if data.get(xml_name) is not None: + discriminator_value = data.get(xml_name) + else: + discriminator_value = data.find(xml_name).text # pyright: ignore + else: + discriminator_value = data.get(discriminator._rest_name) + mapped_cls = cls.__mapping__.get(discriminator_value, cls) # pyright: ignore # pylint: disable=no-member + return mapped_cls._deserialize(data, exist_discriminators) + + def as_dict(self, *, exclude_readonly: bool = False) -> dict[str, typing.Any]: + """Return a dict that can be turned into json using json.dump. + + :keyword bool exclude_readonly: Whether to remove the readonly properties. + :returns: A dict JSON compatible object + :rtype: dict + """ + + result = {} + readonly_props = [] + if exclude_readonly: + readonly_props = [p._rest_name for p in self._attr_to_rest_field.values() if _is_readonly(p)] + for k, v in self.items(): + if exclude_readonly and k in readonly_props: # pyright: ignore + continue + is_multipart_file_input = False + try: + is_multipart_file_input = next( + rf for rf in self._attr_to_rest_field.values() if rf._rest_name == k + )._is_multipart_file_input + except StopIteration: + pass + result[k] = v if is_multipart_file_input else Model._as_dict_value(v, exclude_readonly=exclude_readonly) + return result + + @staticmethod + def _as_dict_value(v: typing.Any, exclude_readonly: bool = False) -> typing.Any: + if v is None or isinstance(v, _Null): + return None + if isinstance(v, (list, tuple, set)): + return type(v)(Model._as_dict_value(x, exclude_readonly=exclude_readonly) for x in v) + if isinstance(v, dict): + return {dk: Model._as_dict_value(dv, exclude_readonly=exclude_readonly) for dk, dv in v.items()} + return v.as_dict(exclude_readonly=exclude_readonly) if hasattr(v, "as_dict") else v + + +def _deserialize_model(model_deserializer: typing.Optional[typing.Callable], obj): + if _is_model(obj): + return obj + return _deserialize(model_deserializer, obj) + + +def _deserialize_with_optional(if_obj_deserializer: typing.Optional[typing.Callable], obj): + if obj is None: + return obj + return _deserialize_with_callable(if_obj_deserializer, obj) + + +def _deserialize_with_union(deserializers, obj): + for deserializer in deserializers: + try: + return _deserialize(deserializer, obj) + except DeserializationError: + pass + raise DeserializationError() + + +def _deserialize_dict( + value_deserializer: typing.Optional[typing.Callable], + module: typing.Optional[str], + obj: dict[typing.Any, typing.Any], +): + if obj is None: + return obj + if isinstance(obj, ET.Element): + obj = {child.tag: child for child in obj} + return {k: _deserialize(value_deserializer, v, module) for k, v in obj.items()} + + +def _deserialize_multiple_sequence( + entry_deserializers: list[typing.Optional[typing.Callable]], + module: typing.Optional[str], + obj, +): + if obj is None: + return obj + return type(obj)(_deserialize(deserializer, entry, module) for entry, deserializer in zip(obj, entry_deserializers)) + + +def _is_array_encoded_deserializer(deserializer: functools.partial) -> bool: + return ( + isinstance(deserializer, functools.partial) + and isinstance(deserializer.args[0], functools.partial) + and deserializer.args[0].func == _deserialize_array_encoded # pylint: disable=comparison-with-callable + ) + + +def _deserialize_sequence( + deserializer: typing.Optional[typing.Callable], + module: typing.Optional[str], + obj, +): + if obj is None: + return obj + if isinstance(obj, ET.Element): + obj = list(obj) + + # encoded string may be deserialized to sequence + if isinstance(obj, str) and isinstance(deserializer, functools.partial): + # for list[str] + if _is_array_encoded_deserializer(deserializer): + return deserializer(obj) + + # for list[Union[...]] + if isinstance(deserializer.args[0], list): + for sub_deserializer in deserializer.args[0]: + if _is_array_encoded_deserializer(sub_deserializer): + return sub_deserializer(obj) + + return type(obj)(_deserialize(deserializer, entry, module) for entry in obj) + + +def _sorted_annotations(types: list[typing.Any]) -> list[typing.Any]: + return sorted( + types, + key=lambda x: hasattr(x, "__name__") and x.__name__.lower() in ("str", "float", "int", "bool"), + ) + + +def _get_deserialize_callable_from_annotation( # pylint: disable=too-many-return-statements, too-many-statements, too-many-branches + annotation: typing.Any, + module: typing.Optional[str], + rf: typing.Optional["_RestField"] = None, +) -> typing.Optional[typing.Callable[[typing.Any], typing.Any]]: + if not annotation: + return None + + # is it a type alias? + if isinstance(annotation, str): + if module is not None: + annotation = _get_type_alias_type(module, annotation) + + # is it a forward ref / in quotes? + if isinstance(annotation, (str, typing.ForwardRef)): + try: + model_name = annotation.__forward_arg__ # type: ignore + except AttributeError: + model_name = annotation + if module is not None: + annotation = _get_model(module, model_name) # type: ignore + + try: + if module and _is_model(annotation): + if rf: + rf._is_model = True + + return functools.partial(_deserialize_model, annotation) # pyright: ignore + except Exception: + pass + + # is it a literal? + try: + if annotation.__origin__ is typing.Literal: # pyright: ignore + return None + except AttributeError: + pass + + # is it optional? + try: + if any(a is _NONE_TYPE for a in annotation.__args__): # pyright: ignore + if rf: + rf._is_optional = True + if len(annotation.__args__) <= 2: # pyright: ignore + if_obj_deserializer = _get_deserialize_callable_from_annotation( + next(a for a in annotation.__args__ if a is not _NONE_TYPE), module, rf # pyright: ignore + ) + + return functools.partial(_deserialize_with_optional, if_obj_deserializer) + # the type is Optional[Union[...]], we need to remove the None type from the Union + annotation_copy = copy.copy(annotation) + annotation_copy.__args__ = [a for a in annotation_copy.__args__ if a is not _NONE_TYPE] # pyright: ignore + return _get_deserialize_callable_from_annotation(annotation_copy, module, rf) + except AttributeError: + pass + + # is it union? + if getattr(annotation, "__origin__", None) is typing.Union: + # initial ordering is we make `string` the last deserialization option, because it is often them most generic + deserializers = [ + _get_deserialize_callable_from_annotation(arg, module, rf) + for arg in _sorted_annotations(annotation.__args__) # pyright: ignore + ] + + return functools.partial(_deserialize_with_union, deserializers) + + try: + annotation_name = ( + annotation.__name__ if hasattr(annotation, "__name__") else annotation._name # pyright: ignore + ) + if annotation_name.lower() == "dict": + value_deserializer = _get_deserialize_callable_from_annotation( + annotation.__args__[1], module, rf # pyright: ignore + ) + + return functools.partial( + _deserialize_dict, + value_deserializer, + module, + ) + except (AttributeError, IndexError): + pass + try: + annotation_name = ( + annotation.__name__ if hasattr(annotation, "__name__") else annotation._name # pyright: ignore + ) + if annotation_name.lower() in ["list", "set", "tuple", "sequence"]: + if len(annotation.__args__) > 1: # pyright: ignore + entry_deserializers = [ + _get_deserialize_callable_from_annotation(dt, module, rf) + for dt in annotation.__args__ # pyright: ignore + ] + return functools.partial(_deserialize_multiple_sequence, entry_deserializers, module) + deserializer = _get_deserialize_callable_from_annotation( + annotation.__args__[0], module, rf # pyright: ignore + ) + + return functools.partial(_deserialize_sequence, deserializer, module) + except (TypeError, IndexError, AttributeError, SyntaxError): + pass + + def _deserialize_default( + deserializer, + obj, + ): + if obj is None: + return obj + try: + return _deserialize_with_callable(deserializer, obj) + except Exception: + pass + return obj + + if get_deserializer(annotation, rf): + return functools.partial(_deserialize_default, get_deserializer(annotation, rf)) + + return functools.partial(_deserialize_default, annotation) + + +def _deserialize_with_callable( + deserializer: typing.Optional[typing.Callable[[typing.Any], typing.Any]], + value: typing.Any, +): # pylint: disable=too-many-return-statements + try: + if value is None or isinstance(value, _Null): + return None + if isinstance(value, ET.Element): + if deserializer is str: + return value.text or "" + if deserializer is int: + return int(value.text) if value.text else None + if deserializer is float: + return float(value.text) if value.text else None + if deserializer is bool: + return value.text == "true" if value.text else None + if deserializer and deserializer in _DESERIALIZE_MAPPING.values(): + return deserializer(value.text) if value.text else None + if deserializer and deserializer in _DESERIALIZE_MAPPING_WITHFORMAT.values(): + return deserializer(value.text) if value.text else None + if deserializer is None: + return value + if deserializer in [int, float, bool]: + return deserializer(value) + if isinstance(deserializer, CaseInsensitiveEnumMeta): + try: + return deserializer(value.text if isinstance(value, ET.Element) else value) + except ValueError: + # for unknown value, return raw value + return value.text if isinstance(value, ET.Element) else value + if isinstance(deserializer, type) and issubclass(deserializer, Model): + return deserializer._deserialize(value, []) + return typing.cast(typing.Callable[[typing.Any], typing.Any], deserializer)(value) + except Exception as e: + raise DeserializationError() from e + + +def _deserialize( + deserializer: typing.Any, + value: typing.Any, + module: typing.Optional[str] = None, + rf: typing.Optional["_RestField"] = None, + format: typing.Optional[str] = None, +) -> typing.Any: + if isinstance(value, PipelineResponse): + value = value.http_response.json() + if rf is None and format: + rf = _RestField(format=format) + if not isinstance(deserializer, functools.partial): + deserializer = _get_deserialize_callable_from_annotation(deserializer, module, rf) + return _deserialize_with_callable(deserializer, value) + + +def _failsafe_deserialize( + deserializer: typing.Any, + response: HttpResponse, + module: typing.Optional[str] = None, + rf: typing.Optional["_RestField"] = None, + format: typing.Optional[str] = None, +) -> typing.Any: + try: + return _deserialize(deserializer, response.json(), module, rf, format) + except Exception: # pylint: disable=broad-except + _LOGGER.warning( + "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True + ) + return None + + +def _failsafe_deserialize_xml( + deserializer: typing.Any, + response: HttpResponse, +) -> typing.Any: + try: + return _deserialize_xml(deserializer, response.text()) + except Exception: # pylint: disable=broad-except + _LOGGER.warning( + "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True + ) + return None + + +# pylint: disable=too-many-instance-attributes +class _RestField: + def __init__( + self, + *, + name: typing.Optional[str] = None, + type: typing.Optional[typing.Callable] = None, # pylint: disable=redefined-builtin + is_discriminator: bool = False, + visibility: typing.Optional[list[str]] = None, + default: typing.Any = _UNSET, + format: typing.Optional[str] = None, + is_multipart_file_input: bool = False, + xml: typing.Optional[dict[str, typing.Any]] = None, + deserializer: typing.Optional[typing.Callable] = None, + original_tsp_name: typing.Optional[str] = None, + ): + self._type = type + self._rest_name_input = name + self._module: typing.Optional[str] = None + self._is_discriminator = is_discriminator + self._visibility = visibility + self._is_model = False + self._is_optional = False + self._default = default + self._format = format + self._is_multipart_file_input = is_multipart_file_input + self._xml = xml if xml is not None else {} + self._deserializer = deserializer + self._original_tsp_name = original_tsp_name + + @property + def _class_type(self) -> typing.Any: + result = getattr(self._type, "args", [None])[0] + # type may be wrapped by nested functools.partial so we need to check for that + if isinstance(result, functools.partial): + return getattr(result, "args", [None])[0] + return result + + @property + def _rest_name(self) -> str: + if self._rest_name_input is None: + raise ValueError("Rest name was never set") + return self._rest_name_input + + def __get__(self, obj: Model, type=None): # pylint: disable=redefined-builtin + # by this point, type and rest_name will have a value bc we default + # them in __new__ of the Model class + # Use _data.get() directly to avoid triggering __getitem__ which clears the cache + item = obj._data.get(self._rest_name, _UNSET) + if item is _UNSET: + # Field not set by user; return the client default if one exists, otherwise None + return self._default if self._default is not _UNSET else None + if item is None: + return item + if self._is_model: + return item + + # For mutable types, we want mutations to directly affect _data + # Check if we've already deserialized this value + cache_attr = f"_deserialized_{self._rest_name}" + if hasattr(obj, cache_attr): + # Return the value from _data directly (it's been deserialized in place) + return obj._data.get(self._rest_name) + + # Fast path: use _deserializer directly (avoids _serialize/_deserialize chain) + if self._deserializer: + deserialized = self._deserializer(item) + else: + deserialized = _deserialize(self._type, _serialize(item, self._format), rf=self) + + # For mutable types, store the deserialized value back in _data + # so mutations directly affect _data + if isinstance(deserialized, (dict, list, set)): + obj._data[self._rest_name] = deserialized + object.__setattr__(obj, cache_attr, True) # Mark as deserialized + return deserialized + + return deserialized + + def __set__(self, obj: Model, value) -> None: + # Clear the cached deserialized object when setting a new value + cache_attr = f"_deserialized_{self._rest_name}" + if hasattr(obj, cache_attr): + object.__delattr__(obj, cache_attr) + + if value is None: + # we want to wipe out entries if users set attr to None + try: + obj.__delitem__(self._rest_name) + except KeyError: + pass + return + if self._is_model: + if not _is_model(value): + value = _deserialize(self._type, value) + obj.__setitem__(self._rest_name, value) + return + obj.__setitem__(self._rest_name, _serialize(value, self._format)) + + def _get_deserialize_callable_from_annotation( + self, annotation: typing.Any + ) -> typing.Optional[typing.Callable[[typing.Any], typing.Any]]: + return _get_deserialize_callable_from_annotation(annotation, self._module, self) + + +def rest_field( + *, + name: typing.Optional[str] = None, + type: typing.Optional[typing.Callable] = None, # pylint: disable=redefined-builtin + visibility: typing.Optional[list[str]] = None, + default: typing.Any = _UNSET, + format: typing.Optional[str] = None, + is_multipart_file_input: bool = False, + xml: typing.Optional[dict[str, typing.Any]] = None, + deserializer: typing.Optional[typing.Callable] = None, + original_tsp_name: typing.Optional[str] = None, +) -> typing.Any: + return _RestField( + name=name, + type=type, + visibility=visibility, + default=default, + format=format, + is_multipart_file_input=is_multipart_file_input, + xml=xml, + deserializer=deserializer, + original_tsp_name=original_tsp_name, + ) + + +def rest_discriminator( + *, + name: typing.Optional[str] = None, + type: typing.Optional[typing.Callable] = None, # pylint: disable=redefined-builtin + visibility: typing.Optional[list[str]] = None, + xml: typing.Optional[dict[str, typing.Any]] = None, +) -> typing.Any: + return _RestField(name=name, type=type, is_discriminator=True, visibility=visibility, xml=xml) + + +def serialize_xml(model: Model, exclude_readonly: bool = False) -> str: + """Serialize a model to XML. + + :param Model model: The model to serialize. + :param bool exclude_readonly: Whether to exclude readonly properties. + :returns: The XML representation of the model. + :rtype: str + """ + return ET.tostring(_get_element(model, exclude_readonly), encoding="unicode") # type: ignore + + +def _get_xml_ns(meta: dict[str, typing.Any]) -> typing.Optional[str]: + """Return the XML namespace from a metadata dict, checking both 'ns' (old-style) and 'namespace' (DPG) keys. + + :param dict meta: The metadata dictionary to extract namespace from. + :returns: The namespace string if 'ns' or 'namespace' key is present, None otherwise. + :rtype: str or None + """ + ns = meta.get("ns") + if ns is None: + ns = meta.get("namespace") + return ns + + +def _resolve_xml_ns( + prop_meta: dict[str, typing.Any], model_meta: typing.Optional[dict[str, typing.Any]] = None +) -> typing.Optional[str]: + """Resolve XML namespace for a property, falling back to model namespace when appropriate. + + Checks the property metadata first; if no namespace is found and the model does not declare + an explicit prefix, falls back to the model-level namespace. + + :param dict prop_meta: The property metadata dictionary. + :param dict model_meta: The model metadata dictionary, used as fallback. + :returns: The resolved namespace string, or None. + :rtype: str or None + """ + ns = _get_xml_ns(prop_meta) + if ns is None and model_meta is not None and not model_meta.get("prefix"): + ns = _get_xml_ns(model_meta) + return ns + + +def _set_xml_attribute(element: ET.Element, name: str, value: typing.Any, prop_meta: dict[str, typing.Any]) -> None: + """Set an XML attribute on an element, handling namespace prefix registration. + + :param ET.Element element: The element to set the attribute on. + :param str name: The default attribute name (wire name). + :param any value: The attribute value. + :param dict prop_meta: The property metadata dictionary. + """ + xml_name = prop_meta.get("name", name) + _attr_ns = _get_xml_ns(prop_meta) + if _attr_ns: + _attr_prefix = prop_meta.get("prefix") + if _attr_prefix: + _safe_register_namespace(_attr_prefix, _attr_ns) + xml_name = "{" + _attr_ns + "}" + xml_name + element.set(xml_name, _get_primitive_type_value(value)) + + +def _get_element( + o: typing.Any, + exclude_readonly: bool = False, + parent_meta: typing.Optional[dict[str, typing.Any]] = None, + wrapped_element: typing.Optional[ET.Element] = None, +) -> typing.Union[ET.Element, list[ET.Element]]: + if _is_model(o): + model_meta = getattr(o, "_xml", {}) + + # if prop is a model, then use the prop element directly, else generate a wrapper of model + if wrapped_element is None: + # When serializing as an array item (parent_meta is set), check if the parent has an + # explicit itemsName. This ensures correct element names for unwrapped arrays (where + # the element tag is the property/items name, not the model type name). + _items_name = parent_meta.get("itemsName") if parent_meta is not None else None + element_name = _items_name if _items_name else (model_meta.get("name") or o.__class__.__name__) + _model_ns = _get_xml_ns(model_meta) + wrapped_element = _create_xml_element( + element_name, + model_meta.get("prefix"), + _model_ns, + ) + + readonly_props = [] + if exclude_readonly: + readonly_props = [p._rest_name for p in o._attr_to_rest_field.values() if _is_readonly(p)] + + for k, v in o.items(): + # do not serialize readonly properties + if exclude_readonly and k in readonly_props: + continue + + prop_rest_field = _get_rest_field(o._attr_to_rest_field, k) + if prop_rest_field: + prop_meta = getattr(prop_rest_field, "_xml").copy() + # use the wire name as xml name if no specific name is set + if prop_meta.get("name") is None: + prop_meta["name"] = k + else: + # additional properties will not have rest field, use the wire name as xml name + prop_meta = {"name": k} + + # Propagate model namespace to properties only for old-style "ns"-keyed models. + # DPG-generated models use the "namespace" key and explicitly declare namespace on + # each property that needs it, so propagation is intentionally skipped for them. + if prop_meta.get("ns") is None and model_meta.get("ns"): + prop_meta["ns"] = model_meta.get("ns") + prop_meta["prefix"] = model_meta.get("prefix") + + if prop_meta.get("unwrapped", False): + # unwrapped could only set on array + wrapped_element.extend(_get_element(v, exclude_readonly, prop_meta)) + elif prop_meta.get("text", False): + # text could only set on primitive type + wrapped_element.text = _get_primitive_type_value(v) + elif prop_meta.get("attribute", False): + _set_xml_attribute(wrapped_element, k, v, prop_meta) + else: + # other wrapped prop element + wrapped_element.append(_get_wrapped_element(v, exclude_readonly, prop_meta)) + return wrapped_element + if isinstance(o, list): + return [_get_element(x, exclude_readonly, parent_meta) for x in o] # type: ignore + if isinstance(o, dict): + result = [] + _dict_ns = _get_xml_ns(parent_meta) if parent_meta else None + for k, v in o.items(): + result.append( + _get_wrapped_element( + v, + exclude_readonly, + { + "name": k, + "ns": _dict_ns, + "prefix": parent_meta.get("prefix") if parent_meta else None, + }, + ) + ) + return result + + # primitive case need to create element based on parent_meta + if parent_meta: + _items_ns = parent_meta.get("itemsNs") + if _items_ns is None: + _items_ns = _get_xml_ns(parent_meta) + return _get_wrapped_element( + o, + exclude_readonly, + { + "name": parent_meta.get("itemsName", parent_meta.get("name")), + "prefix": parent_meta.get("itemsPrefix", parent_meta.get("prefix")), + "ns": _items_ns, + }, + ) + + raise ValueError("Could not serialize value into xml: " + o) + + +def _get_wrapped_element( + v: typing.Any, + exclude_readonly: bool, + meta: typing.Optional[dict[str, typing.Any]], +) -> ET.Element: + _meta_ns = _get_xml_ns(meta) if meta else None + wrapped_element = _create_xml_element( + meta.get("name") if meta else None, meta.get("prefix") if meta else None, _meta_ns + ) + if isinstance(v, (dict, list)): + wrapped_element.extend(_get_element(v, exclude_readonly, meta)) + elif _is_model(v): + _get_element(v, exclude_readonly, meta, wrapped_element) + else: + wrapped_element.text = _get_primitive_type_value(v) + return wrapped_element # type: ignore[no-any-return] + + +def _get_primitive_type_value(v) -> str: + if v is True: + return "true" + if v is False: + return "false" + if isinstance(v, _Null): + return "" + return str(v) + + +def _safe_register_namespace(prefix: str, ns: str) -> None: + """Register an XML namespace prefix, handling reserved prefix patterns. + + Some prefixes (e.g. 'ns2') match Python's reserved 'ns\\d+' pattern used for + auto-generated prefixes, causing register_namespace to raise ValueError. + Falls back to directly registering in the internal namespace map. + + :param str prefix: The namespace prefix to register. + :param str ns: The namespace URI. + """ + try: + ET.register_namespace(prefix, ns) + except ValueError: + _ns_map = getattr(ET, "_namespace_map", None) + if _ns_map is not None: + _ns_map[ns] = prefix + + +def _create_xml_element( + tag: typing.Any, prefix: typing.Optional[str] = None, ns: typing.Optional[str] = None +) -> ET.Element: + if prefix and ns: + _safe_register_namespace(prefix, ns) + if ns: + return ET.Element("{" + ns + "}" + tag) + return ET.Element(tag) + + +def _deserialize_xml( + deserializer: typing.Any, + value: str, +) -> typing.Any: + element = ET.fromstring(value) # nosec + if _is_model(deserializer): + return deserializer._deserialize(element, []) + return _deserialize(deserializer, element) + + +def _convert_element(e: ET.Element): + # dict case + if len(e.attrib) > 0 or len({child.tag for child in e}) > 1: + dict_result: dict[str, typing.Any] = {} + for child in e: + if dict_result.get(child.tag) is not None: + if isinstance(dict_result[child.tag], list): + dict_result[child.tag].append(_convert_element(child)) + else: + dict_result[child.tag] = [dict_result[child.tag], _convert_element(child)] + else: + dict_result[child.tag] = _convert_element(child) + dict_result.update(e.attrib) + return dict_result + # array case + if len(e) > 0: + array_result: list[typing.Any] = [] + for child in e: + array_result.append(_convert_element(child)) + return array_result + # primitive case + return e.text diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_utils/serialization.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_utils/serialization.py index 6da830e0cf4a..a088671e9c51 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_utils/serialization.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_utils/serialization.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -39,11 +39,15 @@ import xml.etree.ElementTree as ET import isodate # type: ignore -from typing_extensions import Self from azure.core.exceptions import DeserializationError, SerializationError from azure.core.serialization import NULL as CoreNull +if sys.version_info >= (3, 11): + from typing import Self +else: + from typing_extensions import Self + _BOM = codecs.BOM_UTF8.decode(encoding="utf-8") JSON = MutableMapping[str, Any] @@ -1401,7 +1405,7 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None: # Otherwise, result are unexpected self.additional_properties_detection = True - def __call__(self, target_obj, response_data, content_type=None): + def __call__(self, target_obj, response_data, content_type=None): # pylint: disable=too-many-return-statements """Call the deserializer to process a REST response. :param str target_obj: Target data type to deserialize to. @@ -1411,6 +1415,27 @@ def __call__(self, target_obj, response_data, content_type=None): :return: Deserialized object. :rtype: object """ + # Fast path for header deserialization: response_data is a plain str or None + # and target_obj is a simple scalar type. This avoids the expensive + # _unpack_content → _deserialize → _classify_target → deserialize_data chain. + if response_data is None: + return None + if target_obj == "str" and isinstance(response_data, str): + return response_data + if isinstance(response_data, str): + if target_obj == "int": + return int(response_data) + if target_obj == "bool": + if response_data in ("true", "1", "True"): + return True + if response_data in ("false", "0", "False"): + return False + return bool(response_data) + if target_obj == "rfc-1123": + return Deserializer.deserialize_rfc(response_data) + if target_obj == "bytearray": + return Deserializer.deserialize_bytearray(response_data) + data = self._unpack_content(response_data, content_type) return self._deserialize(target_obj, data) diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_utils/utils.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_utils/utils.py new file mode 100644 index 000000000000..cbaa624660e4 --- /dev/null +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_utils/utils.py @@ -0,0 +1,40 @@ +# -------------------------------------------------------------------------- +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import Optional + +from azure.core import MatchConditions + + +def quote_etag(etag: Optional[str]) -> Optional[str]: + if not etag or etag == "*": + return etag + if etag.startswith("W/"): + return etag + if etag.startswith('"') and etag.endswith('"'): + return etag + if etag.startswith("'") and etag.endswith("'"): + return etag + return '"' + etag + '"' + + +def prep_if_match(etag: Optional[str], match_condition: Optional[MatchConditions]) -> Optional[str]: + if match_condition == MatchConditions.IfNotModified: + if_match = quote_etag(etag) if etag else None + return if_match + if match_condition == MatchConditions.IfPresent: + return "*" + return None + + +def prep_if_none_match(etag: Optional[str], match_condition: Optional[MatchConditions]) -> Optional[str]: + if match_condition == MatchConditions.IfModified: + if_none_match = quote_etag(etag) if etag else None + return if_none_match + if match_condition == MatchConditions.IfMissing: + return "*" + return None diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_version.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_version.py index 726043aa858a..c36aac0dab1b 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_version.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_version.py @@ -2,8 +2,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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "9.3.0" +VERSION = "10.0.0b1" diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/__init__.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/__init__.py index 0fc55d836054..f36d7a01c67b 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/__init__.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -12,7 +12,7 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._data_factory_management_client import DataFactoryManagementClient # type: ignore +from ._client import DataFactoryManagementClient # type: ignore try: from ._patch import __all__ as _patch_all diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_data_factory_management_client.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_client.py similarity index 91% rename from sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_data_factory_management_client.py rename to sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_client.py index fb0396492cb9..dcf476e08263 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_data_factory_management_client.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_client.py @@ -2,13 +2,13 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from copy import deepcopy +import sys from typing import Any, Awaitable, Optional, TYPE_CHECKING, cast -from typing_extensions import Self from azure.core.pipeline import policies from azure.core.rest import AsyncHttpResponse, HttpRequest @@ -17,7 +17,6 @@ from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy from azure.mgmt.core.tools import get_arm_endpoints -from .. import models as _models from .._utils.serialization import Deserializer, Serializer from ._configuration import DataFactoryManagementClientConfiguration from .operations import ( @@ -47,14 +46,18 @@ TriggersOperations, ) +if sys.version_info >= (3, 11): + from typing import Self +else: + from typing_extensions import Self # type: ignore + if TYPE_CHECKING: from azure.core import AzureClouds from azure.core.credentials_async import AsyncTokenCredential class DataFactoryManagementClient: # pylint: disable=too-many-instance-attributes - """The Azure Data Factory V2 management API provides a RESTful set of web services that interact - with Azure Data Factory V2 services. + """DataFactoryManagementClient. :ivar operations: Operations operations :vartype operations: azure.mgmt.datafactory.aio.operations.Operations @@ -62,6 +65,20 @@ class DataFactoryManagementClient: # pylint: disable=too-many-instance-attribut :vartype factories: azure.mgmt.datafactory.aio.operations.FactoriesOperations :ivar exposure_control: ExposureControlOperations operations :vartype exposure_control: azure.mgmt.datafactory.aio.operations.ExposureControlOperations + :ivar pipeline_runs: PipelineRunsOperations operations + :vartype pipeline_runs: azure.mgmt.datafactory.aio.operations.PipelineRunsOperations + :ivar activity_runs: ActivityRunsOperations operations + :vartype activity_runs: azure.mgmt.datafactory.aio.operations.ActivityRunsOperations + :ivar triggers: TriggersOperations operations + :vartype triggers: azure.mgmt.datafactory.aio.operations.TriggersOperations + :ivar trigger_runs: TriggerRunsOperations operations + :vartype trigger_runs: azure.mgmt.datafactory.aio.operations.TriggerRunsOperations + :ivar data_flow_debug_session: DataFlowDebugSessionOperations operations + :vartype data_flow_debug_session: + azure.mgmt.datafactory.aio.operations.DataFlowDebugSessionOperations + :ivar private_link_resources: PrivateLinkResourcesOperations operations + :vartype private_link_resources: + azure.mgmt.datafactory.aio.operations.PrivateLinkResourcesOperations :ivar integration_runtimes: IntegrationRuntimesOperations operations :vartype integration_runtimes: azure.mgmt.datafactory.aio.operations.IntegrationRuntimesOperations @@ -81,19 +98,8 @@ class DataFactoryManagementClient: # pylint: disable=too-many-instance-attribut :vartype datasets: azure.mgmt.datafactory.aio.operations.DatasetsOperations :ivar pipelines: PipelinesOperations operations :vartype pipelines: azure.mgmt.datafactory.aio.operations.PipelinesOperations - :ivar pipeline_runs: PipelineRunsOperations operations - :vartype pipeline_runs: azure.mgmt.datafactory.aio.operations.PipelineRunsOperations - :ivar activity_runs: ActivityRunsOperations operations - :vartype activity_runs: azure.mgmt.datafactory.aio.operations.ActivityRunsOperations - :ivar triggers: TriggersOperations operations - :vartype triggers: azure.mgmt.datafactory.aio.operations.TriggersOperations - :ivar trigger_runs: TriggerRunsOperations operations - :vartype trigger_runs: azure.mgmt.datafactory.aio.operations.TriggerRunsOperations :ivar data_flows: DataFlowsOperations operations :vartype data_flows: azure.mgmt.datafactory.aio.operations.DataFlowsOperations - :ivar data_flow_debug_session: DataFlowDebugSessionOperations operations - :vartype data_flow_debug_session: - azure.mgmt.datafactory.aio.operations.DataFlowDebugSessionOperations :ivar managed_virtual_networks: ManagedVirtualNetworksOperations operations :vartype managed_virtual_networks: azure.mgmt.datafactory.aio.operations.ManagedVirtualNetworksOperations @@ -103,30 +109,28 @@ class DataFactoryManagementClient: # pylint: disable=too-many-instance-attribut :ivar credential_operations: CredentialOperationsOperations operations :vartype credential_operations: azure.mgmt.datafactory.aio.operations.CredentialOperationsOperations - :ivar private_end_point_connections: PrivateEndPointConnectionsOperations operations - :vartype private_end_point_connections: - azure.mgmt.datafactory.aio.operations.PrivateEndPointConnectionsOperations :ivar private_endpoint_connection: PrivateEndpointConnectionOperations operations :vartype private_endpoint_connection: azure.mgmt.datafactory.aio.operations.PrivateEndpointConnectionOperations - :ivar private_link_resources: PrivateLinkResourcesOperations operations - :vartype private_link_resources: - azure.mgmt.datafactory.aio.operations.PrivateLinkResourcesOperations + :ivar private_end_point_connections: PrivateEndPointConnectionsOperations operations + :vartype private_end_point_connections: + azure.mgmt.datafactory.aio.operations.PrivateEndPointConnectionsOperations :ivar global_parameters: GlobalParametersOperations operations :vartype global_parameters: azure.mgmt.datafactory.aio.operations.GlobalParametersOperations :ivar change_data_capture: ChangeDataCaptureOperations operations :vartype change_data_capture: azure.mgmt.datafactory.aio.operations.ChangeDataCaptureOperations - :param credential: Credential needed for the client to connect to Azure. Required. + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: The subscription identifier. Required. + :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str - :param base_url: Service URL. Default value is None. + :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2018-06-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are "2018-06-01" + and None. Default value is None. If not set, the operation's default API version will be used. + Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. @@ -141,6 +145,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: + _endpoint = "{endpoint}" _cloud = cloud_setting or settings.current.azure_cloud # type: ignore _endpoints = get_arm_endpoints(_cloud) if not base_url: @@ -149,6 +154,7 @@ def __init__( self._config = DataFactoryManagementClientConfiguration( credential=credential, subscription_id=subscription_id, + base_url=cast(str, base_url), cloud_setting=cloud_setting, credential_scopes=credential_scopes, **kwargs @@ -173,18 +179,27 @@ def __init__( self._config.http_logging_policy, ] self._client: AsyncARMPipelineClient = AsyncARMPipelineClient( - base_url=cast(str, base_url), policies=_policies, **kwargs + base_url=cast(str, _endpoint), policies=_policies, **kwargs ) - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) + self._serialize = Serializer() + self._deserialize = Deserializer() self._serialize.client_side_validation = False self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) self.factories = FactoriesOperations(self._client, self._config, self._serialize, self._deserialize) self.exposure_control = ExposureControlOperations( self._client, self._config, self._serialize, self._deserialize ) + self.pipeline_runs = PipelineRunsOperations(self._client, self._config, self._serialize, self._deserialize) + self.activity_runs = ActivityRunsOperations(self._client, self._config, self._serialize, self._deserialize) + self.triggers = TriggersOperations(self._client, self._config, self._serialize, self._deserialize) + self.trigger_runs = TriggerRunsOperations(self._client, self._config, self._serialize, self._deserialize) + self.data_flow_debug_session = DataFlowDebugSessionOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.private_link_resources = PrivateLinkResourcesOperations( + self._client, self._config, self._serialize, self._deserialize + ) self.integration_runtimes = IntegrationRuntimesOperations( self._client, self._config, self._serialize, self._deserialize ) @@ -200,14 +215,7 @@ def __init__( self.linked_services = LinkedServicesOperations(self._client, self._config, self._serialize, self._deserialize) self.datasets = DatasetsOperations(self._client, self._config, self._serialize, self._deserialize) self.pipelines = PipelinesOperations(self._client, self._config, self._serialize, self._deserialize) - self.pipeline_runs = PipelineRunsOperations(self._client, self._config, self._serialize, self._deserialize) - self.activity_runs = ActivityRunsOperations(self._client, self._config, self._serialize, self._deserialize) - self.triggers = TriggersOperations(self._client, self._config, self._serialize, self._deserialize) - self.trigger_runs = TriggerRunsOperations(self._client, self._config, self._serialize, self._deserialize) self.data_flows = DataFlowsOperations(self._client, self._config, self._serialize, self._deserialize) - self.data_flow_debug_session = DataFlowDebugSessionOperations( - self._client, self._config, self._serialize, self._deserialize - ) self.managed_virtual_networks = ManagedVirtualNetworksOperations( self._client, self._config, self._serialize, self._deserialize ) @@ -217,13 +225,10 @@ def __init__( self.credential_operations = CredentialOperationsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.private_end_point_connections = PrivateEndPointConnectionsOperations( - self._client, self._config, self._serialize, self._deserialize - ) self.private_endpoint_connection = PrivateEndpointConnectionOperations( self._client, self._config, self._serialize, self._deserialize ) - self.private_link_resources = PrivateLinkResourcesOperations( + self.private_end_point_connections = PrivateEndPointConnectionsOperations( self._client, self._config, self._serialize, self._deserialize ) self.global_parameters = GlobalParametersOperations( @@ -233,7 +238,7 @@ def __init__( self._client, self._config, self._serialize, self._deserialize ) - def _send_request( + def send_request( self, request: HttpRequest, *, stream: bool = False, **kwargs: Any ) -> Awaitable[AsyncHttpResponse]: """Runs the network request through the client's chained policies. @@ -241,7 +246,7 @@ def _send_request( >>> from azure.core.rest import HttpRequest >>> request = HttpRequest("GET", "https://www.example.org/") - >>> response = await client._send_request(request) + >>> response = await client.send_request(request) For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request @@ -254,7 +259,11 @@ def _send_request( """ request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore async def close(self) -> None: diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_configuration.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_configuration.py index 45cc3c86b522..4d06c903d0cc 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_configuration.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_configuration.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -24,15 +24,18 @@ class DataFactoryManagementClientConfiguration: # pylint: disable=too-many-inst Note that all parameters used to create this instance are saved as instance attributes. - :param credential: Credential needed for the client to connect to Azure. Required. + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: The subscription identifier. Required. + :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str + :param base_url: Service host. Default value is "https://management.azure.com". + :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2018-06-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are "2018-06-01" + and None. Default value is None. If not set, the operation's default API version will be used. + Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ @@ -40,6 +43,7 @@ def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, + base_url: str = "https://management.azure.com", cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: @@ -52,6 +56,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id + self.base_url = base_url self.cloud_setting = cloud_setting self.api_version = api_version self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_patch.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_patch.py index 17dbc073e01b..ea765788358a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_patch.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_patch.py @@ -1,32 +1,20 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# # Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------- +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" + +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level -# This file is used for handwritten extensions to the generated code. Example: -# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): - pass + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/__init__.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/__init__.py index 086a098e8d6b..4c240f164385 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/__init__.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -13,29 +13,29 @@ from ._patch import * # pylint: disable=unused-wildcard-import from ._operations import Operations # type: ignore -from ._factories_operations import FactoriesOperations # type: ignore -from ._exposure_control_operations import ExposureControlOperations # type: ignore -from ._integration_runtimes_operations import IntegrationRuntimesOperations # type: ignore -from ._integration_runtime_object_metadata_operations import IntegrationRuntimeObjectMetadataOperations # type: ignore -from ._integration_runtime_nodes_operations import IntegrationRuntimeNodesOperations # type: ignore -from ._integration_runtime_operations import IntegrationRuntimeOperations # type: ignore -from ._linked_services_operations import LinkedServicesOperations # type: ignore -from ._datasets_operations import DatasetsOperations # type: ignore -from ._pipelines_operations import PipelinesOperations # type: ignore -from ._pipeline_runs_operations import PipelineRunsOperations # type: ignore -from ._activity_runs_operations import ActivityRunsOperations # type: ignore -from ._triggers_operations import TriggersOperations # type: ignore -from ._trigger_runs_operations import TriggerRunsOperations # type: ignore -from ._data_flows_operations import DataFlowsOperations # type: ignore -from ._data_flow_debug_session_operations import DataFlowDebugSessionOperations # type: ignore -from ._managed_virtual_networks_operations import ManagedVirtualNetworksOperations # type: ignore -from ._managed_private_endpoints_operations import ManagedPrivateEndpointsOperations # type: ignore -from ._credential_operations_operations import CredentialOperationsOperations # type: ignore -from ._private_end_point_connections_operations import PrivateEndPointConnectionsOperations # type: ignore -from ._private_endpoint_connection_operations import PrivateEndpointConnectionOperations # type: ignore -from ._private_link_resources_operations import PrivateLinkResourcesOperations # type: ignore -from ._global_parameters_operations import GlobalParametersOperations # type: ignore -from ._change_data_capture_operations import ChangeDataCaptureOperations # type: ignore +from ._operations import FactoriesOperations # type: ignore +from ._operations import ExposureControlOperations # type: ignore +from ._operations import PipelineRunsOperations # type: ignore +from ._operations import ActivityRunsOperations # type: ignore +from ._operations import TriggersOperations # type: ignore +from ._operations import TriggerRunsOperations # type: ignore +from ._operations import DataFlowDebugSessionOperations # type: ignore +from ._operations import PrivateLinkResourcesOperations # type: ignore +from ._operations import IntegrationRuntimesOperations # type: ignore +from ._operations import IntegrationRuntimeObjectMetadataOperations # type: ignore +from ._operations import IntegrationRuntimeNodesOperations # type: ignore +from ._operations import IntegrationRuntimeOperations # type: ignore +from ._operations import LinkedServicesOperations # type: ignore +from ._operations import DatasetsOperations # type: ignore +from ._operations import PipelinesOperations # type: ignore +from ._operations import DataFlowsOperations # type: ignore +from ._operations import ManagedVirtualNetworksOperations # type: ignore +from ._operations import ManagedPrivateEndpointsOperations # type: ignore +from ._operations import CredentialOperationsOperations # type: ignore +from ._operations import PrivateEndpointConnectionOperations # type: ignore +from ._operations import PrivateEndPointConnectionsOperations # type: ignore +from ._operations import GlobalParametersOperations # type: ignore +from ._operations import ChangeDataCaptureOperations # type: ignore from ._patch import __all__ as _patch_all from ._patch import * @@ -45,6 +45,12 @@ "Operations", "FactoriesOperations", "ExposureControlOperations", + "PipelineRunsOperations", + "ActivityRunsOperations", + "TriggersOperations", + "TriggerRunsOperations", + "DataFlowDebugSessionOperations", + "PrivateLinkResourcesOperations", "IntegrationRuntimesOperations", "IntegrationRuntimeObjectMetadataOperations", "IntegrationRuntimeNodesOperations", @@ -52,18 +58,12 @@ "LinkedServicesOperations", "DatasetsOperations", "PipelinesOperations", - "PipelineRunsOperations", - "ActivityRunsOperations", - "TriggersOperations", - "TriggerRunsOperations", "DataFlowsOperations", - "DataFlowDebugSessionOperations", "ManagedVirtualNetworksOperations", "ManagedPrivateEndpointsOperations", "CredentialOperationsOperations", - "PrivateEndPointConnectionsOperations", "PrivateEndpointConnectionOperations", - "PrivateLinkResourcesOperations", + "PrivateEndPointConnectionsOperations", "GlobalParametersOperations", "ChangeDataCaptureOperations", ] diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_activity_runs_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_activity_runs_operations.py deleted file mode 100644 index 5e5ae6076dd5..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_activity_runs_operations.py +++ /dev/null @@ -1,193 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._activity_runs_operations import build_query_by_pipeline_run_request -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ActivityRunsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`activity_runs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @overload - async def query_by_pipeline_run( - self, - resource_group_name: str, - factory_name: str, - run_id: str, - filter_parameters: _models.RunFilterParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ActivityRunsQueryResponse: - """Query activity runs based on input filter conditions. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param run_id: The pipeline run identifier. Required. - :type run_id: str - :param filter_parameters: Parameters to filter the activity runs. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ActivityRunsQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def query_by_pipeline_run( - self, - resource_group_name: str, - factory_name: str, - run_id: str, - filter_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ActivityRunsQueryResponse: - """Query activity runs based on input filter conditions. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param run_id: The pipeline run identifier. Required. - :type run_id: str - :param filter_parameters: Parameters to filter the activity runs. Required. - :type filter_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ActivityRunsQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def query_by_pipeline_run( - self, - resource_group_name: str, - factory_name: str, - run_id: str, - filter_parameters: Union[_models.RunFilterParameters, IO[bytes]], - **kwargs: Any - ) -> _models.ActivityRunsQueryResponse: - """Query activity runs based on input filter conditions. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param run_id: The pipeline run identifier. Required. - :type run_id: str - :param filter_parameters: Parameters to filter the activity runs. Is either a - RunFilterParameters type or a IO[bytes] type. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or IO[bytes] - :return: ActivityRunsQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ActivityRunsQueryResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(filter_parameters, (IOBase, bytes)): - _content = filter_parameters - else: - _json = self._serialize.body(filter_parameters, "RunFilterParameters") - - _request = build_query_by_pipeline_run_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - run_id=run_id, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ActivityRunsQueryResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_change_data_capture_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_change_data_capture_operations.py deleted file mode 100644 index 6ab2ef6cbb48..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_change_data_capture_operations.py +++ /dev/null @@ -1,598 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._change_data_capture_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_by_factory_request, - build_start_request, - build_status_request, - build_stop_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ChangeDataCaptureOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`change_data_capture` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.ChangeDataCaptureResource"]: - """Lists all resources of type change data capture. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either ChangeDataCaptureResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.ChangeDataCaptureResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ChangeDataCaptureListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ChangeDataCaptureListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - change_data_capture_name: str, - change_data_capture: _models.ChangeDataCaptureResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ChangeDataCaptureResource: - """Creates or updates a change data capture resource. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param change_data_capture_name: The change data capture name. Required. - :type change_data_capture_name: str - :param change_data_capture: Change data capture resource definition. Required. - :type change_data_capture: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource - :param if_match: ETag of the change data capture entity. Should only be specified for update, - for which it should match existing entity or can be * for unconditional update. Default value - is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ChangeDataCaptureResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - change_data_capture_name: str, - change_data_capture: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ChangeDataCaptureResource: - """Creates or updates a change data capture resource. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param change_data_capture_name: The change data capture name. Required. - :type change_data_capture_name: str - :param change_data_capture: Change data capture resource definition. Required. - :type change_data_capture: IO[bytes] - :param if_match: ETag of the change data capture entity. Should only be specified for update, - for which it should match existing entity or can be * for unconditional update. Default value - is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ChangeDataCaptureResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - change_data_capture_name: str, - change_data_capture: Union[_models.ChangeDataCaptureResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.ChangeDataCaptureResource: - """Creates or updates a change data capture resource. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param change_data_capture_name: The change data capture name. Required. - :type change_data_capture_name: str - :param change_data_capture: Change data capture resource definition. Is either a - ChangeDataCaptureResource type or a IO[bytes] type. Required. - :type change_data_capture: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource or - IO[bytes] - :param if_match: ETag of the change data capture entity. Should only be specified for update, - for which it should match existing entity or can be * for unconditional update. Default value - is None. - :type if_match: str - :return: ChangeDataCaptureResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ChangeDataCaptureResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(change_data_capture, (IOBase, bytes)): - _content = change_data_capture - else: - _json = self._serialize.body(change_data_capture, "ChangeDataCaptureResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - change_data_capture_name=change_data_capture_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ChangeDataCaptureResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - factory_name: str, - change_data_capture_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> _models.ChangeDataCaptureResource: - """Gets a change data capture. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param change_data_capture_name: The change data capture name. Required. - :type change_data_capture_name: str - :param if_none_match: ETag of the change data capture entity. Should only be specified for get. - If the ETag matches the existing entity tag, or if * was provided, then no content will be - returned. Default value is None. - :type if_none_match: str - :return: ChangeDataCaptureResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ChangeDataCaptureResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - change_data_capture_name=change_data_capture_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ChangeDataCaptureResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete( - self, resource_group_name: str, factory_name: str, change_data_capture_name: str, **kwargs: Any - ) -> None: - """Deletes a change data capture. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param change_data_capture_name: The change data capture name. Required. - :type change_data_capture_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - change_data_capture_name=change_data_capture_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def start( - self, resource_group_name: str, factory_name: str, change_data_capture_name: str, **kwargs: Any - ) -> None: - """Starts a change data capture. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param change_data_capture_name: The change data capture name. Required. - :type change_data_capture_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - change_data_capture_name=change_data_capture_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def stop( - self, resource_group_name: str, factory_name: str, change_data_capture_name: str, **kwargs: Any - ) -> None: - """Stops a change data capture. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param change_data_capture_name: The change data capture name. Required. - :type change_data_capture_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - change_data_capture_name=change_data_capture_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def status( - self, resource_group_name: str, factory_name: str, change_data_capture_name: str, **kwargs: Any - ) -> str: - """Gets the current status for the change data capture resource. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param change_data_capture_name: The change data capture name. Required. - :type change_data_capture_name: str - :return: str or the result of cls(response) - :rtype: str - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[str] = kwargs.pop("cls", None) - - _request = build_status_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - change_data_capture_name=change_data_capture_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("str", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_credential_operations_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_credential_operations_operations.py deleted file mode 100644 index 7cad48578329..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_credential_operations_operations.py +++ /dev/null @@ -1,421 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._credential_operations_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_by_factory_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class CredentialOperationsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`credential_operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.CredentialResource"]: - """List credentials. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either CredentialResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.CredentialResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.CredentialListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CredentialListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - credential_name: str, - credential: _models.CredentialResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CredentialResource: - """Creates or updates a credential. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param credential_name: Credential name. Required. - :type credential_name: str - :param credential: Credential resource definition. Required. - :type credential: ~azure.mgmt.datafactory.models.CredentialResource - :param if_match: ETag of the credential entity. Should only be specified for update, for which - it should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CredentialResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.CredentialResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - credential_name: str, - credential: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CredentialResource: - """Creates or updates a credential. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param credential_name: Credential name. Required. - :type credential_name: str - :param credential: Credential resource definition. Required. - :type credential: IO[bytes] - :param if_match: ETag of the credential entity. Should only be specified for update, for which - it should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CredentialResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.CredentialResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - credential_name: str, - credential: Union[_models.CredentialResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.CredentialResource: - """Creates or updates a credential. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param credential_name: Credential name. Required. - :type credential_name: str - :param credential: Credential resource definition. Is either a CredentialResource type or a - IO[bytes] type. Required. - :type credential: ~azure.mgmt.datafactory.models.CredentialResource or IO[bytes] - :param if_match: ETag of the credential entity. Should only be specified for update, for which - it should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :return: CredentialResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.CredentialResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CredentialResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(credential, (IOBase, bytes)): - _content = credential - else: - _json = self._serialize.body(credential, "CredentialResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - credential_name=credential_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CredentialResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - factory_name: str, - credential_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> Optional[_models.CredentialResource]: - """Gets a credential. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param credential_name: Credential name. Required. - :type credential_name: str - :param if_none_match: ETag of the credential entity. Should only be specified for get. If the - ETag matches the existing entity tag, or if * was provided, then no content will be returned. - Default value is None. - :type if_none_match: str - :return: CredentialResource or None or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.CredentialResource or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Optional[_models.CredentialResource]] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - credential_name=credential_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 304]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("CredentialResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete(self, resource_group_name: str, factory_name: str, credential_name: str, **kwargs: Any) -> None: - """Deletes a credential. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param credential_name: Credential name. Required. - :type credential_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - credential_name=credential_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flow_debug_session_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flow_debug_session_operations.py deleted file mode 100644 index af0f7a0a003a..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flow_debug_session_operations.py +++ /dev/null @@ -1,795 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._data_flow_debug_session_operations import ( - build_add_data_flow_request, - build_create_request, - build_delete_request, - build_execute_command_request, - build_query_by_factory_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class DataFlowDebugSessionOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`data_flow_debug_session` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - async def _create_initial( - self, - resource_group_name: str, - factory_name: str, - request: Union[_models.CreateDataFlowDebugSessionRequest, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(request, (IOBase, bytes)): - _content = request - else: - _json = self._serialize.body(request, "CreateDataFlowDebugSessionRequest") - - _request = build_create_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["location"] = self._deserialize("str", response.headers.get("location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create( - self, - resource_group_name: str, - factory_name: str, - request: _models.CreateDataFlowDebugSessionRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CreateDataFlowDebugSessionResponse]: - """Creates a data flow debug session. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug session definition. Required. - :type request: ~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CreateDataFlowDebugSessionResponse - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create( - self, - resource_group_name: str, - factory_name: str, - request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CreateDataFlowDebugSessionResponse]: - """Creates a data flow debug session. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug session definition. Required. - :type request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CreateDataFlowDebugSessionResponse - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create( - self, - resource_group_name: str, - factory_name: str, - request: Union[_models.CreateDataFlowDebugSessionRequest, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CreateDataFlowDebugSessionResponse]: - """Creates a data flow debug session. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug session definition. Is either a - CreateDataFlowDebugSessionRequest type or a IO[bytes] type. Required. - :type request: ~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionRequest or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CreateDataFlowDebugSessionResponse - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CreateDataFlowDebugSessionResponse] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - request=request, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CreateDataFlowDebugSessionResponse", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CreateDataFlowDebugSessionResponse].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CreateDataFlowDebugSessionResponse]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def query_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.DataFlowDebugSessionInfo"]: - """Query all active data flow debug sessions. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either DataFlowDebugSessionInfo or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.DataFlowDebugSessionInfo] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.QueryDataFlowDebugSessionsResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_query_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("QueryDataFlowDebugSessionsResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def add_data_flow( - self, - resource_group_name: str, - factory_name: str, - request: _models.DataFlowDebugPackage, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.AddDataFlowToDebugSessionResponse: - """Add a data flow into debug session. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug session definition with debug content. Required. - :type request: ~azure.mgmt.datafactory.models.DataFlowDebugPackage - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: AddDataFlowToDebugSessionResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def add_data_flow( - self, - resource_group_name: str, - factory_name: str, - request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.AddDataFlowToDebugSessionResponse: - """Add a data flow into debug session. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug session definition with debug content. Required. - :type request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: AddDataFlowToDebugSessionResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def add_data_flow( - self, - resource_group_name: str, - factory_name: str, - request: Union[_models.DataFlowDebugPackage, IO[bytes]], - **kwargs: Any - ) -> _models.AddDataFlowToDebugSessionResponse: - """Add a data flow into debug session. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug session definition with debug content. Is either a - DataFlowDebugPackage type or a IO[bytes] type. Required. - :type request: ~azure.mgmt.datafactory.models.DataFlowDebugPackage or IO[bytes] - :return: AddDataFlowToDebugSessionResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AddDataFlowToDebugSessionResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(request, (IOBase, bytes)): - _content = request - else: - _json = self._serialize.body(request, "DataFlowDebugPackage") - - _request = build_add_data_flow_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AddDataFlowToDebugSessionResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def delete( - self, - resource_group_name: str, - factory_name: str, - request: _models.DeleteDataFlowDebugSessionRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> None: - """Deletes a data flow debug session. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug session definition for deletion. Required. - :type request: ~azure.mgmt.datafactory.models.DeleteDataFlowDebugSessionRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def delete( - self, - resource_group_name: str, - factory_name: str, - request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> None: - """Deletes a data flow debug session. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug session definition for deletion. Required. - :type request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def delete( - self, - resource_group_name: str, - factory_name: str, - request: Union[_models.DeleteDataFlowDebugSessionRequest, IO[bytes]], - **kwargs: Any - ) -> None: - """Deletes a data flow debug session. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug session definition for deletion. Is either a - DeleteDataFlowDebugSessionRequest type or a IO[bytes] type. Required. - :type request: ~azure.mgmt.datafactory.models.DeleteDataFlowDebugSessionRequest or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(request, (IOBase, bytes)): - _content = request - else: - _json = self._serialize.body(request, "DeleteDataFlowDebugSessionRequest") - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - async def _execute_command_initial( - self, - resource_group_name: str, - factory_name: str, - request: Union[_models.DataFlowDebugCommandRequest, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(request, (IOBase, bytes)): - _content = request - else: - _json = self._serialize.body(request, "DataFlowDebugCommandRequest") - - _request = build_execute_command_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["location"] = self._deserialize("str", response.headers.get("location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_execute_command( - self, - resource_group_name: str, - factory_name: str, - request: _models.DataFlowDebugCommandRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DataFlowDebugCommandResponse]: - """Execute a data flow debug command. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug command definition. Required. - :type request: ~azure.mgmt.datafactory.models.DataFlowDebugCommandRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DataFlowDebugCommandResponse or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.DataFlowDebugCommandResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_execute_command( - self, - resource_group_name: str, - factory_name: str, - request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DataFlowDebugCommandResponse]: - """Execute a data flow debug command. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug command definition. Required. - :type request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DataFlowDebugCommandResponse or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.DataFlowDebugCommandResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_execute_command( - self, - resource_group_name: str, - factory_name: str, - request: Union[_models.DataFlowDebugCommandRequest, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DataFlowDebugCommandResponse]: - """Execute a data flow debug command. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug command definition. Is either a DataFlowDebugCommandRequest - type or a IO[bytes] type. Required. - :type request: ~azure.mgmt.datafactory.models.DataFlowDebugCommandRequest or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DataFlowDebugCommandResponse or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.DataFlowDebugCommandResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DataFlowDebugCommandResponse] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._execute_command_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - request=request, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DataFlowDebugCommandResponse", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DataFlowDebugCommandResponse].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DataFlowDebugCommandResponse]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flows_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flows_operations.py deleted file mode 100644 index 7b0d7e75a78b..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flows_operations.py +++ /dev/null @@ -1,419 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._data_flows_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_by_factory_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class DataFlowsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`data_flows` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - data_flow_name: str, - data_flow: _models.DataFlowResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DataFlowResource: - """Creates or updates a data flow. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param data_flow_name: The data flow name. Required. - :type data_flow_name: str - :param data_flow: Data flow resource definition. Required. - :type data_flow: ~azure.mgmt.datafactory.models.DataFlowResource - :param if_match: ETag of the data flow entity. Should only be specified for update, for which - it should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: DataFlowResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.DataFlowResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - data_flow_name: str, - data_flow: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DataFlowResource: - """Creates or updates a data flow. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param data_flow_name: The data flow name. Required. - :type data_flow_name: str - :param data_flow: Data flow resource definition. Required. - :type data_flow: IO[bytes] - :param if_match: ETag of the data flow entity. Should only be specified for update, for which - it should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: DataFlowResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.DataFlowResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - data_flow_name: str, - data_flow: Union[_models.DataFlowResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.DataFlowResource: - """Creates or updates a data flow. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param data_flow_name: The data flow name. Required. - :type data_flow_name: str - :param data_flow: Data flow resource definition. Is either a DataFlowResource type or a - IO[bytes] type. Required. - :type data_flow: ~azure.mgmt.datafactory.models.DataFlowResource or IO[bytes] - :param if_match: ETag of the data flow entity. Should only be specified for update, for which - it should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :return: DataFlowResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.DataFlowResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DataFlowResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(data_flow, (IOBase, bytes)): - _content = data_flow - else: - _json = self._serialize.body(data_flow, "DataFlowResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - data_flow_name=data_flow_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DataFlowResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - factory_name: str, - data_flow_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> _models.DataFlowResource: - """Gets a data flow. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param data_flow_name: The data flow name. Required. - :type data_flow_name: str - :param if_none_match: ETag of the data flow entity. Should only be specified for get. If the - ETag matches the existing entity tag, or if * was provided, then no content will be returned. - Default value is None. - :type if_none_match: str - :return: DataFlowResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.DataFlowResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DataFlowResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - data_flow_name=data_flow_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DataFlowResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete(self, resource_group_name: str, factory_name: str, data_flow_name: str, **kwargs: Any) -> None: - """Deletes a data flow. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param data_flow_name: The data flow name. Required. - :type data_flow_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - data_flow_name=data_flow_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.DataFlowResource"]: - """Lists data flows. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either DataFlowResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.DataFlowResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DataFlowListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DataFlowListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_datasets_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_datasets_operations.py deleted file mode 100644 index cbb3355a7709..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_datasets_operations.py +++ /dev/null @@ -1,420 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._datasets_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_by_factory_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class DatasetsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`datasets` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.DatasetResource"]: - """Lists datasets. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either DatasetResource or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.DatasetResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatasetListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DatasetListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - dataset_name: str, - dataset: _models.DatasetResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DatasetResource: - """Creates or updates a dataset. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param dataset_name: The dataset name. Required. - :type dataset_name: str - :param dataset: Dataset resource definition. Required. - :type dataset: ~azure.mgmt.datafactory.models.DatasetResource - :param if_match: ETag of the dataset entity. Should only be specified for update, for which it - should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: DatasetResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.DatasetResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - dataset_name: str, - dataset: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DatasetResource: - """Creates or updates a dataset. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param dataset_name: The dataset name. Required. - :type dataset_name: str - :param dataset: Dataset resource definition. Required. - :type dataset: IO[bytes] - :param if_match: ETag of the dataset entity. Should only be specified for update, for which it - should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: DatasetResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.DatasetResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - dataset_name: str, - dataset: Union[_models.DatasetResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.DatasetResource: - """Creates or updates a dataset. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param dataset_name: The dataset name. Required. - :type dataset_name: str - :param dataset: Dataset resource definition. Is either a DatasetResource type or a IO[bytes] - type. Required. - :type dataset: ~azure.mgmt.datafactory.models.DatasetResource or IO[bytes] - :param if_match: ETag of the dataset entity. Should only be specified for update, for which it - should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :return: DatasetResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.DatasetResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DatasetResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dataset, (IOBase, bytes)): - _content = dataset - else: - _json = self._serialize.body(dataset, "DatasetResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - dataset_name=dataset_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DatasetResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - factory_name: str, - dataset_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> Optional[_models.DatasetResource]: - """Gets a dataset. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param dataset_name: The dataset name. Required. - :type dataset_name: str - :param if_none_match: ETag of the dataset entity. Should only be specified for get. If the ETag - matches the existing entity tag, or if * was provided, then no content will be returned. - Default value is None. - :type if_none_match: str - :return: DatasetResource or None or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.DatasetResource or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Optional[_models.DatasetResource]] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - dataset_name=dataset_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 304]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("DatasetResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete(self, resource_group_name: str, factory_name: str, dataset_name: str, **kwargs: Any) -> None: - """Deletes a dataset. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param dataset_name: The dataset name. Required. - :type dataset_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - dataset_name=dataset_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_exposure_control_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_exposure_control_operations.py deleted file mode 100644 index 30ec4f4849b1..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_exposure_control_operations.py +++ /dev/null @@ -1,437 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._exposure_control_operations import ( - build_get_feature_value_by_factory_request, - build_get_feature_value_request, - build_query_feature_values_by_factory_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ExposureControlOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`exposure_control` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @overload - async def get_feature_value( - self, - location_id: str, - exposure_control_request: _models.ExposureControlRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ExposureControlResponse: - """Get exposure control feature for specific location. - - :param location_id: The location identifier. Required. - :type location_id: str - :param exposure_control_request: The exposure control request. Required. - :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ExposureControlResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def get_feature_value( - self, - location_id: str, - exposure_control_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ExposureControlResponse: - """Get exposure control feature for specific location. - - :param location_id: The location identifier. Required. - :type location_id: str - :param exposure_control_request: The exposure control request. Required. - :type exposure_control_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ExposureControlResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def get_feature_value( - self, - location_id: str, - exposure_control_request: Union[_models.ExposureControlRequest, IO[bytes]], - **kwargs: Any - ) -> _models.ExposureControlResponse: - """Get exposure control feature for specific location. - - :param location_id: The location identifier. Required. - :type location_id: str - :param exposure_control_request: The exposure control request. Is either a - ExposureControlRequest type or a IO[bytes] type. Required. - :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest or - IO[bytes] - :return: ExposureControlResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ExposureControlResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(exposure_control_request, (IOBase, bytes)): - _content = exposure_control_request - else: - _json = self._serialize.body(exposure_control_request, "ExposureControlRequest") - - _request = build_get_feature_value_request( - location_id=location_id, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ExposureControlResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def get_feature_value_by_factory( - self, - resource_group_name: str, - factory_name: str, - exposure_control_request: _models.ExposureControlRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ExposureControlResponse: - """Get exposure control feature for specific factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param exposure_control_request: The exposure control request. Required. - :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ExposureControlResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def get_feature_value_by_factory( - self, - resource_group_name: str, - factory_name: str, - exposure_control_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ExposureControlResponse: - """Get exposure control feature for specific factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param exposure_control_request: The exposure control request. Required. - :type exposure_control_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ExposureControlResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def get_feature_value_by_factory( - self, - resource_group_name: str, - factory_name: str, - exposure_control_request: Union[_models.ExposureControlRequest, IO[bytes]], - **kwargs: Any - ) -> _models.ExposureControlResponse: - """Get exposure control feature for specific factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param exposure_control_request: The exposure control request. Is either a - ExposureControlRequest type or a IO[bytes] type. Required. - :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest or - IO[bytes] - :return: ExposureControlResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ExposureControlResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(exposure_control_request, (IOBase, bytes)): - _content = exposure_control_request - else: - _json = self._serialize.body(exposure_control_request, "ExposureControlRequest") - - _request = build_get_feature_value_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ExposureControlResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def query_feature_values_by_factory( - self, - resource_group_name: str, - factory_name: str, - exposure_control_batch_request: _models.ExposureControlBatchRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ExposureControlBatchResponse: - """Get list of exposure control features for specific factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param exposure_control_batch_request: The exposure control request for list of features. - Required. - :type exposure_control_batch_request: - ~azure.mgmt.datafactory.models.ExposureControlBatchRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ExposureControlBatchResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def query_feature_values_by_factory( - self, - resource_group_name: str, - factory_name: str, - exposure_control_batch_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ExposureControlBatchResponse: - """Get list of exposure control features for specific factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param exposure_control_batch_request: The exposure control request for list of features. - Required. - :type exposure_control_batch_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ExposureControlBatchResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def query_feature_values_by_factory( - self, - resource_group_name: str, - factory_name: str, - exposure_control_batch_request: Union[_models.ExposureControlBatchRequest, IO[bytes]], - **kwargs: Any - ) -> _models.ExposureControlBatchResponse: - """Get list of exposure control features for specific factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param exposure_control_batch_request: The exposure control request for list of features. Is - either a ExposureControlBatchRequest type or a IO[bytes] type. Required. - :type exposure_control_batch_request: - ~azure.mgmt.datafactory.models.ExposureControlBatchRequest or IO[bytes] - :return: ExposureControlBatchResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ExposureControlBatchResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(exposure_control_batch_request, (IOBase, bytes)): - _content = exposure_control_batch_request - else: - _json = self._serialize.body(exposure_control_batch_request, "ExposureControlBatchRequest") - - _request = build_query_feature_values_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ExposureControlBatchResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_factories_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_factories_operations.py deleted file mode 100644 index 937927f9bcad..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_factories_operations.py +++ /dev/null @@ -1,965 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._factories_operations import ( - build_configure_factory_repo_request, - build_create_or_update_request, - build_delete_request, - build_get_data_plane_access_request, - build_get_git_hub_access_token_request, - build_get_request, - build_list_by_resource_group_request, - build_list_request, - build_update_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class FactoriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`factories` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.Factory"]: - """Lists factories under the specified subscription. - - :return: An iterator like instance of either Factory or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.Factory] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.FactoryListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("FactoryListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def configure_factory_repo( - self, - location_id: str, - factory_repo_update: _models.FactoryRepoUpdate, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Factory: - """Updates a factory's repo information. - - :param location_id: The location identifier. Required. - :type location_id: str - :param factory_repo_update: Update factory repo request definition. Required. - :type factory_repo_update: ~azure.mgmt.datafactory.models.FactoryRepoUpdate - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def configure_factory_repo( - self, location_id: str, factory_repo_update: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.Factory: - """Updates a factory's repo information. - - :param location_id: The location identifier. Required. - :type location_id: str - :param factory_repo_update: Update factory repo request definition. Required. - :type factory_repo_update: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def configure_factory_repo( - self, location_id: str, factory_repo_update: Union[_models.FactoryRepoUpdate, IO[bytes]], **kwargs: Any - ) -> _models.Factory: - """Updates a factory's repo information. - - :param location_id: The location identifier. Required. - :type location_id: str - :param factory_repo_update: Update factory repo request definition. Is either a - FactoryRepoUpdate type or a IO[bytes] type. Required. - :type factory_repo_update: ~azure.mgmt.datafactory.models.FactoryRepoUpdate or IO[bytes] - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Factory] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(factory_repo_update, (IOBase, bytes)): - _content = factory_repo_update - else: - _json = self._serialize.body(factory_repo_update, "FactoryRepoUpdate") - - _request = build_configure_factory_repo_request( - location_id=location_id, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Factory", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.Factory"]: - """Lists factories. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :return: An iterator like instance of either Factory or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.Factory] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.FactoryListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("FactoryListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - factory: _models.Factory, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Factory: - """Creates or updates a factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param factory: Factory resource definition. Required. - :type factory: ~azure.mgmt.datafactory.models.Factory - :param if_match: ETag of the factory entity. Should only be specified for update, for which it - should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - factory: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Factory: - """Creates or updates a factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param factory: Factory resource definition. Required. - :type factory: IO[bytes] - :param if_match: ETag of the factory entity. Should only be specified for update, for which it - should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - factory: Union[_models.Factory, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.Factory: - """Creates or updates a factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param factory: Factory resource definition. Is either a Factory type or a IO[bytes] type. - Required. - :type factory: ~azure.mgmt.datafactory.models.Factory or IO[bytes] - :param if_match: ETag of the factory entity. Should only be specified for update, for which it - should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Factory] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(factory, (IOBase, bytes)): - _content = factory - else: - _json = self._serialize.body(factory, "Factory") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Factory", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def update( - self, - resource_group_name: str, - factory_name: str, - factory_update_parameters: _models.FactoryUpdateParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Factory: - """Updates a factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param factory_update_parameters: The parameters for updating a factory. Required. - :type factory_update_parameters: ~azure.mgmt.datafactory.models.FactoryUpdateParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update( - self, - resource_group_name: str, - factory_name: str, - factory_update_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Factory: - """Updates a factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param factory_update_parameters: The parameters for updating a factory. Required. - :type factory_update_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update( - self, - resource_group_name: str, - factory_name: str, - factory_update_parameters: Union[_models.FactoryUpdateParameters, IO[bytes]], - **kwargs: Any - ) -> _models.Factory: - """Updates a factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param factory_update_parameters: The parameters for updating a factory. Is either a - FactoryUpdateParameters type or a IO[bytes] type. Required. - :type factory_update_parameters: ~azure.mgmt.datafactory.models.FactoryUpdateParameters or - IO[bytes] - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Factory] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(factory_update_parameters, (IOBase, bytes)): - _content = factory_update_parameters - else: - _json = self._serialize.body(factory_update_parameters, "FactoryUpdateParameters") - - _request = build_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Factory", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get( - self, resource_group_name: str, factory_name: str, if_none_match: Optional[str] = None, **kwargs: Any - ) -> Optional[_models.Factory]: - """Gets a factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param if_none_match: ETag of the factory entity. Should only be specified for get. If the ETag - matches the existing entity tag, or if * was provided, then no content will be returned. - Default value is None. - :type if_none_match: str - :return: Factory or None or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Optional[_models.Factory]] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 304]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("Factory", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete(self, resource_group_name: str, factory_name: str, **kwargs: Any) -> None: - """Deletes a factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def get_git_hub_access_token( - self, - resource_group_name: str, - factory_name: str, - git_hub_access_token_request: _models.GitHubAccessTokenRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.GitHubAccessTokenResponse: - """Get GitHub Access Token. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param git_hub_access_token_request: Get GitHub access token request definition. Required. - :type git_hub_access_token_request: ~azure.mgmt.datafactory.models.GitHubAccessTokenRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: GitHubAccessTokenResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def get_git_hub_access_token( - self, - resource_group_name: str, - factory_name: str, - git_hub_access_token_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.GitHubAccessTokenResponse: - """Get GitHub Access Token. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param git_hub_access_token_request: Get GitHub access token request definition. Required. - :type git_hub_access_token_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: GitHubAccessTokenResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def get_git_hub_access_token( - self, - resource_group_name: str, - factory_name: str, - git_hub_access_token_request: Union[_models.GitHubAccessTokenRequest, IO[bytes]], - **kwargs: Any - ) -> _models.GitHubAccessTokenResponse: - """Get GitHub Access Token. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param git_hub_access_token_request: Get GitHub access token request definition. Is either a - GitHubAccessTokenRequest type or a IO[bytes] type. Required. - :type git_hub_access_token_request: ~azure.mgmt.datafactory.models.GitHubAccessTokenRequest or - IO[bytes] - :return: GitHubAccessTokenResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GitHubAccessTokenResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(git_hub_access_token_request, (IOBase, bytes)): - _content = git_hub_access_token_request - else: - _json = self._serialize.body(git_hub_access_token_request, "GitHubAccessTokenRequest") - - _request = build_get_git_hub_access_token_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GitHubAccessTokenResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def get_data_plane_access( - self, - resource_group_name: str, - factory_name: str, - policy: _models.UserAccessPolicy, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.AccessPolicyResponse: - """Get Data Plane access. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param policy: Data Plane user access policy definition. Required. - :type policy: ~azure.mgmt.datafactory.models.UserAccessPolicy - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: AccessPolicyResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def get_data_plane_access( - self, - resource_group_name: str, - factory_name: str, - policy: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.AccessPolicyResponse: - """Get Data Plane access. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param policy: Data Plane user access policy definition. Required. - :type policy: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: AccessPolicyResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def get_data_plane_access( - self, - resource_group_name: str, - factory_name: str, - policy: Union[_models.UserAccessPolicy, IO[bytes]], - **kwargs: Any - ) -> _models.AccessPolicyResponse: - """Get Data Plane access. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param policy: Data Plane user access policy definition. Is either a UserAccessPolicy type or a - IO[bytes] type. Required. - :type policy: ~azure.mgmt.datafactory.models.UserAccessPolicy or IO[bytes] - :return: AccessPolicyResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AccessPolicyResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(policy, (IOBase, bytes)): - _content = policy - else: - _json = self._serialize.body(policy, "UserAccessPolicy") - - _request = build_get_data_plane_access_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AccessPolicyResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_global_parameters_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_global_parameters_operations.py deleted file mode 100644 index 5e9adfdfe07e..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_global_parameters_operations.py +++ /dev/null @@ -1,399 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._global_parameters_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_by_factory_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class GlobalParametersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`global_parameters` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.GlobalParameterResource"]: - """Lists Global parameters. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either GlobalParameterResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.GlobalParameterResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.GlobalParameterListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GlobalParameterListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, factory_name: str, global_parameter_name: str, **kwargs: Any - ) -> _models.GlobalParameterResource: - """Gets a Global parameter. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param global_parameter_name: The global parameter name. Required. - :type global_parameter_name: str - :return: GlobalParameterResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.GlobalParameterResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - global_parameter_name=global_parameter_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GlobalParameterResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - global_parameter_name: str, - default: _models.GlobalParameterResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.GlobalParameterResource: - """Creates or updates a Global parameter. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param global_parameter_name: The global parameter name. Required. - :type global_parameter_name: str - :param default: Global parameter resource definition. Required. - :type default: ~azure.mgmt.datafactory.models.GlobalParameterResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: GlobalParameterResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - global_parameter_name: str, - default: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.GlobalParameterResource: - """Creates or updates a Global parameter. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param global_parameter_name: The global parameter name. Required. - :type global_parameter_name: str - :param default: Global parameter resource definition. Required. - :type default: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: GlobalParameterResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - global_parameter_name: str, - default: Union[_models.GlobalParameterResource, IO[bytes]], - **kwargs: Any - ) -> _models.GlobalParameterResource: - """Creates or updates a Global parameter. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param global_parameter_name: The global parameter name. Required. - :type global_parameter_name: str - :param default: Global parameter resource definition. Is either a GlobalParameterResource type - or a IO[bytes] type. Required. - :type default: ~azure.mgmt.datafactory.models.GlobalParameterResource or IO[bytes] - :return: GlobalParameterResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GlobalParameterResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(default, (IOBase, bytes)): - _content = default - else: - _json = self._serialize.body(default, "GlobalParameterResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - global_parameter_name=global_parameter_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GlobalParameterResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete( - self, resource_group_name: str, factory_name: str, global_parameter_name: str, **kwargs: Any - ) -> None: - """Deletes a Global parameter. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param global_parameter_name: The global parameter name. Required. - :type global_parameter_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - global_parameter_name=global_parameter_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_nodes_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_nodes_operations.py deleted file mode 100644 index 5691fdf63f34..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_nodes_operations.py +++ /dev/null @@ -1,395 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._integration_runtime_nodes_operations import ( - build_delete_request, - build_get_ip_address_request, - build_get_request, - build_update_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class IntegrationRuntimeNodesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`integration_runtime_nodes` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, node_name: str, **kwargs: Any - ) -> _models.SelfHostedIntegrationRuntimeNode: - """Gets a self-hosted integration runtime node. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param node_name: The integration runtime node name. Required. - :type node_name: str - :return: SelfHostedIntegrationRuntimeNode or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SelfHostedIntegrationRuntimeNode] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - node_name=node_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SelfHostedIntegrationRuntimeNode", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, node_name: str, **kwargs: Any - ) -> None: - """Deletes a self-hosted integration runtime node. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param node_name: The integration runtime node name. Required. - :type node_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - node_name=node_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def update( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - node_name: str, - update_integration_runtime_node_request: _models.UpdateIntegrationRuntimeNodeRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.SelfHostedIntegrationRuntimeNode: - """Updates a self-hosted integration runtime node. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param node_name: The integration runtime node name. Required. - :type node_name: str - :param update_integration_runtime_node_request: The parameters for updating an integration - runtime node. Required. - :type update_integration_runtime_node_request: - ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeNodeRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: SelfHostedIntegrationRuntimeNode or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - node_name: str, - update_integration_runtime_node_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.SelfHostedIntegrationRuntimeNode: - """Updates a self-hosted integration runtime node. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param node_name: The integration runtime node name. Required. - :type node_name: str - :param update_integration_runtime_node_request: The parameters for updating an integration - runtime node. Required. - :type update_integration_runtime_node_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: SelfHostedIntegrationRuntimeNode or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - node_name: str, - update_integration_runtime_node_request: Union[_models.UpdateIntegrationRuntimeNodeRequest, IO[bytes]], - **kwargs: Any - ) -> _models.SelfHostedIntegrationRuntimeNode: - """Updates a self-hosted integration runtime node. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param node_name: The integration runtime node name. Required. - :type node_name: str - :param update_integration_runtime_node_request: The parameters for updating an integration - runtime node. Is either a UpdateIntegrationRuntimeNodeRequest type or a IO[bytes] type. - Required. - :type update_integration_runtime_node_request: - ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeNodeRequest or IO[bytes] - :return: SelfHostedIntegrationRuntimeNode or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SelfHostedIntegrationRuntimeNode] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(update_integration_runtime_node_request, (IOBase, bytes)): - _content = update_integration_runtime_node_request - else: - _json = self._serialize.body(update_integration_runtime_node_request, "UpdateIntegrationRuntimeNodeRequest") - - _request = build_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - node_name=node_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SelfHostedIntegrationRuntimeNode", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_ip_address( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, node_name: str, **kwargs: Any - ) -> _models.IntegrationRuntimeNodeIpAddress: - """Get the IP address of self-hosted integration runtime node. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param node_name: The integration runtime node name. Required. - :type node_name: str - :return: IntegrationRuntimeNodeIpAddress or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeNodeIpAddress - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeNodeIpAddress] = kwargs.pop("cls", None) - - _request = build_get_ip_address_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - node_name=node_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeNodeIpAddress", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_object_metadata_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_object_metadata_operations.py deleted file mode 100644 index c8ba2adc8df3..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_object_metadata_operations.py +++ /dev/null @@ -1,321 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._integration_runtime_object_metadata_operations import build_get_request, build_refresh_request -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class IntegrationRuntimeObjectMetadataOperations: # pylint: disable=name-too-long - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`integration_runtime_object_metadata` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - async def _refresh_initial( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_refresh_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_refresh( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.SsisObjectMetadataStatusResponse]: - """Refresh a SSIS integration runtime object metadata. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: An instance of AsyncLROPoller that returns either SsisObjectMetadataStatusResponse or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.SsisObjectMetadataStatusResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SsisObjectMetadataStatusResponse] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._refresh_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("SsisObjectMetadataStatusResponse", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.SsisObjectMetadataStatusResponse].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.SsisObjectMetadataStatusResponse]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - async def get( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - get_metadata_request: Optional[_models.GetSsisObjectMetadataRequest] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.SsisObjectMetadataListResponse: - """Get a SSIS integration runtime object metadata by specified path. The return is pageable - metadata list. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param get_metadata_request: The parameters for getting a SSIS object metadata. Default value - is None. - :type get_metadata_request: ~azure.mgmt.datafactory.models.GetSsisObjectMetadataRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: SsisObjectMetadataListResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def get( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - get_metadata_request: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.SsisObjectMetadataListResponse: - """Get a SSIS integration runtime object metadata by specified path. The return is pageable - metadata list. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param get_metadata_request: The parameters for getting a SSIS object metadata. Default value - is None. - :type get_metadata_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: SsisObjectMetadataListResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - get_metadata_request: Optional[Union[_models.GetSsisObjectMetadataRequest, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.SsisObjectMetadataListResponse: - """Get a SSIS integration runtime object metadata by specified path. The return is pageable - metadata list. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param get_metadata_request: The parameters for getting a SSIS object metadata. Is either a - GetSsisObjectMetadataRequest type or a IO[bytes] type. Default value is None. - :type get_metadata_request: ~azure.mgmt.datafactory.models.GetSsisObjectMetadataRequest or - IO[bytes] - :return: SsisObjectMetadataListResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if get_metadata_request else None - cls: ClsType[_models.SsisObjectMetadataListResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if get_metadata_request else None - _json = None - _content = None - if isinstance(get_metadata_request, (IOBase, bytes)): - _content = get_metadata_request - else: - if get_metadata_request is not None: - _json = self._serialize.body(get_metadata_request, "GetSsisObjectMetadataRequest") - else: - _json = None - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SsisObjectMetadataListResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_operations.py deleted file mode 100644 index eb9b88ed692e..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_operations.py +++ /dev/null @@ -1,425 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._integration_runtime_operations import ( - build_disable_interactive_query_request, - build_enable_interactive_query_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class IntegrationRuntimeOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`integration_runtime` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - async def _enable_interactive_query_initial( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - enable_interactive_query_request: Union[_models.EnableInteractiveQueryRequest, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(enable_interactive_query_request, (IOBase, bytes)): - _content = enable_interactive_query_request - else: - _json = self._serialize.body(enable_interactive_query_request, "EnableInteractiveQueryRequest") - - _request = build_enable_interactive_query_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - response_headers["location"] = self._deserialize("str", response.headers.get("location")) - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_enable_interactive_query( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - enable_interactive_query_request: _models.EnableInteractiveQueryRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.IntegrationRuntimeResource]: - """Enable interactive authoring of Managed Virtual Network integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param enable_interactive_query_request: The enable interactive authoring integration runtime - properties. Required. - :type enable_interactive_query_request: - ~azure.mgmt.datafactory.models.EnableInteractiveQueryRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either IntegrationRuntimeResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_enable_interactive_query( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - enable_interactive_query_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.IntegrationRuntimeResource]: - """Enable interactive authoring of Managed Virtual Network integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param enable_interactive_query_request: The enable interactive authoring integration runtime - properties. Required. - :type enable_interactive_query_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either IntegrationRuntimeResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_enable_interactive_query( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - enable_interactive_query_request: Union[_models.EnableInteractiveQueryRequest, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.IntegrationRuntimeResource]: - """Enable interactive authoring of Managed Virtual Network integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param enable_interactive_query_request: The enable interactive authoring integration runtime - properties. Is either a EnableInteractiveQueryRequest type or a IO[bytes] type. Required. - :type enable_interactive_query_request: - ~azure.mgmt.datafactory.models.EnableInteractiveQueryRequest or IO[bytes] - :return: An instance of AsyncLROPoller that returns either IntegrationRuntimeResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_interactive_query_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - enable_interactive_query_request=enable_interactive_query_request, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["location"] = self._deserialize("str", response.headers.get("location")) - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = self._deserialize("IntegrationRuntimeResource", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.IntegrationRuntimeResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.IntegrationRuntimeResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _disable_interactive_query_initial( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_disable_interactive_query_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - response_headers["location"] = self._deserialize("str", response.headers.get("location")) - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_disable_interactive_query( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.IntegrationRuntimeResource]: - """Disable interactive authoring of Managed Virtual Network integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: An instance of AsyncLROPoller that returns either IntegrationRuntimeResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_interactive_query_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["location"] = self._deserialize("str", response.headers.get("location")) - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = self._deserialize("IntegrationRuntimeResource", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.IntegrationRuntimeResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.IntegrationRuntimeResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtimes_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtimes_operations.py deleted file mode 100644 index f26d36922211..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtimes_operations.py +++ /dev/null @@ -1,1648 +0,0 @@ -# pylint: disable=too-many-lines -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._integration_runtimes_operations import ( - build_create_linked_integration_runtime_request, - build_create_or_update_request, - build_delete_request, - build_get_connection_info_request, - build_get_monitoring_data_request, - build_get_request, - build_get_status_request, - build_list_auth_keys_request, - build_list_by_factory_request, - build_list_outbound_network_dependencies_endpoints_request, - build_regenerate_auth_key_request, - build_remove_links_request, - build_start_request, - build_stop_request, - build_sync_credentials_request, - build_update_request, - build_upgrade_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class IntegrationRuntimesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`integration_runtimes` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.IntegrationRuntimeResource"]: - """Lists integration runtimes. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either IntegrationRuntimeResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("IntegrationRuntimeListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - integration_runtime: _models.IntegrationRuntimeResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.IntegrationRuntimeResource: - """Creates or updates an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param integration_runtime: Integration runtime resource definition. Required. - :type integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource - :param if_match: ETag of the integration runtime entity. Should only be specified for update, - for which it should match existing entity or can be * for unconditional update. Default value - is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: IntegrationRuntimeResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - integration_runtime: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.IntegrationRuntimeResource: - """Creates or updates an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param integration_runtime: Integration runtime resource definition. Required. - :type integration_runtime: IO[bytes] - :param if_match: ETag of the integration runtime entity. Should only be specified for update, - for which it should match existing entity or can be * for unconditional update. Default value - is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: IntegrationRuntimeResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - integration_runtime: Union[_models.IntegrationRuntimeResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.IntegrationRuntimeResource: - """Creates or updates an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param integration_runtime: Integration runtime resource definition. Is either a - IntegrationRuntimeResource type or a IO[bytes] type. Required. - :type integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource or - IO[bytes] - :param if_match: ETag of the integration runtime entity. Should only be specified for update, - for which it should match existing entity or can be * for unconditional update. Default value - is None. - :type if_match: str - :return: IntegrationRuntimeResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(integration_runtime, (IOBase, bytes)): - _content = integration_runtime - else: - _json = self._serialize.body(integration_runtime, "IntegrationRuntimeResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> Optional[_models.IntegrationRuntimeResource]: - """Gets an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param if_none_match: ETag of the integration runtime entity. Should only be specified for get. - If the ETag matches the existing entity tag, or if * was provided, then no content will be - returned. Default value is None. - :type if_none_match: str - :return: IntegrationRuntimeResource or None or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Optional[_models.IntegrationRuntimeResource]] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 304]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("IntegrationRuntimeResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def update( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - update_integration_runtime_request: _models.UpdateIntegrationRuntimeRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.IntegrationRuntimeResource: - """Updates an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param update_integration_runtime_request: The parameters for updating an integration runtime. - Required. - :type update_integration_runtime_request: - ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: IntegrationRuntimeResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - update_integration_runtime_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.IntegrationRuntimeResource: - """Updates an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param update_integration_runtime_request: The parameters for updating an integration runtime. - Required. - :type update_integration_runtime_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: IntegrationRuntimeResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - update_integration_runtime_request: Union[_models.UpdateIntegrationRuntimeRequest, IO[bytes]], - **kwargs: Any - ) -> _models.IntegrationRuntimeResource: - """Updates an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param update_integration_runtime_request: The parameters for updating an integration runtime. - Is either a UpdateIntegrationRuntimeRequest type or a IO[bytes] type. Required. - :type update_integration_runtime_request: - ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeRequest or IO[bytes] - :return: IntegrationRuntimeResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(update_integration_runtime_request, (IOBase, bytes)): - _content = update_integration_runtime_request - else: - _json = self._serialize.body(update_integration_runtime_request, "UpdateIntegrationRuntimeRequest") - - _request = build_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> None: - """Deletes an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_status( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> _models.IntegrationRuntimeStatusResponse: - """Gets detailed status information for an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: IntegrationRuntimeStatusResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeStatusResponse] = kwargs.pop("cls", None) - - _request = build_get_status_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeStatusResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_outbound_network_dependencies_endpoints( # pylint: disable=name-too-long - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> _models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse: - """Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse or the result of - cls(response) - :rtype: - ~azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse] = kwargs.pop("cls", None) - - _request = build_list_outbound_network_dependencies_endpoints_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize( - "IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse", pipeline_response.http_response - ) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_connection_info( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> _models.IntegrationRuntimeConnectionInfo: - """Gets the on-premises integration runtime connection information for encrypting the on-premises - data source credentials. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: IntegrationRuntimeConnectionInfo or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeConnectionInfo - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeConnectionInfo] = kwargs.pop("cls", None) - - _request = build_get_connection_info_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeConnectionInfo", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_auth_key( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - regenerate_key_parameters: _models.IntegrationRuntimeRegenerateKeyParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.IntegrationRuntimeAuthKeys: - """Regenerates the authentication key for an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param regenerate_key_parameters: The parameters for regenerating integration runtime - authentication key. Required. - :type regenerate_key_parameters: - ~azure.mgmt.datafactory.models.IntegrationRuntimeRegenerateKeyParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: IntegrationRuntimeAuthKeys or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_auth_key( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - regenerate_key_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.IntegrationRuntimeAuthKeys: - """Regenerates the authentication key for an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param regenerate_key_parameters: The parameters for regenerating integration runtime - authentication key. Required. - :type regenerate_key_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: IntegrationRuntimeAuthKeys or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_auth_key( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - regenerate_key_parameters: Union[_models.IntegrationRuntimeRegenerateKeyParameters, IO[bytes]], - **kwargs: Any - ) -> _models.IntegrationRuntimeAuthKeys: - """Regenerates the authentication key for an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param regenerate_key_parameters: The parameters for regenerating integration runtime - authentication key. Is either a IntegrationRuntimeRegenerateKeyParameters type or a IO[bytes] - type. Required. - :type regenerate_key_parameters: - ~azure.mgmt.datafactory.models.IntegrationRuntimeRegenerateKeyParameters or IO[bytes] - :return: IntegrationRuntimeAuthKeys or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.IntegrationRuntimeAuthKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_key_parameters, (IOBase, bytes)): - _content = regenerate_key_parameters - else: - _json = self._serialize.body(regenerate_key_parameters, "IntegrationRuntimeRegenerateKeyParameters") - - _request = build_regenerate_auth_key_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeAuthKeys", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_auth_keys( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> _models.IntegrationRuntimeAuthKeys: - """Retrieves the authentication keys for an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: IntegrationRuntimeAuthKeys or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeAuthKeys] = kwargs.pop("cls", None) - - _request = build_list_auth_keys_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeAuthKeys", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _start_initial( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.IntegrationRuntimeStatusResponse]: - """Starts a ManagedReserved type integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: An instance of AsyncLROPoller that returns either IntegrationRuntimeStatusResponse or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeStatusResponse] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("IntegrationRuntimeStatusResponse", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.IntegrationRuntimeStatusResponse].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.IntegrationRuntimeStatusResponse]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _stop_initial( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stops a ManagedReserved type integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def sync_credentials( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> None: - """Force the integration runtime to synchronize credentials across integration runtime nodes, and - this will override the credentials across all worker nodes with those available on the - dispatcher node. If you already have the latest credential backup file, you should manually - import it (preferred) on any self-hosted integration runtime node than using this API directly. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_sync_credentials_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_monitoring_data( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> _models.IntegrationRuntimeMonitoringData: - """Get the integration runtime monitoring data, which includes the monitor data for all the nodes - under this integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: IntegrationRuntimeMonitoringData or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeMonitoringData - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeMonitoringData] = kwargs.pop("cls", None) - - _request = build_get_monitoring_data_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeMonitoringData", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def upgrade( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> None: - """Upgrade self-hosted integration runtime to latest version if availability. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_upgrade_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def remove_links( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - linked_integration_runtime_request: _models.LinkedIntegrationRuntimeRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> None: - """Remove all linked integration runtimes under specific data factory in a self-hosted integration - runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param linked_integration_runtime_request: The data factory name for the linked integration - runtime. Required. - :type linked_integration_runtime_request: - ~azure.mgmt.datafactory.models.LinkedIntegrationRuntimeRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def remove_links( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - linked_integration_runtime_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> None: - """Remove all linked integration runtimes under specific data factory in a self-hosted integration - runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param linked_integration_runtime_request: The data factory name for the linked integration - runtime. Required. - :type linked_integration_runtime_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def remove_links( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - linked_integration_runtime_request: Union[_models.LinkedIntegrationRuntimeRequest, IO[bytes]], - **kwargs: Any - ) -> None: - """Remove all linked integration runtimes under specific data factory in a self-hosted integration - runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param linked_integration_runtime_request: The data factory name for the linked integration - runtime. Is either a LinkedIntegrationRuntimeRequest type or a IO[bytes] type. Required. - :type linked_integration_runtime_request: - ~azure.mgmt.datafactory.models.LinkedIntegrationRuntimeRequest or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(linked_integration_runtime_request, (IOBase, bytes)): - _content = linked_integration_runtime_request - else: - _json = self._serialize.body(linked_integration_runtime_request, "LinkedIntegrationRuntimeRequest") - - _request = build_remove_links_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def create_linked_integration_runtime( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - create_linked_integration_runtime_request: _models.CreateLinkedIntegrationRuntimeRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.IntegrationRuntimeStatusResponse: - """Create a linked integration runtime entry in a shared integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param create_linked_integration_runtime_request: The linked integration runtime properties. - Required. - :type create_linked_integration_runtime_request: - ~azure.mgmt.datafactory.models.CreateLinkedIntegrationRuntimeRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: IntegrationRuntimeStatusResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_linked_integration_runtime( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - create_linked_integration_runtime_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.IntegrationRuntimeStatusResponse: - """Create a linked integration runtime entry in a shared integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param create_linked_integration_runtime_request: The linked integration runtime properties. - Required. - :type create_linked_integration_runtime_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: IntegrationRuntimeStatusResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_linked_integration_runtime( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - create_linked_integration_runtime_request: Union[_models.CreateLinkedIntegrationRuntimeRequest, IO[bytes]], - **kwargs: Any - ) -> _models.IntegrationRuntimeStatusResponse: - """Create a linked integration runtime entry in a shared integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param create_linked_integration_runtime_request: The linked integration runtime properties. Is - either a CreateLinkedIntegrationRuntimeRequest type or a IO[bytes] type. Required. - :type create_linked_integration_runtime_request: - ~azure.mgmt.datafactory.models.CreateLinkedIntegrationRuntimeRequest or IO[bytes] - :return: IntegrationRuntimeStatusResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.IntegrationRuntimeStatusResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(create_linked_integration_runtime_request, (IOBase, bytes)): - _content = create_linked_integration_runtime_request - else: - _json = self._serialize.body( - create_linked_integration_runtime_request, "CreateLinkedIntegrationRuntimeRequest" - ) - - _request = build_create_linked_integration_runtime_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeStatusResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_linked_services_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_linked_services_operations.py deleted file mode 100644 index dac1052ece18..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_linked_services_operations.py +++ /dev/null @@ -1,427 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._linked_services_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_by_factory_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class LinkedServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`linked_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.LinkedServiceResource"]: - """Lists linked services. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either LinkedServiceResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.LinkedServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.LinkedServiceListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("LinkedServiceListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - linked_service_name: str, - linked_service: _models.LinkedServiceResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.LinkedServiceResource: - """Creates or updates a linked service. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param linked_service_name: The linked service name. Required. - :type linked_service_name: str - :param linked_service: Linked service resource definition. Required. - :type linked_service: ~azure.mgmt.datafactory.models.LinkedServiceResource - :param if_match: ETag of the linkedService entity. Should only be specified for update, for - which it should match existing entity or can be * for unconditional update. Default value is - None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: LinkedServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - linked_service_name: str, - linked_service: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.LinkedServiceResource: - """Creates or updates a linked service. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param linked_service_name: The linked service name. Required. - :type linked_service_name: str - :param linked_service: Linked service resource definition. Required. - :type linked_service: IO[bytes] - :param if_match: ETag of the linkedService entity. Should only be specified for update, for - which it should match existing entity or can be * for unconditional update. Default value is - None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: LinkedServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - linked_service_name: str, - linked_service: Union[_models.LinkedServiceResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.LinkedServiceResource: - """Creates or updates a linked service. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param linked_service_name: The linked service name. Required. - :type linked_service_name: str - :param linked_service: Linked service resource definition. Is either a LinkedServiceResource - type or a IO[bytes] type. Required. - :type linked_service: ~azure.mgmt.datafactory.models.LinkedServiceResource or IO[bytes] - :param if_match: ETag of the linkedService entity. Should only be specified for update, for - which it should match existing entity or can be * for unconditional update. Default value is - None. - :type if_match: str - :return: LinkedServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.LinkedServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(linked_service, (IOBase, bytes)): - _content = linked_service - else: - _json = self._serialize.body(linked_service, "LinkedServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - linked_service_name=linked_service_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("LinkedServiceResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - factory_name: str, - linked_service_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> Optional[_models.LinkedServiceResource]: - """Gets a linked service. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param linked_service_name: The linked service name. Required. - :type linked_service_name: str - :param if_none_match: ETag of the linked service entity. Should only be specified for get. If - the ETag matches the existing entity tag, or if * was provided, then no content will be - returned. Default value is None. - :type if_none_match: str - :return: LinkedServiceResource or None or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Optional[_models.LinkedServiceResource]] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - linked_service_name=linked_service_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 304]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LinkedServiceResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete( - self, resource_group_name: str, factory_name: str, linked_service_name: str, **kwargs: Any - ) -> None: - """Deletes a linked service. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param linked_service_name: The linked service name. Required. - :type linked_service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - linked_service_name=linked_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_managed_private_endpoints_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_managed_private_endpoints_operations.py deleted file mode 100644 index 8fc4b1f1ff93..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_managed_private_endpoints_operations.py +++ /dev/null @@ -1,451 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._managed_private_endpoints_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_by_factory_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ManagedPrivateEndpointsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`managed_private_endpoints` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, managed_virtual_network_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.ManagedPrivateEndpointResource"]: - """Lists managed private endpoints. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :return: An iterator like instance of either ManagedPrivateEndpointResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedPrivateEndpointListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - managed_virtual_network_name=managed_virtual_network_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ManagedPrivateEndpointListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_private_endpoint_name: str, - managed_private_endpoint: _models.ManagedPrivateEndpointResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ManagedPrivateEndpointResource: - """Creates or updates a managed private endpoint. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :param managed_private_endpoint_name: Managed private endpoint name. Required. - :type managed_private_endpoint_name: str - :param managed_private_endpoint: Managed private endpoint resource definition. Required. - :type managed_private_endpoint: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource - :param if_match: ETag of the managed private endpoint entity. Should only be specified for - update, for which it should match existing entity or can be * for unconditional update. Default - value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ManagedPrivateEndpointResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_private_endpoint_name: str, - managed_private_endpoint: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ManagedPrivateEndpointResource: - """Creates or updates a managed private endpoint. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :param managed_private_endpoint_name: Managed private endpoint name. Required. - :type managed_private_endpoint_name: str - :param managed_private_endpoint: Managed private endpoint resource definition. Required. - :type managed_private_endpoint: IO[bytes] - :param if_match: ETag of the managed private endpoint entity. Should only be specified for - update, for which it should match existing entity or can be * for unconditional update. Default - value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ManagedPrivateEndpointResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_private_endpoint_name: str, - managed_private_endpoint: Union[_models.ManagedPrivateEndpointResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.ManagedPrivateEndpointResource: - """Creates or updates a managed private endpoint. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :param managed_private_endpoint_name: Managed private endpoint name. Required. - :type managed_private_endpoint_name: str - :param managed_private_endpoint: Managed private endpoint resource definition. Is either a - ManagedPrivateEndpointResource type or a IO[bytes] type. Required. - :type managed_private_endpoint: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource - or IO[bytes] - :param if_match: ETag of the managed private endpoint entity. Should only be specified for - update, for which it should match existing entity or can be * for unconditional update. Default - value is None. - :type if_match: str - :return: ManagedPrivateEndpointResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ManagedPrivateEndpointResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(managed_private_endpoint, (IOBase, bytes)): - _content = managed_private_endpoint - else: - _json = self._serialize.body(managed_private_endpoint, "ManagedPrivateEndpointResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - managed_virtual_network_name=managed_virtual_network_name, - managed_private_endpoint_name=managed_private_endpoint_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedPrivateEndpointResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_private_endpoint_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> _models.ManagedPrivateEndpointResource: - """Gets a managed private endpoint. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :param managed_private_endpoint_name: Managed private endpoint name. Required. - :type managed_private_endpoint_name: str - :param if_none_match: ETag of the managed private endpoint entity. Should only be specified for - get. If the ETag matches the existing entity tag, or if * was provided, then no content will be - returned. Default value is None. - :type if_none_match: str - :return: ManagedPrivateEndpointResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedPrivateEndpointResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - managed_virtual_network_name=managed_virtual_network_name, - managed_private_endpoint_name=managed_private_endpoint_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedPrivateEndpointResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete( - self, - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_private_endpoint_name: str, - **kwargs: Any - ) -> None: - """Deletes a managed private endpoint. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :param managed_private_endpoint_name: Managed private endpoint name. Required. - :type managed_private_endpoint_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - managed_virtual_network_name=managed_virtual_network_name, - managed_private_endpoint_name=managed_private_endpoint_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_managed_virtual_networks_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_managed_virtual_networks_operations.py deleted file mode 100644 index 2ef4aa023a66..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_managed_virtual_networks_operations.py +++ /dev/null @@ -1,370 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._managed_virtual_networks_operations import ( - build_create_or_update_request, - build_get_request, - build_list_by_factory_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ManagedVirtualNetworksOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`managed_virtual_networks` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.ManagedVirtualNetworkResource"]: - """Lists managed Virtual Networks. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either ManagedVirtualNetworkResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedVirtualNetworkListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ManagedVirtualNetworkListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_virtual_network: _models.ManagedVirtualNetworkResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ManagedVirtualNetworkResource: - """Creates or updates a managed Virtual Network. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :param managed_virtual_network: Managed Virtual Network resource definition. Required. - :type managed_virtual_network: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource - :param if_match: ETag of the managed Virtual Network entity. Should only be specified for - update, for which it should match existing entity or can be * for unconditional update. Default - value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ManagedVirtualNetworkResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_virtual_network: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ManagedVirtualNetworkResource: - """Creates or updates a managed Virtual Network. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :param managed_virtual_network: Managed Virtual Network resource definition. Required. - :type managed_virtual_network: IO[bytes] - :param if_match: ETag of the managed Virtual Network entity. Should only be specified for - update, for which it should match existing entity or can be * for unconditional update. Default - value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ManagedVirtualNetworkResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_virtual_network: Union[_models.ManagedVirtualNetworkResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.ManagedVirtualNetworkResource: - """Creates or updates a managed Virtual Network. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :param managed_virtual_network: Managed Virtual Network resource definition. Is either a - ManagedVirtualNetworkResource type or a IO[bytes] type. Required. - :type managed_virtual_network: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource or - IO[bytes] - :param if_match: ETag of the managed Virtual Network entity. Should only be specified for - update, for which it should match existing entity or can be * for unconditional update. Default - value is None. - :type if_match: str - :return: ManagedVirtualNetworkResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ManagedVirtualNetworkResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(managed_virtual_network, (IOBase, bytes)): - _content = managed_virtual_network - else: - _json = self._serialize.body(managed_virtual_network, "ManagedVirtualNetworkResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - managed_virtual_network_name=managed_virtual_network_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedVirtualNetworkResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> _models.ManagedVirtualNetworkResource: - """Gets a managed Virtual Network. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :param if_none_match: ETag of the managed Virtual Network entity. Should only be specified for - get. If the ETag matches the existing entity tag, or if * was provided, then no content will be - returned. Default value is None. - :type if_none_match: str - :return: ManagedVirtualNetworkResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedVirtualNetworkResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - managed_virtual_network_name=managed_virtual_network_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedVirtualNetworkResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_operations.py index 6ad1f53852f4..ed3dcd4b6e8e 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_operations.py @@ -1,37 +1,153 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar +from io import IOBase +import json +from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload import urllib.parse -from azure.core import AsyncPipelineClient +from azure.core import AsyncPipelineClient, MatchConditions from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, + ResourceModifiedError, ResourceNotFoundError, ResourceNotModifiedError, + StreamClosedError, + StreamConsumedError, map_error, ) from azure.core.pipeline import PipelineResponse +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.core.tracing.decorator import distributed_trace +from azure.core.tracing.decorator_async import distributed_trace_async from azure.core.utils import case_insensitive_dict from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling from ... import models as _models +from ..._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from ..._utils.serialization import Deserializer, Serializer -from ...operations._operations import build_list_request +from ...operations._operations import ( + build_activity_runs_query_by_pipeline_run_request, + build_change_data_capture_create_or_update_request, + build_change_data_capture_delete_request, + build_change_data_capture_get_request, + build_change_data_capture_list_by_factory_request, + build_change_data_capture_start_request, + build_change_data_capture_status_request, + build_change_data_capture_stop_request, + build_credential_operations_create_or_update_request, + build_credential_operations_delete_request, + build_credential_operations_get_request, + build_credential_operations_list_by_factory_request, + build_data_flow_debug_session_add_data_flow_request, + build_data_flow_debug_session_create_request, + build_data_flow_debug_session_delete_request, + build_data_flow_debug_session_execute_command_request, + build_data_flow_debug_session_query_by_factory_request, + build_data_flows_create_or_update_request, + build_data_flows_delete_request, + build_data_flows_get_request, + build_data_flows_list_by_factory_request, + build_datasets_create_or_update_request, + build_datasets_delete_request, + build_datasets_get_request, + build_datasets_list_by_factory_request, + build_exposure_control_get_feature_value_by_factory_request, + build_exposure_control_get_feature_value_request, + build_exposure_control_query_feature_values_by_factory_request, + build_factories_configure_factory_repo_request, + build_factories_create_or_update_request, + build_factories_delete_request, + build_factories_get_data_plane_access_request, + build_factories_get_git_hub_access_token_request, + build_factories_get_request, + build_factories_list_by_resource_group_request, + build_factories_list_request, + build_factories_update_request, + build_global_parameters_create_or_update_request, + build_global_parameters_delete_request, + build_global_parameters_get_request, + build_global_parameters_list_by_factory_request, + build_integration_runtime_disable_interactive_query_request, + build_integration_runtime_enable_interactive_query_request, + build_integration_runtime_nodes_delete_request, + build_integration_runtime_nodes_get_ip_address_request, + build_integration_runtime_nodes_get_request, + build_integration_runtime_nodes_update_request, + build_integration_runtime_object_metadata_get_request, + build_integration_runtime_object_metadata_refresh_request, + build_integration_runtimes_create_linked_integration_runtime_request, + build_integration_runtimes_create_or_update_request, + build_integration_runtimes_delete_request, + build_integration_runtimes_get_connection_info_request, + build_integration_runtimes_get_monitoring_data_request, + build_integration_runtimes_get_request, + build_integration_runtimes_get_status_request, + build_integration_runtimes_list_auth_keys_request, + build_integration_runtimes_list_by_factory_request, + build_integration_runtimes_list_outbound_network_dependencies_endpoints_request, + build_integration_runtimes_regenerate_auth_key_request, + build_integration_runtimes_remove_links_request, + build_integration_runtimes_start_request, + build_integration_runtimes_stop_request, + build_integration_runtimes_sync_credentials_request, + build_integration_runtimes_update_request, + build_integration_runtimes_upgrade_request, + build_linked_services_create_or_update_request, + build_linked_services_delete_request, + build_linked_services_get_request, + build_linked_services_list_by_factory_request, + build_managed_private_endpoints_create_or_update_request, + build_managed_private_endpoints_delete_request, + build_managed_private_endpoints_get_request, + build_managed_private_endpoints_list_by_factory_request, + build_managed_virtual_networks_create_or_update_request, + build_managed_virtual_networks_get_request, + build_managed_virtual_networks_list_by_factory_request, + build_operations_list_request, + build_pipeline_runs_cancel_request, + build_pipeline_runs_get_request, + build_pipeline_runs_query_by_factory_request, + build_pipelines_create_or_update_request, + build_pipelines_create_run_request, + build_pipelines_delete_request, + build_pipelines_get_request, + build_pipelines_list_by_factory_request, + build_private_end_point_connections_list_by_factory_request, + build_private_endpoint_connection_create_or_update_request, + build_private_endpoint_connection_delete_request, + build_private_endpoint_connection_get_request, + build_private_link_resources_get_request, + build_trigger_runs_cancel_request, + build_trigger_runs_query_by_factory_request, + build_trigger_runs_rerun_request, + build_triggers_create_or_update_request, + build_triggers_delete_request, + build_triggers_get_event_subscription_status_request, + build_triggers_get_request, + build_triggers_list_by_factory_request, + build_triggers_query_by_factory_request, + build_triggers_start_request, + build_triggers_stop_request, + build_triggers_subscribe_to_events_request, + build_triggers_unsubscribe_from_events_request, +) from .._configuration import DataFactoryManagementClientConfiguration T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +JSON = MutableMapping[str, Any] List = list @@ -45,8 +161,6 @@ class Operations: :attr:`operations` attribute. """ - models = _models - def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") @@ -60,15 +174,657 @@ def __init__(self, *args, **kwargs) -> None: def list(self, **kwargs: Any) -> AsyncItemPaged["_models.Operation"]: """Lists the available Azure Data Factory API operations. - :return: An iterator like instance of either Operation or the result of cls(response) + :return: An iterator like instance of Operation :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.Operation] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Operation]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_operations_list_request( + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Operation], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class FactoriesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`factories` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + factory_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> Optional[_models.Factory]: + """Gets a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: Factory or None. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory or None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Optional[_models.Factory]] = kwargs.pop("cls", None) + + _request = build_factories_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 304]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Factory, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + factory: _models.Factory, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.Factory: + """Creates or updates a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param factory: Factory resource definition. Required. + :type factory: ~azure.mgmt.datafactory.models.Factory + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + factory: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.Factory: + """Creates or updates a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param factory: Factory resource definition. Required. + :type factory: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + factory: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.Factory: + """Creates or updates a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param factory: Factory resource definition. Required. + :type factory: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + factory: Union[_models.Factory, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.Factory: + """Creates or updates a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param factory: Factory resource definition. Is one of the following types: Factory, JSON, + IO[bytes] Required. + :type factory: ~azure.mgmt.datafactory.models.Factory or JSON or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Factory] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(factory, (IOBase, bytes)): + _content = factory + else: + _content = json.dumps(factory, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_factories_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Factory, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def update( + self, + resource_group_name: str, + factory_name: str, + factory_update_parameters: _models.FactoryUpdateParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Factory: + """Updates a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param factory_update_parameters: The parameters for updating a factory. Required. + :type factory_update_parameters: ~azure.mgmt.datafactory.models.FactoryUpdateParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + factory_name: str, + factory_update_parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Factory: + """Updates a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param factory_update_parameters: The parameters for updating a factory. Required. + :type factory_update_parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + factory_name: str, + factory_update_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Factory: + """Updates a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param factory_update_parameters: The parameters for updating a factory. Required. + :type factory_update_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update( + self, + resource_group_name: str, + factory_name: str, + factory_update_parameters: Union[_models.FactoryUpdateParameters, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.Factory: + """Updates a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param factory_update_parameters: The parameters for updating a factory. Is one of the + following types: FactoryUpdateParameters, JSON, IO[bytes] Required. + :type factory_update_parameters: ~azure.mgmt.datafactory.models.FactoryUpdateParameters or JSON + or IO[bytes] + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Factory] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(factory_update_parameters, (IOBase, bytes)): + _content = factory_update_parameters + else: + _content = json.dumps(factory_update_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_factories_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Factory, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete(self, resource_group_name: str, factory_name: str, **kwargs: Any) -> None: + """Deletes a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_factories_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.Factory"]: + """Lists factories. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of Factory + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.Factory] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.OperationListResponse] = kwargs.pop("cls", None) + cls: ClsType[List[_models.Factory]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -81,12 +837,19 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.Operation"]: def prepare_request(next_link=None): if not next_link: - _request = build_list_request( - api_version=api_version, + _request = build_factories_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, headers=_headers, params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) else: # make call to next link with the client's api-version @@ -99,18 +862,29 @@ def prepare_request(next_link=None): ) _next_request_params["api-version"] = self._config.api_version _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + return _request async def extract_data(pipeline_response): - deserialized = self._deserialize("OperationListResponse", pipeline_response) - list_of_elem = deserialized.value + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Factory], + deserialized.get("value", []), + ) if cls: list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) @@ -123,8 +897,12896 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.Factory"]: + """Lists factories under the specified subscription. + + :return: An iterator like instance of Factory + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.Factory] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Factory]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_factories_list_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Factory], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @overload + async def get_git_hub_access_token( + self, + resource_group_name: str, + factory_name: str, + git_hub_access_token_request: _models.GitHubAccessTokenRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.GitHubAccessTokenResponse: + """Get GitHub Access Token. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param git_hub_access_token_request: Get GitHub access token request definition. Required. + :type git_hub_access_token_request: ~azure.mgmt.datafactory.models.GitHubAccessTokenRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: GitHubAccessTokenResponse. The GitHubAccessTokenResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def get_git_hub_access_token( + self, + resource_group_name: str, + factory_name: str, + git_hub_access_token_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.GitHubAccessTokenResponse: + """Get GitHub Access Token. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param git_hub_access_token_request: Get GitHub access token request definition. Required. + :type git_hub_access_token_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: GitHubAccessTokenResponse. The GitHubAccessTokenResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def get_git_hub_access_token( + self, + resource_group_name: str, + factory_name: str, + git_hub_access_token_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.GitHubAccessTokenResponse: + """Get GitHub Access Token. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param git_hub_access_token_request: Get GitHub access token request definition. Required. + :type git_hub_access_token_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: GitHubAccessTokenResponse. The GitHubAccessTokenResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def get_git_hub_access_token( + self, + resource_group_name: str, + factory_name: str, + git_hub_access_token_request: Union[_models.GitHubAccessTokenRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.GitHubAccessTokenResponse: + """Get GitHub Access Token. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param git_hub_access_token_request: Get GitHub access token request definition. Is one of the + following types: GitHubAccessTokenRequest, JSON, IO[bytes] Required. + :type git_hub_access_token_request: ~azure.mgmt.datafactory.models.GitHubAccessTokenRequest or + JSON or IO[bytes] + :return: GitHubAccessTokenResponse. The GitHubAccessTokenResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.GitHubAccessTokenResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(git_hub_access_token_request, (IOBase, bytes)): + _content = git_hub_access_token_request + else: + _content = json.dumps(git_hub_access_token_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_factories_get_git_hub_access_token_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.GitHubAccessTokenResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def get_data_plane_access( + self, + resource_group_name: str, + factory_name: str, + policy: _models.UserAccessPolicy, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AccessPolicyResponse: + """Get Data Plane access. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param policy: Data Plane user access policy definition. Required. + :type policy: ~azure.mgmt.datafactory.models.UserAccessPolicy + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AccessPolicyResponse. The AccessPolicyResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def get_data_plane_access( + self, + resource_group_name: str, + factory_name: str, + policy: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AccessPolicyResponse: + """Get Data Plane access. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param policy: Data Plane user access policy definition. Required. + :type policy: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AccessPolicyResponse. The AccessPolicyResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def get_data_plane_access( + self, + resource_group_name: str, + factory_name: str, + policy: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AccessPolicyResponse: + """Get Data Plane access. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param policy: Data Plane user access policy definition. Required. + :type policy: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: AccessPolicyResponse. The AccessPolicyResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def get_data_plane_access( + self, + resource_group_name: str, + factory_name: str, + policy: Union[_models.UserAccessPolicy, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.AccessPolicyResponse: + """Get Data Plane access. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param policy: Data Plane user access policy definition. Is one of the following types: + UserAccessPolicy, JSON, IO[bytes] Required. + :type policy: ~azure.mgmt.datafactory.models.UserAccessPolicy or JSON or IO[bytes] + :return: AccessPolicyResponse. The AccessPolicyResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.AccessPolicyResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(policy, (IOBase, bytes)): + _content = policy + else: + _content = json.dumps(policy, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_factories_get_data_plane_access_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AccessPolicyResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def configure_factory_repo( + self, + location_id: str, + factory_repo_update: _models.FactoryRepoUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Factory: + """Updates a factory's repo information. + + :param location_id: The location identifier. Required. + :type location_id: str + :param factory_repo_update: The request body. Required. + :type factory_repo_update: ~azure.mgmt.datafactory.models.FactoryRepoUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def configure_factory_repo( + self, location_id: str, factory_repo_update: JSON, *, content_type: str = "application/json", **kwargs: Any + ) -> _models.Factory: + """Updates a factory's repo information. + + :param location_id: The location identifier. Required. + :type location_id: str + :param factory_repo_update: The request body. Required. + :type factory_repo_update: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def configure_factory_repo( + self, location_id: str, factory_repo_update: IO[bytes], *, content_type: str = "application/json", **kwargs: Any + ) -> _models.Factory: + """Updates a factory's repo information. + + :param location_id: The location identifier. Required. + :type location_id: str + :param factory_repo_update: The request body. Required. + :type factory_repo_update: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def configure_factory_repo( + self, location_id: str, factory_repo_update: Union[_models.FactoryRepoUpdate, JSON, IO[bytes]], **kwargs: Any + ) -> _models.Factory: + """Updates a factory's repo information. + + :param location_id: The location identifier. Required. + :type location_id: str + :param factory_repo_update: The request body. Is one of the following types: FactoryRepoUpdate, + JSON, IO[bytes] Required. + :type factory_repo_update: ~azure.mgmt.datafactory.models.FactoryRepoUpdate or JSON or + IO[bytes] + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Factory] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(factory_repo_update, (IOBase, bytes)): + _content = factory_repo_update + else: + _content = json.dumps(factory_repo_update, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_factories_configure_factory_repo_request( + location_id=location_id, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Factory, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ExposureControlOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`exposure_control` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @overload + async def get_feature_value_by_factory( + self, + resource_group_name: str, + factory_name: str, + exposure_control_request: _models.ExposureControlRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ExposureControlResponse: + """Get exposure control feature for specific factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param exposure_control_request: The exposure control request. Required. + :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ExposureControlResponse. The ExposureControlResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def get_feature_value_by_factory( + self, + resource_group_name: str, + factory_name: str, + exposure_control_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ExposureControlResponse: + """Get exposure control feature for specific factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param exposure_control_request: The exposure control request. Required. + :type exposure_control_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ExposureControlResponse. The ExposureControlResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def get_feature_value_by_factory( + self, + resource_group_name: str, + factory_name: str, + exposure_control_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ExposureControlResponse: + """Get exposure control feature for specific factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param exposure_control_request: The exposure control request. Required. + :type exposure_control_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ExposureControlResponse. The ExposureControlResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def get_feature_value_by_factory( + self, + resource_group_name: str, + factory_name: str, + exposure_control_request: Union[_models.ExposureControlRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ExposureControlResponse: + """Get exposure control feature for specific factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param exposure_control_request: The exposure control request. Is one of the following types: + ExposureControlRequest, JSON, IO[bytes] Required. + :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest or JSON + or IO[bytes] + :return: ExposureControlResponse. The ExposureControlResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ExposureControlResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(exposure_control_request, (IOBase, bytes)): + _content = exposure_control_request + else: + _content = json.dumps(exposure_control_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_exposure_control_get_feature_value_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ExposureControlResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def query_feature_values_by_factory( + self, + resource_group_name: str, + factory_name: str, + exposure_control_batch_request: _models.ExposureControlBatchRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ExposureControlBatchResponse: + """Get list of exposure control features for specific factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param exposure_control_batch_request: The exposure control request for list of features. + Required. + :type exposure_control_batch_request: + ~azure.mgmt.datafactory.models.ExposureControlBatchRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ExposureControlBatchResponse. The ExposureControlBatchResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def query_feature_values_by_factory( + self, + resource_group_name: str, + factory_name: str, + exposure_control_batch_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ExposureControlBatchResponse: + """Get list of exposure control features for specific factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param exposure_control_batch_request: The exposure control request for list of features. + Required. + :type exposure_control_batch_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ExposureControlBatchResponse. The ExposureControlBatchResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def query_feature_values_by_factory( + self, + resource_group_name: str, + factory_name: str, + exposure_control_batch_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ExposureControlBatchResponse: + """Get list of exposure control features for specific factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param exposure_control_batch_request: The exposure control request for list of features. + Required. + :type exposure_control_batch_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ExposureControlBatchResponse. The ExposureControlBatchResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def query_feature_values_by_factory( + self, + resource_group_name: str, + factory_name: str, + exposure_control_batch_request: Union[_models.ExposureControlBatchRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ExposureControlBatchResponse: + """Get list of exposure control features for specific factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param exposure_control_batch_request: The exposure control request for list of features. Is + one of the following types: ExposureControlBatchRequest, JSON, IO[bytes] Required. + :type exposure_control_batch_request: + ~azure.mgmt.datafactory.models.ExposureControlBatchRequest or JSON or IO[bytes] + :return: ExposureControlBatchResponse. The ExposureControlBatchResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ExposureControlBatchResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(exposure_control_batch_request, (IOBase, bytes)): + _content = exposure_control_batch_request + else: + _content = json.dumps(exposure_control_batch_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_exposure_control_query_feature_values_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ExposureControlBatchResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def get_feature_value( + self, + location_id: str, + exposure_control_request: _models.ExposureControlRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ExposureControlResponse: + """Get exposure control feature for specific location. + + :param location_id: The location identifier. Required. + :type location_id: str + :param exposure_control_request: The request body. Required. + :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ExposureControlResponse. The ExposureControlResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def get_feature_value( + self, location_id: str, exposure_control_request: JSON, *, content_type: str = "application/json", **kwargs: Any + ) -> _models.ExposureControlResponse: + """Get exposure control feature for specific location. + + :param location_id: The location identifier. Required. + :type location_id: str + :param exposure_control_request: The request body. Required. + :type exposure_control_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ExposureControlResponse. The ExposureControlResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def get_feature_value( + self, + location_id: str, + exposure_control_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ExposureControlResponse: + """Get exposure control feature for specific location. + + :param location_id: The location identifier. Required. + :type location_id: str + :param exposure_control_request: The request body. Required. + :type exposure_control_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ExposureControlResponse. The ExposureControlResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def get_feature_value( + self, + location_id: str, + exposure_control_request: Union[_models.ExposureControlRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ExposureControlResponse: + """Get exposure control feature for specific location. + + :param location_id: The location identifier. Required. + :type location_id: str + :param exposure_control_request: The request body. Is one of the following types: + ExposureControlRequest, JSON, IO[bytes] Required. + :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest or JSON + or IO[bytes] + :return: ExposureControlResponse. The ExposureControlResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ExposureControlResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(exposure_control_request, (IOBase, bytes)): + _content = exposure_control_request + else: + _content = json.dumps(exposure_control_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_exposure_control_get_feature_value_request( + location_id=location_id, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ExposureControlResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class PipelineRunsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`pipeline_runs` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @overload + async def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: _models.RunFilterParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.PipelineRunsQueryResponse: + """Query pipeline runs in the factory based on input filter conditions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the pipeline run. Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: PipelineRunsQueryResponse. The PipelineRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.PipelineRunsQueryResponse: + """Query pipeline runs in the factory based on input filter conditions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the pipeline run. Required. + :type filter_parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: PipelineRunsQueryResponse. The PipelineRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.PipelineRunsQueryResponse: + """Query pipeline runs in the factory based on input filter conditions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the pipeline run. Required. + :type filter_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: PipelineRunsQueryResponse. The PipelineRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: Union[_models.RunFilterParameters, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.PipelineRunsQueryResponse: + """Query pipeline runs in the factory based on input filter conditions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the pipeline run. Is one of the following types: + RunFilterParameters, JSON, IO[bytes] Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or JSON or + IO[bytes] + :return: PipelineRunsQueryResponse. The PipelineRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.PipelineRunsQueryResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(filter_parameters, (IOBase, bytes)): + _content = filter_parameters + else: + _content = json.dumps(filter_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_pipeline_runs_query_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.PipelineRunsQueryResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def get(self, resource_group_name: str, factory_name: str, run_id: str, **kwargs: Any) -> _models.PipelineRun: + """Get a pipeline run by its run ID. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param run_id: The pipeline run identifier. Required. + :type run_id: str + :return: PipelineRun. The PipelineRun is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineRun + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.PipelineRun] = kwargs.pop("cls", None) + + _request = build_pipeline_runs_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + run_id=run_id, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.PipelineRun, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def cancel( + self, + resource_group_name: str, + factory_name: str, + run_id: str, + *, + is_recursive: Optional[bool] = None, + **kwargs: Any + ) -> None: + """Cancel a pipeline run by its run ID. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param run_id: The pipeline run identifier. Required. + :type run_id: str + :keyword is_recursive: If true, cancel all the Child pipelines that are triggered by the + current pipeline. Default value is None. + :paramtype is_recursive: bool + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_pipeline_runs_cancel_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + run_id=run_id, + subscription_id=self._config.subscription_id, + is_recursive=is_recursive, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + +class ActivityRunsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`activity_runs` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @overload + async def query_by_pipeline_run( + self, + resource_group_name: str, + factory_name: str, + run_id: str, + filter_parameters: _models.RunFilterParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ActivityRunsQueryResponse: + """Query activity runs based on input filter conditions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param run_id: The pipeline run identifier. Required. + :type run_id: str + :param filter_parameters: Parameters to filter the activity runs. Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ActivityRunsQueryResponse. The ActivityRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def query_by_pipeline_run( + self, + resource_group_name: str, + factory_name: str, + run_id: str, + filter_parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ActivityRunsQueryResponse: + """Query activity runs based on input filter conditions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param run_id: The pipeline run identifier. Required. + :type run_id: str + :param filter_parameters: Parameters to filter the activity runs. Required. + :type filter_parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ActivityRunsQueryResponse. The ActivityRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def query_by_pipeline_run( + self, + resource_group_name: str, + factory_name: str, + run_id: str, + filter_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ActivityRunsQueryResponse: + """Query activity runs based on input filter conditions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param run_id: The pipeline run identifier. Required. + :type run_id: str + :param filter_parameters: Parameters to filter the activity runs. Required. + :type filter_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ActivityRunsQueryResponse. The ActivityRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def query_by_pipeline_run( + self, + resource_group_name: str, + factory_name: str, + run_id: str, + filter_parameters: Union[_models.RunFilterParameters, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ActivityRunsQueryResponse: + """Query activity runs based on input filter conditions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param run_id: The pipeline run identifier. Required. + :type run_id: str + :param filter_parameters: Parameters to filter the activity runs. Is one of the following + types: RunFilterParameters, JSON, IO[bytes] Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or JSON or + IO[bytes] + :return: ActivityRunsQueryResponse. The ActivityRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ActivityRunsQueryResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(filter_parameters, (IOBase, bytes)): + _content = filter_parameters + else: + _content = json.dumps(filter_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_activity_runs_query_by_pipeline_run_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + run_id=run_id, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ActivityRunsQueryResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class TriggersOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`triggers` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @overload + async def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: _models.TriggerFilterParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.TriggerQueryResponse: + """Query triggers. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the triggers. Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.TriggerFilterParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: TriggerQueryResponse. The TriggerQueryResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.TriggerQueryResponse: + """Query triggers. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the triggers. Required. + :type filter_parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: TriggerQueryResponse. The TriggerQueryResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.TriggerQueryResponse: + """Query triggers. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the triggers. Required. + :type filter_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: TriggerQueryResponse. The TriggerQueryResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: Union[_models.TriggerFilterParameters, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.TriggerQueryResponse: + """Query triggers. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the triggers. Is one of the following types: + TriggerFilterParameters, JSON, IO[bytes] Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.TriggerFilterParameters or JSON or + IO[bytes] + :return: TriggerQueryResponse. The TriggerQueryResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.TriggerQueryResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(filter_parameters, (IOBase, bytes)): + _content = filter_parameters + else: + _content = json.dumps(filter_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_triggers_query_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.TriggerQueryResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + factory_name: str, + trigger_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> Optional[_models.TriggerResource]: + """Gets a trigger. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: TriggerResource or None. The TriggerResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerResource or None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Optional[_models.TriggerResource]] = kwargs.pop("cls", None) + + _request = build_triggers_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 304]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.TriggerResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + trigger_name: str, + trigger: _models.TriggerResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.TriggerResource: + """Creates or updates a trigger. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :param trigger: Trigger resource definition. Required. + :type trigger: ~azure.mgmt.datafactory.models.TriggerResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: TriggerResource. The TriggerResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + trigger_name: str, + trigger: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.TriggerResource: + """Creates or updates a trigger. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :param trigger: Trigger resource definition. Required. + :type trigger: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: TriggerResource. The TriggerResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + trigger_name: str, + trigger: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.TriggerResource: + """Creates or updates a trigger. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :param trigger: Trigger resource definition. Required. + :type trigger: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: TriggerResource. The TriggerResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + trigger_name: str, + trigger: Union[_models.TriggerResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.TriggerResource: + """Creates or updates a trigger. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :param trigger: Trigger resource definition. Is one of the following types: TriggerResource, + JSON, IO[bytes] Required. + :type trigger: ~azure.mgmt.datafactory.models.TriggerResource or JSON or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: TriggerResource. The TriggerResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.TriggerResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(trigger, (IOBase, bytes)): + _content = trigger + else: + _content = json.dumps(trigger, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_triggers_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.TriggerResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete(self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any) -> None: + """Deletes a trigger. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_triggers_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.TriggerResource"]: + """Lists triggers. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of TriggerResource + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.TriggerResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.TriggerResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_triggers_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.TriggerResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + async def _subscribe_to_events_initial( + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_triggers_subscribe_to_events_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_subscribe_to_events( + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> AsyncLROPoller[_models.TriggerSubscriptionOperationStatus]: + """Subscribe event trigger to events. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :return: An instance of AsyncLROPoller that returns TriggerSubscriptionOperationStatus. The + TriggerSubscriptionOperationStatus is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.TriggerSubscriptionOperationStatus] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._subscribe_to_events_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.TriggerSubscriptionOperationStatus, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.TriggerSubscriptionOperationStatus].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.TriggerSubscriptionOperationStatus]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @distributed_trace_async + async def get_event_subscription_status( + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> _models.TriggerSubscriptionOperationStatus: + """Get a trigger's event subscription status. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :return: TriggerSubscriptionOperationStatus. The TriggerSubscriptionOperationStatus is + compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.TriggerSubscriptionOperationStatus] = kwargs.pop("cls", None) + + _request = build_triggers_get_event_subscription_status_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.TriggerSubscriptionOperationStatus, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _unsubscribe_from_events_initial( + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_triggers_unsubscribe_from_events_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_unsubscribe_from_events( + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> AsyncLROPoller[_models.TriggerSubscriptionOperationStatus]: + """Unsubscribe event trigger from events. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :return: An instance of AsyncLROPoller that returns TriggerSubscriptionOperationStatus. The + TriggerSubscriptionOperationStatus is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.TriggerSubscriptionOperationStatus] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._unsubscribe_from_events_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.TriggerSubscriptionOperationStatus, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.TriggerSubscriptionOperationStatus].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.TriggerSubscriptionOperationStatus]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _start_initial( + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_triggers_start_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_start( + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Starts a trigger. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._start_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + async def _stop_initial( + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_triggers_stop_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_stop( + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Stops a trigger. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._stop_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class TriggerRunsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`trigger_runs` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @overload + async def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: _models.RunFilterParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.TriggerRunsQueryResponse: + """Query trigger runs. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the pipeline run. Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: TriggerRunsQueryResponse. The TriggerRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.TriggerRunsQueryResponse: + """Query trigger runs. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the pipeline run. Required. + :type filter_parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: TriggerRunsQueryResponse. The TriggerRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.TriggerRunsQueryResponse: + """Query trigger runs. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the pipeline run. Required. + :type filter_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: TriggerRunsQueryResponse. The TriggerRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: Union[_models.RunFilterParameters, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.TriggerRunsQueryResponse: + """Query trigger runs. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the pipeline run. Is one of the following types: + RunFilterParameters, JSON, IO[bytes] Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or JSON or + IO[bytes] + :return: TriggerRunsQueryResponse. The TriggerRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.TriggerRunsQueryResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(filter_parameters, (IOBase, bytes)): + _content = filter_parameters + else: + _content = json.dumps(filter_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_trigger_runs_query_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.TriggerRunsQueryResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def rerun( + self, resource_group_name: str, factory_name: str, trigger_name: str, run_id: str, **kwargs: Any + ) -> None: + """Rerun single trigger instance by runId. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param trigger_name: Required. + :type trigger_name: str + :param run_id: The pipeline run identifier. Required. + :type run_id: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_trigger_runs_rerun_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + run_id=run_id, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace_async + async def cancel( + self, resource_group_name: str, factory_name: str, trigger_name: str, run_id: str, **kwargs: Any + ) -> None: + """Cancel a single trigger instance by runId. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param trigger_name: Required. + :type trigger_name: str + :param run_id: The pipeline run identifier. Required. + :type run_id: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_trigger_runs_cancel_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + run_id=run_id, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + +class DataFlowDebugSessionOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`data_flow_debug_session` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + async def _create_initial( + self, + resource_group_name: str, + factory_name: str, + request: Union[_models.CreateDataFlowDebugSessionRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(request, (IOBase, bytes)): + _content = request + else: + _content = json.dumps(request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_data_flow_debug_session_create_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create( + self, + resource_group_name: str, + factory_name: str, + request: _models.CreateDataFlowDebugSessionRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.CreateDataFlowDebugSessionResponse]: + """Creates a data flow debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition. Required. + :type request: ~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns CreateDataFlowDebugSessionResponse. The + CreateDataFlowDebugSessionResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create( + self, + resource_group_name: str, + factory_name: str, + request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.CreateDataFlowDebugSessionResponse]: + """Creates a data flow debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition. Required. + :type request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns CreateDataFlowDebugSessionResponse. The + CreateDataFlowDebugSessionResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create( + self, + resource_group_name: str, + factory_name: str, + request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.CreateDataFlowDebugSessionResponse]: + """Creates a data flow debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition. Required. + :type request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns CreateDataFlowDebugSessionResponse. The + CreateDataFlowDebugSessionResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create( + self, + resource_group_name: str, + factory_name: str, + request: Union[_models.CreateDataFlowDebugSessionRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.CreateDataFlowDebugSessionResponse]: + """Creates a data flow debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition. Is one of the following types: + CreateDataFlowDebugSessionRequest, JSON, IO[bytes] Required. + :type request: ~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionRequest or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns CreateDataFlowDebugSessionResponse. The + CreateDataFlowDebugSessionResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.CreateDataFlowDebugSessionResponse] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + request=request, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.CreateDataFlowDebugSessionResponse, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.CreateDataFlowDebugSessionResponse].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.CreateDataFlowDebugSessionResponse]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @distributed_trace + def query_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.DataFlowDebugSessionInfo"]: + """Query all active data flow debug sessions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of DataFlowDebugSessionInfo + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.DataFlowDebugSessionInfo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DataFlowDebugSessionInfo]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_data_flow_debug_session_query_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DataFlowDebugSessionInfo], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @overload + async def add_data_flow( + self, + resource_group_name: str, + factory_name: str, + request: _models.DataFlowDebugPackage, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AddDataFlowToDebugSessionResponse: + """Add a data flow into debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition with debug content. Required. + :type request: ~azure.mgmt.datafactory.models.DataFlowDebugPackage + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AddDataFlowToDebugSessionResponse. The AddDataFlowToDebugSessionResponse is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def add_data_flow( + self, + resource_group_name: str, + factory_name: str, + request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AddDataFlowToDebugSessionResponse: + """Add a data flow into debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition with debug content. Required. + :type request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AddDataFlowToDebugSessionResponse. The AddDataFlowToDebugSessionResponse is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def add_data_flow( + self, + resource_group_name: str, + factory_name: str, + request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AddDataFlowToDebugSessionResponse: + """Add a data flow into debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition with debug content. Required. + :type request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: AddDataFlowToDebugSessionResponse. The AddDataFlowToDebugSessionResponse is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def add_data_flow( + self, + resource_group_name: str, + factory_name: str, + request: Union[_models.DataFlowDebugPackage, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.AddDataFlowToDebugSessionResponse: + """Add a data flow into debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition with debug content. Is one of the following + types: DataFlowDebugPackage, JSON, IO[bytes] Required. + :type request: ~azure.mgmt.datafactory.models.DataFlowDebugPackage or JSON or IO[bytes] + :return: AddDataFlowToDebugSessionResponse. The AddDataFlowToDebugSessionResponse is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.AddDataFlowToDebugSessionResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(request, (IOBase, bytes)): + _content = request + else: + _content = json.dumps(request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_data_flow_debug_session_add_data_flow_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AddDataFlowToDebugSessionResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def delete( + self, + resource_group_name: str, + factory_name: str, + request: _models.DeleteDataFlowDebugSessionRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Deletes a data flow debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition for deletion. Required. + :type request: ~azure.mgmt.datafactory.models.DeleteDataFlowDebugSessionRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def delete( + self, + resource_group_name: str, + factory_name: str, + request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Deletes a data flow debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition for deletion. Required. + :type request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def delete( + self, + resource_group_name: str, + factory_name: str, + request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Deletes a data flow debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition for deletion. Required. + :type request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def delete( + self, + resource_group_name: str, + factory_name: str, + request: Union[_models.DeleteDataFlowDebugSessionRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> None: + """Deletes a data flow debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition for deletion. Is one of the following types: + DeleteDataFlowDebugSessionRequest, JSON, IO[bytes] Required. + :type request: ~azure.mgmt.datafactory.models.DeleteDataFlowDebugSessionRequest or JSON or + IO[bytes] + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(request, (IOBase, bytes)): + _content = request + else: + _content = json.dumps(request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_data_flow_debug_session_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + async def _execute_command_initial( + self, + resource_group_name: str, + factory_name: str, + request: Union[_models.DataFlowDebugCommandRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(request, (IOBase, bytes)): + _content = request + else: + _content = json.dumps(request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_data_flow_debug_session_execute_command_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_execute_command( + self, + resource_group_name: str, + factory_name: str, + request: _models.DataFlowDebugCommandRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DataFlowDebugCommandResponse]: + """Execute a data flow debug command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug command definition. Required. + :type request: ~azure.mgmt.datafactory.models.DataFlowDebugCommandRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DataFlowDebugCommandResponse. The + DataFlowDebugCommandResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.DataFlowDebugCommandResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_execute_command( + self, + resource_group_name: str, + factory_name: str, + request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DataFlowDebugCommandResponse]: + """Execute a data flow debug command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug command definition. Required. + :type request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DataFlowDebugCommandResponse. The + DataFlowDebugCommandResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.DataFlowDebugCommandResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_execute_command( + self, + resource_group_name: str, + factory_name: str, + request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DataFlowDebugCommandResponse]: + """Execute a data flow debug command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug command definition. Required. + :type request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DataFlowDebugCommandResponse. The + DataFlowDebugCommandResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.DataFlowDebugCommandResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_execute_command( + self, + resource_group_name: str, + factory_name: str, + request: Union[_models.DataFlowDebugCommandRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.DataFlowDebugCommandResponse]: + """Execute a data flow debug command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug command definition. Is one of the following types: + DataFlowDebugCommandRequest, JSON, IO[bytes] Required. + :type request: ~azure.mgmt.datafactory.models.DataFlowDebugCommandRequest or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns DataFlowDebugCommandResponse. The + DataFlowDebugCommandResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.DataFlowDebugCommandResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DataFlowDebugCommandResponse] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._execute_command_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + request=request, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DataFlowDebugCommandResponse, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.DataFlowDebugCommandResponse].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.DataFlowDebugCommandResponse]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + +class PrivateLinkResourcesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`private_link_resources` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> _models.PrivateLinkResourcesWrapper: + """Gets the private link resources. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: PrivateLinkResourcesWrapper. The PrivateLinkResourcesWrapper is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PrivateLinkResourcesWrapper + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.PrivateLinkResourcesWrapper] = kwargs.pop("cls", None) + + _request = build_private_link_resources_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.PrivateLinkResourcesWrapper, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class IntegrationRuntimesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`integration_runtimes` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> Optional[_models.IntegrationRuntimeResource]: + """Gets an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: IntegrationRuntimeResource or None. The IntegrationRuntimeResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource or None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Optional[_models.IntegrationRuntimeResource]] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 304]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + integration_runtime: _models.IntegrationRuntimeResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.IntegrationRuntimeResource: + """Creates or updates an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param integration_runtime: Integration runtime resource definition. Required. + :type integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: IntegrationRuntimeResource. The IntegrationRuntimeResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + integration_runtime: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.IntegrationRuntimeResource: + """Creates or updates an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param integration_runtime: Integration runtime resource definition. Required. + :type integration_runtime: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: IntegrationRuntimeResource. The IntegrationRuntimeResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + integration_runtime: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.IntegrationRuntimeResource: + """Creates or updates an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param integration_runtime: Integration runtime resource definition. Required. + :type integration_runtime: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: IntegrationRuntimeResource. The IntegrationRuntimeResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + integration_runtime: Union[_models.IntegrationRuntimeResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.IntegrationRuntimeResource: + """Creates or updates an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param integration_runtime: Integration runtime resource definition. Is one of the following + types: IntegrationRuntimeResource, JSON, IO[bytes] Required. + :type integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource or JSON or + IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: IntegrationRuntimeResource. The IntegrationRuntimeResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(integration_runtime, (IOBase, bytes)): + _content = integration_runtime + else: + _content = json.dumps(integration_runtime, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_integration_runtimes_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + update_integration_runtime_request: _models.UpdateIntegrationRuntimeRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IntegrationRuntimeResource: + """Updates an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param update_integration_runtime_request: The parameters for updating an integration runtime. + Required. + :type update_integration_runtime_request: + ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: IntegrationRuntimeResource. The IntegrationRuntimeResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + update_integration_runtime_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IntegrationRuntimeResource: + """Updates an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param update_integration_runtime_request: The parameters for updating an integration runtime. + Required. + :type update_integration_runtime_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: IntegrationRuntimeResource. The IntegrationRuntimeResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + update_integration_runtime_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IntegrationRuntimeResource: + """Updates an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param update_integration_runtime_request: The parameters for updating an integration runtime. + Required. + :type update_integration_runtime_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: IntegrationRuntimeResource. The IntegrationRuntimeResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + update_integration_runtime_request: Union[_models.UpdateIntegrationRuntimeRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.IntegrationRuntimeResource: + """Updates an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param update_integration_runtime_request: The parameters for updating an integration runtime. + Is one of the following types: UpdateIntegrationRuntimeRequest, JSON, IO[bytes] Required. + :type update_integration_runtime_request: + ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeRequest or JSON or IO[bytes] + :return: IntegrationRuntimeResource. The IntegrationRuntimeResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(update_integration_runtime_request, (IOBase, bytes)): + _content = update_integration_runtime_request + else: + _content = json.dumps(update_integration_runtime_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_integration_runtimes_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> None: + """Deletes an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.IntegrationRuntimeResource"]: + """Lists integration runtimes. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of IntegrationRuntimeResource + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.IntegrationRuntimeResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_integration_runtimes_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.IntegrationRuntimeResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def get_status( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> _models.IntegrationRuntimeStatusResponse: + """Gets detailed status information for an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: IntegrationRuntimeStatusResponse. The IntegrationRuntimeStatusResponse is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.IntegrationRuntimeStatusResponse] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_get_status_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeStatusResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def list_outbound_network_dependencies_endpoints( # pylint: disable=name-too-long + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> _models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse: + """Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse. The + IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse is compatible with + MutableMapping + :rtype: + ~azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_list_outbound_network_dependencies_endpoints_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize( + _models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse, response.json() + ) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def get_connection_info( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> _models.IntegrationRuntimeConnectionInfo: + """Gets the on-premises integration runtime connection information for encrypting the on-premises + data source credentials. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: IntegrationRuntimeConnectionInfo. The IntegrationRuntimeConnectionInfo is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeConnectionInfo + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.IntegrationRuntimeConnectionInfo] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_get_connection_info_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeConnectionInfo, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def regenerate_auth_key( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + regenerate_key_parameters: _models.IntegrationRuntimeRegenerateKeyParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IntegrationRuntimeAuthKeys: + """Regenerates the authentication key for an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param regenerate_key_parameters: The parameters for regenerating integration runtime + authentication key. Required. + :type regenerate_key_parameters: + ~azure.mgmt.datafactory.models.IntegrationRuntimeRegenerateKeyParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: IntegrationRuntimeAuthKeys. The IntegrationRuntimeAuthKeys is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def regenerate_auth_key( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + regenerate_key_parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IntegrationRuntimeAuthKeys: + """Regenerates the authentication key for an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param regenerate_key_parameters: The parameters for regenerating integration runtime + authentication key. Required. + :type regenerate_key_parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: IntegrationRuntimeAuthKeys. The IntegrationRuntimeAuthKeys is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def regenerate_auth_key( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + regenerate_key_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IntegrationRuntimeAuthKeys: + """Regenerates the authentication key for an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param regenerate_key_parameters: The parameters for regenerating integration runtime + authentication key. Required. + :type regenerate_key_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: IntegrationRuntimeAuthKeys. The IntegrationRuntimeAuthKeys is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def regenerate_auth_key( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + regenerate_key_parameters: Union[_models.IntegrationRuntimeRegenerateKeyParameters, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.IntegrationRuntimeAuthKeys: + """Regenerates the authentication key for an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param regenerate_key_parameters: The parameters for regenerating integration runtime + authentication key. Is one of the following types: IntegrationRuntimeRegenerateKeyParameters, + JSON, IO[bytes] Required. + :type regenerate_key_parameters: + ~azure.mgmt.datafactory.models.IntegrationRuntimeRegenerateKeyParameters or JSON or IO[bytes] + :return: IntegrationRuntimeAuthKeys. The IntegrationRuntimeAuthKeys is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.IntegrationRuntimeAuthKeys] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(regenerate_key_parameters, (IOBase, bytes)): + _content = regenerate_key_parameters + else: + _content = json.dumps(regenerate_key_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_integration_runtimes_regenerate_auth_key_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeAuthKeys, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def list_auth_keys( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> _models.IntegrationRuntimeAuthKeys: + """Retrieves the authentication keys for an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: IntegrationRuntimeAuthKeys. The IntegrationRuntimeAuthKeys is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.IntegrationRuntimeAuthKeys] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_list_auth_keys_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeAuthKeys, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _start_initial( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_start_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_start( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> AsyncLROPoller[_models.IntegrationRuntimeStatusResponse]: + """Starts a ManagedReserved type integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: An instance of AsyncLROPoller that returns IntegrationRuntimeStatusResponse. The + IntegrationRuntimeStatusResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.IntegrationRuntimeStatusResponse] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._start_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.IntegrationRuntimeStatusResponse, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.IntegrationRuntimeStatusResponse].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.IntegrationRuntimeStatusResponse]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _stop_initial( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_stop_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_stop( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Stops a ManagedReserved type integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._stop_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace_async + async def sync_credentials( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> None: + """Force the integration runtime to synchronize credentials across integration runtime nodes, and + this will override the credentials across all worker nodes with those available on the + dispatcher node. If you already have the latest credential backup file, you should manually + import it (preferred) on any self-hosted integration runtime node than using this API directly. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_sync_credentials_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace_async + async def get_monitoring_data( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> _models.IntegrationRuntimeMonitoringData: + """Get the integration runtime monitoring data, which includes the monitor data for all the nodes + under this integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: IntegrationRuntimeMonitoringData. The IntegrationRuntimeMonitoringData is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeMonitoringData + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.IntegrationRuntimeMonitoringData] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_get_monitoring_data_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeMonitoringData, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def upgrade( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> None: + """Upgrade self-hosted integration runtime to latest version if availability. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_upgrade_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @overload + async def remove_links( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + linked_integration_runtime_request: _models.LinkedIntegrationRuntimeRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Remove all linked integration runtimes under specific data factory in a self-hosted integration + runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param linked_integration_runtime_request: The data factory name for the linked integration + runtime. Required. + :type linked_integration_runtime_request: + ~azure.mgmt.datafactory.models.LinkedIntegrationRuntimeRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def remove_links( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + linked_integration_runtime_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Remove all linked integration runtimes under specific data factory in a self-hosted integration + runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param linked_integration_runtime_request: The data factory name for the linked integration + runtime. Required. + :type linked_integration_runtime_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def remove_links( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + linked_integration_runtime_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Remove all linked integration runtimes under specific data factory in a self-hosted integration + runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param linked_integration_runtime_request: The data factory name for the linked integration + runtime. Required. + :type linked_integration_runtime_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def remove_links( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + linked_integration_runtime_request: Union[_models.LinkedIntegrationRuntimeRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> None: + """Remove all linked integration runtimes under specific data factory in a self-hosted integration + runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param linked_integration_runtime_request: The data factory name for the linked integration + runtime. Is one of the following types: LinkedIntegrationRuntimeRequest, JSON, IO[bytes] + Required. + :type linked_integration_runtime_request: + ~azure.mgmt.datafactory.models.LinkedIntegrationRuntimeRequest or JSON or IO[bytes] + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(linked_integration_runtime_request, (IOBase, bytes)): + _content = linked_integration_runtime_request + else: + _content = json.dumps(linked_integration_runtime_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_integration_runtimes_remove_links_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @overload + async def create_linked_integration_runtime( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + create_linked_integration_runtime_request: _models.CreateLinkedIntegrationRuntimeRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IntegrationRuntimeStatusResponse: + """Create a linked integration runtime entry in a shared integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param create_linked_integration_runtime_request: The linked integration runtime properties. + Required. + :type create_linked_integration_runtime_request: + ~azure.mgmt.datafactory.models.CreateLinkedIntegrationRuntimeRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: IntegrationRuntimeStatusResponse. The IntegrationRuntimeStatusResponse is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_linked_integration_runtime( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + create_linked_integration_runtime_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IntegrationRuntimeStatusResponse: + """Create a linked integration runtime entry in a shared integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param create_linked_integration_runtime_request: The linked integration runtime properties. + Required. + :type create_linked_integration_runtime_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: IntegrationRuntimeStatusResponse. The IntegrationRuntimeStatusResponse is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_linked_integration_runtime( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + create_linked_integration_runtime_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IntegrationRuntimeStatusResponse: + """Create a linked integration runtime entry in a shared integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param create_linked_integration_runtime_request: The linked integration runtime properties. + Required. + :type create_linked_integration_runtime_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: IntegrationRuntimeStatusResponse. The IntegrationRuntimeStatusResponse is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_linked_integration_runtime( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + create_linked_integration_runtime_request: Union[ + _models.CreateLinkedIntegrationRuntimeRequest, JSON, IO[bytes] + ], + **kwargs: Any + ) -> _models.IntegrationRuntimeStatusResponse: + """Create a linked integration runtime entry in a shared integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param create_linked_integration_runtime_request: The linked integration runtime properties. Is + one of the following types: CreateLinkedIntegrationRuntimeRequest, JSON, IO[bytes] Required. + :type create_linked_integration_runtime_request: + ~azure.mgmt.datafactory.models.CreateLinkedIntegrationRuntimeRequest or JSON or IO[bytes] + :return: IntegrationRuntimeStatusResponse. The IntegrationRuntimeStatusResponse is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.IntegrationRuntimeStatusResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(create_linked_integration_runtime_request, (IOBase, bytes)): + _content = create_linked_integration_runtime_request + else: + _content = json.dumps(create_linked_integration_runtime_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_integration_runtimes_create_linked_integration_runtime_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeStatusResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class IntegrationRuntimeObjectMetadataOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`integration_runtime_object_metadata` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + async def _refresh_initial( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_integration_runtime_object_metadata_refresh_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_refresh( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> AsyncLROPoller[_models.SsisObjectMetadataStatusResponse]: + """Refresh a SSIS integration runtime object metadata. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: An instance of AsyncLROPoller that returns SsisObjectMetadataStatusResponse. The + SsisObjectMetadataStatusResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.SsisObjectMetadataStatusResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.SsisObjectMetadataStatusResponse] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._refresh_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.SsisObjectMetadataStatusResponse, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.SsisObjectMetadataStatusResponse].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.SsisObjectMetadataStatusResponse]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @overload + async def get( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + get_metadata_request: Optional[_models.GetSsisObjectMetadataRequest] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SsisObjectMetadataListResponse: + """Get a SSIS integration runtime object metadata by specified path. The return is pageable + metadata list. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param get_metadata_request: The parameters for getting a SSIS object metadata. Default value + is None. + :type get_metadata_request: ~azure.mgmt.datafactory.models.GetSsisObjectMetadataRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: SsisObjectMetadataListResponse. The SsisObjectMetadataListResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def get( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + get_metadata_request: Optional[JSON] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SsisObjectMetadataListResponse: + """Get a SSIS integration runtime object metadata by specified path. The return is pageable + metadata list. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param get_metadata_request: The parameters for getting a SSIS object metadata. Default value + is None. + :type get_metadata_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: SsisObjectMetadataListResponse. The SsisObjectMetadataListResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def get( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + get_metadata_request: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SsisObjectMetadataListResponse: + """Get a SSIS integration runtime object metadata by specified path. The return is pageable + metadata list. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param get_metadata_request: The parameters for getting a SSIS object metadata. Default value + is None. + :type get_metadata_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: SsisObjectMetadataListResponse. The SsisObjectMetadataListResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + get_metadata_request: Optional[Union[_models.GetSsisObjectMetadataRequest, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> _models.SsisObjectMetadataListResponse: + """Get a SSIS integration runtime object metadata by specified path. The return is pageable + metadata list. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param get_metadata_request: The parameters for getting a SSIS object metadata. Is one of the + following types: GetSsisObjectMetadataRequest, JSON, IO[bytes] Default value is None. + :type get_metadata_request: ~azure.mgmt.datafactory.models.GetSsisObjectMetadataRequest or JSON + or IO[bytes] + :return: SsisObjectMetadataListResponse. The SsisObjectMetadataListResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if get_metadata_request else None + cls: ClsType[_models.SsisObjectMetadataListResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if get_metadata_request else None + _content = None + if isinstance(get_metadata_request, (IOBase, bytes)): + _content = get_metadata_request + else: + if get_metadata_request is not None: + _content = json.dumps(get_metadata_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_integration_runtime_object_metadata_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SsisObjectMetadataListResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class IntegrationRuntimeNodesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`integration_runtime_nodes` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, node_name: str, **kwargs: Any + ) -> _models.SelfHostedIntegrationRuntimeNode: + """Gets a self-hosted integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param integration_runtime_name: Required. + :type integration_runtime_name: str + :param node_name: The integration runtime node name. Required. + :type node_name: str + :return: SelfHostedIntegrationRuntimeNode. The SelfHostedIntegrationRuntimeNode is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.SelfHostedIntegrationRuntimeNode] = kwargs.pop("cls", None) + + _request = build_integration_runtime_nodes_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + node_name=node_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SelfHostedIntegrationRuntimeNode, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, node_name: str, **kwargs: Any + ) -> None: + """Deletes a self-hosted integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param integration_runtime_name: Required. + :type integration_runtime_name: str + :param node_name: The integration runtime node name. Required. + :type node_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_integration_runtime_nodes_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + node_name=node_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @overload + async def update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + node_name: str, + update_integration_runtime_node_request: _models.UpdateIntegrationRuntimeNodeRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SelfHostedIntegrationRuntimeNode: + """Updates a self-hosted integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param integration_runtime_name: Required. + :type integration_runtime_name: str + :param node_name: The integration runtime node name. Required. + :type node_name: str + :param update_integration_runtime_node_request: The parameters for updating an integration + runtime node. Required. + :type update_integration_runtime_node_request: + ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeNodeRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: SelfHostedIntegrationRuntimeNode. The SelfHostedIntegrationRuntimeNode is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + node_name: str, + update_integration_runtime_node_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SelfHostedIntegrationRuntimeNode: + """Updates a self-hosted integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param integration_runtime_name: Required. + :type integration_runtime_name: str + :param node_name: The integration runtime node name. Required. + :type node_name: str + :param update_integration_runtime_node_request: The parameters for updating an integration + runtime node. Required. + :type update_integration_runtime_node_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: SelfHostedIntegrationRuntimeNode. The SelfHostedIntegrationRuntimeNode is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + node_name: str, + update_integration_runtime_node_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SelfHostedIntegrationRuntimeNode: + """Updates a self-hosted integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param integration_runtime_name: Required. + :type integration_runtime_name: str + :param node_name: The integration runtime node name. Required. + :type node_name: str + :param update_integration_runtime_node_request: The parameters for updating an integration + runtime node. Required. + :type update_integration_runtime_node_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: SelfHostedIntegrationRuntimeNode. The SelfHostedIntegrationRuntimeNode is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + node_name: str, + update_integration_runtime_node_request: Union[_models.UpdateIntegrationRuntimeNodeRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.SelfHostedIntegrationRuntimeNode: + """Updates a self-hosted integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param integration_runtime_name: Required. + :type integration_runtime_name: str + :param node_name: The integration runtime node name. Required. + :type node_name: str + :param update_integration_runtime_node_request: The parameters for updating an integration + runtime node. Is one of the following types: UpdateIntegrationRuntimeNodeRequest, JSON, + IO[bytes] Required. + :type update_integration_runtime_node_request: + ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeNodeRequest or JSON or IO[bytes] + :return: SelfHostedIntegrationRuntimeNode. The SelfHostedIntegrationRuntimeNode is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.SelfHostedIntegrationRuntimeNode] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(update_integration_runtime_node_request, (IOBase, bytes)): + _content = update_integration_runtime_node_request + else: + _content = json.dumps(update_integration_runtime_node_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_integration_runtime_nodes_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + node_name=node_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SelfHostedIntegrationRuntimeNode, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def get_ip_address( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, node_name: str, **kwargs: Any + ) -> _models.IntegrationRuntimeNodeIpAddress: + """Get the IP address of self-hosted integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param integration_runtime_name: Required. + :type integration_runtime_name: str + :param node_name: The integration runtime node name. Required. + :type node_name: str + :return: IntegrationRuntimeNodeIpAddress. The IntegrationRuntimeNodeIpAddress is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeNodeIpAddress + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.IntegrationRuntimeNodeIpAddress] = kwargs.pop("cls", None) + + _request = build_integration_runtime_nodes_get_ip_address_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + node_name=node_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeNodeIpAddress, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class IntegrationRuntimeOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`integration_runtime` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + async def _enable_interactive_query_initial( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + enable_interactive_query_request: Union[_models.EnableInteractiveQueryRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(enable_interactive_query_request, (IOBase, bytes)): + _content = enable_interactive_query_request + else: + _content = json.dumps(enable_interactive_query_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_integration_runtime_enable_interactive_query_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_enable_interactive_query( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + enable_interactive_query_request: _models.EnableInteractiveQueryRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.IntegrationRuntimeResource]: + """Enable interactive authoring of Managed Virtual Network integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param enable_interactive_query_request: The enable interactive authoring integration runtime + properties. Required. + :type enable_interactive_query_request: + ~azure.mgmt.datafactory.models.EnableInteractiveQueryRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns IntegrationRuntimeResource. The + IntegrationRuntimeResource is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_enable_interactive_query( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + enable_interactive_query_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.IntegrationRuntimeResource]: + """Enable interactive authoring of Managed Virtual Network integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param enable_interactive_query_request: The enable interactive authoring integration runtime + properties. Required. + :type enable_interactive_query_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns IntegrationRuntimeResource. The + IntegrationRuntimeResource is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_enable_interactive_query( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + enable_interactive_query_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.IntegrationRuntimeResource]: + """Enable interactive authoring of Managed Virtual Network integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param enable_interactive_query_request: The enable interactive authoring integration runtime + properties. Required. + :type enable_interactive_query_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns IntegrationRuntimeResource. The + IntegrationRuntimeResource is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_enable_interactive_query( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + enable_interactive_query_request: Union[_models.EnableInteractiveQueryRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.IntegrationRuntimeResource]: + """Enable interactive authoring of Managed Virtual Network integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param enable_interactive_query_request: The enable interactive authoring integration runtime + properties. Is one of the following types: EnableInteractiveQueryRequest, JSON, IO[bytes] + Required. + :type enable_interactive_query_request: + ~azure.mgmt.datafactory.models.EnableInteractiveQueryRequest or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns IntegrationRuntimeResource. The + IntegrationRuntimeResource is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._enable_interactive_query_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + enable_interactive_query_request=enable_interactive_query_request, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.IntegrationRuntimeResource, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.IntegrationRuntimeResource].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.IntegrationRuntimeResource]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _disable_interactive_query_initial( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_integration_runtime_disable_interactive_query_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_disable_interactive_query( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> AsyncLROPoller[_models.IntegrationRuntimeResource]: + """Disable interactive authoring of Managed Virtual Network integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: An instance of AsyncLROPoller that returns IntegrationRuntimeResource. The + IntegrationRuntimeResource is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._disable_interactive_query_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.IntegrationRuntimeResource, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.IntegrationRuntimeResource].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.IntegrationRuntimeResource]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + +class LinkedServicesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`linked_services` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + factory_name: str, + linked_service_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> Optional[_models.LinkedServiceResource]: + """Gets a linked service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param linked_service_name: The linked service name. Required. + :type linked_service_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: LinkedServiceResource or None. The LinkedServiceResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource or None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Optional[_models.LinkedServiceResource]] = kwargs.pop("cls", None) + + _request = build_linked_services_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + linked_service_name=linked_service_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 304]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.LinkedServiceResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + linked_service_name: str, + linked_service: _models.LinkedServiceResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.LinkedServiceResource: + """Creates or updates a linked service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param linked_service_name: The linked service name. Required. + :type linked_service_name: str + :param linked_service: Linked service resource definition. Required. + :type linked_service: ~azure.mgmt.datafactory.models.LinkedServiceResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: LinkedServiceResource. The LinkedServiceResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + linked_service_name: str, + linked_service: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.LinkedServiceResource: + """Creates or updates a linked service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param linked_service_name: The linked service name. Required. + :type linked_service_name: str + :param linked_service: Linked service resource definition. Required. + :type linked_service: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: LinkedServiceResource. The LinkedServiceResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + linked_service_name: str, + linked_service: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.LinkedServiceResource: + """Creates or updates a linked service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param linked_service_name: The linked service name. Required. + :type linked_service_name: str + :param linked_service: Linked service resource definition. Required. + :type linked_service: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: LinkedServiceResource. The LinkedServiceResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + linked_service_name: str, + linked_service: Union[_models.LinkedServiceResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.LinkedServiceResource: + """Creates or updates a linked service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param linked_service_name: The linked service name. Required. + :type linked_service_name: str + :param linked_service: Linked service resource definition. Is one of the following types: + LinkedServiceResource, JSON, IO[bytes] Required. + :type linked_service: ~azure.mgmt.datafactory.models.LinkedServiceResource or JSON or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: LinkedServiceResource. The LinkedServiceResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.LinkedServiceResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(linked_service, (IOBase, bytes)): + _content = linked_service + else: + _content = json.dumps(linked_service, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_linked_services_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + linked_service_name=linked_service_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.LinkedServiceResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete( + self, resource_group_name: str, factory_name: str, linked_service_name: str, **kwargs: Any + ) -> None: + """Deletes a linked service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param linked_service_name: The linked service name. Required. + :type linked_service_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_linked_services_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + linked_service_name=linked_service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.LinkedServiceResource"]: + """Lists linked services. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of LinkedServiceResource + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.LinkedServiceResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.LinkedServiceResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_linked_services_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.LinkedServiceResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class DatasetsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`datasets` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + factory_name: str, + dataset_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> Optional[_models.DatasetResource]: + """Gets a dataset. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param dataset_name: The dataset name. Required. + :type dataset_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DatasetResource or None. The DatasetResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DatasetResource or None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Optional[_models.DatasetResource]] = kwargs.pop("cls", None) + + _request = build_datasets_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + dataset_name=dataset_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 304]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DatasetResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + dataset_name: str, + dataset: _models.DatasetResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.DatasetResource: + """Creates or updates a dataset. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param dataset_name: The dataset name. Required. + :type dataset_name: str + :param dataset: Dataset resource definition. Required. + :type dataset: ~azure.mgmt.datafactory.models.DatasetResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DatasetResource. The DatasetResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DatasetResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + dataset_name: str, + dataset: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.DatasetResource: + """Creates or updates a dataset. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param dataset_name: The dataset name. Required. + :type dataset_name: str + :param dataset: Dataset resource definition. Required. + :type dataset: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DatasetResource. The DatasetResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DatasetResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + dataset_name: str, + dataset: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.DatasetResource: + """Creates or updates a dataset. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param dataset_name: The dataset name. Required. + :type dataset_name: str + :param dataset: Dataset resource definition. Required. + :type dataset: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DatasetResource. The DatasetResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DatasetResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + dataset_name: str, + dataset: Union[_models.DatasetResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.DatasetResource: + """Creates or updates a dataset. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param dataset_name: The dataset name. Required. + :type dataset_name: str + :param dataset: Dataset resource definition. Is one of the following types: DatasetResource, + JSON, IO[bytes] Required. + :type dataset: ~azure.mgmt.datafactory.models.DatasetResource or JSON or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DatasetResource. The DatasetResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DatasetResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DatasetResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(dataset, (IOBase, bytes)): + _content = dataset + else: + _content = json.dumps(dataset, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_datasets_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + dataset_name=dataset_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DatasetResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete(self, resource_group_name: str, factory_name: str, dataset_name: str, **kwargs: Any) -> None: + """Deletes a dataset. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param dataset_name: The dataset name. Required. + :type dataset_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_datasets_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + dataset_name=dataset_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.DatasetResource"]: + """Lists datasets. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of DatasetResource + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.DatasetResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DatasetResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_datasets_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DatasetResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class PipelinesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`pipelines` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + factory_name: str, + pipeline_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> Optional[_models.PipelineResource]: + """Gets a pipeline. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param pipeline_name: The pipeline name. Required. + :type pipeline_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PipelineResource or None. The PipelineResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineResource or None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Optional[_models.PipelineResource]] = kwargs.pop("cls", None) + + _request = build_pipelines_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + pipeline_name=pipeline_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 304]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.PipelineResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + pipeline_name: str, + pipeline: _models.PipelineResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.PipelineResource: + """Creates or updates a pipeline. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param pipeline_name: The pipeline name. Required. + :type pipeline_name: str + :param pipeline: Pipeline resource definition. Required. + :type pipeline: ~azure.mgmt.datafactory.models.PipelineResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PipelineResource. The PipelineResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + pipeline_name: str, + pipeline: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.PipelineResource: + """Creates or updates a pipeline. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param pipeline_name: The pipeline name. Required. + :type pipeline_name: str + :param pipeline: Pipeline resource definition. Required. + :type pipeline: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PipelineResource. The PipelineResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + pipeline_name: str, + pipeline: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.PipelineResource: + """Creates or updates a pipeline. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param pipeline_name: The pipeline name. Required. + :type pipeline_name: str + :param pipeline: Pipeline resource definition. Required. + :type pipeline: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PipelineResource. The PipelineResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + pipeline_name: str, + pipeline: Union[_models.PipelineResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.PipelineResource: + """Creates or updates a pipeline. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param pipeline_name: The pipeline name. Required. + :type pipeline_name: str + :param pipeline: Pipeline resource definition. Is one of the following types: PipelineResource, + JSON, IO[bytes] Required. + :type pipeline: ~azure.mgmt.datafactory.models.PipelineResource or JSON or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PipelineResource. The PipelineResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.PipelineResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(pipeline, (IOBase, bytes)): + _content = pipeline + else: + _content = json.dumps(pipeline, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_pipelines_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + pipeline_name=pipeline_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.PipelineResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete(self, resource_group_name: str, factory_name: str, pipeline_name: str, **kwargs: Any) -> None: + """Deletes a pipeline. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param pipeline_name: The pipeline name. Required. + :type pipeline_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_pipelines_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + pipeline_name=pipeline_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.PipelineResource"]: + """Lists pipelines. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of PipelineResource + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.PipelineResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.PipelineResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_pipelines_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.PipelineResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @overload + async def create_run( + self, + resource_group_name: str, + factory_name: str, + pipeline_name: str, + parameters: Optional[dict[str, Any]] = None, + *, + reference_pipeline_run_id: Optional[str] = None, + is_recovery: Optional[bool] = None, + start_activity_name: Optional[str] = None, + start_from_failure: Optional[bool] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CreateRunResponse: + """Creates a run of a pipeline. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param pipeline_name: The pipeline name. Required. + :type pipeline_name: str + :param parameters: Parameters of the pipeline run. These parameters will be used only if the + runId is not specified. Default value is None. + :type parameters: dict[str, any] + :keyword reference_pipeline_run_id: The pipeline run identifier. If run ID is specified the + parameters of the specified run will be used to create a new run. Default value is None. + :paramtype reference_pipeline_run_id: str + :keyword is_recovery: Recovery mode flag. If recovery mode is set to true, the specified + referenced pipeline run and the new run will be grouped under the same groupId. Default value + is None. + :paramtype is_recovery: bool + :keyword start_activity_name: In recovery mode, the rerun will start from this activity. If not + specified, all activities will run. Default value is None. + :paramtype start_activity_name: str + :keyword start_from_failure: In recovery mode, if set to true, the rerun will start from failed + activities. The property will be used only if startActivityName is not specified. Default value + is None. + :paramtype start_from_failure: bool + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: CreateRunResponse. The CreateRunResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.CreateRunResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_run( + self, + resource_group_name: str, + factory_name: str, + pipeline_name: str, + parameters: Optional[IO[bytes]] = None, + *, + reference_pipeline_run_id: Optional[str] = None, + is_recovery: Optional[bool] = None, + start_activity_name: Optional[str] = None, + start_from_failure: Optional[bool] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CreateRunResponse: + """Creates a run of a pipeline. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param pipeline_name: The pipeline name. Required. + :type pipeline_name: str + :param parameters: Parameters of the pipeline run. These parameters will be used only if the + runId is not specified. Default value is None. + :type parameters: IO[bytes] + :keyword reference_pipeline_run_id: The pipeline run identifier. If run ID is specified the + parameters of the specified run will be used to create a new run. Default value is None. + :paramtype reference_pipeline_run_id: str + :keyword is_recovery: Recovery mode flag. If recovery mode is set to true, the specified + referenced pipeline run and the new run will be grouped under the same groupId. Default value + is None. + :paramtype is_recovery: bool + :keyword start_activity_name: In recovery mode, the rerun will start from this activity. If not + specified, all activities will run. Default value is None. + :paramtype start_activity_name: str + :keyword start_from_failure: In recovery mode, if set to true, the rerun will start from failed + activities. The property will be used only if startActivityName is not specified. Default value + is None. + :paramtype start_from_failure: bool + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: CreateRunResponse. The CreateRunResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.CreateRunResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_run( + self, + resource_group_name: str, + factory_name: str, + pipeline_name: str, + parameters: Optional[Union[dict[str, Any], IO[bytes]]] = None, + *, + reference_pipeline_run_id: Optional[str] = None, + is_recovery: Optional[bool] = None, + start_activity_name: Optional[str] = None, + start_from_failure: Optional[bool] = None, + **kwargs: Any + ) -> _models.CreateRunResponse: + """Creates a run of a pipeline. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param pipeline_name: The pipeline name. Required. + :type pipeline_name: str + :param parameters: Parameters of the pipeline run. These parameters will be used only if the + runId is not specified. Is either a {str: Any} type or a IO[bytes] type. Default value is None. + :type parameters: dict[str, any] or IO[bytes] + :keyword reference_pipeline_run_id: The pipeline run identifier. If run ID is specified the + parameters of the specified run will be used to create a new run. Default value is None. + :paramtype reference_pipeline_run_id: str + :keyword is_recovery: Recovery mode flag. If recovery mode is set to true, the specified + referenced pipeline run and the new run will be grouped under the same groupId. Default value + is None. + :paramtype is_recovery: bool + :keyword start_activity_name: In recovery mode, the rerun will start from this activity. If not + specified, all activities will run. Default value is None. + :paramtype start_activity_name: str + :keyword start_from_failure: In recovery mode, if set to true, the rerun will start from failed + activities. The property will be used only if startActivityName is not specified. Default value + is None. + :paramtype start_from_failure: bool + :return: CreateRunResponse. The CreateRunResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.CreateRunResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if parameters else None + cls: ClsType[_models.CreateRunResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if parameters else None + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + if parameters is not None: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_pipelines_create_run_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + pipeline_name=pipeline_name, + subscription_id=self._config.subscription_id, + reference_pipeline_run_id=reference_pipeline_run_id, + is_recovery=is_recovery, + start_activity_name=start_activity_name, + start_from_failure=start_from_failure, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.CreateRunResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class DataFlowsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`data_flows` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + factory_name: str, + data_flow_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.DataFlowResource: + """Gets a data flow. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param data_flow_name: The data flow name. Required. + :type data_flow_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DataFlowResource. The DataFlowResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DataFlowResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DataFlowResource] = kwargs.pop("cls", None) + + _request = build_data_flows_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + data_flow_name=data_flow_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DataFlowResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + data_flow_name: str, + data_flow: _models.DataFlowResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.DataFlowResource: + """Creates or updates a data flow. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param data_flow_name: The data flow name. Required. + :type data_flow_name: str + :param data_flow: Data flow resource definition. Required. + :type data_flow: ~azure.mgmt.datafactory.models.DataFlowResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DataFlowResource. The DataFlowResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DataFlowResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + data_flow_name: str, + data_flow: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.DataFlowResource: + """Creates or updates a data flow. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param data_flow_name: The data flow name. Required. + :type data_flow_name: str + :param data_flow: Data flow resource definition. Required. + :type data_flow: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DataFlowResource. The DataFlowResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DataFlowResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + data_flow_name: str, + data_flow: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.DataFlowResource: + """Creates or updates a data flow. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param data_flow_name: The data flow name. Required. + :type data_flow_name: str + :param data_flow: Data flow resource definition. Required. + :type data_flow: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DataFlowResource. The DataFlowResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DataFlowResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + data_flow_name: str, + data_flow: Union[_models.DataFlowResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.DataFlowResource: + """Creates or updates a data flow. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param data_flow_name: The data flow name. Required. + :type data_flow_name: str + :param data_flow: Data flow resource definition. Is one of the following types: + DataFlowResource, JSON, IO[bytes] Required. + :type data_flow: ~azure.mgmt.datafactory.models.DataFlowResource or JSON or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DataFlowResource. The DataFlowResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DataFlowResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DataFlowResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(data_flow, (IOBase, bytes)): + _content = data_flow + else: + _content = json.dumps(data_flow, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_data_flows_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + data_flow_name=data_flow_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DataFlowResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete(self, resource_group_name: str, factory_name: str, data_flow_name: str, **kwargs: Any) -> None: + """Deletes a data flow. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param data_flow_name: The data flow name. Required. + :type data_flow_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_data_flows_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + data_flow_name=data_flow_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.DataFlowResource"]: + """Lists data flows. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of DataFlowResource + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.DataFlowResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DataFlowResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_data_flows_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DataFlowResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class ManagedVirtualNetworksOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`managed_virtual_networks` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedVirtualNetworkResource: + """Gets a managed Virtual Network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedVirtualNetworkResource. The ManagedVirtualNetworkResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ManagedVirtualNetworkResource] = kwargs.pop("cls", None) + + _request = build_managed_virtual_networks_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + managed_virtual_network_name=managed_virtual_network_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedVirtualNetworkResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_virtual_network: _models.ManagedVirtualNetworkResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedVirtualNetworkResource: + """Creates or updates a managed Virtual Network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_virtual_network: Managed Virtual Network resource definition. Required. + :type managed_virtual_network: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedVirtualNetworkResource. The ManagedVirtualNetworkResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_virtual_network: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedVirtualNetworkResource: + """Creates or updates a managed Virtual Network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_virtual_network: Managed Virtual Network resource definition. Required. + :type managed_virtual_network: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedVirtualNetworkResource. The ManagedVirtualNetworkResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_virtual_network: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedVirtualNetworkResource: + """Creates or updates a managed Virtual Network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_virtual_network: Managed Virtual Network resource definition. Required. + :type managed_virtual_network: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedVirtualNetworkResource. The ManagedVirtualNetworkResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_virtual_network: Union[_models.ManagedVirtualNetworkResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedVirtualNetworkResource: + """Creates or updates a managed Virtual Network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_virtual_network: Managed Virtual Network resource definition. Is one of the + following types: ManagedVirtualNetworkResource, JSON, IO[bytes] Required. + :type managed_virtual_network: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource or + JSON or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedVirtualNetworkResource. The ManagedVirtualNetworkResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ManagedVirtualNetworkResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(managed_virtual_network, (IOBase, bytes)): + _content = managed_virtual_network + else: + _content = json.dumps(managed_virtual_network, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_managed_virtual_networks_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + managed_virtual_network_name=managed_virtual_network_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedVirtualNetworkResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ManagedVirtualNetworkResource"]: + """Lists managed Virtual Networks. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of ManagedVirtualNetworkResource + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ManagedVirtualNetworkResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_managed_virtual_networks_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ManagedVirtualNetworkResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class ManagedPrivateEndpointsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`managed_private_endpoints` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_private_endpoint_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedPrivateEndpointResource: + """Gets a managed private endpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_private_endpoint_name: Managed private endpoint name. Required. + :type managed_private_endpoint_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedPrivateEndpointResource. The ManagedPrivateEndpointResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ManagedPrivateEndpointResource] = kwargs.pop("cls", None) + + _request = build_managed_private_endpoints_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + managed_virtual_network_name=managed_virtual_network_name, + managed_private_endpoint_name=managed_private_endpoint_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedPrivateEndpointResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_private_endpoint_name: str, + managed_private_endpoint: _models.ManagedPrivateEndpointResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedPrivateEndpointResource: + """Creates or updates a managed private endpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_private_endpoint_name: Managed private endpoint name. Required. + :type managed_private_endpoint_name: str + :param managed_private_endpoint: Managed private endpoint resource definition. Required. + :type managed_private_endpoint: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedPrivateEndpointResource. The ManagedPrivateEndpointResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_private_endpoint_name: str, + managed_private_endpoint: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedPrivateEndpointResource: + """Creates or updates a managed private endpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_private_endpoint_name: Managed private endpoint name. Required. + :type managed_private_endpoint_name: str + :param managed_private_endpoint: Managed private endpoint resource definition. Required. + :type managed_private_endpoint: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedPrivateEndpointResource. The ManagedPrivateEndpointResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_private_endpoint_name: str, + managed_private_endpoint: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedPrivateEndpointResource: + """Creates or updates a managed private endpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_private_endpoint_name: Managed private endpoint name. Required. + :type managed_private_endpoint_name: str + :param managed_private_endpoint: Managed private endpoint resource definition. Required. + :type managed_private_endpoint: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedPrivateEndpointResource. The ManagedPrivateEndpointResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_private_endpoint_name: str, + managed_private_endpoint: Union[_models.ManagedPrivateEndpointResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedPrivateEndpointResource: + """Creates or updates a managed private endpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_private_endpoint_name: Managed private endpoint name. Required. + :type managed_private_endpoint_name: str + :param managed_private_endpoint: Managed private endpoint resource definition. Is one of the + following types: ManagedPrivateEndpointResource, JSON, IO[bytes] Required. + :type managed_private_endpoint: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource + or JSON or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedPrivateEndpointResource. The ManagedPrivateEndpointResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ManagedPrivateEndpointResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(managed_private_endpoint, (IOBase, bytes)): + _content = managed_private_endpoint + else: + _content = json.dumps(managed_private_endpoint, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_managed_private_endpoints_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + managed_virtual_network_name=managed_virtual_network_name, + managed_private_endpoint_name=managed_private_endpoint_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedPrivateEndpointResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_private_endpoint_name: str, + **kwargs: Any + ) -> None: + """Deletes a managed private endpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_private_endpoint_name: Managed private endpoint name. Required. + :type managed_private_endpoint_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_managed_private_endpoints_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + managed_virtual_network_name=managed_virtual_network_name, + managed_private_endpoint_name=managed_private_endpoint_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, managed_virtual_network_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ManagedPrivateEndpointResource"]: + """Lists managed private endpoints. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :return: An iterator like instance of ManagedPrivateEndpointResource + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ManagedPrivateEndpointResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_managed_private_endpoints_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + managed_virtual_network_name=managed_virtual_network_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ManagedPrivateEndpointResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class CredentialOperationsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`credential_operations` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + factory_name: str, + credential_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> Optional[_models.CredentialResource]: + """Gets a credential. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param credential_name: Credential name. Required. + :type credential_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: CredentialResource or None. The CredentialResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.CredentialResource or None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Optional[_models.CredentialResource]] = kwargs.pop("cls", None) + + _request = build_credential_operations_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + credential_name=credential_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 304]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.CredentialResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + credential_name: str, + credential: _models.CredentialResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.CredentialResource: + """Creates or updates a credential. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param credential_name: Credential name. Required. + :type credential_name: str + :param credential: Credential resource definition. Required. + :type credential: ~azure.mgmt.datafactory.models.CredentialResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: CredentialResource. The CredentialResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.CredentialResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + credential_name: str, + credential: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.CredentialResource: + """Creates or updates a credential. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param credential_name: Credential name. Required. + :type credential_name: str + :param credential: Credential resource definition. Required. + :type credential: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: CredentialResource. The CredentialResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.CredentialResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + credential_name: str, + credential: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.CredentialResource: + """Creates or updates a credential. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param credential_name: Credential name. Required. + :type credential_name: str + :param credential: Credential resource definition. Required. + :type credential: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: CredentialResource. The CredentialResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.CredentialResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + credential_name: str, + credential: Union[_models.CredentialResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.CredentialResource: + """Creates or updates a credential. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param credential_name: Credential name. Required. + :type credential_name: str + :param credential: Credential resource definition. Is one of the following types: + CredentialResource, JSON, IO[bytes] Required. + :type credential: ~azure.mgmt.datafactory.models.CredentialResource or JSON or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: CredentialResource. The CredentialResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.CredentialResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.CredentialResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(credential, (IOBase, bytes)): + _content = credential + else: + _content = json.dumps(credential, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_credential_operations_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + credential_name=credential_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.CredentialResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete(self, resource_group_name: str, factory_name: str, credential_name: str, **kwargs: Any) -> None: + """Deletes a credential. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param credential_name: Credential name. Required. + :type credential_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_credential_operations_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + credential_name=credential_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.CredentialResource"]: + """List credentials. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of CredentialResource + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.CredentialResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.CredentialResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_credential_operations_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.CredentialResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class PrivateEndpointConnectionOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`private_endpoint_connection` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + factory_name: str, + private_endpoint_connection_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.PrivateEndpointConnectionResource: + """Gets a private endpoint connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param private_endpoint_connection_name: The private endpoint connection name. Required. + :type private_endpoint_connection_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PrivateEndpointConnectionResource. The PrivateEndpointConnectionResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.PrivateEndpointConnectionResource] = kwargs.pop("cls", None) + + _request = build_private_endpoint_connection_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + private_endpoint_connection_name=private_endpoint_connection_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.PrivateEndpointConnectionResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + private_endpoint_connection_name: str, + private_endpoint_wrapper: _models.PrivateLinkConnectionApprovalRequestResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.PrivateEndpointConnectionResource: + """Approves or rejects a private endpoint connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param private_endpoint_connection_name: The private endpoint connection name. Required. + :type private_endpoint_connection_name: str + :param private_endpoint_wrapper: Required. + :type private_endpoint_wrapper: + ~azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequestResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PrivateEndpointConnectionResource. The PrivateEndpointConnectionResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + private_endpoint_connection_name: str, + private_endpoint_wrapper: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.PrivateEndpointConnectionResource: + """Approves or rejects a private endpoint connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param private_endpoint_connection_name: The private endpoint connection name. Required. + :type private_endpoint_connection_name: str + :param private_endpoint_wrapper: Required. + :type private_endpoint_wrapper: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PrivateEndpointConnectionResource. The PrivateEndpointConnectionResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + private_endpoint_connection_name: str, + private_endpoint_wrapper: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.PrivateEndpointConnectionResource: + """Approves or rejects a private endpoint connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param private_endpoint_connection_name: The private endpoint connection name. Required. + :type private_endpoint_connection_name: str + :param private_endpoint_wrapper: Required. + :type private_endpoint_wrapper: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PrivateEndpointConnectionResource. The PrivateEndpointConnectionResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + private_endpoint_connection_name: str, + private_endpoint_wrapper: Union[_models.PrivateLinkConnectionApprovalRequestResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.PrivateEndpointConnectionResource: + """Approves or rejects a private endpoint connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param private_endpoint_connection_name: The private endpoint connection name. Required. + :type private_endpoint_connection_name: str + :param private_endpoint_wrapper: Is one of the following types: + PrivateLinkConnectionApprovalRequestResource, JSON, IO[bytes] Required. + :type private_endpoint_wrapper: + ~azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequestResource or JSON or + IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PrivateEndpointConnectionResource. The PrivateEndpointConnectionResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.PrivateEndpointConnectionResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(private_endpoint_wrapper, (IOBase, bytes)): + _content = private_endpoint_wrapper + else: + _content = json.dumps(private_endpoint_wrapper, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_private_endpoint_connection_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + private_endpoint_connection_name=private_endpoint_connection_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.PrivateEndpointConnectionResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete( + self, resource_group_name: str, factory_name: str, private_endpoint_connection_name: str, **kwargs: Any + ) -> None: + """Deletes a private endpoint connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param private_endpoint_connection_name: The private endpoint connection name. Required. + :type private_endpoint_connection_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_private_endpoint_connection_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + private_endpoint_connection_name=private_endpoint_connection_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + +class PrivateEndPointConnectionsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`private_end_point_connections` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.PrivateEndpointConnectionResource"]: + """Lists Private endpoint connections. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of PrivateEndpointConnectionResource + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.PrivateEndpointConnectionResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_private_end_point_connections_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.PrivateEndpointConnectionResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class GlobalParametersOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`global_parameters` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, factory_name: str, global_parameter_name: str, **kwargs: Any + ) -> _models.GlobalParameterResource: + """Gets a Global parameter. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param global_parameter_name: The global parameter name. Required. + :type global_parameter_name: str + :return: GlobalParameterResource. The GlobalParameterResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.GlobalParameterResource] = kwargs.pop("cls", None) + + _request = build_global_parameters_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + global_parameter_name=global_parameter_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.GlobalParameterResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + global_parameter_name: str, + default: _models.GlobalParameterResource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.GlobalParameterResource: + """Creates or updates a Global parameter. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param global_parameter_name: The global parameter name. Required. + :type global_parameter_name: str + :param default: Global parameter resource definition. Required. + :type default: ~azure.mgmt.datafactory.models.GlobalParameterResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: GlobalParameterResource. The GlobalParameterResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + global_parameter_name: str, + default: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.GlobalParameterResource: + """Creates or updates a Global parameter. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param global_parameter_name: The global parameter name. Required. + :type global_parameter_name: str + :param default: Global parameter resource definition. Required. + :type default: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: GlobalParameterResource. The GlobalParameterResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + global_parameter_name: str, + default: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.GlobalParameterResource: + """Creates or updates a Global parameter. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param global_parameter_name: The global parameter name. Required. + :type global_parameter_name: str + :param default: Global parameter resource definition. Required. + :type default: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: GlobalParameterResource. The GlobalParameterResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + global_parameter_name: str, + default: Union[_models.GlobalParameterResource, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.GlobalParameterResource: + """Creates or updates a Global parameter. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param global_parameter_name: The global parameter name. Required. + :type global_parameter_name: str + :param default: Global parameter resource definition. Is one of the following types: + GlobalParameterResource, JSON, IO[bytes] Required. + :type default: ~azure.mgmt.datafactory.models.GlobalParameterResource or JSON or IO[bytes] + :return: GlobalParameterResource. The GlobalParameterResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.GlobalParameterResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(default, (IOBase, bytes)): + _content = default + else: + _content = json.dumps(default, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_global_parameters_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + global_parameter_name=global_parameter_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.GlobalParameterResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete( + self, resource_group_name: str, factory_name: str, global_parameter_name: str, **kwargs: Any + ) -> None: + """Deletes a Global parameter. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param global_parameter_name: The global parameter name. Required. + :type global_parameter_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_global_parameters_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + global_parameter_name=global_parameter_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.GlobalParameterResource"]: + """Lists Global parameters. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of GlobalParameterResource + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.GlobalParameterResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.GlobalParameterResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_global_parameters_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.GlobalParameterResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class ChangeDataCaptureOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s + :attr:`change_data_capture` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + factory_name: str, + change_data_capture_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ChangeDataCaptureResource: + """Gets a change data capture. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param change_data_capture_name: The change data capture name. Required. + :type change_data_capture_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ChangeDataCaptureResource. The ChangeDataCaptureResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ChangeDataCaptureResource] = kwargs.pop("cls", None) + + _request = build_change_data_capture_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + change_data_capture_name=change_data_capture_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ChangeDataCaptureResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + change_data_capture_name: str, + change_data_capture: _models.ChangeDataCaptureResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ChangeDataCaptureResource: + """Creates or updates a change data capture resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param change_data_capture_name: The change data capture name. Required. + :type change_data_capture_name: str + :param change_data_capture: Change data capture resource definition. Required. + :type change_data_capture: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ChangeDataCaptureResource. The ChangeDataCaptureResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + change_data_capture_name: str, + change_data_capture: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ChangeDataCaptureResource: + """Creates or updates a change data capture resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param change_data_capture_name: The change data capture name. Required. + :type change_data_capture_name: str + :param change_data_capture: Change data capture resource definition. Required. + :type change_data_capture: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ChangeDataCaptureResource. The ChangeDataCaptureResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + change_data_capture_name: str, + change_data_capture: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ChangeDataCaptureResource: + """Creates or updates a change data capture resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param change_data_capture_name: The change data capture name. Required. + :type change_data_capture_name: str + :param change_data_capture: Change data capture resource definition. Required. + :type change_data_capture: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ChangeDataCaptureResource. The ChangeDataCaptureResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + factory_name: str, + change_data_capture_name: str, + change_data_capture: Union[_models.ChangeDataCaptureResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ChangeDataCaptureResource: + """Creates or updates a change data capture resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param change_data_capture_name: The change data capture name. Required. + :type change_data_capture_name: str + :param change_data_capture: Change data capture resource definition. Is one of the following + types: ChangeDataCaptureResource, JSON, IO[bytes] Required. + :type change_data_capture: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource or JSON or + IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ChangeDataCaptureResource. The ChangeDataCaptureResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ChangeDataCaptureResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(change_data_capture, (IOBase, bytes)): + _content = change_data_capture + else: + _content = json.dumps(change_data_capture, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_change_data_capture_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + change_data_capture_name=change_data_capture_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ChangeDataCaptureResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete( + self, resource_group_name: str, factory_name: str, change_data_capture_name: str, **kwargs: Any + ) -> None: + """Deletes a change data capture. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param change_data_capture_name: The change data capture name. Required. + :type change_data_capture_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_change_data_capture_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + change_data_capture_name=change_data_capture_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ChangeDataCaptureResource"]: + """Lists all resources of type change data capture. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of ChangeDataCaptureResource + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.ChangeDataCaptureResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ChangeDataCaptureResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_change_data_capture_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ChangeDataCaptureResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def start( + self, resource_group_name: str, factory_name: str, change_data_capture_name: str, **kwargs: Any + ) -> None: + """Starts a change data capture. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param change_data_capture_name: The change data capture name. Required. + :type change_data_capture_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_change_data_capture_start_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + change_data_capture_name=change_data_capture_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace_async + async def stop( + self, resource_group_name: str, factory_name: str, change_data_capture_name: str, **kwargs: Any + ) -> None: + """Stops a change data capture. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param change_data_capture_name: The change data capture name. Required. + :type change_data_capture_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_change_data_capture_stop_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + change_data_capture_name=change_data_capture_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace_async + async def status( + self, resource_group_name: str, factory_name: str, change_data_capture_name: str, **kwargs: Any + ) -> str: + """Gets the current status for the change data capture resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param change_data_capture_name: The change data capture name. Required. + :type change_data_capture_name: str + :return: str + :rtype: str + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[str] = kwargs.pop("cls", None) + + _request = build_change_data_capture_status_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + change_data_capture_name=change_data_capture_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(str, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_patch.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_patch.py index f7dd32510333..ea765788358a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_patch.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_patch.py @@ -1,14 +1,14 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ +# 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. +# -------------------------------------------------------------------------- """Customize generated code here. Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ -from typing import List -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level def patch_sdk(): diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_pipeline_runs_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_pipeline_runs_operations.py deleted file mode 100644 index aa193a6a9c05..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_pipeline_runs_operations.py +++ /dev/null @@ -1,308 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._pipeline_runs_operations import ( - build_cancel_request, - build_get_request, - build_query_by_factory_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class PipelineRunsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`pipeline_runs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @overload - async def query_by_factory( - self, - resource_group_name: str, - factory_name: str, - filter_parameters: _models.RunFilterParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.PipelineRunsQueryResponse: - """Query pipeline runs in the factory based on input filter conditions. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param filter_parameters: Parameters to filter the pipeline run. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: PipelineRunsQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def query_by_factory( - self, - resource_group_name: str, - factory_name: str, - filter_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.PipelineRunsQueryResponse: - """Query pipeline runs in the factory based on input filter conditions. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param filter_parameters: Parameters to filter the pipeline run. Required. - :type filter_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: PipelineRunsQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def query_by_factory( - self, - resource_group_name: str, - factory_name: str, - filter_parameters: Union[_models.RunFilterParameters, IO[bytes]], - **kwargs: Any - ) -> _models.PipelineRunsQueryResponse: - """Query pipeline runs in the factory based on input filter conditions. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param filter_parameters: Parameters to filter the pipeline run. Is either a - RunFilterParameters type or a IO[bytes] type. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or IO[bytes] - :return: PipelineRunsQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.PipelineRunsQueryResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(filter_parameters, (IOBase, bytes)): - _content = filter_parameters - else: - _json = self._serialize.body(filter_parameters, "RunFilterParameters") - - _request = build_query_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PipelineRunsQueryResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get(self, resource_group_name: str, factory_name: str, run_id: str, **kwargs: Any) -> _models.PipelineRun: - """Get a pipeline run by its run ID. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param run_id: The pipeline run identifier. Required. - :type run_id: str - :return: PipelineRun or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PipelineRun - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.PipelineRun] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - run_id=run_id, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PipelineRun", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def cancel( - self, - resource_group_name: str, - factory_name: str, - run_id: str, - is_recursive: Optional[bool] = None, - **kwargs: Any - ) -> None: - """Cancel a pipeline run by its run ID. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param run_id: The pipeline run identifier. Required. - :type run_id: str - :param is_recursive: If true, cancel all the Child pipelines that are triggered by the current - pipeline. Default value is None. - :type is_recursive: bool - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_cancel_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - run_id=run_id, - subscription_id=self._config.subscription_id, - is_recursive=is_recursive, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_pipelines_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_pipelines_operations.py deleted file mode 100644 index 554f6c9b7281..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_pipelines_operations.py +++ /dev/null @@ -1,625 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._pipelines_operations import ( - build_create_or_update_request, - build_create_run_request, - build_delete_request, - build_get_request, - build_list_by_factory_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -JSON = MutableMapping[str, Any] -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class PipelinesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`pipelines` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.PipelineResource"]: - """Lists pipelines. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either PipelineResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.PipelineResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.PipelineListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("PipelineListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - pipeline_name: str, - pipeline: _models.PipelineResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.PipelineResource: - """Creates or updates a pipeline. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param pipeline_name: The pipeline name. Required. - :type pipeline_name: str - :param pipeline: Pipeline resource definition. Required. - :type pipeline: ~azure.mgmt.datafactory.models.PipelineResource - :param if_match: ETag of the pipeline entity. Should only be specified for update, for which - it should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: PipelineResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PipelineResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - pipeline_name: str, - pipeline: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.PipelineResource: - """Creates or updates a pipeline. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param pipeline_name: The pipeline name. Required. - :type pipeline_name: str - :param pipeline: Pipeline resource definition. Required. - :type pipeline: IO[bytes] - :param if_match: ETag of the pipeline entity. Should only be specified for update, for which - it should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: PipelineResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PipelineResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - pipeline_name: str, - pipeline: Union[_models.PipelineResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.PipelineResource: - """Creates or updates a pipeline. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param pipeline_name: The pipeline name. Required. - :type pipeline_name: str - :param pipeline: Pipeline resource definition. Is either a PipelineResource type or a IO[bytes] - type. Required. - :type pipeline: ~azure.mgmt.datafactory.models.PipelineResource or IO[bytes] - :param if_match: ETag of the pipeline entity. Should only be specified for update, for which - it should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :return: PipelineResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PipelineResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.PipelineResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(pipeline, (IOBase, bytes)): - _content = pipeline - else: - _json = self._serialize.body(pipeline, "PipelineResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - pipeline_name=pipeline_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PipelineResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - factory_name: str, - pipeline_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> Optional[_models.PipelineResource]: - """Gets a pipeline. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param pipeline_name: The pipeline name. Required. - :type pipeline_name: str - :param if_none_match: ETag of the pipeline entity. Should only be specified for get. If the - ETag matches the existing entity tag, or if * was provided, then no content will be returned. - Default value is None. - :type if_none_match: str - :return: PipelineResource or None or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PipelineResource or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Optional[_models.PipelineResource]] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - pipeline_name=pipeline_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 304]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("PipelineResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete(self, resource_group_name: str, factory_name: str, pipeline_name: str, **kwargs: Any) -> None: - """Deletes a pipeline. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param pipeline_name: The pipeline name. Required. - :type pipeline_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - pipeline_name=pipeline_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def create_run( - self, - resource_group_name: str, - factory_name: str, - pipeline_name: str, - reference_pipeline_run_id: Optional[str] = None, - is_recovery: Optional[bool] = None, - start_activity_name: Optional[str] = None, - start_from_failure: Optional[bool] = None, - parameters: Optional[dict[str, JSON]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CreateRunResponse: - """Creates a run of a pipeline. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param pipeline_name: The pipeline name. Required. - :type pipeline_name: str - :param reference_pipeline_run_id: The pipeline run identifier. If run ID is specified the - parameters of the specified run will be used to create a new run. Default value is None. - :type reference_pipeline_run_id: str - :param is_recovery: Recovery mode flag. If recovery mode is set to true, the specified - referenced pipeline run and the new run will be grouped under the same groupId. Default value - is None. - :type is_recovery: bool - :param start_activity_name: In recovery mode, the rerun will start from this activity. If not - specified, all activities will run. Default value is None. - :type start_activity_name: str - :param start_from_failure: In recovery mode, if set to true, the rerun will start from failed - activities. The property will be used only if startActivityName is not specified. Default value - is None. - :type start_from_failure: bool - :param parameters: Parameters of the pipeline run. These parameters will be used only if the - runId is not specified. Default value is None. - :type parameters: dict[str, JSON] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CreateRunResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.CreateRunResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_run( - self, - resource_group_name: str, - factory_name: str, - pipeline_name: str, - reference_pipeline_run_id: Optional[str] = None, - is_recovery: Optional[bool] = None, - start_activity_name: Optional[str] = None, - start_from_failure: Optional[bool] = None, - parameters: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CreateRunResponse: - """Creates a run of a pipeline. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param pipeline_name: The pipeline name. Required. - :type pipeline_name: str - :param reference_pipeline_run_id: The pipeline run identifier. If run ID is specified the - parameters of the specified run will be used to create a new run. Default value is None. - :type reference_pipeline_run_id: str - :param is_recovery: Recovery mode flag. If recovery mode is set to true, the specified - referenced pipeline run and the new run will be grouped under the same groupId. Default value - is None. - :type is_recovery: bool - :param start_activity_name: In recovery mode, the rerun will start from this activity. If not - specified, all activities will run. Default value is None. - :type start_activity_name: str - :param start_from_failure: In recovery mode, if set to true, the rerun will start from failed - activities. The property will be used only if startActivityName is not specified. Default value - is None. - :type start_from_failure: bool - :param parameters: Parameters of the pipeline run. These parameters will be used only if the - runId is not specified. Default value is None. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CreateRunResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.CreateRunResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_run( - self, - resource_group_name: str, - factory_name: str, - pipeline_name: str, - reference_pipeline_run_id: Optional[str] = None, - is_recovery: Optional[bool] = None, - start_activity_name: Optional[str] = None, - start_from_failure: Optional[bool] = None, - parameters: Optional[Union[dict[str, JSON], IO[bytes]]] = None, - **kwargs: Any - ) -> _models.CreateRunResponse: - """Creates a run of a pipeline. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param pipeline_name: The pipeline name. Required. - :type pipeline_name: str - :param reference_pipeline_run_id: The pipeline run identifier. If run ID is specified the - parameters of the specified run will be used to create a new run. Default value is None. - :type reference_pipeline_run_id: str - :param is_recovery: Recovery mode flag. If recovery mode is set to true, the specified - referenced pipeline run and the new run will be grouped under the same groupId. Default value - is None. - :type is_recovery: bool - :param start_activity_name: In recovery mode, the rerun will start from this activity. If not - specified, all activities will run. Default value is None. - :type start_activity_name: str - :param start_from_failure: In recovery mode, if set to true, the rerun will start from failed - activities. The property will be used only if startActivityName is not specified. Default value - is None. - :type start_from_failure: bool - :param parameters: Parameters of the pipeline run. These parameters will be used only if the - runId is not specified. Is either a {str: JSON} type or a IO[bytes] type. Default value is - None. - :type parameters: dict[str, JSON] or IO[bytes] - :return: CreateRunResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.CreateRunResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if parameters else None - cls: ClsType[_models.CreateRunResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if parameters else None - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - if parameters is not None: - _json = self._serialize.body(parameters, "{object}") - else: - _json = None - - _request = build_create_run_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - pipeline_name=pipeline_name, - subscription_id=self._config.subscription_id, - reference_pipeline_run_id=reference_pipeline_run_id, - is_recovery=is_recovery, - start_activity_name=start_activity_name, - start_from_failure=start_from_failure, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CreateRunResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_end_point_connections_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_end_point_connections_operations.py deleted file mode 100644 index 88d265dda115..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_end_point_connections_operations.py +++ /dev/null @@ -1,141 +0,0 @@ -# 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 collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._private_end_point_connections_operations import build_list_by_factory_request -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class PrivateEndPointConnectionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`private_end_point_connections` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.PrivateEndpointConnectionResource"]: - """Lists Private endpoint connections. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either PrivateEndpointConnectionResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.PrivateEndpointConnectionListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("PrivateEndpointConnectionListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_endpoint_connection_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_endpoint_connection_operations.py deleted file mode 100644 index de4018a5d771..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_endpoint_connection_operations.py +++ /dev/null @@ -1,339 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._private_endpoint_connection_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class PrivateEndpointConnectionOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`private_endpoint_connection` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - private_endpoint_connection_name: str, - private_endpoint_wrapper: _models.PrivateLinkConnectionApprovalRequestResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.PrivateEndpointConnectionResource: - """Approves or rejects a private endpoint connection. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param private_endpoint_connection_name: The private endpoint connection name. Required. - :type private_endpoint_connection_name: str - :param private_endpoint_wrapper: Required. - :type private_endpoint_wrapper: - ~azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequestResource - :param if_match: ETag of the private endpoint connection entity. Should only be specified for - update, for which it should match existing entity or can be * for unconditional update. Default - value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: PrivateEndpointConnectionResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - private_endpoint_connection_name: str, - private_endpoint_wrapper: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.PrivateEndpointConnectionResource: - """Approves or rejects a private endpoint connection. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param private_endpoint_connection_name: The private endpoint connection name. Required. - :type private_endpoint_connection_name: str - :param private_endpoint_wrapper: Required. - :type private_endpoint_wrapper: IO[bytes] - :param if_match: ETag of the private endpoint connection entity. Should only be specified for - update, for which it should match existing entity or can be * for unconditional update. Default - value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: PrivateEndpointConnectionResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - private_endpoint_connection_name: str, - private_endpoint_wrapper: Union[_models.PrivateLinkConnectionApprovalRequestResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.PrivateEndpointConnectionResource: - """Approves or rejects a private endpoint connection. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param private_endpoint_connection_name: The private endpoint connection name. Required. - :type private_endpoint_connection_name: str - :param private_endpoint_wrapper: Is either a PrivateLinkConnectionApprovalRequestResource type - or a IO[bytes] type. Required. - :type private_endpoint_wrapper: - ~azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequestResource or IO[bytes] - :param if_match: ETag of the private endpoint connection entity. Should only be specified for - update, for which it should match existing entity or can be * for unconditional update. Default - value is None. - :type if_match: str - :return: PrivateEndpointConnectionResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.PrivateEndpointConnectionResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(private_endpoint_wrapper, (IOBase, bytes)): - _content = private_endpoint_wrapper - else: - _json = self._serialize.body(private_endpoint_wrapper, "PrivateLinkConnectionApprovalRequestResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - private_endpoint_connection_name=private_endpoint_connection_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PrivateEndpointConnectionResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - factory_name: str, - private_endpoint_connection_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> _models.PrivateEndpointConnectionResource: - """Gets a private endpoint connection. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param private_endpoint_connection_name: The private endpoint connection name. Required. - :type private_endpoint_connection_name: str - :param if_none_match: ETag of the private endpoint connection entity. Should only be specified - for get. If the ETag matches the existing entity tag, or if * was provided, then no content - will be returned. Default value is None. - :type if_none_match: str - :return: PrivateEndpointConnectionResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.PrivateEndpointConnectionResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - private_endpoint_connection_name=private_endpoint_connection_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PrivateEndpointConnectionResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete( - self, resource_group_name: str, factory_name: str, private_endpoint_connection_name: str, **kwargs: Any - ) -> None: - """Deletes a private endpoint connection. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param private_endpoint_connection_name: The private endpoint connection name. Required. - :type private_endpoint_connection_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - private_endpoint_connection_name=private_endpoint_connection_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_link_resources_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_link_resources_operations.py deleted file mode 100644 index 4f184bc4b4e2..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_link_resources_operations.py +++ /dev/null @@ -1,111 +0,0 @@ -# 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 collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._private_link_resources_operations import build_get_request -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class PrivateLinkResourcesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`private_link_resources` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> _models.PrivateLinkResourcesWrapper: - """Gets the private link resources. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: PrivateLinkResourcesWrapper or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PrivateLinkResourcesWrapper - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.PrivateLinkResourcesWrapper] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PrivateLinkResourcesWrapper", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_trigger_runs_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_trigger_runs_operations.py deleted file mode 100644 index 5c814283922f..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_trigger_runs_operations.py +++ /dev/null @@ -1,303 +0,0 @@ -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._trigger_runs_operations import ( - build_cancel_request, - build_query_by_factory_request, - build_rerun_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class TriggerRunsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`trigger_runs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def rerun( - self, resource_group_name: str, factory_name: str, trigger_name: str, run_id: str, **kwargs: Any - ) -> None: - """Rerun single trigger instance by runId. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :param run_id: The pipeline run identifier. Required. - :type run_id: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_rerun_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - run_id=run_id, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def cancel( - self, resource_group_name: str, factory_name: str, trigger_name: str, run_id: str, **kwargs: Any - ) -> None: - """Cancel a single trigger instance by runId. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :param run_id: The pipeline run identifier. Required. - :type run_id: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_cancel_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - run_id=run_id, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def query_by_factory( - self, - resource_group_name: str, - factory_name: str, - filter_parameters: _models.RunFilterParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TriggerRunsQueryResponse: - """Query trigger runs. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param filter_parameters: Parameters to filter the pipeline run. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TriggerRunsQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def query_by_factory( - self, - resource_group_name: str, - factory_name: str, - filter_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TriggerRunsQueryResponse: - """Query trigger runs. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param filter_parameters: Parameters to filter the pipeline run. Required. - :type filter_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TriggerRunsQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def query_by_factory( - self, - resource_group_name: str, - factory_name: str, - filter_parameters: Union[_models.RunFilterParameters, IO[bytes]], - **kwargs: Any - ) -> _models.TriggerRunsQueryResponse: - """Query trigger runs. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param filter_parameters: Parameters to filter the pipeline run. Is either a - RunFilterParameters type or a IO[bytes] type. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or IO[bytes] - :return: TriggerRunsQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TriggerRunsQueryResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(filter_parameters, (IOBase, bytes)): - _content = filter_parameters - else: - _json = self._serialize.body(filter_parameters, "RunFilterParameters") - - _request = build_query_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TriggerRunsQueryResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_triggers_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_triggers_operations.py deleted file mode 100644 index bcdd2567c06e..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_triggers_operations.py +++ /dev/null @@ -1,1061 +0,0 @@ -# pylint: disable=too-many-lines -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._triggers_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_event_subscription_status_request, - build_get_request, - build_list_by_factory_request, - build_query_by_factory_request, - build_start_request, - build_stop_request, - build_subscribe_to_events_request, - build_unsubscribe_from_events_request, -) -from .._configuration import DataFactoryManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class TriggersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.aio.DataFactoryManagementClient`'s - :attr:`triggers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.TriggerResource"]: - """Lists triggers. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either TriggerResource or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.TriggerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.TriggerListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("TriggerListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def query_by_factory( - self, - resource_group_name: str, - factory_name: str, - filter_parameters: _models.TriggerFilterParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TriggerQueryResponse: - """Query triggers. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param filter_parameters: Parameters to filter the triggers. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.TriggerFilterParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TriggerQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def query_by_factory( - self, - resource_group_name: str, - factory_name: str, - filter_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TriggerQueryResponse: - """Query triggers. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param filter_parameters: Parameters to filter the triggers. Required. - :type filter_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TriggerQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def query_by_factory( - self, - resource_group_name: str, - factory_name: str, - filter_parameters: Union[_models.TriggerFilterParameters, IO[bytes]], - **kwargs: Any - ) -> _models.TriggerQueryResponse: - """Query triggers. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param filter_parameters: Parameters to filter the triggers. Is either a - TriggerFilterParameters type or a IO[bytes] type. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.TriggerFilterParameters or IO[bytes] - :return: TriggerQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TriggerQueryResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(filter_parameters, (IOBase, bytes)): - _content = filter_parameters - else: - _json = self._serialize.body(filter_parameters, "TriggerFilterParameters") - - _request = build_query_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TriggerQueryResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - trigger_name: str, - trigger: _models.TriggerResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TriggerResource: - """Creates or updates a trigger. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :param trigger: Trigger resource definition. Required. - :type trigger: ~azure.mgmt.datafactory.models.TriggerResource - :param if_match: ETag of the trigger entity. Should only be specified for update, for which it - should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TriggerResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - trigger_name: str, - trigger: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TriggerResource: - """Creates or updates a trigger. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :param trigger: Trigger resource definition. Required. - :type trigger: IO[bytes] - :param if_match: ETag of the trigger entity. Should only be specified for update, for which it - should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TriggerResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - factory_name: str, - trigger_name: str, - trigger: Union[_models.TriggerResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.TriggerResource: - """Creates or updates a trigger. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :param trigger: Trigger resource definition. Is either a TriggerResource type or a IO[bytes] - type. Required. - :type trigger: ~azure.mgmt.datafactory.models.TriggerResource or IO[bytes] - :param if_match: ETag of the trigger entity. Should only be specified for update, for which it - should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :return: TriggerResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TriggerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(trigger, (IOBase, bytes)): - _content = trigger - else: - _json = self._serialize.body(trigger, "TriggerResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TriggerResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - factory_name: str, - trigger_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> Optional[_models.TriggerResource]: - """Gets a trigger. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :param if_none_match: ETag of the trigger entity. Should only be specified for get. If the ETag - matches the existing entity tag, or if * was provided, then no content will be returned. - Default value is None. - :type if_none_match: str - :return: TriggerResource or None or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerResource or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Optional[_models.TriggerResource]] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 304]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("TriggerResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete(self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any) -> None: - """Deletes a trigger. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - async def _subscribe_to_events_initial( - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_subscribe_to_events_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_subscribe_to_events( - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.TriggerSubscriptionOperationStatus]: - """Subscribe event trigger to events. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :return: An instance of AsyncLROPoller that returns either TriggerSubscriptionOperationStatus - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.TriggerSubscriptionOperationStatus] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._subscribe_to_events_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("TriggerSubscriptionOperationStatus", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.TriggerSubscriptionOperationStatus].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.TriggerSubscriptionOperationStatus]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def get_event_subscription_status( - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> _models.TriggerSubscriptionOperationStatus: - """Get a trigger's event subscription status. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :return: TriggerSubscriptionOperationStatus or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.TriggerSubscriptionOperationStatus] = kwargs.pop("cls", None) - - _request = build_get_event_subscription_status_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TriggerSubscriptionOperationStatus", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _unsubscribe_from_events_initial( - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_unsubscribe_from_events_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_unsubscribe_from_events( - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.TriggerSubscriptionOperationStatus]: - """Unsubscribe event trigger from events. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :return: An instance of AsyncLROPoller that returns either TriggerSubscriptionOperationStatus - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.TriggerSubscriptionOperationStatus] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._unsubscribe_from_events_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("TriggerSubscriptionOperationStatus", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.TriggerSubscriptionOperationStatus].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.TriggerSubscriptionOperationStatus]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _start_initial( - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Starts a trigger. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stops a trigger. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py index f6a4736cf92f..1f585b03eea6 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -14,7 +14,7 @@ from ._patch import * # pylint: disable=unused-wildcard-import -from ._models_py3 import ( # type: ignore +from ._models import ( # type: ignore AccessPolicyResponse, Activity, ActivityDependency, @@ -22,146 +22,205 @@ ActivityRun, ActivityRunsQueryResponse, AddDataFlowToDebugSessionResponse, - AdditionalColumns, AmazonMWSLinkedService, + AmazonMWSLinkedServiceTypeProperties, AmazonMWSObjectDataset, AmazonMWSSource, + AmazonRdsForLinkedServiceTypeProperties, AmazonRdsForOracleLinkedService, AmazonRdsForOraclePartitionSettings, AmazonRdsForOracleSource, AmazonRdsForOracleTableDataset, + AmazonRdsForOracleTableDatasetTypeProperties, AmazonRdsForSqlServerLinkedService, AmazonRdsForSqlServerLinkedServiceTypeProperties, AmazonRdsForSqlServerSource, AmazonRdsForSqlServerTableDataset, + AmazonRdsForSqlServerTableDatasetTypeProperties, AmazonRedshiftLinkedService, + AmazonRedshiftLinkedServiceTypeProperties, AmazonRedshiftSource, AmazonRedshiftTableDataset, + AmazonRedshiftTableDatasetTypeProperties, AmazonS3CompatibleLinkedService, + AmazonS3CompatibleLinkedServiceTypeProperties, AmazonS3CompatibleLocation, AmazonS3CompatibleReadSettings, AmazonS3Dataset, + AmazonS3DatasetTypeProperties, AmazonS3LinkedService, + AmazonS3LinkedServiceTypeProperties, AmazonS3Location, AmazonS3ReadSettings, AppFiguresLinkedService, + AppFiguresLinkedServiceTypeProperties, AppendVariableActivity, + AppendVariableActivityTypeProperties, ArmIdWrapper, AsanaLinkedService, + AsanaLinkedServiceTypeProperties, AvroDataset, + AvroDatasetTypeProperties, AvroFormat, AvroSink, AvroSource, AvroWriteSettings, AzPowerShellSetup, + AzPowerShellSetupTypeProperties, AzureBatchLinkedService, + AzureBatchLinkedServiceTypeProperties, AzureBlobDataset, + AzureBlobDatasetTypeProperties, AzureBlobFSDataset, + AzureBlobFSDatasetTypeProperties, AzureBlobFSLinkedService, + AzureBlobFSLinkedServiceTypeProperties, AzureBlobFSLocation, AzureBlobFSReadSettings, AzureBlobFSSink, AzureBlobFSSource, AzureBlobFSWriteSettings, AzureBlobStorageLinkedService, + AzureBlobStorageLinkedServiceTypeProperties, AzureBlobStorageLocation, AzureBlobStorageReadSettings, AzureBlobStorageWriteSettings, AzureDataExplorerCommandActivity, + AzureDataExplorerCommandActivityTypeProperties, + AzureDataExplorerDatasetTypeProperties, AzureDataExplorerLinkedService, + AzureDataExplorerLinkedServiceTypeProperties, AzureDataExplorerSink, AzureDataExplorerSource, AzureDataExplorerTableDataset, AzureDataLakeAnalyticsLinkedService, + AzureDataLakeAnalyticsLinkedServiceTypeProperties, AzureDataLakeStoreDataset, + AzureDataLakeStoreDatasetTypeProperties, AzureDataLakeStoreLinkedService, + AzureDataLakeStoreLinkedServiceTypeProperties, AzureDataLakeStoreLocation, AzureDataLakeStoreReadSettings, AzureDataLakeStoreSink, AzureDataLakeStoreSource, AzureDataLakeStoreWriteSettings, AzureDatabricksDeltaLakeDataset, + AzureDatabricksDeltaLakeDatasetTypeProperties, AzureDatabricksDeltaLakeExportCommand, AzureDatabricksDeltaLakeImportCommand, AzureDatabricksDeltaLakeLinkedService, AzureDatabricksDeltaLakeSink, AzureDatabricksDeltaLakeSource, + AzureDatabricksDetltaLakeLinkedServiceTypeProperties, AzureDatabricksLinkedService, + AzureDatabricksLinkedServiceTypeProperties, AzureFileStorageLinkedService, + AzureFileStorageLinkedServiceTypeProperties, AzureFileStorageLocation, AzureFileStorageReadSettings, AzureFileStorageWriteSettings, AzureFunctionActivity, + AzureFunctionActivityTypeProperties, AzureFunctionLinkedService, + AzureFunctionLinkedServiceTypeProperties, AzureKeyVaultLinkedService, + AzureKeyVaultLinkedServiceTypeProperties, AzureKeyVaultSecretReference, AzureMLBatchExecutionActivity, + AzureMLBatchExecutionActivityTypeProperties, AzureMLExecutePipelineActivity, + AzureMLExecutePipelineActivityTypeProperties, AzureMLLinkedService, + AzureMLLinkedServiceTypeProperties, AzureMLServiceLinkedService, + AzureMLServiceLinkedServiceTypeProperties, AzureMLUpdateResourceActivity, + AzureMLUpdateResourceActivityTypeProperties, AzureMLWebServiceFile, AzureMariaDBLinkedService, + AzureMariaDBLinkedServiceTypeProperties, AzureMariaDBSource, AzureMariaDBTableDataset, AzureMySqlLinkedService, + AzureMySqlLinkedServiceTypeProperties, AzureMySqlSink, AzureMySqlSource, AzureMySqlTableDataset, + AzureMySqlTableDatasetTypeProperties, AzurePostgreSqlLinkedService, + AzurePostgreSqlLinkedServiceTypeProperties, AzurePostgreSqlSink, AzurePostgreSqlSinkUpsertSettings, AzurePostgreSqlSource, AzurePostgreSqlTableDataset, + AzurePostgreSqlTableDatasetTypeProperties, AzureQueueSink, AzureSearchIndexDataset, + AzureSearchIndexDatasetTypeProperties, AzureSearchIndexSink, AzureSearchLinkedService, + AzureSearchLinkedServiceTypeProperties, AzureSqlDWLinkedService, AzureSqlDWLinkedServiceTypeProperties, AzureSqlDWTableDataset, + AzureSqlDWTableDatasetTypeProperties, AzureSqlDatabaseLinkedService, AzureSqlDatabaseLinkedServiceTypeProperties, AzureSqlMILinkedService, AzureSqlMILinkedServiceTypeProperties, AzureSqlMITableDataset, + AzureSqlMITableDatasetTypeProperties, AzureSqlSink, AzureSqlSource, AzureSqlTableDataset, + AzureSqlTableDatasetTypeProperties, AzureStorageLinkedService, AzureStorageLinkedServiceTypeProperties, AzureSynapseArtifactsLinkedService, + AzureSynapseArtifactsLinkedServiceTypeProperties, AzureTableDataset, + AzureTableDatasetTypeProperties, AzureTableSink, AzureTableSource, AzureTableStorageLinkedService, AzureTableStorageLinkedServiceTypeProperties, BigDataPoolParametrizationReference, BinaryDataset, + BinaryDatasetTypeProperties, BinaryReadSettings, BinarySink, BinarySource, BlobEventsTrigger, + BlobEventsTriggerTypeProperties, BlobSink, BlobSource, BlobTrigger, + BlobTriggerTypeProperties, CMKIdentityDefinition, CassandraLinkedService, + CassandraLinkedServiceTypeProperties, CassandraSource, CassandraTableDataset, + CassandraTableDatasetTypeProperties, ChainingTrigger, + ChainingTriggerTypeProperties, + ChangeDataCapture, ChangeDataCaptureFolder, - ChangeDataCaptureListResponse, ChangeDataCaptureResource, CloudError, + CloudErrorBody, CmdkeySetup, + CmdkeySetupTypeProperties, CommonDataServiceForAppsEntityDataset, + CommonDataServiceForAppsEntityDatasetTypeProperties, CommonDataServiceForAppsLinkedService, + CommonDataServiceForAppsLinkedServiceTypeProperties, CommonDataServiceForAppsSink, CommonDataServiceForAppsSource, ComponentSetup, CompressionReadSettings, ConcurLinkedService, + ConcurLinkedServiceTypeProperties, ConcurObjectDataset, ConcurSource, ConnectionStateProperties, @@ -169,19 +228,24 @@ ControlActivity, CopyActivity, CopyActivityLogSettings, + CopyActivityTypeProperties, CopyComputeScaleProperties, CopySink, CopySource, - CopyTranslator, CosmosDbLinkedService, + CosmosDbLinkedServiceTypeProperties, CosmosDbMongoDbApiCollectionDataset, + CosmosDbMongoDbApiCollectionDatasetTypeProperties, CosmosDbMongoDbApiLinkedService, + CosmosDbMongoDbApiLinkedServiceTypeProperties, CosmosDbMongoDbApiSink, CosmosDbMongoDbApiSource, CosmosDbSqlApiCollectionDataset, + CosmosDbSqlApiCollectionDatasetTypeProperties, CosmosDbSqlApiSink, CosmosDbSqlApiSource, CouchbaseLinkedService, + CouchbaseLinkedServiceTypeProperties, CouchbaseSource, CouchbaseTableDataset, CreateDataFlowDebugSessionRequest, @@ -189,14 +253,15 @@ CreateLinkedIntegrationRuntimeRequest, CreateRunResponse, Credential, - CredentialListResponse, CredentialReference, CredentialResource, CustomActivity, CustomActivityReferenceObject, + CustomActivityTypeProperties, CustomDataSourceLinkedService, CustomDataset, CustomEventsTrigger, + CustomEventsTriggerTypeProperties, CustomSetupBase, DWCopyCommandDefaultValue, DWCopyCommandSettings, @@ -209,7 +274,6 @@ DataFlowDebugResource, DataFlowDebugSessionInfo, DataFlowFolder, - DataFlowListResponse, DataFlowReference, DataFlowResource, DataFlowSink, @@ -217,29 +281,36 @@ DataFlowSourceSetting, DataFlowStagingInfo, DataLakeAnalyticsUSQLActivity, + DataLakeAnalyticsUSQLActivityTypeProperties, DataMapperMapping, DatabricksJobActivity, + DatabricksJobActivityTypeProperties, DatabricksNotebookActivity, + DatabricksNotebookActivityTypeProperties, DatabricksSparkJarActivity, + DatabricksSparkJarActivityTypeProperties, DatabricksSparkPythonActivity, + DatabricksSparkPythonActivityTypeProperties, Dataset, DatasetCompression, - DatasetDataElement, DatasetDebugResource, DatasetFolder, - DatasetListResponse, DatasetLocation, DatasetReference, DatasetResource, - DatasetSchemaDataElement, DatasetStorageFormat, DataworldLinkedService, + DataworldLinkedServiceTypeProperties, Db2LinkedService, + Db2LinkedServiceTypeProperties, Db2Source, Db2TableDataset, + Db2TableDatasetTypeProperties, DeleteActivity, + DeleteActivityTypeProperties, DeleteDataFlowDebugSessionRequest, DelimitedTextDataset, + DelimitedTextDatasetTypeProperties, DelimitedTextReadSettings, DelimitedTextSink, DelimitedTextSource, @@ -247,41 +318,55 @@ DependencyReference, DistcpSettings, DocumentDbCollectionDataset, + DocumentDbCollectionDatasetTypeProperties, DocumentDbCollectionSink, DocumentDbCollectionSource, + DrillDatasetTypeProperties, DrillLinkedService, + DrillLinkedServiceTypeProperties, DrillSource, DrillTableDataset, DynamicsAXLinkedService, + DynamicsAXLinkedServiceTypeProperties, DynamicsAXResourceDataset, + DynamicsAXResourceDatasetTypeProperties, DynamicsAXSource, DynamicsCrmEntityDataset, + DynamicsCrmEntityDatasetTypeProperties, DynamicsCrmLinkedService, + DynamicsCrmLinkedServiceTypeProperties, DynamicsCrmSink, DynamicsCrmSource, DynamicsEntityDataset, + DynamicsEntityDatasetTypeProperties, DynamicsLinkedService, + DynamicsLinkedServiceTypeProperties, DynamicsSink, DynamicsSource, EloquaLinkedService, + EloquaLinkedServiceTypeProperties, EloquaObjectDataset, EloquaSource, EnableInteractiveQueryRequest, EncryptionConfiguration, EntityReference, EnvironmentVariableSetup, + EnvironmentVariableSetupTypeProperties, ErrorAdditionalInfo, ErrorDetail, ErrorResponse, ExcelDataset, + ExcelDatasetTypeProperties, ExcelSource, ExecuteDataFlowActivity, ExecuteDataFlowActivityTypeProperties, ExecuteDataFlowActivityTypePropertiesCompute, ExecutePipelineActivity, ExecutePipelineActivityPolicy, + ExecutePipelineActivityTypeProperties, ExecutePowerQueryActivityTypeProperties, ExecuteSSISPackageActivity, + ExecuteSSISPackageActivityTypeProperties, ExecuteWranglingDataflowActivity, ExecutionActivity, ExportSettings, @@ -294,89 +379,126 @@ Factory, FactoryGitHubConfiguration, FactoryIdentity, - FactoryListResponse, + FactoryProperties, FactoryRepoConfiguration, FactoryRepoUpdate, FactoryUpdateParameters, + FactoryUpdateProperties, FactoryVSTSConfiguration, FailActivity, + FailActivityTypeProperties, FileServerLinkedService, + FileServerLinkedServiceTypeProperties, FileServerLocation, FileServerReadSettings, FileServerWriteSettings, FileShareDataset, + FileShareDatasetTypeProperties, FileSystemSink, FileSystemSource, FilterActivity, + FilterActivityTypeProperties, Flowlet, + FlowletTypeProperties, ForEachActivity, + ForEachActivityTypeProperties, FormatReadSettings, FormatWriteSettings, FtpReadSettings, FtpServerLinkedService, + FtpServerLinkedServiceTypeProperties, FtpServerLocation, - GetDataFactoryOperationStatusResponse, + GenericDatasetTypeProperties, GetMetadataActivity, + GetMetadataActivityTypeProperties, GetSsisObjectMetadataRequest, GitHubAccessTokenRequest, GitHubAccessTokenResponse, GitHubClientSecret, - GlobalParameterListResponse, GlobalParameterResource, GlobalParameterSpecification, GoogleAdWordsLinkedService, + GoogleAdWordsLinkedServiceTypeProperties, GoogleAdWordsObjectDataset, GoogleAdWordsSource, + GoogleBigQueryDatasetTypeProperties, GoogleBigQueryLinkedService, + GoogleBigQueryLinkedServiceTypeProperties, GoogleBigQueryObjectDataset, GoogleBigQuerySource, + GoogleBigQueryV2DatasetTypeProperties, GoogleBigQueryV2LinkedService, + GoogleBigQueryV2LinkedServiceTypeProperties, GoogleBigQueryV2ObjectDataset, GoogleBigQueryV2Source, GoogleCloudStorageLinkedService, + GoogleCloudStorageLinkedServiceTypeProperties, GoogleCloudStorageLocation, GoogleCloudStorageReadSettings, GoogleSheetsLinkedService, + GoogleSheetsLinkedServiceTypeProperties, + GreenplumDatasetTypeProperties, GreenplumLinkedService, + GreenplumLinkedServiceTypeProperties, GreenplumSource, GreenplumTableDataset, HBaseLinkedService, + HBaseLinkedServiceTypeProperties, HBaseObjectDataset, HBaseSource, HDInsightHiveActivity, + HDInsightHiveActivityTypeProperties, HDInsightLinkedService, + HDInsightLinkedServiceTypeProperties, HDInsightMapReduceActivity, + HDInsightMapReduceActivityTypeProperties, HDInsightOnDemandLinkedService, + HDInsightOnDemandLinkedServiceTypeProperties, HDInsightPigActivity, + HDInsightPigActivityTypeProperties, HDInsightSparkActivity, + HDInsightSparkActivityTypeProperties, HDInsightStreamingActivity, + HDInsightStreamingActivityTypeProperties, HdfsLinkedService, + HdfsLinkedServiceTypeProperties, HdfsLocation, HdfsReadSettings, HdfsSource, + HiveDatasetTypeProperties, HiveLinkedService, + HiveLinkedServiceTypeProperties, HiveObjectDataset, HiveSource, HttpDataset, + HttpDatasetTypeProperties, HttpLinkedService, + HttpLinkedServiceTypeProperties, HttpReadSettings, HttpServerLocation, HttpSource, HubspotLinkedService, + HubspotLinkedServiceTypeProperties, HubspotObjectDataset, HubspotSource, IcebergDataset, + IcebergDatasetTypeProperties, IcebergSink, IcebergWriteSettings, IfConditionActivity, + IfConditionActivityTypeProperties, + ImpalaDatasetTypeProperties, ImpalaLinkedService, + ImpalaLinkedServiceTypeProperties, ImpalaObjectDataset, ImpalaSource, ImportSettings, InformixLinkedService, + InformixLinkedServiceTypeProperties, InformixSink, InformixSource, InformixTableDataset, + InformixTableDatasetTypeProperties, IntegrationRuntime, IntegrationRuntimeAuthKeys, IntegrationRuntimeComputeProperties, @@ -387,7 +509,6 @@ IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem, IntegrationRuntimeDataProxyProperties, IntegrationRuntimeDebugResource, - IntegrationRuntimeListResponse, IntegrationRuntimeMonitoringData, IntegrationRuntimeNodeIpAddress, IntegrationRuntimeNodeMonitoringData, @@ -401,26 +522,31 @@ IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeStatus, - IntegrationRuntimeStatusListResponse, IntegrationRuntimeStatusResponse, IntegrationRuntimeVNetProperties, InteractiveQueryProperties, JiraLinkedService, + JiraLinkedServiceTypeProperties, JiraObjectDataset, JiraSource, + JiraTableDatasetTypeProperties, JsonDataset, + JsonDatasetTypeProperties, JsonFormat, JsonReadSettings, JsonSink, JsonSource, JsonWriteSettings, LakeHouseLinkedService, + LakeHouseLinkedServiceTypeProperties, LakeHouseLocation, LakeHouseReadSettings, LakeHouseTableDataset, + LakeHouseTableDatasetTypeProperties, LakeHouseTableSink, LakeHouseTableSource, LakeHouseWriteSettings, + LicensedComponentSetupTypeProperties, LinkedIntegrationRuntime, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -428,27 +554,29 @@ LinkedIntegrationRuntimeType, LinkedService, LinkedServiceDebugResource, - LinkedServiceListResponse, LinkedServiceReference, LinkedServiceResource, LogLocationSettings, LogSettings, LogStorageSettings, LookupActivity, + LookupActivityTypeProperties, MagentoLinkedService, + MagentoLinkedServiceTypeProperties, MagentoObjectDataset, MagentoSource, ManagedIdentityCredential, + ManagedIdentityTypeProperties, ManagedIntegrationRuntime, ManagedIntegrationRuntimeError, ManagedIntegrationRuntimeNode, ManagedIntegrationRuntimeOperationResult, ManagedIntegrationRuntimeStatus, + ManagedIntegrationRuntimeStatusTypeProperties, + ManagedIntegrationRuntimeTypeProperties, ManagedPrivateEndpoint, - ManagedPrivateEndpointListResponse, ManagedPrivateEndpointResource, ManagedVirtualNetwork, - ManagedVirtualNetworkListResponse, ManagedVirtualNetworkReference, ManagedVirtualNetworkResource, MapperAttributeMapping, @@ -461,94 +589,124 @@ MapperPolicyRecurrence, MapperSourceConnectionsInfo, MapperTable, + MapperTableProperties, MapperTableSchema, MapperTargetConnectionsInfo, MappingDataFlow, + MappingDataFlowTypeProperties, MariaDBLinkedService, + MariaDBLinkedServiceTypeProperties, MariaDBSource, MariaDBTableDataset, MarketoLinkedService, + MarketoLinkedServiceTypeProperties, MarketoObjectDataset, MarketoSource, MetadataItem, MicrosoftAccessLinkedService, + MicrosoftAccessLinkedServiceTypeProperties, MicrosoftAccessSink, MicrosoftAccessSource, MicrosoftAccessTableDataset, + MicrosoftAccessTableDatasetTypeProperties, MongoDbAtlasCollectionDataset, + MongoDbAtlasCollectionDatasetTypeProperties, MongoDbAtlasLinkedService, + MongoDbAtlasLinkedServiceTypeProperties, MongoDbAtlasSink, MongoDbAtlasSource, MongoDbCollectionDataset, + MongoDbCollectionDatasetTypeProperties, MongoDbCursorMethodsProperties, MongoDbLinkedService, + MongoDbLinkedServiceTypeProperties, MongoDbSource, MongoDbV2CollectionDataset, + MongoDbV2CollectionDatasetTypeProperties, MongoDbV2LinkedService, + MongoDbV2LinkedServiceTypeProperties, MongoDbV2Sink, MongoDbV2Source, MultiplePipelineTrigger, MySqlLinkedService, + MySqlLinkedServiceTypeProperties, MySqlSource, MySqlTableDataset, + MySqlTableDatasetTypeProperties, NetezzaLinkedService, + NetezzaLinkedServiceTypeProperties, NetezzaPartitionSettings, NetezzaSource, NetezzaTableDataset, + NetezzaTableDatasetTypeProperties, NotebookParameter, ODataLinkedService, + ODataLinkedServiceTypeProperties, ODataResourceDataset, + ODataResourceDatasetTypeProperties, ODataSource, OdbcLinkedService, + OdbcLinkedServiceTypeProperties, OdbcSink, OdbcSource, OdbcTableDataset, + OdbcTableDatasetTypeProperties, Office365Dataset, + Office365DatasetTypeProperties, Office365LinkedService, + Office365LinkedServiceTypeProperties, Office365Source, Operation, OperationDisplay, - OperationListResponse, OperationLogSpecification, OperationMetricAvailability, OperationMetricDimension, OperationMetricSpecification, + OperationProperties, OperationServiceSpecification, OracleCloudStorageLinkedService, + OracleCloudStorageLinkedServiceTypeProperties, OracleCloudStorageLocation, OracleCloudStorageReadSettings, OracleLinkedService, + OracleLinkedServiceTypeProperties, OraclePartitionSettings, OracleServiceCloudLinkedService, + OracleServiceCloudLinkedServiceTypeProperties, OracleServiceCloudObjectDataset, OracleServiceCloudSource, OracleSink, OracleSource, OracleTableDataset, + OracleTableDatasetTypeProperties, OrcDataset, + OrcDatasetTypeProperties, OrcFormat, OrcSink, OrcSource, OrcWriteSettings, - OutputColumn, PackageStore, ParameterSpecification, ParquetDataset, + ParquetDatasetTypeProperties, ParquetFormat, ParquetReadSettings, ParquetSink, ParquetSource, ParquetWriteSettings, PaypalLinkedService, + PaypalLinkedServiceTypeProperties, PaypalObjectDataset, PaypalSource, + PhoenixDatasetTypeProperties, PhoenixLinkedService, + PhoenixLinkedServiceTypeProperties, PhoenixObjectDataset, PhoenixSource, + Pipeline, PipelineElapsedTimeMetricPolicy, PipelineExternalComputeScaleProperties, PipelineFolder, - PipelineListResponse, PipelinePolicy, PipelineReference, PipelineResource, @@ -557,19 +715,25 @@ PipelineRunsQueryResponse, PolybaseSettings, PostgreSqlLinkedService, + PostgreSqlLinkedServiceTypeProperties, PostgreSqlSource, PostgreSqlTableDataset, + PostgreSqlTableDatasetTypeProperties, PostgreSqlV2LinkedService, + PostgreSqlV2LinkedServiceTypeProperties, PostgreSqlV2Source, PostgreSqlV2TableDataset, + PostgreSqlV2TableDatasetTypeProperties, PowerQuerySink, PowerQuerySinkMapping, PowerQuerySource, + PowerQueryTypeProperties, + PrestoDatasetTypeProperties, PrestoLinkedService, + PrestoLinkedServiceTypeProperties, PrestoObjectDataset, PrestoSource, PrivateEndpoint, - PrivateEndpointConnectionListResponse, PrivateEndpointConnectionResource, PrivateLinkConnectionApprovalRequest, PrivateLinkConnectionApprovalRequestResource, @@ -577,26 +741,33 @@ PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkResourcesWrapper, + ProxyResource, PurviewConfiguration, - QueryDataFlowDebugSessionsResponse, QuickBooksLinkedService, + QuickBooksLinkedServiceTypeProperties, QuickBooksObjectDataset, QuickBooksSource, QuickbaseLinkedService, + QuickbaseLinkedServiceTypeProperties, RecurrenceSchedule, RecurrenceScheduleOccurrence, RedirectIncompatibleRowSettings, RedshiftUnloadSettings, RelationalSource, RelationalTableDataset, + RelationalTableDatasetTypeProperties, RemotePrivateEndpointConnection, RerunTumblingWindowTrigger, + RerunTumblingWindowTriggerTypeProperties, Resource, ResponsysLinkedService, + ResponsysLinkedServiceTypeProperties, ResponsysObjectDataset, ResponsysSource, RestResourceDataset, + RestResourceDatasetTypeProperties, RestServiceLinkedService, + RestServiceLinkedServiceTypeProperties, RestSink, RestSource, RetryPolicy, @@ -608,57 +779,83 @@ SSISExecutionCredential, SSISExecutionParameter, SSISLogLocation, + SSISLogLocationTypeProperties, SSISPackageLocation, + SSISPackageLocationTypeProperties, SSISPropertyOverride, SalesforceLinkedService, + SalesforceLinkedServiceTypeProperties, SalesforceMarketingCloudLinkedService, + SalesforceMarketingCloudLinkedServiceTypeProperties, SalesforceMarketingCloudObjectDataset, SalesforceMarketingCloudSource, SalesforceObjectDataset, + SalesforceObjectDatasetTypeProperties, SalesforceServiceCloudLinkedService, + SalesforceServiceCloudLinkedServiceTypeProperties, SalesforceServiceCloudObjectDataset, + SalesforceServiceCloudObjectDatasetTypeProperties, SalesforceServiceCloudSink, SalesforceServiceCloudSource, SalesforceServiceCloudV2LinkedService, + SalesforceServiceCloudV2LinkedServiceTypeProperties, SalesforceServiceCloudV2ObjectDataset, + SalesforceServiceCloudV2ObjectDatasetTypeProperties, SalesforceServiceCloudV2Sink, SalesforceServiceCloudV2Source, SalesforceSink, SalesforceSource, SalesforceV2LinkedService, + SalesforceV2LinkedServiceTypeProperties, SalesforceV2ObjectDataset, + SalesforceV2ObjectDatasetTypeProperties, SalesforceV2Sink, SalesforceV2Source, SapBWLinkedService, + SapBWLinkedServiceTypeProperties, SapBwCubeDataset, SapBwSource, SapCloudForCustomerLinkedService, + SapCloudForCustomerLinkedServiceTypeProperties, SapCloudForCustomerResourceDataset, + SapCloudForCustomerResourceDatasetTypeProperties, SapCloudForCustomerSink, SapCloudForCustomerSource, SapEccLinkedService, + SapEccLinkedServiceTypeProperties, SapEccResourceDataset, + SapEccResourceDatasetTypeProperties, SapEccSource, SapHanaLinkedService, + SapHanaLinkedServiceProperties, SapHanaPartitionSettings, SapHanaSource, SapHanaTableDataset, + SapHanaTableDatasetTypeProperties, SapOdpLinkedService, + SapOdpLinkedServiceTypeProperties, SapOdpResourceDataset, + SapOdpResourceDatasetTypeProperties, SapOdpSource, SapOpenHubLinkedService, + SapOpenHubLinkedServiceTypeProperties, SapOpenHubSource, SapOpenHubTableDataset, + SapOpenHubTableDatasetTypeProperties, SapTableLinkedService, + SapTableLinkedServiceTypeProperties, SapTablePartitionSettings, SapTableResourceDataset, + SapTableResourceDatasetTypeProperties, SapTableSource, ScheduleTrigger, ScheduleTriggerRecurrence, + ScheduleTriggerTypeProperties, ScriptAction, ScriptActivity, ScriptActivityParameter, ScriptActivityScriptBlock, + ScriptActivityTypeProperties, ScriptActivityTypePropertiesLogSettings, SecretBase, SecureInputOutputPolicy, @@ -667,30 +864,45 @@ SelfHostedIntegrationRuntime, SelfHostedIntegrationRuntimeNode, SelfHostedIntegrationRuntimeStatus, + SelfHostedIntegrationRuntimeStatusTypeProperties, + SelfHostedIntegrationRuntimeTypeProperties, ServiceNowLinkedService, + ServiceNowLinkedServiceTypeProperties, ServiceNowObjectDataset, ServiceNowSource, + ServiceNowV2DatasetTypeProperties, ServiceNowV2LinkedService, + ServiceNowV2LinkedServiceTypeProperties, ServiceNowV2ObjectDataset, ServiceNowV2Source, ServicePrincipalCredential, + ServicePrincipalCredentialTypeProperties, SetVariableActivity, + SetVariableActivityTypeProperties, SftpLocation, SftpReadSettings, SftpServerLinkedService, + SftpServerLinkedServiceTypeProperties, SftpWriteSettings, + SharePointOnlineListDatasetTypeProperties, SharePointOnlineListLinkedService, + SharePointOnlineListLinkedServiceTypeProperties, SharePointOnlineListResourceDataset, SharePointOnlineListSource, ShopifyLinkedService, + ShopifyLinkedServiceTypeProperties, ShopifyObjectDataset, ShopifySource, SkipErrorFile, SmartsheetLinkedService, + SmartsheetLinkedServiceTypeProperties, SnowflakeDataset, + SnowflakeDatasetTypeProperties, SnowflakeExportCopyCommand, SnowflakeImportCopyCommand, SnowflakeLinkedService, + SnowflakeLinkedServiceTypeProperties, + SnowflakeLinkedV2ServiceTypeProperties, SnowflakeSink, SnowflakeSource, SnowflakeV2Dataset, @@ -698,7 +910,9 @@ SnowflakeV2Sink, SnowflakeV2Source, SparkConfigurationParametrizationReference, + SparkDatasetTypeProperties, SparkLinkedService, + SparkLinkedServiceTypeProperties, SparkObjectDataset, SparkSource, SqlAlwaysEncryptedProperties, @@ -714,11 +928,14 @@ SqlServerSink, SqlServerSource, SqlServerStoredProcedureActivity, + SqlServerStoredProcedureActivityTypeProperties, SqlServerTableDataset, + SqlServerTableDatasetTypeProperties, SqlSink, SqlSource, SqlUpsertSettings, SquareLinkedService, + SquareLinkedServiceTypeProperties, SquareObjectDataset, SquareSource, SsisEnvironment, @@ -734,35 +951,41 @@ StagingSettings, StoreReadSettings, StoreWriteSettings, - StoredProcedureParameter, SubResource, SubResourceDebugResource, SwitchActivity, + SwitchActivityTypeProperties, SwitchCase, SybaseLinkedService, + SybaseLinkedServiceTypeProperties, SybaseSource, SybaseTableDataset, + SybaseTableDatasetTypeProperties, SynapseNotebookActivity, + SynapseNotebookActivityTypeProperties, SynapseNotebookReference, + SynapseSparkJobActivityTypeProperties, SynapseSparkJobDefinitionActivity, SynapseSparkJobReference, + SystemData, TabularSource, - TabularTranslator, TarGZipReadSettings, TarReadSettings, TeamDeskLinkedService, + TeamDeskLinkedServiceTypeProperties, TeradataImportCommand, TeradataLinkedService, + TeradataLinkedServiceTypeProperties, TeradataPartitionSettings, TeradataSink, TeradataSource, TeradataTableDataset, + TeradataTableDatasetTypeProperties, TextFormat, Transformation, Trigger, TriggerDependencyReference, TriggerFilterParameters, - TriggerListResponse, TriggerPipelineReference, TriggerQueryResponse, TriggerReference, @@ -772,54 +995,67 @@ TriggerSubscriptionOperationStatus, TumblingWindowTrigger, TumblingWindowTriggerDependencyReference, + TumblingWindowTriggerTypeProperties, TwilioLinkedService, - TypeConversionSettings, + TwilioLinkedServiceTypeProperties, UntilActivity, + UntilActivityTypeProperties, UpdateIntegrationRuntimeNodeRequest, UpdateIntegrationRuntimeRequest, UserAccessPolicy, UserProperty, ValidationActivity, + ValidationActivityTypeProperties, VariableSpecification, + VerticaDatasetTypeProperties, VerticaLinkedService, + VerticaLinkedServiceTypeProperties, VerticaSource, VerticaTableDataset, WaitActivity, + WaitActivityTypeProperties, WarehouseLinkedService, + WarehouseLinkedServiceTypeProperties, WarehouseSink, WarehouseSource, WarehouseTableDataset, + WarehouseTableDatasetTypeProperties, WebActivity, WebActivityAuthentication, + WebActivityTypeProperties, WebAnonymousAuthentication, WebBasicAuthentication, WebClientCertificateAuthentication, WebHookActivity, + WebHookActivityTypeProperties, WebLinkedService, WebLinkedServiceTypeProperties, WebSource, WebTableDataset, + WebTableDatasetTypeProperties, WranglingDataFlow, XeroLinkedService, + XeroLinkedServiceTypeProperties, XeroObjectDataset, XeroSource, XmlDataset, + XmlDatasetTypeProperties, XmlReadSettings, XmlSource, ZendeskLinkedService, + ZendeskLinkedServiceTypeProperties, ZipDeflateReadSettings, ZohoLinkedService, + ZohoLinkedServiceTypeProperties, ZohoObjectDataset, ZohoSource, ) -from ._data_factory_management_client_enums import ( # type: ignore +from ._enums import ( # type: ignore ActivityOnInactiveMarkAs, ActivityState, AmazonRdsForOracleAuthenticationType, - AmazonRdsForOraclePartitionOption, AmazonRdsForSqlAuthenticationType, - AvroCompressionCodec, AzureFunctionActivityMethod, AzurePostgreSqlWriteMethodEnum, AzureSearchIndexWriteBehaviorType, @@ -830,23 +1066,19 @@ BigDataPoolReferenceType, BlobEventTypes, CassandraSourceReadConsistencyLevels, - CompressionCodec, ConfigurationType, ConnectionType, - CopyBehaviorType, CosmosDbConnectionMode, + CreatedByType, CredentialReferenceType, DataFlowComputeType, DataFlowDebugCommandType, DataFlowReferenceType, - DatasetCompressionLevel, DatasetReferenceType, DayOfWeek, DaysOfWeek, Db2AuthenticationType, DependencyCondition, - DynamicsAuthenticationType, - DynamicsDeploymentType, DynamicsSinkWriteBehavior, EventSubscriptionStatus, ExpressionType, @@ -863,7 +1095,6 @@ HDInsightActivityDebugInfoOption, HDInsightClusterAuthenticationType, HDInsightOndemandClusterResourceGroupAuthenticationType, - HdiNodeTypes, HiveAuthenticationType, HiveServerType, HiveThriftTransportProtocol, @@ -882,22 +1113,17 @@ IntegrationRuntimeType, IntegrationRuntimeUpdateResult, InteractiveCapabilityStatus, - JsonFormatFilePattern, - JsonWriteFilePattern, LakehouseAuthenticationType, ManagedIntegrationRuntimeNodeStatus, ManagedVirtualNetworkReferenceType, MappingType, MongoDbAuthenticationType, - NetezzaPartitionOption, NetezzaSecurityLevelType, NotebookParameterType, NotebookReferenceType, ODataAadServicePrincipalCredentialType, ODataAuthenticationType, OracleAuthenticationType, - OraclePartitionOption, - OrcCompressionCodec, ParameterType, PhoenixAuthenticationType, PipelineReferenceType, @@ -911,20 +1137,15 @@ RunQueryOrder, RunQueryOrderByField, SalesforceSinkWriteBehavior, - SalesforceSourceReadBehavior, SalesforceV2SinkWriteBehavior, SapCloudForCustomerSinkWriteBehavior, SapHanaAuthenticationType, - SapHanaPartitionOption, - SapTablePartitionOption, ScriptActivityLogDestination, ScriptActivityParameterDirection, ScriptActivityParameterType, - ScriptType, SelfHostedIntegrationRuntimeNodeStatus, ServiceNowAuthenticationType, ServiceNowV2AuthenticationType, - ServicePrincipalCredentialType, SftpAuthenticationType, SnowflakeAuthenticationType, SparkAuthenticationType, @@ -933,18 +1154,13 @@ SparkServerType, SparkThriftTransportProtocol, SqlAlwaysEncryptedAkvAuthType, - SqlDWWriteBehaviorEnum, - SqlPartitionOption, SqlServerAuthenticationType, - SqlWriteBehaviorEnum, SsisLogLocationType, SsisObjectMetadataType, SsisPackageLocationType, - StoredProcedureParameterType, SybaseAuthenticationType, TeamDeskAuthenticationType, TeradataAuthenticationType, - TeradataPartitionOption, TriggerReferenceType, TriggerRunStatus, TriggerRuntimeState, @@ -970,146 +1186,205 @@ "ActivityRun", "ActivityRunsQueryResponse", "AddDataFlowToDebugSessionResponse", - "AdditionalColumns", "AmazonMWSLinkedService", + "AmazonMWSLinkedServiceTypeProperties", "AmazonMWSObjectDataset", "AmazonMWSSource", + "AmazonRdsForLinkedServiceTypeProperties", "AmazonRdsForOracleLinkedService", "AmazonRdsForOraclePartitionSettings", "AmazonRdsForOracleSource", "AmazonRdsForOracleTableDataset", + "AmazonRdsForOracleTableDatasetTypeProperties", "AmazonRdsForSqlServerLinkedService", "AmazonRdsForSqlServerLinkedServiceTypeProperties", "AmazonRdsForSqlServerSource", "AmazonRdsForSqlServerTableDataset", + "AmazonRdsForSqlServerTableDatasetTypeProperties", "AmazonRedshiftLinkedService", + "AmazonRedshiftLinkedServiceTypeProperties", "AmazonRedshiftSource", "AmazonRedshiftTableDataset", + "AmazonRedshiftTableDatasetTypeProperties", "AmazonS3CompatibleLinkedService", + "AmazonS3CompatibleLinkedServiceTypeProperties", "AmazonS3CompatibleLocation", "AmazonS3CompatibleReadSettings", "AmazonS3Dataset", + "AmazonS3DatasetTypeProperties", "AmazonS3LinkedService", + "AmazonS3LinkedServiceTypeProperties", "AmazonS3Location", "AmazonS3ReadSettings", "AppFiguresLinkedService", + "AppFiguresLinkedServiceTypeProperties", "AppendVariableActivity", + "AppendVariableActivityTypeProperties", "ArmIdWrapper", "AsanaLinkedService", + "AsanaLinkedServiceTypeProperties", "AvroDataset", + "AvroDatasetTypeProperties", "AvroFormat", "AvroSink", "AvroSource", "AvroWriteSettings", "AzPowerShellSetup", + "AzPowerShellSetupTypeProperties", "AzureBatchLinkedService", + "AzureBatchLinkedServiceTypeProperties", "AzureBlobDataset", + "AzureBlobDatasetTypeProperties", "AzureBlobFSDataset", + "AzureBlobFSDatasetTypeProperties", "AzureBlobFSLinkedService", + "AzureBlobFSLinkedServiceTypeProperties", "AzureBlobFSLocation", "AzureBlobFSReadSettings", "AzureBlobFSSink", "AzureBlobFSSource", "AzureBlobFSWriteSettings", "AzureBlobStorageLinkedService", + "AzureBlobStorageLinkedServiceTypeProperties", "AzureBlobStorageLocation", "AzureBlobStorageReadSettings", "AzureBlobStorageWriteSettings", "AzureDataExplorerCommandActivity", + "AzureDataExplorerCommandActivityTypeProperties", + "AzureDataExplorerDatasetTypeProperties", "AzureDataExplorerLinkedService", + "AzureDataExplorerLinkedServiceTypeProperties", "AzureDataExplorerSink", "AzureDataExplorerSource", "AzureDataExplorerTableDataset", "AzureDataLakeAnalyticsLinkedService", + "AzureDataLakeAnalyticsLinkedServiceTypeProperties", "AzureDataLakeStoreDataset", + "AzureDataLakeStoreDatasetTypeProperties", "AzureDataLakeStoreLinkedService", + "AzureDataLakeStoreLinkedServiceTypeProperties", "AzureDataLakeStoreLocation", "AzureDataLakeStoreReadSettings", "AzureDataLakeStoreSink", "AzureDataLakeStoreSource", "AzureDataLakeStoreWriteSettings", "AzureDatabricksDeltaLakeDataset", + "AzureDatabricksDeltaLakeDatasetTypeProperties", "AzureDatabricksDeltaLakeExportCommand", "AzureDatabricksDeltaLakeImportCommand", "AzureDatabricksDeltaLakeLinkedService", "AzureDatabricksDeltaLakeSink", "AzureDatabricksDeltaLakeSource", + "AzureDatabricksDetltaLakeLinkedServiceTypeProperties", "AzureDatabricksLinkedService", + "AzureDatabricksLinkedServiceTypeProperties", "AzureFileStorageLinkedService", + "AzureFileStorageLinkedServiceTypeProperties", "AzureFileStorageLocation", "AzureFileStorageReadSettings", "AzureFileStorageWriteSettings", "AzureFunctionActivity", + "AzureFunctionActivityTypeProperties", "AzureFunctionLinkedService", + "AzureFunctionLinkedServiceTypeProperties", "AzureKeyVaultLinkedService", + "AzureKeyVaultLinkedServiceTypeProperties", "AzureKeyVaultSecretReference", "AzureMLBatchExecutionActivity", + "AzureMLBatchExecutionActivityTypeProperties", "AzureMLExecutePipelineActivity", + "AzureMLExecutePipelineActivityTypeProperties", "AzureMLLinkedService", + "AzureMLLinkedServiceTypeProperties", "AzureMLServiceLinkedService", + "AzureMLServiceLinkedServiceTypeProperties", "AzureMLUpdateResourceActivity", + "AzureMLUpdateResourceActivityTypeProperties", "AzureMLWebServiceFile", "AzureMariaDBLinkedService", + "AzureMariaDBLinkedServiceTypeProperties", "AzureMariaDBSource", "AzureMariaDBTableDataset", "AzureMySqlLinkedService", + "AzureMySqlLinkedServiceTypeProperties", "AzureMySqlSink", "AzureMySqlSource", "AzureMySqlTableDataset", + "AzureMySqlTableDatasetTypeProperties", "AzurePostgreSqlLinkedService", + "AzurePostgreSqlLinkedServiceTypeProperties", "AzurePostgreSqlSink", "AzurePostgreSqlSinkUpsertSettings", "AzurePostgreSqlSource", "AzurePostgreSqlTableDataset", + "AzurePostgreSqlTableDatasetTypeProperties", "AzureQueueSink", "AzureSearchIndexDataset", + "AzureSearchIndexDatasetTypeProperties", "AzureSearchIndexSink", "AzureSearchLinkedService", + "AzureSearchLinkedServiceTypeProperties", "AzureSqlDWLinkedService", "AzureSqlDWLinkedServiceTypeProperties", "AzureSqlDWTableDataset", + "AzureSqlDWTableDatasetTypeProperties", "AzureSqlDatabaseLinkedService", "AzureSqlDatabaseLinkedServiceTypeProperties", "AzureSqlMILinkedService", "AzureSqlMILinkedServiceTypeProperties", "AzureSqlMITableDataset", + "AzureSqlMITableDatasetTypeProperties", "AzureSqlSink", "AzureSqlSource", "AzureSqlTableDataset", + "AzureSqlTableDatasetTypeProperties", "AzureStorageLinkedService", "AzureStorageLinkedServiceTypeProperties", "AzureSynapseArtifactsLinkedService", + "AzureSynapseArtifactsLinkedServiceTypeProperties", "AzureTableDataset", + "AzureTableDatasetTypeProperties", "AzureTableSink", "AzureTableSource", "AzureTableStorageLinkedService", "AzureTableStorageLinkedServiceTypeProperties", "BigDataPoolParametrizationReference", "BinaryDataset", + "BinaryDatasetTypeProperties", "BinaryReadSettings", "BinarySink", "BinarySource", "BlobEventsTrigger", + "BlobEventsTriggerTypeProperties", "BlobSink", "BlobSource", "BlobTrigger", + "BlobTriggerTypeProperties", "CMKIdentityDefinition", "CassandraLinkedService", + "CassandraLinkedServiceTypeProperties", "CassandraSource", "CassandraTableDataset", + "CassandraTableDatasetTypeProperties", "ChainingTrigger", + "ChainingTriggerTypeProperties", + "ChangeDataCapture", "ChangeDataCaptureFolder", - "ChangeDataCaptureListResponse", "ChangeDataCaptureResource", "CloudError", + "CloudErrorBody", "CmdkeySetup", + "CmdkeySetupTypeProperties", "CommonDataServiceForAppsEntityDataset", + "CommonDataServiceForAppsEntityDatasetTypeProperties", "CommonDataServiceForAppsLinkedService", + "CommonDataServiceForAppsLinkedServiceTypeProperties", "CommonDataServiceForAppsSink", "CommonDataServiceForAppsSource", "ComponentSetup", "CompressionReadSettings", "ConcurLinkedService", + "ConcurLinkedServiceTypeProperties", "ConcurObjectDataset", "ConcurSource", "ConnectionStateProperties", @@ -1117,19 +1392,24 @@ "ControlActivity", "CopyActivity", "CopyActivityLogSettings", + "CopyActivityTypeProperties", "CopyComputeScaleProperties", "CopySink", "CopySource", - "CopyTranslator", "CosmosDbLinkedService", + "CosmosDbLinkedServiceTypeProperties", "CosmosDbMongoDbApiCollectionDataset", + "CosmosDbMongoDbApiCollectionDatasetTypeProperties", "CosmosDbMongoDbApiLinkedService", + "CosmosDbMongoDbApiLinkedServiceTypeProperties", "CosmosDbMongoDbApiSink", "CosmosDbMongoDbApiSource", "CosmosDbSqlApiCollectionDataset", + "CosmosDbSqlApiCollectionDatasetTypeProperties", "CosmosDbSqlApiSink", "CosmosDbSqlApiSource", "CouchbaseLinkedService", + "CouchbaseLinkedServiceTypeProperties", "CouchbaseSource", "CouchbaseTableDataset", "CreateDataFlowDebugSessionRequest", @@ -1137,14 +1417,15 @@ "CreateLinkedIntegrationRuntimeRequest", "CreateRunResponse", "Credential", - "CredentialListResponse", "CredentialReference", "CredentialResource", "CustomActivity", "CustomActivityReferenceObject", + "CustomActivityTypeProperties", "CustomDataSourceLinkedService", "CustomDataset", "CustomEventsTrigger", + "CustomEventsTriggerTypeProperties", "CustomSetupBase", "DWCopyCommandDefaultValue", "DWCopyCommandSettings", @@ -1157,7 +1438,6 @@ "DataFlowDebugResource", "DataFlowDebugSessionInfo", "DataFlowFolder", - "DataFlowListResponse", "DataFlowReference", "DataFlowResource", "DataFlowSink", @@ -1165,29 +1445,36 @@ "DataFlowSourceSetting", "DataFlowStagingInfo", "DataLakeAnalyticsUSQLActivity", + "DataLakeAnalyticsUSQLActivityTypeProperties", "DataMapperMapping", "DatabricksJobActivity", + "DatabricksJobActivityTypeProperties", "DatabricksNotebookActivity", + "DatabricksNotebookActivityTypeProperties", "DatabricksSparkJarActivity", + "DatabricksSparkJarActivityTypeProperties", "DatabricksSparkPythonActivity", + "DatabricksSparkPythonActivityTypeProperties", "Dataset", "DatasetCompression", - "DatasetDataElement", "DatasetDebugResource", "DatasetFolder", - "DatasetListResponse", "DatasetLocation", "DatasetReference", "DatasetResource", - "DatasetSchemaDataElement", "DatasetStorageFormat", "DataworldLinkedService", + "DataworldLinkedServiceTypeProperties", "Db2LinkedService", + "Db2LinkedServiceTypeProperties", "Db2Source", "Db2TableDataset", + "Db2TableDatasetTypeProperties", "DeleteActivity", + "DeleteActivityTypeProperties", "DeleteDataFlowDebugSessionRequest", "DelimitedTextDataset", + "DelimitedTextDatasetTypeProperties", "DelimitedTextReadSettings", "DelimitedTextSink", "DelimitedTextSource", @@ -1195,41 +1482,55 @@ "DependencyReference", "DistcpSettings", "DocumentDbCollectionDataset", + "DocumentDbCollectionDatasetTypeProperties", "DocumentDbCollectionSink", "DocumentDbCollectionSource", + "DrillDatasetTypeProperties", "DrillLinkedService", + "DrillLinkedServiceTypeProperties", "DrillSource", "DrillTableDataset", "DynamicsAXLinkedService", + "DynamicsAXLinkedServiceTypeProperties", "DynamicsAXResourceDataset", + "DynamicsAXResourceDatasetTypeProperties", "DynamicsAXSource", "DynamicsCrmEntityDataset", + "DynamicsCrmEntityDatasetTypeProperties", "DynamicsCrmLinkedService", + "DynamicsCrmLinkedServiceTypeProperties", "DynamicsCrmSink", "DynamicsCrmSource", "DynamicsEntityDataset", + "DynamicsEntityDatasetTypeProperties", "DynamicsLinkedService", + "DynamicsLinkedServiceTypeProperties", "DynamicsSink", "DynamicsSource", "EloquaLinkedService", + "EloquaLinkedServiceTypeProperties", "EloquaObjectDataset", "EloquaSource", "EnableInteractiveQueryRequest", "EncryptionConfiguration", "EntityReference", "EnvironmentVariableSetup", + "EnvironmentVariableSetupTypeProperties", "ErrorAdditionalInfo", "ErrorDetail", "ErrorResponse", "ExcelDataset", + "ExcelDatasetTypeProperties", "ExcelSource", "ExecuteDataFlowActivity", "ExecuteDataFlowActivityTypeProperties", "ExecuteDataFlowActivityTypePropertiesCompute", "ExecutePipelineActivity", "ExecutePipelineActivityPolicy", + "ExecutePipelineActivityTypeProperties", "ExecutePowerQueryActivityTypeProperties", "ExecuteSSISPackageActivity", + "ExecuteSSISPackageActivityTypeProperties", "ExecuteWranglingDataflowActivity", "ExecutionActivity", "ExportSettings", @@ -1242,89 +1543,126 @@ "Factory", "FactoryGitHubConfiguration", "FactoryIdentity", - "FactoryListResponse", + "FactoryProperties", "FactoryRepoConfiguration", "FactoryRepoUpdate", "FactoryUpdateParameters", + "FactoryUpdateProperties", "FactoryVSTSConfiguration", "FailActivity", + "FailActivityTypeProperties", "FileServerLinkedService", + "FileServerLinkedServiceTypeProperties", "FileServerLocation", "FileServerReadSettings", "FileServerWriteSettings", "FileShareDataset", + "FileShareDatasetTypeProperties", "FileSystemSink", "FileSystemSource", "FilterActivity", + "FilterActivityTypeProperties", "Flowlet", + "FlowletTypeProperties", "ForEachActivity", + "ForEachActivityTypeProperties", "FormatReadSettings", "FormatWriteSettings", "FtpReadSettings", "FtpServerLinkedService", + "FtpServerLinkedServiceTypeProperties", "FtpServerLocation", - "GetDataFactoryOperationStatusResponse", + "GenericDatasetTypeProperties", "GetMetadataActivity", + "GetMetadataActivityTypeProperties", "GetSsisObjectMetadataRequest", "GitHubAccessTokenRequest", "GitHubAccessTokenResponse", "GitHubClientSecret", - "GlobalParameterListResponse", "GlobalParameterResource", "GlobalParameterSpecification", "GoogleAdWordsLinkedService", + "GoogleAdWordsLinkedServiceTypeProperties", "GoogleAdWordsObjectDataset", "GoogleAdWordsSource", + "GoogleBigQueryDatasetTypeProperties", "GoogleBigQueryLinkedService", + "GoogleBigQueryLinkedServiceTypeProperties", "GoogleBigQueryObjectDataset", "GoogleBigQuerySource", + "GoogleBigQueryV2DatasetTypeProperties", "GoogleBigQueryV2LinkedService", + "GoogleBigQueryV2LinkedServiceTypeProperties", "GoogleBigQueryV2ObjectDataset", "GoogleBigQueryV2Source", "GoogleCloudStorageLinkedService", + "GoogleCloudStorageLinkedServiceTypeProperties", "GoogleCloudStorageLocation", "GoogleCloudStorageReadSettings", "GoogleSheetsLinkedService", + "GoogleSheetsLinkedServiceTypeProperties", + "GreenplumDatasetTypeProperties", "GreenplumLinkedService", + "GreenplumLinkedServiceTypeProperties", "GreenplumSource", "GreenplumTableDataset", "HBaseLinkedService", + "HBaseLinkedServiceTypeProperties", "HBaseObjectDataset", "HBaseSource", "HDInsightHiveActivity", + "HDInsightHiveActivityTypeProperties", "HDInsightLinkedService", + "HDInsightLinkedServiceTypeProperties", "HDInsightMapReduceActivity", + "HDInsightMapReduceActivityTypeProperties", "HDInsightOnDemandLinkedService", + "HDInsightOnDemandLinkedServiceTypeProperties", "HDInsightPigActivity", + "HDInsightPigActivityTypeProperties", "HDInsightSparkActivity", + "HDInsightSparkActivityTypeProperties", "HDInsightStreamingActivity", + "HDInsightStreamingActivityTypeProperties", "HdfsLinkedService", + "HdfsLinkedServiceTypeProperties", "HdfsLocation", "HdfsReadSettings", "HdfsSource", + "HiveDatasetTypeProperties", "HiveLinkedService", + "HiveLinkedServiceTypeProperties", "HiveObjectDataset", "HiveSource", "HttpDataset", + "HttpDatasetTypeProperties", "HttpLinkedService", + "HttpLinkedServiceTypeProperties", "HttpReadSettings", "HttpServerLocation", "HttpSource", "HubspotLinkedService", + "HubspotLinkedServiceTypeProperties", "HubspotObjectDataset", "HubspotSource", "IcebergDataset", + "IcebergDatasetTypeProperties", "IcebergSink", "IcebergWriteSettings", "IfConditionActivity", + "IfConditionActivityTypeProperties", + "ImpalaDatasetTypeProperties", "ImpalaLinkedService", + "ImpalaLinkedServiceTypeProperties", "ImpalaObjectDataset", "ImpalaSource", "ImportSettings", "InformixLinkedService", + "InformixLinkedServiceTypeProperties", "InformixSink", "InformixSource", "InformixTableDataset", + "InformixTableDatasetTypeProperties", "IntegrationRuntime", "IntegrationRuntimeAuthKeys", "IntegrationRuntimeComputeProperties", @@ -1335,7 +1673,6 @@ "IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem", "IntegrationRuntimeDataProxyProperties", "IntegrationRuntimeDebugResource", - "IntegrationRuntimeListResponse", "IntegrationRuntimeMonitoringData", "IntegrationRuntimeNodeIpAddress", "IntegrationRuntimeNodeMonitoringData", @@ -1349,26 +1686,31 @@ "IntegrationRuntimeSsisCatalogInfo", "IntegrationRuntimeSsisProperties", "IntegrationRuntimeStatus", - "IntegrationRuntimeStatusListResponse", "IntegrationRuntimeStatusResponse", "IntegrationRuntimeVNetProperties", "InteractiveQueryProperties", "JiraLinkedService", + "JiraLinkedServiceTypeProperties", "JiraObjectDataset", "JiraSource", + "JiraTableDatasetTypeProperties", "JsonDataset", + "JsonDatasetTypeProperties", "JsonFormat", "JsonReadSettings", "JsonSink", "JsonSource", "JsonWriteSettings", "LakeHouseLinkedService", + "LakeHouseLinkedServiceTypeProperties", "LakeHouseLocation", "LakeHouseReadSettings", "LakeHouseTableDataset", + "LakeHouseTableDatasetTypeProperties", "LakeHouseTableSink", "LakeHouseTableSource", "LakeHouseWriteSettings", + "LicensedComponentSetupTypeProperties", "LinkedIntegrationRuntime", "LinkedIntegrationRuntimeKeyAuthorization", "LinkedIntegrationRuntimeRbacAuthorization", @@ -1376,27 +1718,29 @@ "LinkedIntegrationRuntimeType", "LinkedService", "LinkedServiceDebugResource", - "LinkedServiceListResponse", "LinkedServiceReference", "LinkedServiceResource", "LogLocationSettings", "LogSettings", "LogStorageSettings", "LookupActivity", + "LookupActivityTypeProperties", "MagentoLinkedService", + "MagentoLinkedServiceTypeProperties", "MagentoObjectDataset", "MagentoSource", "ManagedIdentityCredential", + "ManagedIdentityTypeProperties", "ManagedIntegrationRuntime", "ManagedIntegrationRuntimeError", "ManagedIntegrationRuntimeNode", "ManagedIntegrationRuntimeOperationResult", "ManagedIntegrationRuntimeStatus", + "ManagedIntegrationRuntimeStatusTypeProperties", + "ManagedIntegrationRuntimeTypeProperties", "ManagedPrivateEndpoint", - "ManagedPrivateEndpointListResponse", "ManagedPrivateEndpointResource", "ManagedVirtualNetwork", - "ManagedVirtualNetworkListResponse", "ManagedVirtualNetworkReference", "ManagedVirtualNetworkResource", "MapperAttributeMapping", @@ -1409,94 +1753,124 @@ "MapperPolicyRecurrence", "MapperSourceConnectionsInfo", "MapperTable", + "MapperTableProperties", "MapperTableSchema", "MapperTargetConnectionsInfo", "MappingDataFlow", + "MappingDataFlowTypeProperties", "MariaDBLinkedService", + "MariaDBLinkedServiceTypeProperties", "MariaDBSource", "MariaDBTableDataset", "MarketoLinkedService", + "MarketoLinkedServiceTypeProperties", "MarketoObjectDataset", "MarketoSource", "MetadataItem", "MicrosoftAccessLinkedService", + "MicrosoftAccessLinkedServiceTypeProperties", "MicrosoftAccessSink", "MicrosoftAccessSource", "MicrosoftAccessTableDataset", + "MicrosoftAccessTableDatasetTypeProperties", "MongoDbAtlasCollectionDataset", + "MongoDbAtlasCollectionDatasetTypeProperties", "MongoDbAtlasLinkedService", + "MongoDbAtlasLinkedServiceTypeProperties", "MongoDbAtlasSink", "MongoDbAtlasSource", "MongoDbCollectionDataset", + "MongoDbCollectionDatasetTypeProperties", "MongoDbCursorMethodsProperties", "MongoDbLinkedService", + "MongoDbLinkedServiceTypeProperties", "MongoDbSource", "MongoDbV2CollectionDataset", + "MongoDbV2CollectionDatasetTypeProperties", "MongoDbV2LinkedService", + "MongoDbV2LinkedServiceTypeProperties", "MongoDbV2Sink", "MongoDbV2Source", "MultiplePipelineTrigger", "MySqlLinkedService", + "MySqlLinkedServiceTypeProperties", "MySqlSource", "MySqlTableDataset", + "MySqlTableDatasetTypeProperties", "NetezzaLinkedService", + "NetezzaLinkedServiceTypeProperties", "NetezzaPartitionSettings", "NetezzaSource", "NetezzaTableDataset", + "NetezzaTableDatasetTypeProperties", "NotebookParameter", "ODataLinkedService", + "ODataLinkedServiceTypeProperties", "ODataResourceDataset", + "ODataResourceDatasetTypeProperties", "ODataSource", "OdbcLinkedService", + "OdbcLinkedServiceTypeProperties", "OdbcSink", "OdbcSource", "OdbcTableDataset", + "OdbcTableDatasetTypeProperties", "Office365Dataset", + "Office365DatasetTypeProperties", "Office365LinkedService", + "Office365LinkedServiceTypeProperties", "Office365Source", "Operation", "OperationDisplay", - "OperationListResponse", "OperationLogSpecification", "OperationMetricAvailability", "OperationMetricDimension", "OperationMetricSpecification", + "OperationProperties", "OperationServiceSpecification", "OracleCloudStorageLinkedService", + "OracleCloudStorageLinkedServiceTypeProperties", "OracleCloudStorageLocation", "OracleCloudStorageReadSettings", "OracleLinkedService", + "OracleLinkedServiceTypeProperties", "OraclePartitionSettings", "OracleServiceCloudLinkedService", + "OracleServiceCloudLinkedServiceTypeProperties", "OracleServiceCloudObjectDataset", "OracleServiceCloudSource", "OracleSink", "OracleSource", "OracleTableDataset", + "OracleTableDatasetTypeProperties", "OrcDataset", + "OrcDatasetTypeProperties", "OrcFormat", "OrcSink", "OrcSource", "OrcWriteSettings", - "OutputColumn", "PackageStore", "ParameterSpecification", "ParquetDataset", + "ParquetDatasetTypeProperties", "ParquetFormat", "ParquetReadSettings", "ParquetSink", "ParquetSource", "ParquetWriteSettings", "PaypalLinkedService", + "PaypalLinkedServiceTypeProperties", "PaypalObjectDataset", "PaypalSource", + "PhoenixDatasetTypeProperties", "PhoenixLinkedService", + "PhoenixLinkedServiceTypeProperties", "PhoenixObjectDataset", "PhoenixSource", + "Pipeline", "PipelineElapsedTimeMetricPolicy", "PipelineExternalComputeScaleProperties", "PipelineFolder", - "PipelineListResponse", "PipelinePolicy", "PipelineReference", "PipelineResource", @@ -1505,19 +1879,25 @@ "PipelineRunsQueryResponse", "PolybaseSettings", "PostgreSqlLinkedService", + "PostgreSqlLinkedServiceTypeProperties", "PostgreSqlSource", "PostgreSqlTableDataset", + "PostgreSqlTableDatasetTypeProperties", "PostgreSqlV2LinkedService", + "PostgreSqlV2LinkedServiceTypeProperties", "PostgreSqlV2Source", "PostgreSqlV2TableDataset", + "PostgreSqlV2TableDatasetTypeProperties", "PowerQuerySink", "PowerQuerySinkMapping", "PowerQuerySource", + "PowerQueryTypeProperties", + "PrestoDatasetTypeProperties", "PrestoLinkedService", + "PrestoLinkedServiceTypeProperties", "PrestoObjectDataset", "PrestoSource", "PrivateEndpoint", - "PrivateEndpointConnectionListResponse", "PrivateEndpointConnectionResource", "PrivateLinkConnectionApprovalRequest", "PrivateLinkConnectionApprovalRequestResource", @@ -1525,26 +1905,33 @@ "PrivateLinkResource", "PrivateLinkResourceProperties", "PrivateLinkResourcesWrapper", + "ProxyResource", "PurviewConfiguration", - "QueryDataFlowDebugSessionsResponse", "QuickBooksLinkedService", + "QuickBooksLinkedServiceTypeProperties", "QuickBooksObjectDataset", "QuickBooksSource", "QuickbaseLinkedService", + "QuickbaseLinkedServiceTypeProperties", "RecurrenceSchedule", "RecurrenceScheduleOccurrence", "RedirectIncompatibleRowSettings", "RedshiftUnloadSettings", "RelationalSource", "RelationalTableDataset", + "RelationalTableDatasetTypeProperties", "RemotePrivateEndpointConnection", "RerunTumblingWindowTrigger", + "RerunTumblingWindowTriggerTypeProperties", "Resource", "ResponsysLinkedService", + "ResponsysLinkedServiceTypeProperties", "ResponsysObjectDataset", "ResponsysSource", "RestResourceDataset", + "RestResourceDatasetTypeProperties", "RestServiceLinkedService", + "RestServiceLinkedServiceTypeProperties", "RestSink", "RestSource", "RetryPolicy", @@ -1556,57 +1943,83 @@ "SSISExecutionCredential", "SSISExecutionParameter", "SSISLogLocation", + "SSISLogLocationTypeProperties", "SSISPackageLocation", + "SSISPackageLocationTypeProperties", "SSISPropertyOverride", "SalesforceLinkedService", + "SalesforceLinkedServiceTypeProperties", "SalesforceMarketingCloudLinkedService", + "SalesforceMarketingCloudLinkedServiceTypeProperties", "SalesforceMarketingCloudObjectDataset", "SalesforceMarketingCloudSource", "SalesforceObjectDataset", + "SalesforceObjectDatasetTypeProperties", "SalesforceServiceCloudLinkedService", + "SalesforceServiceCloudLinkedServiceTypeProperties", "SalesforceServiceCloudObjectDataset", + "SalesforceServiceCloudObjectDatasetTypeProperties", "SalesforceServiceCloudSink", "SalesforceServiceCloudSource", "SalesforceServiceCloudV2LinkedService", + "SalesforceServiceCloudV2LinkedServiceTypeProperties", "SalesforceServiceCloudV2ObjectDataset", + "SalesforceServiceCloudV2ObjectDatasetTypeProperties", "SalesforceServiceCloudV2Sink", "SalesforceServiceCloudV2Source", "SalesforceSink", "SalesforceSource", "SalesforceV2LinkedService", + "SalesforceV2LinkedServiceTypeProperties", "SalesforceV2ObjectDataset", + "SalesforceV2ObjectDatasetTypeProperties", "SalesforceV2Sink", "SalesforceV2Source", "SapBWLinkedService", + "SapBWLinkedServiceTypeProperties", "SapBwCubeDataset", "SapBwSource", "SapCloudForCustomerLinkedService", + "SapCloudForCustomerLinkedServiceTypeProperties", "SapCloudForCustomerResourceDataset", + "SapCloudForCustomerResourceDatasetTypeProperties", "SapCloudForCustomerSink", "SapCloudForCustomerSource", "SapEccLinkedService", + "SapEccLinkedServiceTypeProperties", "SapEccResourceDataset", + "SapEccResourceDatasetTypeProperties", "SapEccSource", "SapHanaLinkedService", + "SapHanaLinkedServiceProperties", "SapHanaPartitionSettings", "SapHanaSource", "SapHanaTableDataset", + "SapHanaTableDatasetTypeProperties", "SapOdpLinkedService", + "SapOdpLinkedServiceTypeProperties", "SapOdpResourceDataset", + "SapOdpResourceDatasetTypeProperties", "SapOdpSource", "SapOpenHubLinkedService", + "SapOpenHubLinkedServiceTypeProperties", "SapOpenHubSource", "SapOpenHubTableDataset", + "SapOpenHubTableDatasetTypeProperties", "SapTableLinkedService", + "SapTableLinkedServiceTypeProperties", "SapTablePartitionSettings", "SapTableResourceDataset", + "SapTableResourceDatasetTypeProperties", "SapTableSource", "ScheduleTrigger", "ScheduleTriggerRecurrence", + "ScheduleTriggerTypeProperties", "ScriptAction", "ScriptActivity", "ScriptActivityParameter", "ScriptActivityScriptBlock", + "ScriptActivityTypeProperties", "ScriptActivityTypePropertiesLogSettings", "SecretBase", "SecureInputOutputPolicy", @@ -1615,30 +2028,45 @@ "SelfHostedIntegrationRuntime", "SelfHostedIntegrationRuntimeNode", "SelfHostedIntegrationRuntimeStatus", + "SelfHostedIntegrationRuntimeStatusTypeProperties", + "SelfHostedIntegrationRuntimeTypeProperties", "ServiceNowLinkedService", + "ServiceNowLinkedServiceTypeProperties", "ServiceNowObjectDataset", "ServiceNowSource", + "ServiceNowV2DatasetTypeProperties", "ServiceNowV2LinkedService", + "ServiceNowV2LinkedServiceTypeProperties", "ServiceNowV2ObjectDataset", "ServiceNowV2Source", "ServicePrincipalCredential", + "ServicePrincipalCredentialTypeProperties", "SetVariableActivity", + "SetVariableActivityTypeProperties", "SftpLocation", "SftpReadSettings", "SftpServerLinkedService", + "SftpServerLinkedServiceTypeProperties", "SftpWriteSettings", + "SharePointOnlineListDatasetTypeProperties", "SharePointOnlineListLinkedService", + "SharePointOnlineListLinkedServiceTypeProperties", "SharePointOnlineListResourceDataset", "SharePointOnlineListSource", "ShopifyLinkedService", + "ShopifyLinkedServiceTypeProperties", "ShopifyObjectDataset", "ShopifySource", "SkipErrorFile", "SmartsheetLinkedService", + "SmartsheetLinkedServiceTypeProperties", "SnowflakeDataset", + "SnowflakeDatasetTypeProperties", "SnowflakeExportCopyCommand", "SnowflakeImportCopyCommand", "SnowflakeLinkedService", + "SnowflakeLinkedServiceTypeProperties", + "SnowflakeLinkedV2ServiceTypeProperties", "SnowflakeSink", "SnowflakeSource", "SnowflakeV2Dataset", @@ -1646,7 +2074,9 @@ "SnowflakeV2Sink", "SnowflakeV2Source", "SparkConfigurationParametrizationReference", + "SparkDatasetTypeProperties", "SparkLinkedService", + "SparkLinkedServiceTypeProperties", "SparkObjectDataset", "SparkSource", "SqlAlwaysEncryptedProperties", @@ -1662,11 +2092,14 @@ "SqlServerSink", "SqlServerSource", "SqlServerStoredProcedureActivity", + "SqlServerStoredProcedureActivityTypeProperties", "SqlServerTableDataset", + "SqlServerTableDatasetTypeProperties", "SqlSink", "SqlSource", "SqlUpsertSettings", "SquareLinkedService", + "SquareLinkedServiceTypeProperties", "SquareObjectDataset", "SquareSource", "SsisEnvironment", @@ -1682,35 +2115,41 @@ "StagingSettings", "StoreReadSettings", "StoreWriteSettings", - "StoredProcedureParameter", "SubResource", "SubResourceDebugResource", "SwitchActivity", + "SwitchActivityTypeProperties", "SwitchCase", "SybaseLinkedService", + "SybaseLinkedServiceTypeProperties", "SybaseSource", "SybaseTableDataset", + "SybaseTableDatasetTypeProperties", "SynapseNotebookActivity", + "SynapseNotebookActivityTypeProperties", "SynapseNotebookReference", + "SynapseSparkJobActivityTypeProperties", "SynapseSparkJobDefinitionActivity", "SynapseSparkJobReference", + "SystemData", "TabularSource", - "TabularTranslator", "TarGZipReadSettings", "TarReadSettings", "TeamDeskLinkedService", + "TeamDeskLinkedServiceTypeProperties", "TeradataImportCommand", "TeradataLinkedService", + "TeradataLinkedServiceTypeProperties", "TeradataPartitionSettings", "TeradataSink", "TeradataSource", "TeradataTableDataset", + "TeradataTableDatasetTypeProperties", "TextFormat", "Transformation", "Trigger", "TriggerDependencyReference", "TriggerFilterParameters", - "TriggerListResponse", "TriggerPipelineReference", "TriggerQueryResponse", "TriggerReference", @@ -1720,51 +2159,64 @@ "TriggerSubscriptionOperationStatus", "TumblingWindowTrigger", "TumblingWindowTriggerDependencyReference", + "TumblingWindowTriggerTypeProperties", "TwilioLinkedService", - "TypeConversionSettings", + "TwilioLinkedServiceTypeProperties", "UntilActivity", + "UntilActivityTypeProperties", "UpdateIntegrationRuntimeNodeRequest", "UpdateIntegrationRuntimeRequest", "UserAccessPolicy", "UserProperty", "ValidationActivity", + "ValidationActivityTypeProperties", "VariableSpecification", + "VerticaDatasetTypeProperties", "VerticaLinkedService", + "VerticaLinkedServiceTypeProperties", "VerticaSource", "VerticaTableDataset", "WaitActivity", + "WaitActivityTypeProperties", "WarehouseLinkedService", + "WarehouseLinkedServiceTypeProperties", "WarehouseSink", "WarehouseSource", "WarehouseTableDataset", + "WarehouseTableDatasetTypeProperties", "WebActivity", "WebActivityAuthentication", + "WebActivityTypeProperties", "WebAnonymousAuthentication", "WebBasicAuthentication", "WebClientCertificateAuthentication", "WebHookActivity", + "WebHookActivityTypeProperties", "WebLinkedService", "WebLinkedServiceTypeProperties", "WebSource", "WebTableDataset", + "WebTableDatasetTypeProperties", "WranglingDataFlow", "XeroLinkedService", + "XeroLinkedServiceTypeProperties", "XeroObjectDataset", "XeroSource", "XmlDataset", + "XmlDatasetTypeProperties", "XmlReadSettings", "XmlSource", "ZendeskLinkedService", + "ZendeskLinkedServiceTypeProperties", "ZipDeflateReadSettings", "ZohoLinkedService", + "ZohoLinkedServiceTypeProperties", "ZohoObjectDataset", "ZohoSource", "ActivityOnInactiveMarkAs", "ActivityState", "AmazonRdsForOracleAuthenticationType", - "AmazonRdsForOraclePartitionOption", "AmazonRdsForSqlAuthenticationType", - "AvroCompressionCodec", "AzureFunctionActivityMethod", "AzurePostgreSqlWriteMethodEnum", "AzureSearchIndexWriteBehaviorType", @@ -1775,23 +2227,19 @@ "BigDataPoolReferenceType", "BlobEventTypes", "CassandraSourceReadConsistencyLevels", - "CompressionCodec", "ConfigurationType", "ConnectionType", - "CopyBehaviorType", "CosmosDbConnectionMode", + "CreatedByType", "CredentialReferenceType", "DataFlowComputeType", "DataFlowDebugCommandType", "DataFlowReferenceType", - "DatasetCompressionLevel", "DatasetReferenceType", "DayOfWeek", "DaysOfWeek", "Db2AuthenticationType", "DependencyCondition", - "DynamicsAuthenticationType", - "DynamicsDeploymentType", "DynamicsSinkWriteBehavior", "EventSubscriptionStatus", "ExpressionType", @@ -1808,7 +2256,6 @@ "HDInsightActivityDebugInfoOption", "HDInsightClusterAuthenticationType", "HDInsightOndemandClusterResourceGroupAuthenticationType", - "HdiNodeTypes", "HiveAuthenticationType", "HiveServerType", "HiveThriftTransportProtocol", @@ -1827,22 +2274,17 @@ "IntegrationRuntimeType", "IntegrationRuntimeUpdateResult", "InteractiveCapabilityStatus", - "JsonFormatFilePattern", - "JsonWriteFilePattern", "LakehouseAuthenticationType", "ManagedIntegrationRuntimeNodeStatus", "ManagedVirtualNetworkReferenceType", "MappingType", "MongoDbAuthenticationType", - "NetezzaPartitionOption", "NetezzaSecurityLevelType", "NotebookParameterType", "NotebookReferenceType", "ODataAadServicePrincipalCredentialType", "ODataAuthenticationType", "OracleAuthenticationType", - "OraclePartitionOption", - "OrcCompressionCodec", "ParameterType", "PhoenixAuthenticationType", "PipelineReferenceType", @@ -1856,20 +2298,15 @@ "RunQueryOrder", "RunQueryOrderByField", "SalesforceSinkWriteBehavior", - "SalesforceSourceReadBehavior", "SalesforceV2SinkWriteBehavior", "SapCloudForCustomerSinkWriteBehavior", "SapHanaAuthenticationType", - "SapHanaPartitionOption", - "SapTablePartitionOption", "ScriptActivityLogDestination", "ScriptActivityParameterDirection", "ScriptActivityParameterType", - "ScriptType", "SelfHostedIntegrationRuntimeNodeStatus", "ServiceNowAuthenticationType", "ServiceNowV2AuthenticationType", - "ServicePrincipalCredentialType", "SftpAuthenticationType", "SnowflakeAuthenticationType", "SparkAuthenticationType", @@ -1878,18 +2315,13 @@ "SparkServerType", "SparkThriftTransportProtocol", "SqlAlwaysEncryptedAkvAuthType", - "SqlDWWriteBehaviorEnum", - "SqlPartitionOption", "SqlServerAuthenticationType", - "SqlWriteBehaviorEnum", "SsisLogLocationType", "SsisObjectMetadataType", "SsisPackageLocationType", - "StoredProcedureParameterType", "SybaseAuthenticationType", "TeamDeskAuthenticationType", "TeradataAuthenticationType", - "TeradataPartitionOption", "TriggerReferenceType", "TriggerRunStatus", "TriggerRuntimeState", diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_data_factory_management_client_enums.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_enums.py similarity index 77% rename from sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_data_factory_management_client_enums.py rename to sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_enums.py index ffd37247f03d..a30342376c5b 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_data_factory_management_client_enums.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_enums.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -17,8 +17,11 @@ class ActivityOnInactiveMarkAs(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" SKIPPED = "Skipped" + """Skipped.""" class ActivityState(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -27,7 +30,9 @@ class ActivityState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ ACTIVE = "Active" + """Active.""" INACTIVE = "Inactive" + """Inactive.""" class AmazonRdsForOracleAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -36,108 +41,125 @@ class AmazonRdsForOracleAuthenticationType(str, Enum, metaclass=CaseInsensitiveE """ BASIC = "Basic" - - -class AmazonRdsForOraclePartitionOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """AmazonRdsForOraclePartitionOption.""" - - NONE = "None" - PHYSICAL_PARTITIONS_OF_TABLE = "PhysicalPartitionsOfTable" - DYNAMIC_RANGE = "DynamicRange" + """Basic.""" class AmazonRdsForSqlAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type used for authentication. Type: string.""" SQL = "SQL" + """SQL.""" WINDOWS = "Windows" - - -class AvroCompressionCodec(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """AvroCompressionCodec.""" - - NONE = "none" - DEFLATE = "deflate" - SNAPPY = "snappy" - XZ = "xz" - BZIP2 = "bzip2" + """Windows.""" class AzureFunctionActivityMethod(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The list of HTTP methods supported by a AzureFunctionActivity.""" GET = "GET" + """GET.""" POST = "POST" + """POST.""" PUT = "PUT" + """PUT.""" DELETE = "DELETE" + """DELETE.""" OPTIONS = "OPTIONS" + """OPTIONS.""" HEAD = "HEAD" + """HEAD.""" TRACE = "TRACE" + """TRACE.""" class AzurePostgreSqlWriteMethodEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The write behavior for the operation. Default is Bulk Insert.""" BULK_INSERT = "BulkInsert" + """BulkInsert.""" COPY_COMMAND = "CopyCommand" + """CopyCommand.""" UPSERT = "Upsert" + """Upsert.""" class AzureSearchIndexWriteBehaviorType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Specify the write behavior when upserting documents into Azure Search Index.""" MERGE = "Merge" + """Merge.""" UPLOAD = "Upload" + """Upload.""" class AzureSqlDatabaseAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type used for authentication. Type: string.""" SQL = "SQL" + """SQL.""" SERVICE_PRINCIPAL = "ServicePrincipal" + """ServicePrincipal.""" SYSTEM_ASSIGNED_MANAGED_IDENTITY = "SystemAssignedManagedIdentity" + """SystemAssignedManagedIdentity.""" USER_ASSIGNED_MANAGED_IDENTITY = "UserAssignedManagedIdentity" + """UserAssignedManagedIdentity.""" class AzureSqlDWAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type used for authentication. Type: string.""" SQL = "SQL" + """SQL.""" SERVICE_PRINCIPAL = "ServicePrincipal" + """ServicePrincipal.""" SYSTEM_ASSIGNED_MANAGED_IDENTITY = "SystemAssignedManagedIdentity" + """SystemAssignedManagedIdentity.""" USER_ASSIGNED_MANAGED_IDENTITY = "UserAssignedManagedIdentity" + """UserAssignedManagedIdentity.""" class AzureSqlMIAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type used for authentication. Type: string.""" SQL = "SQL" + """SQL.""" SERVICE_PRINCIPAL = "ServicePrincipal" + """ServicePrincipal.""" SYSTEM_ASSIGNED_MANAGED_IDENTITY = "SystemAssignedManagedIdentity" + """SystemAssignedManagedIdentity.""" USER_ASSIGNED_MANAGED_IDENTITY = "UserAssignedManagedIdentity" + """UserAssignedManagedIdentity.""" class AzureStorageAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type used for authentication. Type: string.""" ANONYMOUS = "Anonymous" + """Anonymous.""" ACCOUNT_KEY = "AccountKey" + """AccountKey.""" SAS_URI = "SasUri" + """SasUri.""" SERVICE_PRINCIPAL = "ServicePrincipal" + """ServicePrincipal.""" MSI = "Msi" + """Msi.""" class BigDataPoolReferenceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Big data pool reference type.""" BIG_DATA_POOL_REFERENCE = "BigDataPoolReference" + """BigDataPoolReference.""" class BlobEventTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """BlobEventTypes.""" + """Type of BlobEventTypes.""" MICROSOFT_STORAGE_BLOB_CREATED = "Microsoft.Storage.BlobCreated" + """Microsoft.Storage.BlobCreated.""" MICROSOFT_STORAGE_BLOB_DELETED = "Microsoft.Storage.BlobDeleted" + """Microsoft.Storage.BlobDeleted.""" class CassandraSourceReadConsistencyLevels(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -148,124 +170,146 @@ class CassandraSourceReadConsistencyLevels(str, Enum, metaclass=CaseInsensitiveE """ ALL = "ALL" + """ALL.""" EACH_QUORUM = "EACH_QUORUM" + """EACH_QUORUM.""" QUORUM = "QUORUM" + """QUORUM.""" LOCAL_QUORUM = "LOCAL_QUORUM" + """LOCAL_QUORUM.""" ONE = "ONE" + """ONE.""" TWO = "TWO" + """TWO.""" THREE = "THREE" + """THREE.""" LOCAL_ONE = "LOCAL_ONE" + """LOCAL_ONE.""" SERIAL = "SERIAL" + """SERIAL.""" LOCAL_SERIAL = "LOCAL_SERIAL" - - -class CompressionCodec(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """All available compressionCodec values.""" - - NONE = "none" - LZO = "lzo" - BZIP2 = "bzip2" - GZIP = "gzip" - DEFLATE = "deflate" - ZIP_DEFLATE = "zipDeflate" - SNAPPY = "snappy" - LZ4 = "lz4" - TAR = "tar" - TAR_G_ZIP = "tarGZip" + """LOCAL_SERIAL.""" class ConfigurationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of the spark config.""" DEFAULT = "Default" + """Default.""" CUSTOMIZED = "Customized" + """Customized.""" ARTIFACT = "Artifact" + """Artifact.""" class ConnectionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Type of connection via linked service or dataset.""" LINKEDSERVICETYPE = "linkedservicetype" - - -class CopyBehaviorType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """All available types of copy behavior.""" - - PRESERVE_HIERARCHY = "PreserveHierarchy" - FLATTEN_HIERARCHY = "FlattenHierarchy" - MERGE_FILES = "MergeFiles" + """linkedservicetype.""" class CosmosDbConnectionMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The connection mode used to access CosmosDB account. Type: string.""" GATEWAY = "Gateway" + """Gateway.""" DIRECT = "Direct" + """Direct.""" + + +class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The kind of entity that created the resource.""" + + USER = "User" + """The entity was created by a user.""" + APPLICATION = "Application" + """The entity was created by an application.""" + MANAGED_IDENTITY = "ManagedIdentity" + """The entity was created by a managed identity.""" + KEY = "Key" + """The entity was created by a key.""" class CredentialReferenceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Credential reference type.""" CREDENTIAL_REFERENCE = "CredentialReference" + """CredentialReference.""" class DataFlowComputeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Compute type of the cluster which will execute data flow job.""" GENERAL = "General" + """General.""" MEMORY_OPTIMIZED = "MemoryOptimized" + """MemoryOptimized.""" COMPUTE_OPTIMIZED = "ComputeOptimized" + """ComputeOptimized.""" class DataFlowDebugCommandType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The command type.""" EXECUTE_PREVIEW_QUERY = "executePreviewQuery" + """executePreviewQuery.""" EXECUTE_STATISTICS_QUERY = "executeStatisticsQuery" + """executeStatisticsQuery.""" EXECUTE_EXPRESSION_QUERY = "executeExpressionQuery" + """executeExpressionQuery.""" class DataFlowReferenceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Data flow reference type.""" DATA_FLOW_REFERENCE = "DataFlowReference" - - -class DatasetCompressionLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """All available compression levels.""" - - OPTIMAL = "Optimal" - FASTEST = "Fastest" + """DataFlowReference.""" class DatasetReferenceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Dataset reference type.""" DATASET_REFERENCE = "DatasetReference" + """DatasetReference.""" class DayOfWeek(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The days of the week.""" SUNDAY = "Sunday" + """Sunday.""" MONDAY = "Monday" + """Monday.""" TUESDAY = "Tuesday" + """Tuesday.""" WEDNESDAY = "Wednesday" + """Wednesday.""" THURSDAY = "Thursday" + """Thursday.""" FRIDAY = "Friday" + """Friday.""" SATURDAY = "Saturday" + """Saturday.""" class DaysOfWeek(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """DaysOfWeek.""" + """Type of DaysOfWeek.""" SUNDAY = "Sunday" + """Sunday.""" MONDAY = "Monday" + """Monday.""" TUESDAY = "Tuesday" + """Tuesday.""" WEDNESDAY = "Wednesday" + """Wednesday.""" THURSDAY = "Thursday" + """Thursday.""" FRIDAY = "Friday" + """Friday.""" SATURDAY = "Saturday" + """Saturday.""" class Db2AuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -274,98 +318,112 @@ class Db2AuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ BASIC = "Basic" + """Basic.""" class DependencyCondition(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """DependencyCondition.""" + """Type of DependencyCondition.""" SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" SKIPPED = "Skipped" + """Skipped.""" COMPLETED = "Completed" - - -class DynamicsAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """All available dynamicsAuthenticationType values.""" - - OFFICE365 = "Office365" - IFD = "Ifd" - AAD_SERVICE_PRINCIPAL = "AADServicePrincipal" - ACTIVE_DIRECTORY = "Active Directory" - - -class DynamicsDeploymentType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """All available dynamicsDeploymentType values.""" - - ONLINE = "Online" - ON_PREMISES_WITH_IFD = "OnPremisesWithIfd" + """Completed.""" class DynamicsSinkWriteBehavior(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Defines values for DynamicsSinkWriteBehavior.""" UPSERT = "Upsert" + """Upsert.""" class EventSubscriptionStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Event Subscription Status.""" ENABLED = "Enabled" + """Enabled.""" PROVISIONING = "Provisioning" + """Provisioning.""" DEPROVISIONING = "Deprovisioning" + """Deprovisioning.""" DISABLED = "Disabled" + """Disabled.""" UNKNOWN = "Unknown" + """Unknown.""" class ExpressionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Expression type.""" EXPRESSION = "Expression" + """Expression.""" class ExpressionV2Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Type of expressions supported by the system. Type: string.""" CONSTANT = "Constant" + """Constant.""" FIELD = "Field" + """Field.""" UNARY = "Unary" + """Unary.""" BINARY = "Binary" + """Binary.""" N_ARY = "NAry" + """NAry.""" class FactoryIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The identity type.""" SYSTEM_ASSIGNED = "SystemAssigned" + """SystemAssigned.""" USER_ASSIGNED = "UserAssigned" + """UserAssigned.""" SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" + """SystemAssigned,UserAssigned.""" class FrequencyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Frequency of period in terms of 'Hour', 'Minute' or 'Second'.""" HOUR = "Hour" + """Hour.""" MINUTE = "Minute" + """Minute.""" SECOND = "Second" + """Second.""" class FtpAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The authentication type to be used to connect to the FTP server.""" BASIC = "Basic" + """Basic.""" ANONYMOUS = "Anonymous" + """Anonymous.""" class GlobalParameterType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Global Parameter type.""" OBJECT = "Object" + """Object.""" STRING = "String" + """String.""" INT = "Int" + """Int.""" FLOAT = "Float" + """Float.""" BOOL = "Bool" + """Bool.""" ARRAY = "Array" - INT_ENUM = "Int" + """Array.""" class GoogleAdWordsAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -374,7 +432,9 @@ class GoogleAdWordsAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMe """ SERVICE_AUTHENTICATION = "ServiceAuthentication" + """ServiceAuthentication.""" USER_AUTHENTICATION = "UserAuthentication" + """UserAuthentication.""" class GoogleBigQueryAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -383,51 +443,56 @@ class GoogleBigQueryAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumM """ SERVICE_AUTHENTICATION = "ServiceAuthentication" + """ServiceAuthentication.""" USER_AUTHENTICATION = "UserAuthentication" + """UserAuthentication.""" class GoogleBigQueryV2AuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The OAuth 2.0 authentication mechanism used for authentication.""" SERVICE_AUTHENTICATION = "ServiceAuthentication" + """ServiceAuthentication.""" USER_AUTHENTICATION = "UserAuthentication" + """UserAuthentication.""" class GreenplumAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The authentication type to use. Type: string. Only used for V2.""" BASIC = "Basic" + """Basic.""" class HBaseAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The authentication mechanism to use to connect to the HBase server.""" ANONYMOUS = "Anonymous" + """Anonymous.""" BASIC = "Basic" - - -class HdiNodeTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """All available HdiNodeTypes values.""" - - HEADNODE = "Headnode" - WORKERNODE = "Workernode" - ZOOKEEPER = "Zookeeper" + """Basic.""" class HDInsightActivityDebugInfoOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The HDInsightActivityDebugInfoOption settings to use.""" NONE = "None" + """None.""" ALWAYS = "Always" + """Always.""" FAILURE = "Failure" + """Failure.""" class HDInsightClusterAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """HDInsight cluster authentication type.""" BASIC_AUTH = "BasicAuth" + """BasicAuth.""" SYSTEM_ASSIGNED_MANAGED_IDENTITY = "SystemAssignedManagedIdentity" + """SystemAssignedManagedIdentity.""" USER_ASSIGNED_MANAGED_IDENTITY = "UserAssignedManagedIdentity" + """UserAssignedManagedIdentity.""" class HDInsightOndemandClusterResourceGroupAuthenticationType( # pylint: disable=name-too-long @@ -436,86 +501,117 @@ class HDInsightOndemandClusterResourceGroupAuthenticationType( # pylint: disabl """HDInsight On-demand cluster resource group authentication type.""" SERVICE_PRINCIPAL_KEY = "ServicePrincipalKey" + """ServicePrincipalKey.""" SYSTEM_ASSIGNED_MANAGED_IDENTITY = "SystemAssignedManagedIdentity" + """SystemAssignedManagedIdentity.""" USER_ASSIGNED_MANAGED_IDENTITY = "UserAssignedManagedIdentity" + """UserAssignedManagedIdentity.""" class HiveAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The authentication method used to access the Hive server.""" ANONYMOUS = "Anonymous" + """Anonymous.""" USERNAME = "Username" + """Username.""" USERNAME_AND_PASSWORD = "UsernameAndPassword" + """UsernameAndPassword.""" WINDOWS_AZURE_HD_INSIGHT_SERVICE = "WindowsAzureHDInsightService" + """WindowsAzureHDInsightService.""" class HiveServerType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of Hive server.""" HIVE_SERVER1 = "HiveServer1" + """HiveServer1.""" HIVE_SERVER2 = "HiveServer2" + """HiveServer2.""" HIVE_THRIFT_SERVER = "HiveThriftServer" + """HiveThriftServer.""" class HiveThriftTransportProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The transport protocol to use in the Thrift layer.""" BINARY = "Binary" + """Binary.""" SASL = "SASL" + """SASL.""" HTTP = "HTTP " + """HTTP.""" class HttpAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The authentication type to be used to connect to the HTTP server.""" BASIC = "Basic" + """Basic.""" ANONYMOUS = "Anonymous" + """Anonymous.""" DIGEST = "Digest" + """Digest.""" WINDOWS = "Windows" + """Windows.""" CLIENT_CERTIFICATE = "ClientCertificate" + """ClientCertificate.""" class ImpalaAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The authentication type to use.""" ANONYMOUS = "Anonymous" + """Anonymous.""" SASL_USERNAME = "SASLUsername" + """SASLUsername.""" USERNAME_AND_PASSWORD = "UsernameAndPassword" + """UsernameAndPassword.""" class ImpalaThriftTransportProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The transport protocol to use in the Thrift layer (for V2 only). Default value is Binary.""" BINARY = "Binary" + """Binary.""" HTTP = "HTTP" + """HTTP.""" class IntegrationRuntimeAuthKeyName(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The name of the authentication key to regenerate.""" AUTH_KEY1 = "authKey1" + """authKey1.""" AUTH_KEY2 = "authKey2" + """authKey2.""" class IntegrationRuntimeAutoUpdate(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The state of integration runtime auto update.""" ON = "On" + """On.""" OFF = "Off" + """Off.""" class IntegrationRuntimeEdition(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The edition for the SSIS Integration Runtime.""" STANDARD = "Standard" + """Standard.""" ENTERPRISE = "Enterprise" + """Enterprise.""" class IntegrationRuntimeEntityReferenceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of this referenced entity.""" INTEGRATION_RUNTIME_REFERENCE = "IntegrationRuntimeReference" + """IntegrationRuntimeReference.""" LINKED_SERVICE_REFERENCE = "LinkedServiceReference" + """LinkedServiceReference.""" class IntegrationRuntimeInternalChannelEncryptionMode( # pylint: disable=name-too-long @@ -526,62 +622,88 @@ class IntegrationRuntimeInternalChannelEncryptionMode( # pylint: disable=name-t """ NOT_SET = "NotSet" + """NotSet.""" SSL_ENCRYPTED = "SslEncrypted" + """SslEncrypted.""" NOT_ENCRYPTED = "NotEncrypted" + """NotEncrypted.""" class IntegrationRuntimeLicenseType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """License type for bringing your own license scenario.""" BASE_PRICE = "BasePrice" + """BasePrice.""" LICENSE_INCLUDED = "LicenseIncluded" + """LicenseIncluded.""" class IntegrationRuntimeReferenceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Type of integration runtime.""" INTEGRATION_RUNTIME_REFERENCE = "IntegrationRuntimeReference" + """IntegrationRuntimeReference.""" class IntegrationRuntimeSsisCatalogPricingTier(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The pricing tier for the catalog database. The valid values could be found in - https://azure.microsoft.com/en-us/pricing/details/sql-database/. + `https://azure.microsoft.com/en-us/pricing/details/sql-database/ + `_. """ BASIC = "Basic" + """Basic.""" STANDARD = "Standard" + """Standard.""" PREMIUM = "Premium" + """Premium.""" PREMIUM_RS = "PremiumRS" + """PremiumRS.""" class IntegrationRuntimeState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The state of integration runtime.""" INITIAL = "Initial" + """Initial.""" STOPPED = "Stopped" + """Stopped.""" STARTED = "Started" + """Started.""" STARTING = "Starting" + """Starting.""" STOPPING = "Stopping" + """Stopping.""" NEED_REGISTRATION = "NeedRegistration" + """NeedRegistration.""" ONLINE = "Online" + """Online.""" LIMITED = "Limited" + """Limited.""" OFFLINE = "Offline" + """Offline.""" ACCESS_DENIED = "AccessDenied" + """AccessDenied.""" class IntegrationRuntimeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of integration runtime.""" MANAGED = "Managed" + """Managed.""" SELF_HOSTED = "SelfHosted" + """SelfHosted.""" class IntegrationRuntimeUpdateResult(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The result of the last integration runtime node update.""" NONE = "None" + """None.""" SUCCEED = "Succeed" + """Succeed.""" FAIL = "Fail" + """Fail.""" class InteractiveCapabilityStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -590,69 +712,64 @@ class InteractiveCapabilityStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ ENABLING = "Enabling" + """Enabling.""" ENABLED = "Enabled" + """Enabled.""" DISABLING = "Disabling" + """Disabling.""" DISABLED = "Disabled" - - -class JsonFormatFilePattern(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """JSON format file pattern. A property of JsonFormat.""" - - SET_OF_OBJECTS = "setOfObjects" - ARRAY_OF_OBJECTS = "arrayOfObjects" - - -class JsonWriteFilePattern(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """All available filePatterns.""" - - SET_OF_OBJECTS = "setOfObjects" - ARRAY_OF_OBJECTS = "arrayOfObjects" + """Disabled.""" class LakehouseAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The authentication type to use.""" SERVICE_PRINCIPAL = "ServicePrincipal" + """ServicePrincipal.""" SYSTEM_ASSIGNED_MANAGED_IDENTITY = "SystemAssignedManagedIdentity" + """SystemAssignedManagedIdentity.""" USER_ASSIGNED_MANAGED_IDENTITY = "UserAssignedManagedIdentity" + """UserAssignedManagedIdentity.""" class ManagedIntegrationRuntimeNodeStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The managed integration runtime node status.""" STARTING = "Starting" + """Starting.""" AVAILABLE = "Available" + """Available.""" RECYCLING = "Recycling" + """Recycling.""" UNAVAILABLE = "Unavailable" + """Unavailable.""" class ManagedVirtualNetworkReferenceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Managed Virtual Network reference type.""" MANAGED_VIRTUAL_NETWORK_REFERENCE = "ManagedVirtualNetworkReference" + """ManagedVirtualNetworkReference.""" class MappingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as 'Derived'.""" DIRECT = "Direct" + """Direct.""" DERIVED = "Derived" + """Derived.""" AGGREGATE = "Aggregate" + """Aggregate.""" class MongoDbAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The authentication type to be used to connect to the MongoDB database.""" BASIC = "Basic" + """Basic.""" ANONYMOUS = "Anonymous" - - -class NetezzaPartitionOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The partition mechanism that will be used for Netezza read in parallel.""" - - NONE = "None" - DATA_SLICE = "DataSlice" - DYNAMIC_RANGE = "DynamicRange" + """Anonymous.""" class NetezzaSecurityLevelType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -662,133 +779,158 @@ class NetezzaSecurityLevelType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ PREFERRED_UN_SECURED = "PreferredUnSecured" + """PreferredUnSecured.""" ONLY_UN_SECURED = "OnlyUnSecured" + """OnlyUnSecured.""" class NotebookParameterType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Notebook parameter type.""" STRING = "string" + """string.""" INT = "int" + """int.""" FLOAT = "float" + """float.""" BOOL = "bool" - INT_ENUM = "int" + """bool.""" class NotebookReferenceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Synapse notebook reference type.""" NOTEBOOK_REFERENCE = "NotebookReference" + """NotebookReference.""" class ODataAadServicePrincipalCredentialType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Specify the credential type (key or cert) is used for service principal.""" SERVICE_PRINCIPAL_KEY = "ServicePrincipalKey" + """ServicePrincipalKey.""" SERVICE_PRINCIPAL_CERT = "ServicePrincipalCert" + """ServicePrincipalCert.""" class ODataAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Type of authentication used to connect to the OData service.""" BASIC = "Basic" + """Basic.""" ANONYMOUS = "Anonymous" + """Anonymous.""" WINDOWS = "Windows" + """Windows.""" AAD_SERVICE_PRINCIPAL = "AadServicePrincipal" + """AadServicePrincipal.""" MANAGED_SERVICE_IDENTITY = "ManagedServiceIdentity" + """ManagedServiceIdentity.""" class OracleAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Authentication type for connecting to the Oracle database. Only used for Version 2.0.""" BASIC = "Basic" - - -class OraclePartitionOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The partition mechanism that will be used for Oracle read in parallel.""" - - NONE = "None" - PHYSICAL_PARTITIONS_OF_TABLE = "PhysicalPartitionsOfTable" - DYNAMIC_RANGE = "DynamicRange" - - -class OrcCompressionCodec(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """OrcCompressionCodec.""" - - NONE = "none" - ZLIB = "zlib" - SNAPPY = "snappy" - LZO = "lzo" + """Basic.""" class ParameterType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Parameter type.""" OBJECT = "Object" + """Object.""" STRING = "String" + """String.""" INT = "Int" + """Int.""" FLOAT = "Float" + """Float.""" BOOL = "Bool" + """Bool.""" ARRAY = "Array" + """Array.""" SECURE_STRING = "SecureString" - INT_ENUM = "Int" + """SecureString.""" class PhoenixAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The authentication mechanism used to connect to the Phoenix server.""" ANONYMOUS = "Anonymous" + """Anonymous.""" USERNAME_AND_PASSWORD = "UsernameAndPassword" + """UsernameAndPassword.""" WINDOWS_AZURE_HD_INSIGHT_SERVICE = "WindowsAzureHDInsightService" + """WindowsAzureHDInsightService.""" class PipelineReferenceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Pipeline reference type.""" PIPELINE_REFERENCE = "PipelineReference" + """PipelineReference.""" class PolybaseSettingsRejectType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Indicates whether the RejectValue property is specified as a literal value or a percentage.""" VALUE = "value" + """value.""" PERCENTAGE = "percentage" + """percentage.""" class PrestoAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The authentication mechanism used to connect to the Presto server.""" ANONYMOUS = "Anonymous" + """Anonymous.""" LDAP = "LDAP" + """LDAP.""" class PublicNetworkAccess(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Whether or not public network access is allowed for the data factory.""" ENABLED = "Enabled" + """Enabled.""" DISABLED = "Disabled" + """Disabled.""" class RecurrenceFrequency(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Enumerates possible frequency option for the schedule trigger.""" NOT_SPECIFIED = "NotSpecified" + """NotSpecified.""" MINUTE = "Minute" + """Minute.""" HOUR = "Hour" + """Hour.""" DAY = "Day" + """Day.""" WEEK = "Week" + """Week.""" MONTH = "Month" + """Month.""" YEAR = "Year" + """Year.""" class RestServiceAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Type of authentication used to connect to the REST service.""" ANONYMOUS = "Anonymous" + """Anonymous.""" BASIC = "Basic" + """Basic.""" AAD_SERVICE_PRINCIPAL = "AadServicePrincipal" + """AadServicePrincipal.""" MANAGED_SERVICE_IDENTITY = "ManagedServiceIdentity" + """ManagedServiceIdentity.""" O_AUTH2_CLIENT_CREDENTIAL = "OAuth2ClientCredential" + """OAuth2ClientCredential.""" class RunQueryFilterOperand(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -799,34 +941,51 @@ class RunQueryFilterOperand(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ PIPELINE_NAME = "PipelineName" + """PipelineName.""" STATUS = "Status" + """Status.""" RUN_START = "RunStart" + """RunStart.""" RUN_END = "RunEnd" + """RunEnd.""" ACTIVITY_NAME = "ActivityName" + """ActivityName.""" ACTIVITY_RUN_START = "ActivityRunStart" + """ActivityRunStart.""" ACTIVITY_RUN_END = "ActivityRunEnd" + """ActivityRunEnd.""" ACTIVITY_TYPE = "ActivityType" + """ActivityType.""" TRIGGER_NAME = "TriggerName" + """TriggerName.""" TRIGGER_RUN_TIMESTAMP = "TriggerRunTimestamp" + """TriggerRunTimestamp.""" RUN_GROUP_ID = "RunGroupId" + """RunGroupId.""" LATEST_ONLY = "LatestOnly" + """LatestOnly.""" class RunQueryFilterOperator(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Operator to be used for filter.""" EQUALS = "Equals" + """Equals.""" NOT_EQUALS = "NotEquals" + """NotEquals.""" IN = "In" + """In.""" NOT_IN = "NotIn" - IN_ENUM = "In" + """NotIn.""" class RunQueryOrder(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Sorting order of the parameter.""" ASC = "ASC" + """ASC.""" DESC = "DESC" + """DESC.""" class RunQueryOrderByField(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -837,384 +996,413 @@ class RunQueryOrderByField(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ RUN_START = "RunStart" + """RunStart.""" RUN_END = "RunEnd" + """RunEnd.""" PIPELINE_NAME = "PipelineName" + """PipelineName.""" STATUS = "Status" + """Status.""" ACTIVITY_NAME = "ActivityName" + """ActivityName.""" ACTIVITY_RUN_START = "ActivityRunStart" + """ActivityRunStart.""" ACTIVITY_RUN_END = "ActivityRunEnd" + """ActivityRunEnd.""" TRIGGER_NAME = "TriggerName" + """TriggerName.""" TRIGGER_RUN_TIMESTAMP = "TriggerRunTimestamp" + """TriggerRunTimestamp.""" class SalesforceSinkWriteBehavior(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The write behavior for the operation. Default is Insert.""" INSERT = "Insert" + """Insert.""" UPSERT = "Upsert" - - -class SalesforceSourceReadBehavior(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The Salesforce read behavior for the operation.""" - - QUERY = "Query" - QUERY_ALL = "QueryAll" + """Upsert.""" class SalesforceV2SinkWriteBehavior(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The write behavior for the operation. Default is Insert.""" INSERT = "Insert" + """Insert.""" UPSERT = "Upsert" + """Upsert.""" class SapCloudForCustomerSinkWriteBehavior(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The write behavior for the operation. Default is 'Insert'.""" INSERT = "Insert" + """Insert.""" UPDATE = "Update" + """Update.""" class SapHanaAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The authentication type to be used to connect to the SAP HANA server.""" BASIC = "Basic" + """Basic.""" WINDOWS = "Windows" - - -class SapHanaPartitionOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The partition mechanism that will be used for SAP HANA read in parallel.""" - - NONE = "None" - PHYSICAL_PARTITIONS_OF_TABLE = "PhysicalPartitionsOfTable" - SAP_HANA_DYNAMIC_RANGE = "SapHanaDynamicRange" - - -class SapTablePartitionOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The partition mechanism that will be used for SAP table read in parallel.""" - - NONE = "None" - PARTITION_ON_INT = "PartitionOnInt" - PARTITION_ON_CALENDAR_YEAR = "PartitionOnCalendarYear" - PARTITION_ON_CALENDAR_MONTH = "PartitionOnCalendarMonth" - PARTITION_ON_CALENDAR_DATE = "PartitionOnCalendarDate" - PARTITION_ON_TIME = "PartitionOnTime" + """Windows.""" class ScriptActivityLogDestination(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The destination of logs. Type: string.""" ACTIVITY_OUTPUT = "ActivityOutput" + """ActivityOutput.""" EXTERNAL_STORE = "ExternalStore" + """ExternalStore.""" class ScriptActivityParameterDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The direction of the parameter.""" INPUT = "Input" + """Input.""" OUTPUT = "Output" + """Output.""" INPUT_OUTPUT = "InputOutput" + """InputOutput.""" class ScriptActivityParameterType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of the parameter.""" BOOLEAN = "Boolean" + """Boolean.""" DATE_TIME = "DateTime" + """DateTime.""" DATE_TIME_OFFSET = "DateTimeOffset" + """DateTimeOffset.""" DECIMAL = "Decimal" + """Decimal.""" DOUBLE = "Double" + """Double.""" GUID = "Guid" + """Guid.""" INT16 = "Int16" + """Int16.""" INT32 = "Int32" + """Int32.""" INT64 = "Int64" + """Int64.""" SINGLE = "Single" + """Single.""" STRING = "String" + """String.""" TIMESPAN = "Timespan" - - -class ScriptType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the ScriptActivityScriptBlock.""" - - QUERY = "Query" - NON_QUERY = "NonQuery" + """Timespan.""" class SelfHostedIntegrationRuntimeNodeStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Status of the integration runtime node.""" NEED_REGISTRATION = "NeedRegistration" + """NeedRegistration.""" ONLINE = "Online" + """Online.""" LIMITED = "Limited" + """Limited.""" OFFLINE = "Offline" + """Offline.""" UPGRADING = "Upgrading" + """Upgrading.""" INITIALIZING = "Initializing" + """Initializing.""" INITIALIZE_FAILED = "InitializeFailed" + """InitializeFailed.""" class ServiceNowAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The authentication type to use.""" BASIC = "Basic" + """Basic.""" O_AUTH2 = "OAuth2" + """OAuth2.""" class ServiceNowV2AuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The authentication type to use.""" BASIC = "Basic" + """Basic.""" O_AUTH2 = "OAuth2" - - -class ServicePrincipalCredentialType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """All available servicePrincipalCredentialType values.""" - - SERVICE_PRINCIPAL_KEY = "ServicePrincipalKey" - SERVICE_PRINCIPAL_CERT = "ServicePrincipalCert" + """OAuth2.""" class SftpAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The authentication type to be used to connect to the FTP server.""" BASIC = "Basic" + """Basic.""" SSH_PUBLIC_KEY = "SshPublicKey" + """SshPublicKey.""" MULTI_FACTOR = "MultiFactor" + """MultiFactor.""" class SnowflakeAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type used for authentication. Type: string.""" BASIC = "Basic" + """Basic.""" KEY_PAIR = "KeyPair" + """KeyPair.""" AAD_SERVICE_PRINCIPAL = "AADServicePrincipal" + """AADServicePrincipal.""" class SparkAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The authentication method used to access the Spark server.""" ANONYMOUS = "Anonymous" + """Anonymous.""" USERNAME = "Username" + """Username.""" USERNAME_AND_PASSWORD = "UsernameAndPassword" + """UsernameAndPassword.""" WINDOWS_AZURE_HD_INSIGHT_SERVICE = "WindowsAzureHDInsightService" + """WindowsAzureHDInsightService.""" class SparkConfigurationReferenceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Spark configuration reference type.""" SPARK_CONFIGURATION_REFERENCE = "SparkConfigurationReference" + """SparkConfigurationReference.""" class SparkJobReferenceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Synapse spark job reference type.""" SPARK_JOB_DEFINITION_REFERENCE = "SparkJobDefinitionReference" + """SparkJobDefinitionReference.""" class SparkServerType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of Spark server.""" SHARK_SERVER = "SharkServer" + """SharkServer.""" SHARK_SERVER2 = "SharkServer2" + """SharkServer2.""" SPARK_THRIFT_SERVER = "SparkThriftServer" + """SparkThriftServer.""" class SparkThriftTransportProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The transport protocol to use in the Thrift layer.""" BINARY = "Binary" + """Binary.""" SASL = "SASL" + """SASL.""" HTTP = "HTTP " + """HTTP.""" class SqlAlwaysEncryptedAkvAuthType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Sql always encrypted AKV authentication type. Type: string.""" SERVICE_PRINCIPAL = "ServicePrincipal" + """ServicePrincipal.""" MANAGED_IDENTITY = "ManagedIdentity" + """ManagedIdentity.""" USER_ASSIGNED_MANAGED_IDENTITY = "UserAssignedManagedIdentity" - - -class SqlDWWriteBehaviorEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Specify the write behavior when copying data into sql dw.""" - - INSERT = "Insert" - UPSERT = "Upsert" - - -class SqlPartitionOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The partition mechanism that will be used for Sql read in parallel.""" - - NONE = "None" - PHYSICAL_PARTITIONS_OF_TABLE = "PhysicalPartitionsOfTable" - DYNAMIC_RANGE = "DynamicRange" + """UserAssignedManagedIdentity.""" class SqlServerAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type used for authentication. Type: string.""" SQL = "SQL" + """SQL.""" WINDOWS = "Windows" + """Windows.""" USER_ASSIGNED_MANAGED_IDENTITY = "UserAssignedManagedIdentity" - - -class SqlWriteBehaviorEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Specify the write behavior when copying data into sql.""" - - INSERT = "Insert" - UPSERT = "Upsert" - STORED_PROCEDURE = "StoredProcedure" + """UserAssignedManagedIdentity.""" class SsisLogLocationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of SSIS log location.""" FILE = "File" + """File.""" class SsisObjectMetadataType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of SSIS object metadata.""" FOLDER = "Folder" + """Folder.""" PROJECT = "Project" + """Project.""" PACKAGE = "Package" + """Package.""" ENVIRONMENT = "Environment" + """Environment.""" class SsisPackageLocationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of SSIS package location.""" SSISDB = "SSISDB" + """SSISDB.""" FILE = "File" + """File.""" INLINE_PACKAGE = "InlinePackage" + """InlinePackage.""" PACKAGE_STORE = "PackageStore" - - -class StoredProcedureParameterType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Stored procedure parameter type.""" - - STRING = "String" - INT = "Int" - INT64 = "Int64" - DECIMAL = "Decimal" - GUID = "Guid" - BOOLEAN = "Boolean" - DATE = "Date" - INT_ENUM = "Int" + """PackageStore.""" class SybaseAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """AuthenticationType to be used for connection.""" BASIC = "Basic" + """Basic.""" WINDOWS = "Windows" + """Windows.""" class TeamDeskAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The authentication type to use.""" BASIC = "Basic" + """Basic.""" TOKEN = "Token" + """Token.""" class TeradataAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """AuthenticationType to be used for connection.""" BASIC = "Basic" + """Basic.""" WINDOWS = "Windows" - - -class TeradataPartitionOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The partition mechanism that will be used for teradata read in parallel.""" - - NONE = "None" - HASH = "Hash" - DYNAMIC_RANGE = "DynamicRange" + """Windows.""" class TriggerReferenceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Trigger reference type.""" TRIGGER_REFERENCE = "TriggerReference" + """TriggerReference.""" class TriggerRunStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Trigger run status.""" SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" INPROGRESS = "Inprogress" + """Inprogress.""" class TriggerRuntimeState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Enumerates possible state of Triggers.""" STARTED = "Started" + """Started.""" STOPPED = "Stopped" + """Stopped.""" DISABLED = "Disabled" + """Disabled.""" class TumblingWindowFrequency(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Enumerates possible frequency option for the tumbling window trigger.""" MINUTE = "Minute" + """Minute.""" HOUR = "Hour" + """Hour.""" MONTH = "Month" + """Month.""" class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Linked service reference type.""" LINKED_SERVICE_REFERENCE = "LinkedServiceReference" + """LinkedServiceReference.""" class ValueType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Type of value copied from source.""" ACTUAL = "actual" + """actual.""" DISPLAY = "display" + """display.""" class VariableType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Variable type.""" STRING = "String" + """String.""" BOOL = "Bool" + """Bool.""" ARRAY = "Array" + """Array.""" class WarehouseAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The authentication type to use.""" SERVICE_PRINCIPAL = "ServicePrincipal" + """ServicePrincipal.""" SYSTEM_ASSIGNED_MANAGED_IDENTITY = "SystemAssignedManagedIdentity" + """SystemAssignedManagedIdentity.""" USER_ASSIGNED_MANAGED_IDENTITY = "UserAssignedManagedIdentity" + """UserAssignedManagedIdentity.""" class WebActivityMethod(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The list of HTTP methods supported by a WebActivity.""" GET = "GET" + """GET.""" POST = "POST" + """POST.""" PUT = "PUT" + """PUT.""" DELETE = "DELETE" + """DELETE.""" class WebAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Type of authentication used to connect to the web table source.""" BASIC = "Basic" + """Basic.""" ANONYMOUS = "Anonymous" + """Anonymous.""" CLIENT_CERTIFICATE = "ClientCertificate" + """ClientCertificate.""" class WebHookActivityMethod(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The list of HTTP methods supported by a WebHook activity.""" POST = "POST" + """POST.""" class ZendeskAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The authentication type to use.""" BASIC = "Basic" + """Basic.""" TOKEN = "Token" + """Token.""" diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models.py new file mode 100644 index 000000000000..37e542960b68 --- /dev/null +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models.py @@ -0,0 +1,68003 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +# pylint: disable=useless-super-delegation + +import datetime +from typing import Any, Literal, Mapping, Optional, TYPE_CHECKING, Union, overload + +from .._utils.model_base import Model as _Model, rest_discriminator, rest_field +from ._enums import IntegrationRuntimeType, SsisObjectMetadataType, WebAuthenticationType + +if TYPE_CHECKING: + from .. import models as _models + + +class AccessPolicyResponse(_Model): + """Get Data Plane read only token response definition. + + :ivar policy: The user access policy. + :vartype policy: ~azure.mgmt.datafactory.models.UserAccessPolicy + :ivar access_token: Data Plane read only access token. + :vartype access_token: str + :ivar data_plane_url: Data Plane service base URL. + :vartype data_plane_url: str + """ + + policy: Optional["_models.UserAccessPolicy"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The user access policy.""" + access_token: Optional[str] = rest_field( + name="accessToken", visibility=["read", "create", "update", "delete", "query"] + ) + """Data Plane read only access token.""" + data_plane_url: Optional[str] = rest_field( + name="dataPlaneUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """Data Plane service base URL.""" + + @overload + def __init__( + self, + *, + policy: Optional["_models.UserAccessPolicy"] = None, + access_token: Optional[str] = None, + data_plane_url: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Activity(_Model): + """A pipeline activity. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + AppendVariableActivity, AzureDataExplorerCommandActivity, AzureFunctionActivity, + AzureMLBatchExecutionActivity, AzureMLExecutePipelineActivity, AzureMLUpdateResourceActivity, + ControlActivity, CopyActivity, CustomActivity, DataLakeAnalyticsUSQLActivity, + DatabricksJobActivity, DatabricksNotebookActivity, DatabricksSparkJarActivity, + DatabricksSparkPythonActivity, DeleteActivity, ExecuteDataFlowActivity, + ExecutePipelineActivity, ExecuteSSISPackageActivity, ExecuteWranglingDataflowActivity, + ExecutionActivity, FailActivity, FilterActivity, ForEachActivity, GetMetadataActivity, + HDInsightHiveActivity, HDInsightMapReduceActivity, HDInsightPigActivity, + HDInsightSparkActivity, HDInsightStreamingActivity, IfConditionActivity, LookupActivity, + ScriptActivity, SetVariableActivity, SynapseSparkJobDefinitionActivity, + SqlServerStoredProcedureActivity, SwitchActivity, SynapseNotebookActivity, UntilActivity, + ValidationActivity, WaitActivity, WebActivity, WebHookActivity + + :ivar name: Activity name. Required. + :vartype name: str + :ivar type: Type of activity. Required. Default value is None. + :vartype type: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + """ + + __mapping__: dict[str, _Model] = {} + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Activity name. Required.""" + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """Type of activity. Required. Default value is None.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Activity description.""" + state: Optional[Union[str, "_models.ActivityState"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Activity state. This is an optional property and if not provided, the state will be Active by + default. Known values are: \"Active\" and \"Inactive\".""" + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = rest_field( + name="onInactiveMarkAs", visibility=["read", "create", "update", "delete", "query"] + ) + """Status result of the activity when the state is set to Inactive. This is an optional property + and if not provided when the activity is inactive, the status will be Succeeded by default. + Known values are: \"Succeeded\", \"Failed\", and \"Skipped\".""" + depends_on: Optional[list["_models.ActivityDependency"]] = rest_field( + name="dependsOn", visibility=["read", "create", "update", "delete", "query"] + ) + """Activity depends on condition.""" + user_properties: Optional[list["_models.UserProperty"]] = rest_field( + name="userProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Activity user properties.""" + + @overload + def __init__( + self, + *, + name: str, + type: str, + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ActivityDependency(_Model): + """Activity dependency information. + + :ivar activity: Activity name. Required. + :vartype activity: str + :ivar dependency_conditions: Match-Condition for the dependency. Required. + :vartype dependency_conditions: list[str or ~azure.mgmt.datafactory.models.DependencyCondition] + """ + + activity: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Activity name. Required.""" + dependency_conditions: list[Union[str, "_models.DependencyCondition"]] = rest_field( + name="dependencyConditions", visibility=["read", "create", "update", "delete", "query"] + ) + """Match-Condition for the dependency. Required.""" + + @overload + def __init__( + self, + *, + activity: str, + dependency_conditions: list[Union[str, "_models.DependencyCondition"]], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ActivityPolicy(_Model): + """Execution policy for an activity. + + :ivar timeout: Specifies the timeout for the activity to run. The default timeout is 7 days. + Type: string (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype timeout: any + :ivar retry: Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with + resultType integer), minimum: 0. + :vartype retry: any + :ivar retry_interval_in_seconds: Interval between each retry attempt (in seconds). The default + is 30 sec. + :vartype retry_interval_in_seconds: int + :ivar secure_input: When set to true, Input from activity is considered as secure and will not + be logged to monitoring. + :vartype secure_input: bool + :ivar secure_output: When set to true, Output from activity is considered as secure and will + not be logged to monitoring. + :vartype secure_output: bool + """ + + timeout: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specifies the timeout for the activity to run. The default timeout is 7 days. Type: string (or + Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + retry: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType + integer), minimum: 0.""" + retry_interval_in_seconds: Optional[int] = rest_field( + name="retryIntervalInSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """Interval between each retry attempt (in seconds). The default is 30 sec.""" + secure_input: Optional[bool] = rest_field( + name="secureInput", visibility=["read", "create", "update", "delete", "query"] + ) + """When set to true, Input from activity is considered as secure and will not be logged to + monitoring.""" + secure_output: Optional[bool] = rest_field( + name="secureOutput", visibility=["read", "create", "update", "delete", "query"] + ) + """When set to true, Output from activity is considered as secure and will not be logged to + monitoring.""" + + @overload + def __init__( + self, + *, + timeout: Optional[Any] = None, + retry: Optional[Any] = None, + retry_interval_in_seconds: Optional[int] = None, + secure_input: Optional[bool] = None, + secure_output: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ActivityRun(_Model): + """Information about an activity run in a pipeline. + + :ivar pipeline_name: The name of the pipeline. + :vartype pipeline_name: str + :ivar pipeline_run_id: The id of the pipeline run. + :vartype pipeline_run_id: str + :ivar activity_name: The name of the activity. + :vartype activity_name: str + :ivar activity_type: The type of the activity. + :vartype activity_type: str + :ivar activity_run_id: The id of the activity run. + :vartype activity_run_id: str + :ivar linked_service_name: The name of the compute linked service. + :vartype linked_service_name: str + :ivar status: The status of the activity run. + :vartype status: str + :ivar activity_run_start: The start time of the activity run in 'ISO 8601' format. + :vartype activity_run_start: ~datetime.datetime + :ivar activity_run_end: The end time of the activity run in 'ISO 8601' format. + :vartype activity_run_end: ~datetime.datetime + :ivar duration_in_ms: The duration of the activity run. + :vartype duration_in_ms: int + :ivar input: The input for the activity. + :vartype input: any + :ivar output: The output for the activity. + :vartype output: any + :ivar error: The error if any from the activity run. + :vartype error: any + """ + + pipeline_name: Optional[str] = rest_field(name="pipelineName", visibility=["read"]) + """The name of the pipeline.""" + pipeline_run_id: Optional[str] = rest_field(name="pipelineRunId", visibility=["read"]) + """The id of the pipeline run.""" + activity_name: Optional[str] = rest_field(name="activityName", visibility=["read"]) + """The name of the activity.""" + activity_type: Optional[str] = rest_field(name="activityType", visibility=["read"]) + """The type of the activity.""" + activity_run_id: Optional[str] = rest_field(name="activityRunId", visibility=["read"]) + """The id of the activity run.""" + linked_service_name: Optional[str] = rest_field(name="linkedServiceName", visibility=["read"]) + """The name of the compute linked service.""" + status: Optional[str] = rest_field(visibility=["read"]) + """The status of the activity run.""" + activity_run_start: Optional[datetime.datetime] = rest_field( + name="activityRunStart", visibility=["read"], format="rfc3339" + ) + """The start time of the activity run in 'ISO 8601' format.""" + activity_run_end: Optional[datetime.datetime] = rest_field( + name="activityRunEnd", visibility=["read"], format="rfc3339" + ) + """The end time of the activity run in 'ISO 8601' format.""" + duration_in_ms: Optional[int] = rest_field(name="durationInMs", visibility=["read"]) + """The duration of the activity run.""" + input: Optional[Any] = rest_field(visibility=["read"]) + """The input for the activity.""" + output: Optional[Any] = rest_field(visibility=["read"]) + """The output for the activity.""" + error: Optional[Any] = rest_field(visibility=["read"]) + """The error if any from the activity run.""" + + +class ActivityRunsQueryResponse(_Model): + """A list activity runs. + + :ivar value: List of activity runs. Required. + :vartype value: list[~azure.mgmt.datafactory.models.ActivityRun] + :ivar continuation_token: The continuation token for getting the next page of results, if any + remaining results exist, null otherwise. + :vartype continuation_token: str + """ + + value: list["_models.ActivityRun"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of activity runs. Required.""" + continuation_token: Optional[str] = rest_field( + name="continuationToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The continuation token for getting the next page of results, if any remaining results exist, + null otherwise.""" + + @overload + def __init__( + self, + *, + value: list["_models.ActivityRun"], + continuation_token: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AddDataFlowToDebugSessionResponse(_Model): + """Response body structure for starting data flow debug session. + + :ivar job_version: The ID of data flow debug job version. + :vartype job_version: str + """ + + job_version: Optional[str] = rest_field( + name="jobVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of data flow debug job version.""" + + @overload + def __init__( + self, + *, + job_version: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LinkedService(_Model): + """The nested object which contains the information and credential which can be used to connect + with related store or compute resource. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + AmazonMWSLinkedService, AmazonRdsForOracleLinkedService, AmazonRdsForSqlServerLinkedService, + AmazonRedshiftLinkedService, AmazonS3LinkedService, AmazonS3CompatibleLinkedService, + AppFiguresLinkedService, AsanaLinkedService, AzureBatchLinkedService, AzureBlobFSLinkedService, + AzureBlobStorageLinkedService, AzureDataExplorerLinkedService, + AzureDataLakeAnalyticsLinkedService, AzureDataLakeStoreLinkedService, + AzureDatabricksLinkedService, AzureDatabricksDeltaLakeLinkedService, + AzureFileStorageLinkedService, AzureFunctionLinkedService, AzureKeyVaultLinkedService, + AzureMLLinkedService, AzureMLServiceLinkedService, AzureMariaDBLinkedService, + AzureMySqlLinkedService, AzurePostgreSqlLinkedService, AzureSearchLinkedService, + AzureSqlDWLinkedService, AzureSqlDatabaseLinkedService, AzureSqlMILinkedService, + AzureStorageLinkedService, AzureSynapseArtifactsLinkedService, AzureTableStorageLinkedService, + CassandraLinkedService, CommonDataServiceForAppsLinkedService, ConcurLinkedService, + CosmosDbLinkedService, CosmosDbMongoDbApiLinkedService, CouchbaseLinkedService, + CustomDataSourceLinkedService, DataworldLinkedService, Db2LinkedService, DrillLinkedService, + DynamicsLinkedService, DynamicsAXLinkedService, DynamicsCrmLinkedService, EloquaLinkedService, + FileServerLinkedService, FtpServerLinkedService, GoogleAdWordsLinkedService, + GoogleBigQueryLinkedService, GoogleBigQueryV2LinkedService, GoogleCloudStorageLinkedService, + GoogleSheetsLinkedService, GreenplumLinkedService, HBaseLinkedService, HDInsightLinkedService, + HDInsightOnDemandLinkedService, HdfsLinkedService, HiveLinkedService, HttpLinkedService, + HubspotLinkedService, ImpalaLinkedService, InformixLinkedService, JiraLinkedService, + LakeHouseLinkedService, MagentoLinkedService, MariaDBLinkedService, MarketoLinkedService, + MicrosoftAccessLinkedService, MongoDbLinkedService, MongoDbAtlasLinkedService, + MongoDbV2LinkedService, MySqlLinkedService, NetezzaLinkedService, ODataLinkedService, + OdbcLinkedService, Office365LinkedService, OracleLinkedService, + OracleCloudStorageLinkedService, OracleServiceCloudLinkedService, PaypalLinkedService, + PhoenixLinkedService, PostgreSqlLinkedService, PostgreSqlV2LinkedService, PrestoLinkedService, + QuickBooksLinkedService, QuickbaseLinkedService, ResponsysLinkedService, + RestServiceLinkedService, SalesforceLinkedService, SalesforceMarketingCloudLinkedService, + SalesforceServiceCloudLinkedService, SalesforceServiceCloudV2LinkedService, + SalesforceV2LinkedService, SapBWLinkedService, SapCloudForCustomerLinkedService, + SapEccLinkedService, SapHanaLinkedService, SapOdpLinkedService, SapOpenHubLinkedService, + SapTableLinkedService, ServiceNowLinkedService, ServiceNowV2LinkedService, + SftpServerLinkedService, SharePointOnlineListLinkedService, ShopifyLinkedService, + SmartsheetLinkedService, SnowflakeLinkedService, SnowflakeV2LinkedService, SparkLinkedService, + SqlServerLinkedService, SquareLinkedService, SybaseLinkedService, TeamDeskLinkedService, + TeradataLinkedService, TwilioLinkedService, VerticaLinkedService, WarehouseLinkedService, + WebLinkedService, XeroLinkedService, ZendeskLinkedService, ZohoLinkedService + + :ivar type: Type of linked service. Required. Default value is None. + :vartype type: str + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """Type of linked service. Required. Default value is None.""" + version: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Version of the linked service.""" + connect_via: Optional["_models.IntegrationRuntimeReference"] = rest_field( + name="connectVia", visibility=["read", "create", "update", "delete", "query"] + ) + """The integration runtime reference.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Linked service description.""" + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Parameters for linked service.""" + annotations: Optional[list[Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of tags that can be used for describing the linked service.""" + + @overload + def __init__( + self, + *, + type: str, + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AmazonMWSLinkedService(LinkedService, discriminator="AmazonMWS"): + """Amazon Marketplace Web Service linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Amazon Marketplace Web Service linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AmazonMWSLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AmazonMWS". + :vartype type: str + """ + + type_properties: "_models.AmazonMWSLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Amazon Marketplace Web Service linked service properties. Required.""" + type: Literal["AmazonMWS"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AmazonMWS\".""" + + __flattened_items = [ + "endpoint", + "marketplace_id", + "seller_id", + "mws_auth_token", + "access_key_id", + "secret_key", + "use_encrypted_endpoints", + "use_host_verification", + "use_peer_verification", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AmazonMWSLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AmazonMWSLinkedServiceTypeProperties(_Model): + """Amazon Marketplace Web Service linked service properties. + + :ivar endpoint: The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com). Required. + :vartype endpoint: any + :ivar marketplace_id: The Amazon Marketplace ID you want to retrieve data from. To retrieve + data from multiple Marketplace IDs, separate them with a comma (,). (i.e. A2EUQ1WTGCTBG2). + Required. + :vartype marketplace_id: any + :ivar seller_id: The Amazon seller ID. Required. + :vartype seller_id: any + :ivar mws_auth_token: The Amazon MWS authentication token. + :vartype mws_auth_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar access_key_id: The access key id used to access data. Required. + :vartype access_key_id: any + :ivar secret_key: The secret key used to access data. + :vartype secret_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using + HTTPS. The default value is true. + :vartype use_encrypted_endpoints: any + :ivar use_host_verification: Specifies whether to require the host name in the server's + certificate to match the host name of the server when connecting over SSL. The default value is + true. + :vartype use_host_verification: any + :ivar use_peer_verification: Specifies whether to verify the identity of the server when + connecting over SSL. The default value is true. + :vartype use_peer_verification: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + endpoint: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com). Required.""" + marketplace_id: Any = rest_field(name="marketplaceID", visibility=["read", "create", "update", "delete", "query"]) + """The Amazon Marketplace ID you want to retrieve data from. To retrieve data from multiple + Marketplace IDs, separate them with a comma (,). (i.e. A2EUQ1WTGCTBG2). Required.""" + seller_id: Any = rest_field(name="sellerID", visibility=["read", "create", "update", "delete", "query"]) + """The Amazon seller ID. Required.""" + mws_auth_token: Optional["_models.SecretBase"] = rest_field( + name="mwsAuthToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The Amazon MWS authentication token.""" + access_key_id: Any = rest_field(name="accessKeyId", visibility=["read", "create", "update", "delete", "query"]) + """The access key id used to access data. Required.""" + secret_key: Optional["_models.SecretBase"] = rest_field( + name="secretKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The secret key used to access data.""" + use_encrypted_endpoints: Optional[Any] = rest_field( + name="useEncryptedEndpoints", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the data source endpoints are encrypted using HTTPS. The default value is + true.""" + use_host_verification: Optional[Any] = rest_field( + name="useHostVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require the host name in the server's certificate to match the host name + of the server when connecting over SSL. The default value is true.""" + use_peer_verification: Optional[Any] = rest_field( + name="usePeerVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to verify the identity of the server when connecting over SSL. The default + value is true.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + endpoint: Any, + marketplace_id: Any, + seller_id: Any, + access_key_id: Any, + mws_auth_token: Optional["_models.SecretBase"] = None, + secret_key: Optional["_models.SecretBase"] = None, + use_encrypted_endpoints: Optional[Any] = None, + use_host_verification: Optional[Any] = None, + use_peer_verification: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Dataset(_Model): + """The Azure Data Factory nested object which identifies data within different data stores, such + as tables, files, folders, and documents. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + AmazonMWSObjectDataset, AmazonRdsForOracleTableDataset, AmazonRdsForSqlServerTableDataset, + AmazonRedshiftTableDataset, AmazonS3Dataset, AvroDataset, AzureBlobDataset, AzureBlobFSDataset, + AzureDataExplorerTableDataset, AzureDataLakeStoreDataset, AzureDatabricksDeltaLakeDataset, + AzureMariaDBTableDataset, AzureMySqlTableDataset, AzurePostgreSqlTableDataset, + AzureSearchIndexDataset, AzureSqlDWTableDataset, AzureSqlMITableDataset, AzureSqlTableDataset, + AzureTableDataset, BinaryDataset, CassandraTableDataset, CommonDataServiceForAppsEntityDataset, + ConcurObjectDataset, CosmosDbMongoDbApiCollectionDataset, CosmosDbSqlApiCollectionDataset, + CouchbaseTableDataset, CustomDataset, Db2TableDataset, DelimitedTextDataset, + DocumentDbCollectionDataset, DrillTableDataset, DynamicsAXResourceDataset, + DynamicsCrmEntityDataset, DynamicsEntityDataset, EloquaObjectDataset, ExcelDataset, + FileShareDataset, GoogleAdWordsObjectDataset, GoogleBigQueryObjectDataset, + GoogleBigQueryV2ObjectDataset, GreenplumTableDataset, HBaseObjectDataset, HiveObjectDataset, + HttpDataset, HubspotObjectDataset, IcebergDataset, ImpalaObjectDataset, InformixTableDataset, + JiraObjectDataset, JsonDataset, LakeHouseTableDataset, MagentoObjectDataset, + MariaDBTableDataset, MarketoObjectDataset, MicrosoftAccessTableDataset, + MongoDbAtlasCollectionDataset, MongoDbCollectionDataset, MongoDbV2CollectionDataset, + MySqlTableDataset, NetezzaTableDataset, ODataResourceDataset, OdbcTableDataset, + Office365Dataset, OracleServiceCloudObjectDataset, OracleTableDataset, OrcDataset, + ParquetDataset, PaypalObjectDataset, PhoenixObjectDataset, PostgreSqlTableDataset, + PostgreSqlV2TableDataset, PrestoObjectDataset, QuickBooksObjectDataset, RelationalTableDataset, + ResponsysObjectDataset, RestResourceDataset, SalesforceMarketingCloudObjectDataset, + SalesforceObjectDataset, SalesforceServiceCloudObjectDataset, + SalesforceServiceCloudV2ObjectDataset, SalesforceV2ObjectDataset, SapBwCubeDataset, + SapCloudForCustomerResourceDataset, SapEccResourceDataset, SapHanaTableDataset, + SapOdpResourceDataset, SapOpenHubTableDataset, SapTableResourceDataset, + ServiceNowObjectDataset, ServiceNowV2ObjectDataset, SharePointOnlineListResourceDataset, + ShopifyObjectDataset, SnowflakeDataset, SnowflakeV2Dataset, SparkObjectDataset, + SqlServerTableDataset, SquareObjectDataset, SybaseTableDataset, TeradataTableDataset, + VerticaTableDataset, WarehouseTableDataset, WebTableDataset, XeroObjectDataset, XmlDataset, + ZohoObjectDataset + + :ivar type: Type of dataset. Required. Default value is None. + :vartype type: str + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """Type of dataset. Required. Default value is None.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Dataset description.""" + structure: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Columns that define the structure of the dataset. Type: array (or Expression with resultType + array), itemType: DatasetDataElement.""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Columns that define the physical type schema of the dataset. Type: array (or Expression with + resultType array), itemType: DatasetSchemaDataElement.""" + linked_service_name: "_models.LinkedServiceReference" = rest_field( + name="linkedServiceName", visibility=["read", "create", "update", "delete", "query"] + ) + """Linked service reference. Required.""" + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Parameters for dataset.""" + annotations: Optional[list[Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of tags that can be used for describing the Dataset.""" + folder: Optional["_models.DatasetFolder"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The folder that this Dataset is in. If not specified, Dataset will appear at the root level.""" + + @overload + def __init__( + self, + *, + type: str, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AmazonMWSObjectDataset(Dataset, discriminator="AmazonMWSObject"): + """Amazon Marketplace Web Service dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "AmazonMWSObject". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["AmazonMWSObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"AmazonMWSObject\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class CopySource(_Model): + """A copy activity source. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + AmazonMWSSource, AmazonRdsForOracleSource, AmazonRdsForSqlServerSource, AmazonRedshiftSource, + AvroSource, AzureBlobFSSource, AzureDataExplorerSource, AzureDataLakeStoreSource, + AzureDatabricksDeltaLakeSource, AzureMariaDBSource, AzureMySqlSource, AzurePostgreSqlSource, + AzureSqlSource, AzureTableSource, BinarySource, BlobSource, CassandraSource, + CommonDataServiceForAppsSource, ConcurSource, CosmosDbMongoDbApiSource, CosmosDbSqlApiSource, + CouchbaseSource, Db2Source, DelimitedTextSource, DocumentDbCollectionSource, DrillSource, + DynamicsAXSource, DynamicsCrmSource, DynamicsSource, EloquaSource, ExcelSource, + FileSystemSource, GoogleAdWordsSource, GoogleBigQuerySource, GoogleBigQueryV2Source, + GreenplumSource, HBaseSource, HdfsSource, HiveSource, HttpSource, HubspotSource, ImpalaSource, + InformixSource, JiraSource, JsonSource, LakeHouseTableSource, MagentoSource, MariaDBSource, + MarketoSource, MicrosoftAccessSource, MongoDbAtlasSource, MongoDbSource, MongoDbV2Source, + MySqlSource, NetezzaSource, ODataSource, OdbcSource, Office365Source, OracleServiceCloudSource, + OracleSource, OrcSource, ParquetSource, PaypalSource, PhoenixSource, PostgreSqlSource, + PostgreSqlV2Source, PrestoSource, QuickBooksSource, RelationalSource, ResponsysSource, + RestSource, SalesforceMarketingCloudSource, SalesforceServiceCloudSource, + SalesforceServiceCloudV2Source, SalesforceSource, SalesforceV2Source, SapBwSource, + SapCloudForCustomerSource, SapEccSource, SapHanaSource, SapOdpSource, SapOpenHubSource, + SapTableSource, ServiceNowSource, ServiceNowV2Source, SharePointOnlineListSource, + ShopifySource, SnowflakeSource, SnowflakeV2Source, SparkSource, SqlDWSource, SqlMISource, + SqlServerSource, SqlSource, SquareSource, SybaseSource, TabularSource, TeradataSource, + VerticaSource, WarehouseSource, WebSource, XeroSource, XmlSource, ZohoSource + + :ivar type: Copy source type. Required. Default value is None. + :vartype type: str + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """Copy source type. Required. Default value is None.""" + source_retry_count: Optional[Any] = rest_field( + name="sourceRetryCount", visibility=["read", "create", "update", "delete", "query"] + ) + """Source retry count. Type: integer (or Expression with resultType integer).""" + source_retry_wait: Optional[Any] = rest_field( + name="sourceRetryWait", visibility=["read", "create", "update", "delete", "query"] + ) + """Source retry wait. Type: string (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + max_concurrent_connections: Optional[Any] = rest_field( + name="maxConcurrentConnections", visibility=["read", "create", "update", "delete", "query"] + ) + """The maximum concurrent connection count for the source data store. Type: integer (or Expression + with resultType integer).""" + disable_metrics_collection: Optional[Any] = rest_field( + name="disableMetricsCollection", visibility=["read", "create", "update", "delete", "query"] + ) + """If true, disable data store metrics collection. Default is false. Type: boolean (or Expression + with resultType boolean).""" + + @overload + def __init__( + self, + *, + type: str, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TabularSource(CopySource, discriminator="TabularSource"): + """Copy activity sources of tabular type. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + AmazonMWSSource, AmazonRdsForSqlServerSource, AmazonRedshiftSource, AzureMariaDBSource, + AzureMySqlSource, AzurePostgreSqlSource, AzureSqlSource, AzureTableSource, CassandraSource, + ConcurSource, CouchbaseSource, Db2Source, DrillSource, DynamicsAXSource, EloquaSource, + GoogleAdWordsSource, GoogleBigQuerySource, GoogleBigQueryV2Source, GreenplumSource, + HBaseSource, HiveSource, HubspotSource, ImpalaSource, InformixSource, JiraSource, + MagentoSource, MariaDBSource, MarketoSource, MySqlSource, NetezzaSource, OdbcSource, + OracleServiceCloudSource, PaypalSource, PhoenixSource, PostgreSqlSource, PostgreSqlV2Source, + PrestoSource, QuickBooksSource, ResponsysSource, SalesforceMarketingCloudSource, + SalesforceSource, SalesforceV2Source, SapBwSource, SapCloudForCustomerSource, SapEccSource, + SapHanaSource, SapOdpSource, SapOpenHubSource, SapTableSource, ServiceNowSource, + ServiceNowV2Source, ShopifySource, SparkSource, SqlDWSource, SqlMISource, SqlServerSource, + SqlSource, SquareSource, SybaseSource, TeradataSource, VerticaSource, WarehouseSource, + XeroSource, ZohoSource + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Required. Default value is "TabularSource". + :vartype type: str + """ + + __mapping__: dict[str, _Model] = {} + query_timeout: Optional[Any] = rest_field( + name="queryTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """Query timeout. Type: string (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["TabularSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Required. Default value is \"TabularSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "TabularSource" # type: ignore + + +class AmazonMWSSource(TabularSource, discriminator="AmazonMWSSource"): + """A copy activity Amazon Marketplace Web Service source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "AmazonMWSSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["AmazonMWSSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"AmazonMWSSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AmazonMWSSource" # type: ignore + + +class AmazonRdsForLinkedServiceTypeProperties(_Model): + """AmazonRdsForOracle database linked service properties. + + :ivar connection_string: The connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. Only used for Version 1.0. + :vartype connection_string: any + :ivar server: The location of AmazonRdsForOracle database you want to connect to, the supported + forms include connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name + (Only self-hosted IR). Type: string. Only used for Version 2.0. + :vartype server: any + :ivar authentication_type: Authentication type for connecting to the AmazonRdsForOracle + database. Only used for Version 2.0. "Basic" + :vartype authentication_type: str or + ~azure.mgmt.datafactory.models.AmazonRdsForOracleAuthenticationType + :ivar username: The AmazonRdsForOracle database username. Type: string. Only used for Version + 2.0. + :vartype username: any + :ivar password: The Azure key vault secret reference of password in connection string. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar encryption_client: Specifies the encryption client behavior. Supported values are + accepted, rejected, requested or required, default value is required. Type: string. Only used + for Version 2.0. + :vartype encryption_client: any + :ivar encryption_types_client: Specifies the encryption algorithms that client can use. + Supported values are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: + string. Only used for Version 2.0. + :vartype encryption_types_client: any + :ivar crypto_checksum_client: Specifies the desired data integrity behavior when this client + connects to a server. Supported values are accepted, rejected, requested or required, default + value is required. Type: string. Only used for Version 2.0. + :vartype crypto_checksum_client: any + :ivar crypto_checksum_types_client: Specifies the crypto-checksum algorithms that client can + use. Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: + string. Only used for Version 2.0. + :vartype crypto_checksum_types_client: any + :ivar initial_lob_fetch_size: Specifies the amount that the source initially fetches for LOB + columns, default value is 0. Type: integer. Only used for Version 2.0. + :vartype initial_lob_fetch_size: any + :ivar fetch_size: Specifies the number of bytes that the driver allocates to fetch the data in + one database round-trip, default value is 10485760. Type: integer. Only used for Version 2.0. + :vartype fetch_size: any + :ivar statement_cache_size: Specifies the number of cursors or statements to be cached for each + database connection, default value is 0. Type: integer. Only used for Version 2.0. + :vartype statement_cache_size: any + :ivar initialization_string: Specifies a command that is issued immediately after connecting to + the database to manage session settings. Type: string. Only used for Version 2.0. + :vartype initialization_string: any + :ivar enable_bulk_load: Specifies whether to use bulk copy or batch insert when loading data + into the database, default value is true. Type: boolean. Only used for Version 2.0. + :vartype enable_bulk_load: any + :ivar support_v1_data_types: Specifies whether to use the Version 1.0 data type mappings. Do + not set this to true unless you want to keep backward compatibility with Version 1.0's data + type mappings, default value is false. Type: boolean. Only used for Version 2.0. + :vartype support_v1_data_types: any + :ivar fetch_tswtz_as_timestamp: Specifies whether the driver returns column value with the + TIMESTAMP WITH TIME ZONE data type as DateTime or string. This setting is ignored if + supportV1DataTypes is not true, default value is true. Type: boolean. Only used for Version + 2.0. + :vartype fetch_tswtz_as_timestamp: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Only used + for Version 1.0.""" + server: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The location of AmazonRdsForOracle database you want to connect to, the supported forms include + connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted + IR). Type: string. Only used for Version 2.0.""" + authentication_type: Optional[Union[str, "_models.AmazonRdsForOracleAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """Authentication type for connecting to the AmazonRdsForOracle database. Only used for Version + 2.0. \"Basic\"""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The AmazonRdsForOracle database username. Type: string. Only used for Version 2.0.""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Azure key vault secret reference of password in connection string.""" + encryption_client: Optional[Any] = rest_field( + name="encryptionClient", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the encryption client behavior. Supported values are accepted, rejected, requested or + required, default value is required. Type: string. Only used for Version 2.0.""" + encryption_types_client: Optional[Any] = rest_field( + name="encryptionTypesClient", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the encryption algorithms that client can use. Supported values are AES128, AES192, + AES256, 3DES112, 3DES168, default value is (AES256). Type: string. Only used for Version 2.0.""" + crypto_checksum_client: Optional[Any] = rest_field( + name="cryptoChecksumClient", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the desired data integrity behavior when this client connects to a server. Supported + values are accepted, rejected, requested or required, default value is required. Type: string. + Only used for Version 2.0.""" + crypto_checksum_types_client: Optional[Any] = rest_field( + name="cryptoChecksumTypesClient", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the crypto-checksum algorithms that client can use. Supported values are SHA1, + SHA256, SHA384, SHA512, default value is (SHA512). Type: string. Only used for Version 2.0.""" + initial_lob_fetch_size: Optional[Any] = rest_field( + name="initialLobFetchSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the amount that the source initially fetches for LOB columns, default value is 0. + Type: integer. Only used for Version 2.0.""" + fetch_size: Optional[Any] = rest_field(name="fetchSize", visibility=["read", "create", "update", "delete", "query"]) + """Specifies the number of bytes that the driver allocates to fetch the data in one database + round-trip, default value is 10485760. Type: integer. Only used for Version 2.0.""" + statement_cache_size: Optional[Any] = rest_field( + name="statementCacheSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the number of cursors or statements to be cached for each database connection, + default value is 0. Type: integer. Only used for Version 2.0.""" + initialization_string: Optional[Any] = rest_field( + name="initializationString", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies a command that is issued immediately after connecting to the database to manage + session settings. Type: string. Only used for Version 2.0.""" + enable_bulk_load: Optional[Any] = rest_field( + name="enableBulkLoad", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to use bulk copy or batch insert when loading data into the database, default + value is true. Type: boolean. Only used for Version 2.0.""" + support_v1_data_types: Optional[Any] = rest_field( + name="supportV1DataTypes", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to use the Version 1.0 data type mappings. Do not set this to true unless you + want to keep backward compatibility with Version 1.0's data type mappings, default value is + false. Type: boolean. Only used for Version 2.0.""" + fetch_tswtz_as_timestamp: Optional[Any] = rest_field( + name="fetchTswtzAsTimestamp", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the driver returns column value with the TIMESTAMP WITH TIME ZONE data type + as DateTime or string. This setting is ignored if supportV1DataTypes is not true, default value + is true. Type: boolean. Only used for Version 2.0.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_string: Optional[Any] = None, + server: Optional[Any] = None, + authentication_type: Optional[Union[str, "_models.AmazonRdsForOracleAuthenticationType"]] = None, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + encryption_client: Optional[Any] = None, + encryption_types_client: Optional[Any] = None, + crypto_checksum_client: Optional[Any] = None, + crypto_checksum_types_client: Optional[Any] = None, + initial_lob_fetch_size: Optional[Any] = None, + fetch_size: Optional[Any] = None, + statement_cache_size: Optional[Any] = None, + initialization_string: Optional[Any] = None, + enable_bulk_load: Optional[Any] = None, + support_v1_data_types: Optional[Any] = None, + fetch_tswtz_as_timestamp: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AmazonRdsForOracleLinkedService(LinkedService, discriminator="AmazonRdsForOracle"): + """AmazonRdsForOracle database. This linked service has supported version property. The Version + 1.0 is scheduled for deprecation while your pipeline will continue to run after EOL but without + any bug fix or new features. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: AmazonRdsForOracle database linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AmazonRdsForLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AmazonRdsForOracle". + :vartype type: str + """ + + type_properties: "_models.AmazonRdsForLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """AmazonRdsForOracle database linked service properties. Required.""" + type: Literal["AmazonRdsForOracle"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AmazonRdsForOracle\".""" + + __flattened_items = [ + "connection_string", + "server", + "authentication_type", + "username", + "password", + "encryption_client", + "encryption_types_client", + "crypto_checksum_client", + "crypto_checksum_types_client", + "initial_lob_fetch_size", + "fetch_size", + "statement_cache_size", + "initialization_string", + "enable_bulk_load", + "support_v1_data_types", + "fetch_tswtz_as_timestamp", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AmazonRdsForLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AmazonRdsForOraclePartitionSettings(_Model): + """The settings that will be leveraged for AmazonRdsForOracle source partitioning. + + :ivar partition_names: Names of the physical partitions of AmazonRdsForOracle table. + :vartype partition_names: any + :ivar partition_column_name: The name of the column in integer type that will be used for + proceeding range partitioning. Type: string (or Expression with resultType string). + :vartype partition_column_name: any + :ivar partition_upper_bound: The maximum value of column specified in partitionColumnName that + will be used for proceeding range partitioning. Type: string (or Expression with resultType + string). + :vartype partition_upper_bound: any + :ivar partition_lower_bound: The minimum value of column specified in partitionColumnName that + will be used for proceeding range partitioning. Type: string (or Expression with resultType + string). + :vartype partition_lower_bound: any + """ + + partition_names: Optional[Any] = rest_field( + name="partitionNames", visibility=["read", "create", "update", "delete", "query"] + ) + """Names of the physical partitions of AmazonRdsForOracle table.""" + partition_column_name: Optional[Any] = rest_field( + name="partitionColumnName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the column in integer type that will be used for proceeding range partitioning. + Type: string (or Expression with resultType string).""" + partition_upper_bound: Optional[Any] = rest_field( + name="partitionUpperBound", visibility=["read", "create", "update", "delete", "query"] + ) + """The maximum value of column specified in partitionColumnName that will be used for proceeding + range partitioning. Type: string (or Expression with resultType string).""" + partition_lower_bound: Optional[Any] = rest_field( + name="partitionLowerBound", visibility=["read", "create", "update", "delete", "query"] + ) + """The minimum value of column specified in partitionColumnName that will be used for proceeding + range partitioning. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + partition_names: Optional[Any] = None, + partition_column_name: Optional[Any] = None, + partition_upper_bound: Optional[Any] = None, + partition_lower_bound: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AmazonRdsForOracleSource(CopySource, discriminator="AmazonRdsForOracleSource"): + """A copy activity AmazonRdsForOracle source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar oracle_reader_query: AmazonRdsForOracle reader query. Type: string (or Expression with + resultType string). + :vartype oracle_reader_query: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar partition_option: The partition mechanism that will be used for AmazonRdsForOracle read + in parallel. Type: string (or Expression with resultType string). + :vartype partition_option: any + :ivar partition_settings: The settings that will be leveraged for AmazonRdsForOracle source + partitioning. + :vartype partition_settings: ~azure.mgmt.datafactory.models.AmazonRdsForOraclePartitionSettings + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar number_precision: The decimal precision used to represent Oracle NUMBER type without + precision and scale. The range is 1 to 256 and default value is 256 if not specified. Type: + integer (or Expression with resultType integer). Only used for Version 2.0. + :vartype number_precision: any + :ivar number_scale: The decimal scale used to represent Oracle NUMBER type without precision + and scale. The range is 0 to 130 and default value is 130 if not specified. Type: integer (or + Expression with resultType integer). Only used for Version 2.0. + :vartype number_scale: any + :ivar type: Copy source type. Required. Default value is "AmazonRdsForOracleSource". + :vartype type: str + """ + + oracle_reader_query: Optional[Any] = rest_field( + name="oracleReaderQuery", visibility=["read", "create", "update", "delete", "query"] + ) + """AmazonRdsForOracle reader query. Type: string (or Expression with resultType string).""" + query_timeout: Optional[Any] = rest_field( + name="queryTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """Query timeout. Type: string (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + partition_option: Optional[Any] = rest_field( + name="partitionOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The partition mechanism that will be used for AmazonRdsForOracle read in parallel. Type: string + (or Expression with resultType string).""" + partition_settings: Optional["_models.AmazonRdsForOraclePartitionSettings"] = rest_field( + name="partitionSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The settings that will be leveraged for AmazonRdsForOracle source partitioning.""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + number_precision: Optional[Any] = rest_field( + name="numberPrecision", visibility=["read", "create", "update", "delete", "query"] + ) + """The decimal precision used to represent Oracle NUMBER type without precision and scale. The + range is 1 to 256 and default value is 256 if not specified. Type: integer (or Expression with + resultType integer). Only used for Version 2.0.""" + number_scale: Optional[Any] = rest_field( + name="numberScale", visibility=["read", "create", "update", "delete", "query"] + ) + """The decimal scale used to represent Oracle NUMBER type without precision and scale. The range + is 0 to 130 and default value is 130 if not specified. Type: integer (or Expression with + resultType integer). Only used for Version 2.0.""" + type: Literal["AmazonRdsForOracleSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"AmazonRdsForOracleSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + oracle_reader_query: Optional[Any] = None, + query_timeout: Optional[Any] = None, + partition_option: Optional[Any] = None, + partition_settings: Optional["_models.AmazonRdsForOraclePartitionSettings"] = None, + additional_columns: Optional[Any] = None, + number_precision: Optional[Any] = None, + number_scale: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AmazonRdsForOracleSource" # type: ignore + + +class AmazonRdsForOracleTableDataset(Dataset, discriminator="AmazonRdsForOracleTable"): + """The AmazonRdsForOracle database dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: AmazonRdsForOracle dataset properties. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AmazonRdsForOracleTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "AmazonRdsForOracleTable". + :vartype type: str + """ + + type_properties: Optional["_models.AmazonRdsForOracleTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """AmazonRdsForOracle dataset properties.""" + type: Literal["AmazonRdsForOracleTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"AmazonRdsForOracleTable\".""" + + __flattened_items = ["schema", "table"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.AmazonRdsForOracleTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AmazonRdsForOracleTableDatasetTypeProperties(_Model): # pylint: disable=name-too-long + """AmazonRdsForOracle dataset properties. + + :ivar schema: The schema name of the AmazonRdsForOracle database. Type: string (or Expression + with resultType string). + :vartype schema: any + :ivar table: The table name of the AmazonRdsForOracle database. Type: string (or Expression + with resultType string). + :vartype table: any + """ + + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the AmazonRdsForOracle database. Type: string (or Expression with resultType + string).""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the AmazonRdsForOracle database. Type: string (or Expression with resultType + string).""" + + @overload + def __init__( + self, + *, + schema: Optional[Any] = None, + table: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AmazonRdsForSqlServerLinkedService(LinkedService, discriminator="AmazonRdsForSqlServer"): + """Amazon RDS for SQL Server linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Amazon RDS for SQL Server linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AmazonRdsForSqlServerLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AmazonRdsForSqlServer". + :vartype type: str + """ + + type_properties: "_models.AmazonRdsForSqlServerLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Amazon RDS for SQL Server linked service properties. Required.""" + type: Literal["AmazonRdsForSqlServer"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AmazonRdsForSqlServer\".""" + + __flattened_items = [ + "server", + "database", + "encrypt", + "trust_server_certificate", + "host_name_in_certificate", + "application_intent", + "connect_timeout", + "connect_retry_count", + "connect_retry_interval", + "load_balance_timeout", + "command_timeout", + "integrated_security", + "failover_partner", + "max_pool_size", + "min_pool_size", + "multiple_active_result_sets", + "multi_subnet_failover", + "packet_size", + "pooling", + "connection_string", + "authentication_type", + "user_name", + "password", + "encrypted_credential", + "always_encrypted_settings", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AmazonRdsForSqlServerLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SqlServerBaseLinkedServiceTypeProperties(_Model): + """Sql Server family connector common linked service properties. + + :ivar server: The name or network address of the instance of SQL Server to which to connect, + used by recommended version. Type: string (or Expression with resultType string). + :vartype server: any + :ivar database: The name of the database, used by recommended version. Type: string (or + Expression with resultType string). + :vartype database: any + :ivar encrypt: Indicate whether TLS encryption is required for all data sent between the client + and server, used by recommended version. Possible values are true/yes/mandatory, + false/no/optional and strict. Type: string (or Expression with resultType string). + :vartype encrypt: any + :ivar trust_server_certificate: Indicate whether the channel will be encrypted while bypassing + walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or + Expression with resultType boolean). + :vartype trust_server_certificate: any + :ivar host_name_in_certificate: The host name to use when validating the server certificate for + the connection. When not specified, the server name from the Data Source is used for + certificate validation, used by recommended version. Type: string (or Expression with + resultType string). + :vartype host_name_in_certificate: any + :ivar application_intent: The application workload type when connecting to a server, used by + recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression + with resultType string). + :vartype application_intent: any + :ivar connect_timeout: The length of time (in seconds) to wait for a connection to the server + before terminating the attempt and generating an error, used by recommended version. Type: + integer (or Expression with resultType integer). + :vartype connect_timeout: any + :ivar connect_retry_count: The number of re-connections attempted after identifying that there + was an idle connection failure, used by recommended version. This must be an integer between 0 + and 255. Type: integer (or Expression with resultType integer). + :vartype connect_retry_count: any + :ivar connect_retry_interval: The amount of time (in seconds) between each re-connection + attempt after identifying that there was an idle connection failure, used by recommended + version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType + integer). + :vartype connect_retry_interval: any + :ivar load_balance_timeout: The minimum time, in seconds, for the connection to live in the + connection pool before being destroyed, used by recommended version. Type: integer (or + Expression with resultType integer). + :vartype load_balance_timeout: any + :ivar command_timeout: The default wait time (in seconds) before terminating the attempt to + execute a command and generating an error, used by recommended version. Type: integer (or + Expression with resultType integer). + :vartype command_timeout: any + :ivar integrated_security: Indicate whether User ID and Password are specified in the + connection (when false) or whether the current Windows account credentials are used for + authentication (when true), used by recommended version. Type: Boolean (or Expression with + resultType boolean). + :vartype integrated_security: any + :ivar failover_partner: The name or address of the partner server to connect to if the primary + server is down, used by recommended version. Type: string (or Expression with resultType + string). + :vartype failover_partner: any + :ivar max_pool_size: The maximum number of connections allowed in the connection pool for this + specific connection string, used by recommended version. Type: integer (or Expression with + resultType integer). + :vartype max_pool_size: any + :ivar min_pool_size: The minimum number of connections allowed in the connection pool for this + specific connection string, used by recommended version. Type: integer (or Expression with + resultType integer). + :vartype min_pool_size: any + :ivar multiple_active_result_sets: When true, an application can maintain multiple active + result sets (MARS). When false, an application must process or cancel all result sets from one + batch before it can execute any other batch on that connection, used by recommended version. + Type: Boolean (or Expression with resultType boolean). + :vartype multiple_active_result_sets: any + :ivar multi_subnet_failover: If your application is connecting to an AlwaysOn availability + group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of + and connection to the (currently) active server, used by recommended version. Type: Boolean (or + Expression with resultType boolean). + :vartype multi_subnet_failover: any + :ivar packet_size: The size in bytes of the network packets used to communicate with an + instance of server, used by recommended version. Type: integer (or Expression with resultType + integer). + :vartype packet_size: any + :ivar pooling: Indicate whether the connection will be pooled or explicitly opened every time + that the connection is requested, used by recommended version. Type: Boolean (or Expression + with resultType boolean). + :vartype pooling: any + """ + + server: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name or network address of the instance of SQL Server to which to connect, used by + recommended version. Type: string (or Expression with resultType string).""" + database: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the database, used by recommended version. Type: string (or Expression with + resultType string).""" + encrypt: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Indicate whether TLS encryption is required for all data sent between the client and server, + used by recommended version. Possible values are true/yes/mandatory, false/no/optional and + strict. Type: string (or Expression with resultType string).""" + trust_server_certificate: Optional[Any] = rest_field( + name="trustServerCertificate", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicate whether the channel will be encrypted while bypassing walking the certificate chain to + validate trust, used by recommended version. Type: Boolean (or Expression with resultType + boolean).""" + host_name_in_certificate: Optional[Any] = rest_field( + name="hostNameInCertificate", visibility=["read", "create", "update", "delete", "query"] + ) + """The host name to use when validating the server certificate for the connection. When not + specified, the server name from the Data Source is used for certificate validation, used by + recommended version. Type: string (or Expression with resultType string).""" + application_intent: Optional[Any] = rest_field( + name="applicationIntent", visibility=["read", "create", "update", "delete", "query"] + ) + """The application workload type when connecting to a server, used by recommended version. + Possible values are ReadOnly and ReadWrite. Type: string (or Expression with resultType + string).""" + connect_timeout: Optional[Any] = rest_field( + name="connectTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """The length of time (in seconds) to wait for a connection to the server before terminating the + attempt and generating an error, used by recommended version. Type: integer (or Expression with + resultType integer).""" + connect_retry_count: Optional[Any] = rest_field( + name="connectRetryCount", visibility=["read", "create", "update", "delete", "query"] + ) + """The number of re-connections attempted after identifying that there was an idle connection + failure, used by recommended version. This must be an integer between 0 and 255. Type: integer + (or Expression with resultType integer).""" + connect_retry_interval: Optional[Any] = rest_field( + name="connectRetryInterval", visibility=["read", "create", "update", "delete", "query"] + ) + """The amount of time (in seconds) between each re-connection attempt after identifying that there + was an idle connection failure, used by recommended version. This must be an integer between 1 + and 60. Type: integer (or Expression with resultType integer).""" + load_balance_timeout: Optional[Any] = rest_field( + name="loadBalanceTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """The minimum time, in seconds, for the connection to live in the connection pool before being + destroyed, used by recommended version. Type: integer (or Expression with resultType integer).""" + command_timeout: Optional[Any] = rest_field( + name="commandTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """The default wait time (in seconds) before terminating the attempt to execute a command and + generating an error, used by recommended version. Type: integer (or Expression with resultType + integer).""" + integrated_security: Optional[Any] = rest_field( + name="integratedSecurity", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicate whether User ID and Password are specified in the connection (when false) or whether + the current Windows account credentials are used for authentication (when true), used by + recommended version. Type: Boolean (or Expression with resultType boolean).""" + failover_partner: Optional[Any] = rest_field( + name="failoverPartner", visibility=["read", "create", "update", "delete", "query"] + ) + """The name or address of the partner server to connect to if the primary server is down, used by + recommended version. Type: string (or Expression with resultType string).""" + max_pool_size: Optional[Any] = rest_field( + name="maxPoolSize", visibility=["read", "create", "update", "delete", "query"] + ) + """The maximum number of connections allowed in the connection pool for this specific connection + string, used by recommended version. Type: integer (or Expression with resultType integer).""" + min_pool_size: Optional[Any] = rest_field( + name="minPoolSize", visibility=["read", "create", "update", "delete", "query"] + ) + """The minimum number of connections allowed in the connection pool for this specific connection + string, used by recommended version. Type: integer (or Expression with resultType integer).""" + multiple_active_result_sets: Optional[Any] = rest_field( + name="multipleActiveResultSets", visibility=["read", "create", "update", "delete", "query"] + ) + """When true, an application can maintain multiple active result sets (MARS). When false, an + application must process or cancel all result sets from one batch before it can execute any + other batch on that connection, used by recommended version. Type: Boolean (or Expression with + resultType boolean).""" + multi_subnet_failover: Optional[Any] = rest_field( + name="multiSubnetFailover", visibility=["read", "create", "update", "delete", "query"] + ) + """If your application is connecting to an AlwaysOn availability group (AG) on different subnets, + setting MultiSubnetFailover=true provides faster detection of and connection to the (currently) + active server, used by recommended version. Type: Boolean (or Expression with resultType + boolean).""" + packet_size: Optional[Any] = rest_field( + name="packetSize", visibility=["read", "create", "update", "delete", "query"] + ) + """The size in bytes of the network packets used to communicate with an instance of server, used + by recommended version. Type: integer (or Expression with resultType integer).""" + pooling: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Indicate whether the connection will be pooled or explicitly opened every time that the + connection is requested, used by recommended version. Type: Boolean (or Expression with + resultType boolean).""" + + @overload + def __init__( + self, + *, + server: Optional[Any] = None, + database: Optional[Any] = None, + encrypt: Optional[Any] = None, + trust_server_certificate: Optional[Any] = None, + host_name_in_certificate: Optional[Any] = None, + application_intent: Optional[Any] = None, + connect_timeout: Optional[Any] = None, + connect_retry_count: Optional[Any] = None, + connect_retry_interval: Optional[Any] = None, + load_balance_timeout: Optional[Any] = None, + command_timeout: Optional[Any] = None, + integrated_security: Optional[Any] = None, + failover_partner: Optional[Any] = None, + max_pool_size: Optional[Any] = None, + min_pool_size: Optional[Any] = None, + multiple_active_result_sets: Optional[Any] = None, + multi_subnet_failover: Optional[Any] = None, + packet_size: Optional[Any] = None, + pooling: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AmazonRdsForSqlServerLinkedServiceTypeProperties( + SqlServerBaseLinkedServiceTypeProperties +): # pylint: disable=name-too-long + """Amazon Rds for SQL Server linked service properties. + + :ivar server: The name or network address of the instance of SQL Server to which to connect, + used by recommended version. Type: string (or Expression with resultType string). + :vartype server: any + :ivar database: The name of the database, used by recommended version. Type: string (or + Expression with resultType string). + :vartype database: any + :ivar encrypt: Indicate whether TLS encryption is required for all data sent between the client + and server, used by recommended version. Possible values are true/yes/mandatory, + false/no/optional and strict. Type: string (or Expression with resultType string). + :vartype encrypt: any + :ivar trust_server_certificate: Indicate whether the channel will be encrypted while bypassing + walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or + Expression with resultType boolean). + :vartype trust_server_certificate: any + :ivar host_name_in_certificate: The host name to use when validating the server certificate for + the connection. When not specified, the server name from the Data Source is used for + certificate validation, used by recommended version. Type: string (or Expression with + resultType string). + :vartype host_name_in_certificate: any + :ivar application_intent: The application workload type when connecting to a server, used by + recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression + with resultType string). + :vartype application_intent: any + :ivar connect_timeout: The length of time (in seconds) to wait for a connection to the server + before terminating the attempt and generating an error, used by recommended version. Type: + integer (or Expression with resultType integer). + :vartype connect_timeout: any + :ivar connect_retry_count: The number of re-connections attempted after identifying that there + was an idle connection failure, used by recommended version. This must be an integer between 0 + and 255. Type: integer (or Expression with resultType integer). + :vartype connect_retry_count: any + :ivar connect_retry_interval: The amount of time (in seconds) between each re-connection + attempt after identifying that there was an idle connection failure, used by recommended + version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType + integer). + :vartype connect_retry_interval: any + :ivar load_balance_timeout: The minimum time, in seconds, for the connection to live in the + connection pool before being destroyed, used by recommended version. Type: integer (or + Expression with resultType integer). + :vartype load_balance_timeout: any + :ivar command_timeout: The default wait time (in seconds) before terminating the attempt to + execute a command and generating an error, used by recommended version. Type: integer (or + Expression with resultType integer). + :vartype command_timeout: any + :ivar integrated_security: Indicate whether User ID and Password are specified in the + connection (when false) or whether the current Windows account credentials are used for + authentication (when true), used by recommended version. Type: Boolean (or Expression with + resultType boolean). + :vartype integrated_security: any + :ivar failover_partner: The name or address of the partner server to connect to if the primary + server is down, used by recommended version. Type: string (or Expression with resultType + string). + :vartype failover_partner: any + :ivar max_pool_size: The maximum number of connections allowed in the connection pool for this + specific connection string, used by recommended version. Type: integer (or Expression with + resultType integer). + :vartype max_pool_size: any + :ivar min_pool_size: The minimum number of connections allowed in the connection pool for this + specific connection string, used by recommended version. Type: integer (or Expression with + resultType integer). + :vartype min_pool_size: any + :ivar multiple_active_result_sets: When true, an application can maintain multiple active + result sets (MARS). When false, an application must process or cancel all result sets from one + batch before it can execute any other batch on that connection, used by recommended version. + Type: Boolean (or Expression with resultType boolean). + :vartype multiple_active_result_sets: any + :ivar multi_subnet_failover: If your application is connecting to an AlwaysOn availability + group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of + and connection to the (currently) active server, used by recommended version. Type: Boolean (or + Expression with resultType boolean). + :vartype multi_subnet_failover: any + :ivar packet_size: The size in bytes of the network packets used to communicate with an + instance of server, used by recommended version. Type: integer (or Expression with resultType + integer). + :vartype packet_size: any + :ivar pooling: Indicate whether the connection will be pooled or explicitly opened every time + that the connection is requested, used by recommended version. Type: Boolean (or Expression + with resultType boolean). + :vartype pooling: any + :ivar connection_string: The connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar authentication_type: The type used for authentication. Type: string. Known values are: + "SQL" and "Windows". + :vartype authentication_type: str or + ~azure.mgmt.datafactory.models.AmazonRdsForSqlAuthenticationType + :ivar user_name: The on-premises Windows authentication user name. Type: string (or Expression + with resultType string). + :vartype user_name: any + :ivar password: The on-premises Windows authentication password. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar always_encrypted_settings: Sql always encrypted properties. + :vartype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.""" + authentication_type: Optional[Union[str, "_models.AmazonRdsForSqlAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type used for authentication. Type: string. Known values are: \"SQL\" and \"Windows\".""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """The on-premises Windows authentication user name. Type: string (or Expression with resultType + string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The on-premises Windows authentication password.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = rest_field( + name="alwaysEncryptedSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Sql always encrypted properties.""" + + @overload + def __init__( + self, + *, + server: Optional[Any] = None, + database: Optional[Any] = None, + encrypt: Optional[Any] = None, + trust_server_certificate: Optional[Any] = None, + host_name_in_certificate: Optional[Any] = None, + application_intent: Optional[Any] = None, + connect_timeout: Optional[Any] = None, + connect_retry_count: Optional[Any] = None, + connect_retry_interval: Optional[Any] = None, + load_balance_timeout: Optional[Any] = None, + command_timeout: Optional[Any] = None, + integrated_security: Optional[Any] = None, + failover_partner: Optional[Any] = None, + max_pool_size: Optional[Any] = None, + min_pool_size: Optional[Any] = None, + multiple_active_result_sets: Optional[Any] = None, + multi_subnet_failover: Optional[Any] = None, + packet_size: Optional[Any] = None, + pooling: Optional[Any] = None, + connection_string: Optional[Any] = None, + authentication_type: Optional[Union[str, "_models.AmazonRdsForSqlAuthenticationType"]] = None, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AmazonRdsForSqlServerSource(TabularSource, discriminator="AmazonRdsForSqlServerSource"): + """A copy activity Amazon RDS for SQL Server source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar sql_reader_query: SQL reader query. Type: string (or Expression with resultType string). + :vartype sql_reader_query: any + :ivar sql_reader_stored_procedure_name: Name of the stored procedure for a SQL Database source. + This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with + resultType string). + :vartype sql_reader_stored_procedure_name: any + :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. + Example: "{Parameter1: {value: "1", type: "int"}}". + :vartype stored_procedure_parameters: any + :ivar isolation_level: Specifies the transaction locking behavior for the SQL source. Allowed + values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value + is ReadCommitted. Type: string (or Expression with resultType string). + :vartype isolation_level: any + :ivar produce_additional_types: Which additional types to produce. + :vartype produce_additional_types: any + :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. + Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". + :vartype partition_option: any + :ivar partition_settings: The settings that will be leveraged for Sql source partitioning. + :vartype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings + :ivar type: Copy source type. Required. Default value is "AmazonRdsForSqlServerSource". + :vartype type: str + """ + + sql_reader_query: Optional[Any] = rest_field( + name="sqlReaderQuery", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL reader query. Type: string (or Expression with resultType string).""" + sql_reader_stored_procedure_name: Optional[Any] = rest_field( + name="sqlReaderStoredProcedureName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the stored procedure for a SQL Database source. This cannot be used at the same time as + SqlReaderQuery. Type: string (or Expression with resultType string).""" + stored_procedure_parameters: Optional[Any] = rest_field( + name="storedProcedureParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """Value and type setting for stored procedure parameters. Example: \"{Parameter1: {value: \"1\", + type: \"int\"}}\".""" + isolation_level: Optional[Any] = rest_field( + name="isolationLevel", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the transaction locking behavior for the SQL source. Allowed values: + ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is + ReadCommitted. Type: string (or Expression with resultType string).""" + produce_additional_types: Optional[Any] = rest_field( + name="produceAdditionalTypes", visibility=["read", "create", "update", "delete", "query"] + ) + """Which additional types to produce.""" + partition_option: Optional[Any] = rest_field( + name="partitionOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The partition mechanism that will be used for Sql read in parallel. Possible values include: + \"None\", \"PhysicalPartitionsOfTable\", \"DynamicRange\".""" + partition_settings: Optional["_models.SqlPartitionSettings"] = rest_field( + name="partitionSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The settings that will be leveraged for Sql source partitioning.""" + type: Literal["AmazonRdsForSqlServerSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"AmazonRdsForSqlServerSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + sql_reader_query: Optional[Any] = None, + sql_reader_stored_procedure_name: Optional[Any] = None, + stored_procedure_parameters: Optional[Any] = None, + isolation_level: Optional[Any] = None, + produce_additional_types: Optional[Any] = None, + partition_option: Optional[Any] = None, + partition_settings: Optional["_models.SqlPartitionSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AmazonRdsForSqlServerSource" # type: ignore + + +class AmazonRdsForSqlServerTableDataset(Dataset, discriminator="AmazonRdsForSqlServerTable"): + """The Amazon RDS for SQL Server dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: The Amazon RDS for SQL Server dataset properties. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AmazonRdsForSqlServerTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "AmazonRdsForSqlServerTable". + :vartype type: str + """ + + type_properties: Optional["_models.AmazonRdsForSqlServerTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """The Amazon RDS for SQL Server dataset properties.""" + type: Literal["AmazonRdsForSqlServerTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"AmazonRdsForSqlServerTable\".""" + + __flattened_items = ["schema", "table"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.AmazonRdsForSqlServerTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AmazonRdsForSqlServerTableDatasetTypeProperties(_Model): # pylint: disable=name-too-long + """The Amazon RDS for SQL Server dataset properties. + + :ivar schema: The schema name of the SQL Server dataset. Type: string (or Expression with + resultType string). + :vartype schema: any + :ivar table: The table name of the SQL Server dataset. Type: string (or Expression with + resultType string). + :vartype table: any + """ + + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the SQL Server dataset. Type: string (or Expression with resultType string).""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the SQL Server dataset. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + schema: Optional[Any] = None, + table: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AmazonRedshiftLinkedService(LinkedService, discriminator="AmazonRedshift"): + """Linked service for Amazon Redshift. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Amazon Redshift linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AmazonRedshiftLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AmazonRedshift". + :vartype type: str + """ + + type_properties: "_models.AmazonRedshiftLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Amazon Redshift linked service properties. Required.""" + type: Literal["AmazonRedshift"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AmazonRedshift\".""" + + __flattened_items = ["server", "username", "password", "database", "port", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.AmazonRedshiftLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AmazonRedshiftLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Amazon Redshift linked service properties. + + :ivar server: The name of the Amazon Redshift server. Type: string (or Expression with + resultType string). Required. + :vartype server: any + :ivar username: The username of the Amazon Redshift source. Type: string (or Expression with + resultType string). + :vartype username: any + :ivar password: The password of the Amazon Redshift source. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar database: The database name of the Amazon Redshift source. Type: string (or Expression + with resultType string). Required. + :vartype database: any + :ivar port: The TCP port number that the Amazon Redshift server uses to listen for client + connections. The default value is 5439. Type: integer (or Expression with resultType integer). + :vartype port: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + server: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the Amazon Redshift server. Type: string (or Expression with resultType string). + Required.""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The username of the Amazon Redshift source. Type: string (or Expression with resultType + string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password of the Amazon Redshift source.""" + database: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The database name of the Amazon Redshift source. Type: string (or Expression with resultType + string). Required.""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The TCP port number that the Amazon Redshift server uses to listen for client connections. The + default value is 5439. Type: integer (or Expression with resultType integer).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + server: Any, + database: Any, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + port: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AmazonRedshiftSource(TabularSource, discriminator="AmazonRedshiftSource"): + """A copy activity source for Amazon Redshift Source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: Database query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar redshift_unload_settings: The Amazon S3 settings needed for the interim Amazon S3 when + copying from Amazon Redshift with unload. With this, data from Amazon Redshift source will be + unloaded into S3 first and then copied into the targeted sink from the interim S3. + :vartype redshift_unload_settings: ~azure.mgmt.datafactory.models.RedshiftUnloadSettings + :ivar type: Copy source type. Required. Default value is "AmazonRedshiftSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database query. Type: string (or Expression with resultType string).""" + redshift_unload_settings: Optional["_models.RedshiftUnloadSettings"] = rest_field( + name="redshiftUnloadSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The Amazon S3 settings needed for the interim Amazon S3 when copying from Amazon Redshift with + unload. With this, data from Amazon Redshift source will be unloaded into S3 first and then + copied into the targeted sink from the interim S3.""" + type: Literal["AmazonRedshiftSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"AmazonRedshiftSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + redshift_unload_settings: Optional["_models.RedshiftUnloadSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AmazonRedshiftSource" # type: ignore + + +class AmazonRedshiftTableDataset(Dataset, discriminator="AmazonRedshiftTable"): + """The Amazon Redshift table dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Amazon Redshift table dataset properties. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AmazonRedshiftTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "AmazonRedshiftTable". + :vartype type: str + """ + + type_properties: Optional["_models.AmazonRedshiftTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Amazon Redshift table dataset properties.""" + type: Literal["AmazonRedshiftTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"AmazonRedshiftTable\".""" + + __flattened_items = ["table_name", "table", "schema"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.AmazonRedshiftTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AmazonRedshiftTableDatasetTypeProperties(_Model): + """Amazon Redshift table dataset properties. + + :ivar table_name: This property will be retired. Please consider using schema + table + properties instead. + :vartype table_name: any + :ivar table: The Amazon Redshift table name. Type: string (or Expression with resultType + string). + :vartype table: any + :ivar schema: The Amazon Redshift schema name. Type: string (or Expression with resultType + string). + :vartype schema: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property will be retired. Please consider using schema + table properties instead.""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Amazon Redshift table name. Type: string (or Expression with resultType string).""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Amazon Redshift schema name. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + table: Optional[Any] = None, + schema: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AmazonS3CompatibleLinkedService(LinkedService, discriminator="AmazonS3Compatible"): + """Linked service for Amazon S3 Compatible. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Amazon S3 Compatible linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AmazonS3CompatibleLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AmazonS3Compatible". + :vartype type: str + """ + + type_properties: "_models.AmazonS3CompatibleLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Amazon S3 Compatible linked service properties. Required.""" + type: Literal["AmazonS3Compatible"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AmazonS3Compatible\".""" + + __flattened_items = [ + "access_key_id", + "secret_access_key", + "service_url", + "force_path_style", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AmazonS3CompatibleLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AmazonS3CompatibleLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Amazon S3 Compatible linked service properties. + + :ivar access_key_id: The access key identifier of the Amazon S3 Compatible Identity and Access + Management (IAM) user. Type: string (or Expression with resultType string). + :vartype access_key_id: any + :ivar secret_access_key: The secret access key of the Amazon S3 Compatible Identity and Access + Management (IAM) user. + :vartype secret_access_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_url: This value specifies the endpoint to access with the Amazon S3 Compatible + Connector. This is an optional property; change it only if you want to try a different service + endpoint or want to switch between https and http. Type: string (or Expression with resultType + string). + :vartype service_url: any + :ivar force_path_style: If true, use S3 path-style access instead of virtual hosted-style + access. Default value is false. Type: boolean (or Expression with resultType boolean). + :vartype force_path_style: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + access_key_id: Optional[Any] = rest_field( + name="accessKeyId", visibility=["read", "create", "update", "delete", "query"] + ) + """The access key identifier of the Amazon S3 Compatible Identity and Access Management (IAM) + user. Type: string (or Expression with resultType string).""" + secret_access_key: Optional["_models.SecretBase"] = rest_field( + name="secretAccessKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The secret access key of the Amazon S3 Compatible Identity and Access Management (IAM) user.""" + service_url: Optional[Any] = rest_field( + name="serviceUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """This value specifies the endpoint to access with the Amazon S3 Compatible Connector. This is an + optional property; change it only if you want to try a different service endpoint or want to + switch between https and http. Type: string (or Expression with resultType string).""" + force_path_style: Optional[Any] = rest_field( + name="forcePathStyle", visibility=["read", "create", "update", "delete", "query"] + ) + """If true, use S3 path-style access instead of virtual hosted-style access. Default value is + false. Type: boolean (or Expression with resultType boolean).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + access_key_id: Optional[Any] = None, + secret_access_key: Optional["_models.SecretBase"] = None, + service_url: Optional[Any] = None, + force_path_style: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatasetLocation(_Model): + """Dataset location. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + AmazonS3CompatibleLocation, AmazonS3Location, AzureBlobFSLocation, AzureBlobStorageLocation, + AzureDataLakeStoreLocation, AzureFileStorageLocation, FileServerLocation, FtpServerLocation, + GoogleCloudStorageLocation, HdfsLocation, HttpServerLocation, LakeHouseLocation, + OracleCloudStorageLocation, SftpLocation + + :ivar type: Type of dataset storage location. Required. Default value is None. + :vartype type: str + :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with + resultType string). + :vartype folder_path: any + :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType + string). + :vartype file_name: any + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """Type of dataset storage location. Required. Default value is None.""" + folder_path: Optional[Any] = rest_field( + name="folderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the folder path of dataset. Type: string (or Expression with resultType string).""" + file_name: Optional[Any] = rest_field(name="fileName", visibility=["read", "create", "update", "delete", "query"]) + """Specify the file name of dataset. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + type: str, + folder_path: Optional[Any] = None, + file_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AmazonS3CompatibleLocation(DatasetLocation, discriminator="AmazonS3CompatibleLocation"): + """The location of Amazon S3 Compatible dataset. + + :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with + resultType string). + :vartype folder_path: any + :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType + string). + :vartype file_name: any + :ivar bucket_name: Specify the bucketName of Amazon S3 Compatible. Type: string (or Expression + with resultType string). + :vartype bucket_name: any + :ivar version: Specify the version of Amazon S3 Compatible. Type: string (or Expression with + resultType string). + :vartype version: any + :ivar type: Type of dataset storage location. Required. Default value is + "AmazonS3CompatibleLocation". + :vartype type: str + """ + + bucket_name: Optional[Any] = rest_field( + name="bucketName", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the bucketName of Amazon S3 Compatible. Type: string (or Expression with resultType + string).""" + version: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specify the version of Amazon S3 Compatible. Type: string (or Expression with resultType + string).""" + type: Literal["AmazonS3CompatibleLocation"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage location. Required. Default value is \"AmazonS3CompatibleLocation\".""" + + @overload + def __init__( + self, + *, + folder_path: Optional[Any] = None, + file_name: Optional[Any] = None, + bucket_name: Optional[Any] = None, + version: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AmazonS3CompatibleLocation" # type: ignore + + +class StoreReadSettings(_Model): + """Connector read setting. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + AmazonS3CompatibleReadSettings, AmazonS3ReadSettings, AzureBlobFSReadSettings, + AzureBlobStorageReadSettings, AzureDataLakeStoreReadSettings, AzureFileStorageReadSettings, + FileServerReadSettings, FtpReadSettings, GoogleCloudStorageReadSettings, HdfsReadSettings, + HttpReadSettings, LakeHouseReadSettings, OracleCloudStorageReadSettings, SftpReadSettings + + :ivar type: The read setting type. Required. Default value is None. + :vartype type: str + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """The read setting type. Required. Default value is None.""" + max_concurrent_connections: Optional[Any] = rest_field( + name="maxConcurrentConnections", visibility=["read", "create", "update", "delete", "query"] + ) + """The maximum concurrent connection count for the source data store. Type: integer (or Expression + with resultType integer).""" + disable_metrics_collection: Optional[Any] = rest_field( + name="disableMetricsCollection", visibility=["read", "create", "update", "delete", "query"] + ) + """If true, disable data store metrics collection. Default is false. Type: boolean (or Expression + with resultType boolean).""" + + @overload + def __init__( + self, + *, + type: str, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AmazonS3CompatibleReadSettings(StoreReadSettings, discriminator="AmazonS3CompatibleReadSettings"): + """Amazon S3 Compatible read settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar recursive: If true, files under the folder path will be read recursively. Default is + true. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar wildcard_folder_path: Amazon S3 Compatible wildcardFolderPath. Type: string (or + Expression with resultType string). + :vartype wildcard_folder_path: any + :ivar wildcard_file_name: Amazon S3 Compatible wildcardFileName. Type: string (or Expression + with resultType string). + :vartype wildcard_file_name: any + :ivar prefix: The prefix filter for the S3 Compatible object name. Type: string (or Expression + with resultType string). + :vartype prefix: any + :ivar file_list_path: Point to a text file that lists each file (relative path to the path + configured in the dataset) that you want to copy. Type: string (or Expression with resultType + string). + :vartype file_list_path: any + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: any + :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: + string (or Expression with resultType string). + :vartype partition_root_path: any + :ivar delete_files_after_completion: Indicates whether the source files need to be deleted + after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + :vartype delete_files_after_completion: any + :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or + Expression with resultType string). + :vartype modified_datetime_start: any + :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression + with resultType string). + :vartype modified_datetime_end: any + :ivar type: The read setting type. Required. Default value is "AmazonS3CompatibleReadSettings". + :vartype type: str + """ + + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files under the folder path will be read recursively. Default is true. Type: boolean + (or Expression with resultType boolean).""" + wildcard_folder_path: Optional[Any] = rest_field( + name="wildcardFolderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Amazon S3 Compatible wildcardFolderPath. Type: string (or Expression with resultType string).""" + wildcard_file_name: Optional[Any] = rest_field( + name="wildcardFileName", visibility=["read", "create", "update", "delete", "query"] + ) + """Amazon S3 Compatible wildcardFileName. Type: string (or Expression with resultType string).""" + prefix: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The prefix filter for the S3 Compatible object name. Type: string (or Expression with + resultType string).""" + file_list_path: Optional[Any] = rest_field( + name="fileListPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Point to a text file that lists each file (relative path to the path configured in the dataset) + that you want to copy. Type: string (or Expression with resultType string).""" + enable_partition_discovery: Optional[Any] = rest_field( + name="enablePartitionDiscovery", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType + boolean).""" + partition_root_path: Optional[Any] = rest_field( + name="partitionRootPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the root path where partition discovery starts from. Type: string (or Expression with + resultType string).""" + delete_files_after_completion: Optional[Any] = rest_field( + name="deleteFilesAfterCompletion", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the source files need to be deleted after copy completion. Default is false. + Type: boolean (or Expression with resultType boolean).""" + modified_datetime_start: Optional[Any] = rest_field( + name="modifiedDatetimeStart", visibility=["read", "create", "update", "delete", "query"] + ) + """The start of file's modified datetime. Type: string (or Expression with resultType string).""" + modified_datetime_end: Optional[Any] = rest_field( + name="modifiedDatetimeEnd", visibility=["read", "create", "update", "delete", "query"] + ) + """The end of file's modified datetime. Type: string (or Expression with resultType string).""" + type: Literal["AmazonS3CompatibleReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"AmazonS3CompatibleReadSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + recursive: Optional[Any] = None, + wildcard_folder_path: Optional[Any] = None, + wildcard_file_name: Optional[Any] = None, + prefix: Optional[Any] = None, + file_list_path: Optional[Any] = None, + enable_partition_discovery: Optional[Any] = None, + partition_root_path: Optional[Any] = None, + delete_files_after_completion: Optional[Any] = None, + modified_datetime_start: Optional[Any] = None, + modified_datetime_end: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AmazonS3CompatibleReadSettings" # type: ignore + + +class AmazonS3Dataset(Dataset, discriminator="AmazonS3Object"): + """A single Amazon Simple Storage Service (S3) object or a set of S3 objects. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Amazon S3 dataset properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AmazonS3DatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "AmazonS3Object". + :vartype type: str + """ + + type_properties: "_models.AmazonS3DatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Amazon S3 dataset properties. Required.""" + type: Literal["AmazonS3Object"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"AmazonS3Object\".""" + + __flattened_items = [ + "bucket_name", + "key", + "prefix", + "version", + "modified_datetime_start", + "modified_datetime_end", + "format", + "compression", + ] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.AmazonS3DatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AmazonS3DatasetTypeProperties(_Model): + """Amazon S3 dataset properties. + + :ivar bucket_name: The name of the Amazon S3 bucket. Type: string (or Expression with + resultType string). Required. + :vartype bucket_name: any + :ivar key: The key of the Amazon S3 object. Type: string (or Expression with resultType + string). + :vartype key: any + :ivar prefix: The prefix filter for the S3 object name. Type: string (or Expression with + resultType string). + :vartype prefix: any + :ivar version: The version for the S3 object. Type: string (or Expression with resultType + string). + :vartype version: any + :ivar modified_datetime_start: The start of S3 object's modified datetime. Type: string (or + Expression with resultType string). + :vartype modified_datetime_start: any + :ivar modified_datetime_end: The end of S3 object's modified datetime. Type: string (or + Expression with resultType string). + :vartype modified_datetime_end: any + :ivar format: The format of files. + :vartype format: ~azure.mgmt.datafactory.models.DatasetStorageFormat + :ivar compression: The data compression method used for the Amazon S3 object. + :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression + """ + + bucket_name: Any = rest_field(name="bucketName", visibility=["read", "create", "update", "delete", "query"]) + """The name of the Amazon S3 bucket. Type: string (or Expression with resultType string). + Required.""" + key: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The key of the Amazon S3 object. Type: string (or Expression with resultType string).""" + prefix: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The prefix filter for the S3 object name. Type: string (or Expression with resultType string).""" + version: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The version for the S3 object. Type: string (or Expression with resultType string).""" + modified_datetime_start: Optional[Any] = rest_field( + name="modifiedDatetimeStart", visibility=["read", "create", "update", "delete", "query"] + ) + """The start of S3 object's modified datetime. Type: string (or Expression with resultType + string).""" + modified_datetime_end: Optional[Any] = rest_field( + name="modifiedDatetimeEnd", visibility=["read", "create", "update", "delete", "query"] + ) + """The end of S3 object's modified datetime. Type: string (or Expression with resultType string).""" + format: Optional["_models.DatasetStorageFormat"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The format of files.""" + compression: Optional["_models.DatasetCompression"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The data compression method used for the Amazon S3 object.""" + + @overload + def __init__( + self, + *, + bucket_name: Any, + key: Optional[Any] = None, + prefix: Optional[Any] = None, + version: Optional[Any] = None, + modified_datetime_start: Optional[Any] = None, + modified_datetime_end: Optional[Any] = None, + format: Optional["_models.DatasetStorageFormat"] = None, + compression: Optional["_models.DatasetCompression"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AmazonS3LinkedService(LinkedService, discriminator="AmazonS3"): + """Linked service for Amazon S3. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Amazon S3 linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AmazonS3LinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AmazonS3". + :vartype type: str + """ + + type_properties: "_models.AmazonS3LinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Amazon S3 linked service properties. Required.""" + type: Literal["AmazonS3"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AmazonS3\".""" + + __flattened_items = [ + "authentication_type", + "access_key_id", + "secret_access_key", + "service_url", + "session_token", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AmazonS3LinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AmazonS3LinkedServiceTypeProperties(_Model): + """Amazon S3 linked service properties. + + :ivar authentication_type: The authentication type of S3. Allowed value: AccessKey (default) or + TemporarySecurityCredentials. Type: string (or Expression with resultType string). + :vartype authentication_type: any + :ivar access_key_id: The access key identifier of the Amazon S3 Identity and Access Management + (IAM) user. Type: string (or Expression with resultType string). + :vartype access_key_id: any + :ivar secret_access_key: The secret access key of the Amazon S3 Identity and Access Management + (IAM) user. + :vartype secret_access_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_url: This value specifies the endpoint to access with the S3 Connector. This is + an optional property; change it only if you want to try a different service endpoint or want to + switch between https and http. Type: string (or Expression with resultType string). + :vartype service_url: any + :ivar session_token: The session token for the S3 temporary security credential. + :vartype session_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + authentication_type: Optional[Any] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type of S3. Allowed value: AccessKey (default) or + TemporarySecurityCredentials. Type: string (or Expression with resultType string).""" + access_key_id: Optional[Any] = rest_field( + name="accessKeyId", visibility=["read", "create", "update", "delete", "query"] + ) + """The access key identifier of the Amazon S3 Identity and Access Management (IAM) user. Type: + string (or Expression with resultType string).""" + secret_access_key: Optional["_models.SecretBase"] = rest_field( + name="secretAccessKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The secret access key of the Amazon S3 Identity and Access Management (IAM) user.""" + service_url: Optional[Any] = rest_field( + name="serviceUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """This value specifies the endpoint to access with the S3 Connector. This is an optional + property; change it only if you want to try a different service endpoint or want to switch + between https and http. Type: string (or Expression with resultType string).""" + session_token: Optional["_models.SecretBase"] = rest_field( + name="sessionToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The session token for the S3 temporary security credential.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + authentication_type: Optional[Any] = None, + access_key_id: Optional[Any] = None, + secret_access_key: Optional["_models.SecretBase"] = None, + service_url: Optional[Any] = None, + session_token: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AmazonS3Location(DatasetLocation, discriminator="AmazonS3Location"): + """The location of amazon S3 dataset. + + :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with + resultType string). + :vartype folder_path: any + :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType + string). + :vartype file_name: any + :ivar bucket_name: Specify the bucketName of amazon S3. Type: string (or Expression with + resultType string). + :vartype bucket_name: any + :ivar version: Specify the version of amazon S3. Type: string (or Expression with resultType + string). + :vartype version: any + :ivar type: Type of dataset storage location. Required. Default value is "AmazonS3Location". + :vartype type: str + """ + + bucket_name: Optional[Any] = rest_field( + name="bucketName", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the bucketName of amazon S3. Type: string (or Expression with resultType string).""" + version: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specify the version of amazon S3. Type: string (or Expression with resultType string).""" + type: Literal["AmazonS3Location"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage location. Required. Default value is \"AmazonS3Location\".""" + + @overload + def __init__( + self, + *, + folder_path: Optional[Any] = None, + file_name: Optional[Any] = None, + bucket_name: Optional[Any] = None, + version: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AmazonS3Location" # type: ignore + + +class AmazonS3ReadSettings(StoreReadSettings, discriminator="AmazonS3ReadSettings"): + """Amazon S3 read settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar recursive: If true, files under the folder path will be read recursively. Default is + true. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar wildcard_folder_path: AmazonS3 wildcardFolderPath. Type: string (or Expression with + resultType string). + :vartype wildcard_folder_path: any + :ivar wildcard_file_name: AmazonS3 wildcardFileName. Type: string (or Expression with + resultType string). + :vartype wildcard_file_name: any + :ivar prefix: The prefix filter for the S3 object name. Type: string (or Expression with + resultType string). + :vartype prefix: any + :ivar file_list_path: Point to a text file that lists each file (relative path to the path + configured in the dataset) that you want to copy. Type: string (or Expression with resultType + string). + :vartype file_list_path: any + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: any + :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: + string (or Expression with resultType string). + :vartype partition_root_path: any + :ivar delete_files_after_completion: Indicates whether the source files need to be deleted + after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + :vartype delete_files_after_completion: any + :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or + Expression with resultType string). + :vartype modified_datetime_start: any + :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression + with resultType string). + :vartype modified_datetime_end: any + :ivar type: The read setting type. Required. Default value is "AmazonS3ReadSettings". + :vartype type: str + """ + + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files under the folder path will be read recursively. Default is true. Type: boolean + (or Expression with resultType boolean).""" + wildcard_folder_path: Optional[Any] = rest_field( + name="wildcardFolderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """AmazonS3 wildcardFolderPath. Type: string (or Expression with resultType string).""" + wildcard_file_name: Optional[Any] = rest_field( + name="wildcardFileName", visibility=["read", "create", "update", "delete", "query"] + ) + """AmazonS3 wildcardFileName. Type: string (or Expression with resultType string).""" + prefix: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The prefix filter for the S3 object name. Type: string (or Expression with resultType string).""" + file_list_path: Optional[Any] = rest_field( + name="fileListPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Point to a text file that lists each file (relative path to the path configured in the dataset) + that you want to copy. Type: string (or Expression with resultType string).""" + enable_partition_discovery: Optional[Any] = rest_field( + name="enablePartitionDiscovery", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType + boolean).""" + partition_root_path: Optional[Any] = rest_field( + name="partitionRootPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the root path where partition discovery starts from. Type: string (or Expression with + resultType string).""" + delete_files_after_completion: Optional[Any] = rest_field( + name="deleteFilesAfterCompletion", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the source files need to be deleted after copy completion. Default is false. + Type: boolean (or Expression with resultType boolean).""" + modified_datetime_start: Optional[Any] = rest_field( + name="modifiedDatetimeStart", visibility=["read", "create", "update", "delete", "query"] + ) + """The start of file's modified datetime. Type: string (or Expression with resultType string).""" + modified_datetime_end: Optional[Any] = rest_field( + name="modifiedDatetimeEnd", visibility=["read", "create", "update", "delete", "query"] + ) + """The end of file's modified datetime. Type: string (or Expression with resultType string).""" + type: Literal["AmazonS3ReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"AmazonS3ReadSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + recursive: Optional[Any] = None, + wildcard_folder_path: Optional[Any] = None, + wildcard_file_name: Optional[Any] = None, + prefix: Optional[Any] = None, + file_list_path: Optional[Any] = None, + enable_partition_discovery: Optional[Any] = None, + partition_root_path: Optional[Any] = None, + delete_files_after_completion: Optional[Any] = None, + modified_datetime_start: Optional[Any] = None, + modified_datetime_end: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AmazonS3ReadSettings" # type: ignore + + +class ControlActivity(Activity, discriminator="Container"): + """Base class for all control activities like IfCondition, ForEach , Until. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + AppendVariableActivity, ExecutePipelineActivity, FailActivity, FilterActivity, ForEachActivity, + IfConditionActivity, SetVariableActivity, SwitchActivity, UntilActivity, ValidationActivity, + WaitActivity, WebHookActivity + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar type: Required. Default value is "Container". + :vartype type: str + """ + + __mapping__: dict[str, _Model] = {} + type: Literal["Container"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Required. Default value is \"Container\".""" + + @overload + def __init__( + self, + *, + name: str, + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "Container" # type: ignore + + +class AppendVariableActivity(ControlActivity, discriminator="AppendVariable"): + """Append value for a Variable of type Array. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar type_properties: Append Variable activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AppendVariableActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "AppendVariable". + :vartype type: str + """ + + type_properties: "_models.AppendVariableActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Append Variable activity properties. Required.""" + type: Literal["AppendVariable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"AppendVariable\".""" + + __flattened_items = ["variable_name", "value"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.AppendVariableActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AppendVariableActivityTypeProperties(_Model): + """AppendVariable activity properties. + + :ivar variable_name: Name of the variable whose value needs to be appended to. + :vartype variable_name: str + :ivar value: Value to be appended. Type: could be a static value matching type of the variable + item or Expression with resultType matching type of the variable item. + :vartype value: any + """ + + variable_name: Optional[str] = rest_field( + name="variableName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the variable whose value needs to be appended to.""" + value: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Value to be appended. Type: could be a static value matching type of the variable item or + Expression with resultType matching type of the variable item.""" + + @overload + def __init__( + self, + *, + variable_name: Optional[str] = None, + value: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AppFiguresLinkedService(LinkedService, discriminator="AppFigures"): + """Linked service for AppFigures. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: AppFigures linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AppFiguresLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AppFigures". + :vartype type: str + """ + + type_properties: "_models.AppFiguresLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """AppFigures linked service properties. Required.""" + type: Literal["AppFigures"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AppFigures\".""" + + __flattened_items = ["user_name", "password", "client_key"] + + @overload + def __init__( + self, + *, + type_properties: "_models.AppFiguresLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AppFiguresLinkedServiceTypeProperties(_Model): + """AppFigures linked service type properties. + + :ivar user_name: The username of the Appfigures source. Type: string (or Expression with + resultType string). Required. + :vartype user_name: any + :ivar password: The password of the AppFigures source. Required. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar client_key: The client key for the AppFigures source. Required. + :vartype client_key: ~azure.mgmt.datafactory.models.SecretBase + """ + + user_name: Any = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """The username of the Appfigures source. Type: string (or Expression with resultType string). + Required.""" + password: "_models.SecretBase" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password of the AppFigures source. Required.""" + client_key: "_models.SecretBase" = rest_field( + name="clientKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The client key for the AppFigures source. Required.""" + + @overload + def __init__( + self, + *, + user_name: Any, + password: "_models.SecretBase", + client_key: "_models.SecretBase", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ArmIdWrapper(_Model): + """A wrapper for an ARM resource id. + + :ivar id: + :vartype id: str + """ + + id: Optional[str] = rest_field(visibility=["read"]) + + +class AsanaLinkedService(LinkedService, discriminator="Asana"): + """Linked service for Asana. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Asana linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AsanaLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Asana". + :vartype type: str + """ + + type_properties: "_models.AsanaLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Asana linked service properties. Required.""" + type: Literal["Asana"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Asana\".""" + + __flattened_items = ["api_token", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.AsanaLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AsanaLinkedServiceTypeProperties(_Model): + """Asana linked service type properties. + + :ivar api_token: The api token for the Asana source. Required. + :vartype api_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + api_token: "_models.SecretBase" = rest_field( + name="apiToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The api token for the Asana source. Required.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + api_token: "_models.SecretBase", + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AvroDataset(Dataset, discriminator="Avro"): + """Avro dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Avro dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.AvroDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "Avro". + :vartype type: str + """ + + type_properties: Optional["_models.AvroDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Avro dataset properties.""" + type: Literal["Avro"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"Avro\".""" + + __flattened_items = ["location", "avro_compression_codec", "avro_compression_level"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.AvroDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AvroDatasetTypeProperties(_Model): + """Avro dataset properties. + + :ivar location: The location of the avro storage. Required. + :vartype location: ~azure.mgmt.datafactory.models.DatasetLocation + :ivar avro_compression_codec: The data avroCompressionCodec. Type: string (or Expression with + resultType string). + :vartype avro_compression_codec: any + :ivar avro_compression_level: + :vartype avro_compression_level: int + """ + + location: "_models.DatasetLocation" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The location of the avro storage. Required.""" + avro_compression_codec: Optional[Any] = rest_field( + name="avroCompressionCodec", visibility=["read", "create", "update", "delete", "query"] + ) + """The data avroCompressionCodec. Type: string (or Expression with resultType string).""" + avro_compression_level: Optional[int] = rest_field( + name="avroCompressionLevel", visibility=["read", "create", "update", "delete", "query"] + ) + + @overload + def __init__( + self, + *, + location: "_models.DatasetLocation", + avro_compression_codec: Optional[Any] = None, + avro_compression_level: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatasetStorageFormat(_Model): + """The format definition of a storage. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + AvroFormat, JsonFormat, OrcFormat, ParquetFormat, TextFormat + + :ivar type: Type of dataset storage format. Required. Default value is None. + :vartype type: str + :ivar serializer: Serializer. Type: string (or Expression with resultType string). + :vartype serializer: any + :ivar deserializer: Deserializer. Type: string (or Expression with resultType string). + :vartype deserializer: any + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """Type of dataset storage format. Required. Default value is None.""" + serializer: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Serializer. Type: string (or Expression with resultType string).""" + deserializer: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Deserializer. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + type: str, + serializer: Optional[Any] = None, + deserializer: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AvroFormat(DatasetStorageFormat, discriminator="AvroFormat"): + """The data stored in Avro format. + + :ivar serializer: Serializer. Type: string (or Expression with resultType string). + :vartype serializer: any + :ivar deserializer: Deserializer. Type: string (or Expression with resultType string). + :vartype deserializer: any + :ivar type: Type of dataset storage format. Required. Default value is "AvroFormat". + :vartype type: str + """ + + type: Literal["AvroFormat"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage format. Required. Default value is \"AvroFormat\".""" + + @overload + def __init__( + self, + *, + serializer: Optional[Any] = None, + deserializer: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AvroFormat" # type: ignore + + +class CopySink(_Model): + """A copy activity sink. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + AvroSink, AzureBlobFSSink, AzureDataExplorerSink, AzureDataLakeStoreSink, + AzureDatabricksDeltaLakeSink, AzureMySqlSink, AzurePostgreSqlSink, AzureQueueSink, + AzureSearchIndexSink, AzureSqlSink, AzureTableSink, BinarySink, BlobSink, + CommonDataServiceForAppsSink, CosmosDbMongoDbApiSink, CosmosDbSqlApiSink, DelimitedTextSink, + DocumentDbCollectionSink, DynamicsCrmSink, DynamicsSink, FileSystemSink, IcebergSink, + InformixSink, JsonSink, LakeHouseTableSink, MicrosoftAccessSink, MongoDbAtlasSink, + MongoDbV2Sink, OdbcSink, OracleSink, OrcSink, ParquetSink, RestSink, + SalesforceServiceCloudSink, SalesforceServiceCloudV2Sink, SalesforceSink, SalesforceV2Sink, + SapCloudForCustomerSink, SnowflakeSink, SnowflakeV2Sink, SqlDWSink, SqlMISink, SqlServerSink, + SqlSink, TeradataSink, WarehouseSink + + :ivar type: Copy sink type. Required. Default value is None. + :vartype type: str + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """Copy sink type. Required. Default value is None.""" + write_batch_size: Optional[Any] = rest_field( + name="writeBatchSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Write batch size. Type: integer (or Expression with resultType integer), minimum: 0.""" + write_batch_timeout: Optional[Any] = rest_field( + name="writeBatchTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """Write batch timeout. Type: string (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + sink_retry_count: Optional[Any] = rest_field( + name="sinkRetryCount", visibility=["read", "create", "update", "delete", "query"] + ) + """Sink retry count. Type: integer (or Expression with resultType integer).""" + sink_retry_wait: Optional[Any] = rest_field( + name="sinkRetryWait", visibility=["read", "create", "update", "delete", "query"] + ) + """Sink retry wait. Type: string (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + max_concurrent_connections: Optional[Any] = rest_field( + name="maxConcurrentConnections", visibility=["read", "create", "update", "delete", "query"] + ) + """The maximum concurrent connection count for the sink data store. Type: integer (or Expression + with resultType integer).""" + disable_metrics_collection: Optional[Any] = rest_field( + name="disableMetricsCollection", visibility=["read", "create", "update", "delete", "query"] + ) + """If true, disable data store metrics collection. Default is false. Type: boolean (or Expression + with resultType boolean).""" + + @overload + def __init__( + self, + *, + type: str, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AvroSink(CopySink, discriminator="AvroSink"): + """A copy activity Avro sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar store_settings: Avro store settings. + :vartype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings + :ivar format_settings: Avro format settings. + :vartype format_settings: ~azure.mgmt.datafactory.models.AvroWriteSettings + :ivar type: Copy sink type. Required. Default value is "AvroSink". + :vartype type: str + """ + + store_settings: Optional["_models.StoreWriteSettings"] = rest_field( + name="storeSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Avro store settings.""" + format_settings: Optional["_models.AvroWriteSettings"] = rest_field( + name="formatSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Avro format settings.""" + type: Literal["AvroSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"AvroSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + store_settings: Optional["_models.StoreWriteSettings"] = None, + format_settings: Optional["_models.AvroWriteSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AvroSink" # type: ignore + + +class AvroSource(CopySource, discriminator="AvroSource"): + """A copy activity Avro source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar store_settings: Avro store settings. + :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "AvroSource". + :vartype type: str + """ + + store_settings: Optional["_models.StoreReadSettings"] = rest_field( + name="storeSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Avro store settings.""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["AvroSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"AvroSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + store_settings: Optional["_models.StoreReadSettings"] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AvroSource" # type: ignore + + +class FormatWriteSettings(_Model): + """Format write settings. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + AvroWriteSettings, DelimitedTextWriteSettings, IcebergWriteSettings, JsonWriteSettings, + OrcWriteSettings, ParquetWriteSettings + + :ivar type: The write setting type. Required. Default value is None. + :vartype type: str + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """The write setting type. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AvroWriteSettings(FormatWriteSettings, discriminator="AvroWriteSettings"): + """Avro write settings. + + :ivar record_name: Top level record name in write result, which is required in AVRO spec. + :vartype record_name: str + :ivar record_namespace: Record namespace in the write result. + :vartype record_namespace: str + :ivar max_rows_per_file: Limit the written file's row count to be smaller than or equal to the + specified count. Type: integer (or Expression with resultType integer). + :vartype max_rows_per_file: any + :ivar file_name_prefix: Specifies the file name pattern + _. when copy from non-file based store without + partitionOptions. Type: string (or Expression with resultType string). + :vartype file_name_prefix: any + :ivar type: The write setting type. Required. Default value is "AvroWriteSettings". + :vartype type: str + """ + + record_name: Optional[str] = rest_field( + name="recordName", visibility=["read", "create", "update", "delete", "query"] + ) + """Top level record name in write result, which is required in AVRO spec.""" + record_namespace: Optional[str] = rest_field( + name="recordNamespace", visibility=["read", "create", "update", "delete", "query"] + ) + """Record namespace in the write result.""" + max_rows_per_file: Optional[Any] = rest_field( + name="maxRowsPerFile", visibility=["read", "create", "update", "delete", "query"] + ) + """Limit the written file's row count to be smaller than or equal to the specified count. Type: + integer (or Expression with resultType integer).""" + file_name_prefix: Optional[Any] = rest_field( + name="fileNamePrefix", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the file name pattern _. when copy from + non-file based store without partitionOptions. Type: string (or Expression with resultType + string).""" + type: Literal["AvroWriteSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The write setting type. Required. Default value is \"AvroWriteSettings\".""" + + @overload + def __init__( + self, + *, + record_name: Optional[str] = None, + record_namespace: Optional[str] = None, + max_rows_per_file: Optional[Any] = None, + file_name_prefix: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AvroWriteSettings" # type: ignore + + +class CustomSetupBase(_Model): + """The base definition of the custom setup. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + AzPowerShellSetup, CmdkeySetup, ComponentSetup, EnvironmentVariableSetup + + :ivar type: The type of custom setup. Required. Default value is None. + :vartype type: str + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """The type of custom setup. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzPowerShellSetup(CustomSetupBase, discriminator="AzPowerShellSetup"): + """The express custom setup of installing Azure PowerShell. + + :ivar type_properties: Install Azure PowerShell type properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AzPowerShellSetupTypeProperties + :ivar type: The type of custom setup. Required. Default value is "AzPowerShellSetup". + :vartype type: str + """ + + type_properties: "_models.AzPowerShellSetupTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Install Azure PowerShell type properties. Required.""" + type: Literal["AzPowerShellSetup"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The type of custom setup. Required. Default value is \"AzPowerShellSetup\".""" + + __flattened_items = ["version"] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzPowerShellSetupTypeProperties", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzPowerShellSetupTypeProperties(_Model): + """Installation of Azure PowerShell type properties. + + :ivar version: The required version of Azure PowerShell to install. Required. + :vartype version: str + """ + + version: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The required version of Azure PowerShell to install. Required.""" + + @overload + def __init__( + self, + *, + version: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureBatchLinkedService(LinkedService, discriminator="AzureBatch"): + """Azure Batch linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure Batch linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AzureBatchLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureBatch". + :vartype type: str + """ + + type_properties: "_models.AzureBatchLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Batch linked service properties. Required.""" + type: Literal["AzureBatch"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureBatch\".""" + + __flattened_items = [ + "account_name", + "access_key", + "batch_uri", + "pool_name", + "linked_service_name", + "encrypted_credential", + "credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureBatchLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureBatchLinkedServiceTypeProperties(_Model): + """Azure Batch linked service properties. + + :ivar account_name: The Azure Batch account name. Type: string (or Expression with resultType + string). Required. + :vartype account_name: any + :ivar access_key: The Azure Batch account access key. + :vartype access_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar batch_uri: The Azure Batch URI. Type: string (or Expression with resultType string). + Required. + :vartype batch_uri: any + :ivar pool_name: The Azure Batch pool name. Type: string (or Expression with resultType + string). Required. + :vartype pool_name: any + :ivar linked_service_name: The Azure Storage linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + account_name: Any = rest_field(name="accountName", visibility=["read", "create", "update", "delete", "query"]) + """The Azure Batch account name. Type: string (or Expression with resultType string). Required.""" + access_key: Optional["_models.SecretBase"] = rest_field( + name="accessKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure Batch account access key.""" + batch_uri: Any = rest_field(name="batchUri", visibility=["read", "create", "update", "delete", "query"]) + """The Azure Batch URI. Type: string (or Expression with resultType string). Required.""" + pool_name: Any = rest_field(name="poolName", visibility=["read", "create", "update", "delete", "query"]) + """The Azure Batch pool name. Type: string (or Expression with resultType string). Required.""" + linked_service_name: "_models.LinkedServiceReference" = rest_field( + name="linkedServiceName", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure Storage linked service reference. Required.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( + self, + *, + account_name: Any, + batch_uri: Any, + pool_name: Any, + linked_service_name: "_models.LinkedServiceReference", + access_key: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureBlobDataset(Dataset, discriminator="AzureBlob"): + """The Azure Blob storage. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Azure Blob dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.AzureBlobDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "AzureBlob". + :vartype type: str + """ + + type_properties: Optional["_models.AzureBlobDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Blob dataset properties.""" + type: Literal["AzureBlob"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"AzureBlob\".""" + + __flattened_items = [ + "folder_path", + "table_root_location", + "file_name", + "modified_datetime_start", + "modified_datetime_end", + "format", + "compression", + ] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.AzureBlobDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureBlobDatasetTypeProperties(_Model): + """Azure Blob dataset properties. + + :ivar folder_path: The path of the Azure Blob storage. Type: string (or Expression with + resultType string). + :vartype folder_path: any + :ivar table_root_location: The root of blob path. Type: string (or Expression with resultType + string). + :vartype table_root_location: any + :ivar file_name: The name of the Azure Blob. Type: string (or Expression with resultType + string). + :vartype file_name: any + :ivar modified_datetime_start: The start of Azure Blob's modified datetime. Type: string (or + Expression with resultType string). + :vartype modified_datetime_start: any + :ivar modified_datetime_end: The end of Azure Blob's modified datetime. Type: string (or + Expression with resultType string). + :vartype modified_datetime_end: any + :ivar format: The format of the Azure Blob storage. + :vartype format: ~azure.mgmt.datafactory.models.DatasetStorageFormat + :ivar compression: The data compression method used for the blob storage. + :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression + """ + + folder_path: Optional[Any] = rest_field( + name="folderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """The path of the Azure Blob storage. Type: string (or Expression with resultType string).""" + table_root_location: Optional[Any] = rest_field( + name="tableRootLocation", visibility=["read", "create", "update", "delete", "query"] + ) + """The root of blob path. Type: string (or Expression with resultType string).""" + file_name: Optional[Any] = rest_field(name="fileName", visibility=["read", "create", "update", "delete", "query"]) + """The name of the Azure Blob. Type: string (or Expression with resultType string).""" + modified_datetime_start: Optional[Any] = rest_field( + name="modifiedDatetimeStart", visibility=["read", "create", "update", "delete", "query"] + ) + """The start of Azure Blob's modified datetime. Type: string (or Expression with resultType + string).""" + modified_datetime_end: Optional[Any] = rest_field( + name="modifiedDatetimeEnd", visibility=["read", "create", "update", "delete", "query"] + ) + """The end of Azure Blob's modified datetime. Type: string (or Expression with resultType string).""" + format: Optional["_models.DatasetStorageFormat"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The format of the Azure Blob storage.""" + compression: Optional["_models.DatasetCompression"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The data compression method used for the blob storage.""" + + @overload + def __init__( + self, + *, + folder_path: Optional[Any] = None, + table_root_location: Optional[Any] = None, + file_name: Optional[Any] = None, + modified_datetime_start: Optional[Any] = None, + modified_datetime_end: Optional[Any] = None, + format: Optional["_models.DatasetStorageFormat"] = None, + compression: Optional["_models.DatasetCompression"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureBlobFSDataset(Dataset, discriminator="AzureBlobFSFile"): + """The Azure Data Lake Storage Gen2 storage. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Azure Data Lake Storage Gen2 dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.AzureBlobFSDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "AzureBlobFSFile". + :vartype type: str + """ + + type_properties: Optional["_models.AzureBlobFSDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Data Lake Storage Gen2 dataset properties.""" + type: Literal["AzureBlobFSFile"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"AzureBlobFSFile\".""" + + __flattened_items = ["folder_path", "file_name", "format", "compression"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.AzureBlobFSDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureBlobFSDatasetTypeProperties(_Model): + """Azure Data Lake Storage Gen2 dataset properties. + + :ivar folder_path: The path of the Azure Data Lake Storage Gen2 storage. Type: string (or + Expression with resultType string). + :vartype folder_path: any + :ivar file_name: The name of the Azure Data Lake Storage Gen2. Type: string (or Expression with + resultType string). + :vartype file_name: any + :ivar format: The format of the Azure Data Lake Storage Gen2 storage. + :vartype format: ~azure.mgmt.datafactory.models.DatasetStorageFormat + :ivar compression: The data compression method used for the blob storage. + :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression + """ + + folder_path: Optional[Any] = rest_field( + name="folderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """The path of the Azure Data Lake Storage Gen2 storage. Type: string (or Expression with + resultType string).""" + file_name: Optional[Any] = rest_field(name="fileName", visibility=["read", "create", "update", "delete", "query"]) + """The name of the Azure Data Lake Storage Gen2. Type: string (or Expression with resultType + string).""" + format: Optional["_models.DatasetStorageFormat"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The format of the Azure Data Lake Storage Gen2 storage.""" + compression: Optional["_models.DatasetCompression"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The data compression method used for the blob storage.""" + + @overload + def __init__( + self, + *, + folder_path: Optional[Any] = None, + file_name: Optional[Any] = None, + format: Optional["_models.DatasetStorageFormat"] = None, + compression: Optional["_models.DatasetCompression"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureBlobFSLinkedService(LinkedService, discriminator="AzureBlobFS"): + """Azure Data Lake Storage Gen2 linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure Data Lake Storage Gen2 linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AzureBlobFSLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureBlobFS". + :vartype type: str + """ + + type_properties: "_models.AzureBlobFSLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Data Lake Storage Gen2 linked service properties. Required.""" + type: Literal["AzureBlobFS"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureBlobFS\".""" + + __flattened_items = [ + "url", + "account_key", + "service_principal_id", + "service_principal_key", + "tenant", + "azure_cloud_type", + "encrypted_credential", + "credential", + "service_principal_credential_type", + "service_principal_credential", + "sas_uri", + "sas_token", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureBlobFSLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureBlobFSLinkedServiceTypeProperties(_Model): + """Azure Data Lake Storage Gen2 linked service properties. + + :ivar url: Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression + with resultType string). + :vartype url: any + :ivar account_key: Account key for the Azure Data Lake Storage Gen2 service. Type: string (or + Expression with resultType string). + :vartype account_key: any + :ivar service_principal_id: The ID of the application used to authenticate against the Azure + Data Lake Storage Gen2 account. Type: string (or Expression with resultType string). + :vartype service_principal_id: any + :ivar service_principal_key: The Key of the application used to authenticate against the Azure + Data Lake Storage Gen2 account. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string + (or Expression with resultType string). + :vartype tenant: any + :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed + values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data + factory regions’ cloud type. Type: string (or Expression with resultType string). + :vartype azure_cloud_type: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + :ivar service_principal_credential_type: The service principal credential type to use in + Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' + for certificate. Type: string (or Expression with resultType string). + :vartype service_principal_credential_type: any + :ivar service_principal_credential: The credential of the service principal object in Azure + Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', + servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If + servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only + be AzureKeyVaultSecretReference. + :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase + :ivar sas_uri: SAS URI of the Azure Data Lake Storage Gen2 service. Type: string, SecureString + or AzureKeyVaultSecretReference. + :vartype sas_uri: any + :ivar sas_token: The Azure key vault secret reference of sasToken in sas uri. + :vartype sas_token: ~azure.mgmt.datafactory.models.SecretBase + """ + + url: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with + resultType string).""" + account_key: Optional[Any] = rest_field( + name="accountKey", visibility=["read", "create", "update", "delete", "query"] + ) + """Account key for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with + resultType string).""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of the application used to authenticate against the Azure Data Lake Storage Gen2 + account. Type: string (or Expression with resultType string).""" + service_principal_key: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The Key of the application used to authenticate against the Azure Data Lake Storage Gen2 + account.""" + tenant: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name or ID of the tenant to which the service principal belongs. Type: string (or + Expression with resultType string).""" + azure_cloud_type: Optional[Any] = rest_field( + name="azureCloudType", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, + AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud + type. Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + service_principal_credential_type: Optional[Any] = rest_field( + name="servicePrincipalCredentialType", visibility=["read", "create", "update", "delete", "query"] + ) + """The service principal credential type to use in Server-To-Server authentication. + 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + Expression with resultType string).""" + service_principal_credential: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The credential of the service principal object in Azure Active Directory. If + servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be + SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is + 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.""" + sas_uri: Optional[Any] = rest_field(name="sasUri", visibility=["read", "create", "update", "delete", "query"]) + """SAS URI of the Azure Data Lake Storage Gen2 service. Type: string, SecureString or + AzureKeyVaultSecretReference.""" + sas_token: Optional["_models.SecretBase"] = rest_field( + name="sasToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of sasToken in sas uri.""" + + @overload + def __init__( + self, + *, + url: Optional[Any] = None, + account_key: Optional[Any] = None, + service_principal_id: Optional[Any] = None, + service_principal_key: Optional["_models.SecretBase"] = None, + tenant: Optional[Any] = None, + azure_cloud_type: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + credential: Optional["_models.CredentialReference"] = None, + service_principal_credential_type: Optional[Any] = None, + service_principal_credential: Optional["_models.SecretBase"] = None, + sas_uri: Optional[Any] = None, + sas_token: Optional["_models.SecretBase"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureBlobFSLocation(DatasetLocation, discriminator="AzureBlobFSLocation"): + """The location of azure blobFS dataset. + + :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with + resultType string). + :vartype folder_path: any + :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType + string). + :vartype file_name: any + :ivar file_system: Specify the fileSystem of azure blobFS. Type: string (or Expression with + resultType string). + :vartype file_system: any + :ivar type: Type of dataset storage location. Required. Default value is "AzureBlobFSLocation". + :vartype type: str + """ + + file_system: Optional[Any] = rest_field( + name="fileSystem", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the fileSystem of azure blobFS. Type: string (or Expression with resultType string).""" + type: Literal["AzureBlobFSLocation"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage location. Required. Default value is \"AzureBlobFSLocation\".""" + + @overload + def __init__( + self, + *, + folder_path: Optional[Any] = None, + file_name: Optional[Any] = None, + file_system: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureBlobFSLocation" # type: ignore + + +class AzureBlobFSReadSettings(StoreReadSettings, discriminator="AzureBlobFSReadSettings"): + """Azure blobFS read settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar recursive: If true, files under the folder path will be read recursively. Default is + true. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar wildcard_folder_path: Azure blobFS wildcardFolderPath. Type: string (or Expression with + resultType string). + :vartype wildcard_folder_path: any + :ivar wildcard_file_name: Azure blobFS wildcardFileName. Type: string (or Expression with + resultType string). + :vartype wildcard_file_name: any + :ivar file_list_path: Point to a text file that lists each file (relative path to the path + configured in the dataset) that you want to copy. Type: string (or Expression with resultType + string). + :vartype file_list_path: any + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: any + :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: + string (or Expression with resultType string). + :vartype partition_root_path: any + :ivar delete_files_after_completion: Indicates whether the source files need to be deleted + after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + :vartype delete_files_after_completion: any + :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or + Expression with resultType string). + :vartype modified_datetime_start: any + :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression + with resultType string). + :vartype modified_datetime_end: any + :ivar type: The read setting type. Required. Default value is "AzureBlobFSReadSettings". + :vartype type: str + """ + + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files under the folder path will be read recursively. Default is true. Type: boolean + (or Expression with resultType boolean).""" + wildcard_folder_path: Optional[Any] = rest_field( + name="wildcardFolderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure blobFS wildcardFolderPath. Type: string (or Expression with resultType string).""" + wildcard_file_name: Optional[Any] = rest_field( + name="wildcardFileName", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure blobFS wildcardFileName. Type: string (or Expression with resultType string).""" + file_list_path: Optional[Any] = rest_field( + name="fileListPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Point to a text file that lists each file (relative path to the path configured in the dataset) + that you want to copy. Type: string (or Expression with resultType string).""" + enable_partition_discovery: Optional[Any] = rest_field( + name="enablePartitionDiscovery", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType + boolean).""" + partition_root_path: Optional[Any] = rest_field( + name="partitionRootPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the root path where partition discovery starts from. Type: string (or Expression with + resultType string).""" + delete_files_after_completion: Optional[Any] = rest_field( + name="deleteFilesAfterCompletion", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the source files need to be deleted after copy completion. Default is false. + Type: boolean (or Expression with resultType boolean).""" + modified_datetime_start: Optional[Any] = rest_field( + name="modifiedDatetimeStart", visibility=["read", "create", "update", "delete", "query"] + ) + """The start of file's modified datetime. Type: string (or Expression with resultType string).""" + modified_datetime_end: Optional[Any] = rest_field( + name="modifiedDatetimeEnd", visibility=["read", "create", "update", "delete", "query"] + ) + """The end of file's modified datetime. Type: string (or Expression with resultType string).""" + type: Literal["AzureBlobFSReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"AzureBlobFSReadSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + recursive: Optional[Any] = None, + wildcard_folder_path: Optional[Any] = None, + wildcard_file_name: Optional[Any] = None, + file_list_path: Optional[Any] = None, + enable_partition_discovery: Optional[Any] = None, + partition_root_path: Optional[Any] = None, + delete_files_after_completion: Optional[Any] = None, + modified_datetime_start: Optional[Any] = None, + modified_datetime_end: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureBlobFSReadSettings" # type: ignore + + +class AzureBlobFSSink(CopySink, discriminator="AzureBlobFSSink"): + """A copy activity Azure Data Lake Storage Gen2 sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar copy_behavior: The type of copy behavior for copy sink. Type: string (or Expression with + resultType string). + :vartype copy_behavior: any + :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects + (or Expression with resultType array of objects). + :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] + :ivar type: Copy sink type. Required. Default value is "AzureBlobFSSink". + :vartype type: str + """ + + copy_behavior: Optional[Any] = rest_field( + name="copyBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of copy behavior for copy sink. Type: string (or Expression with resultType string).""" + metadata: Optional[list["_models.MetadataItem"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the custom metadata to be added to sink data. Type: array of objects (or Expression + with resultType array of objects).""" + type: Literal["AzureBlobFSSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"AzureBlobFSSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + copy_behavior: Optional[Any] = None, + metadata: Optional[list["_models.MetadataItem"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureBlobFSSink" # type: ignore + + +class AzureBlobFSSource(CopySource, discriminator="AzureBlobFSSource"): + """A copy activity Azure BlobFS source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar treat_empty_as_null: Treat empty as null. Type: boolean (or Expression with resultType + boolean). + :vartype treat_empty_as_null: any + :ivar skip_header_line_count: Number of header lines to skip from each blob. Type: integer (or + Expression with resultType integer). + :vartype skip_header_line_count: any + :ivar recursive: If true, files under the folder path will be read recursively. Default is + true. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar type: Copy source type. Required. Default value is "AzureBlobFSSource". + :vartype type: str + """ + + treat_empty_as_null: Optional[Any] = rest_field( + name="treatEmptyAsNull", visibility=["read", "create", "update", "delete", "query"] + ) + """Treat empty as null. Type: boolean (or Expression with resultType boolean).""" + skip_header_line_count: Optional[Any] = rest_field( + name="skipHeaderLineCount", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of header lines to skip from each blob. Type: integer (or Expression with resultType + integer).""" + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files under the folder path will be read recursively. Default is true. Type: boolean + (or Expression with resultType boolean).""" + type: Literal["AzureBlobFSSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"AzureBlobFSSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + treat_empty_as_null: Optional[Any] = None, + skip_header_line_count: Optional[Any] = None, + recursive: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureBlobFSSource" # type: ignore + + +class StoreWriteSettings(_Model): + """Connector write settings. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + AzureBlobFSWriteSettings, AzureBlobStorageWriteSettings, AzureDataLakeStoreWriteSettings, + AzureFileStorageWriteSettings, FileServerWriteSettings, LakeHouseWriteSettings, + SftpWriteSettings + + :ivar type: The write setting type. Required. Default value is None. + :vartype type: str + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar copy_behavior: The type of copy behavior for copy sink. + :vartype copy_behavior: any + :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects + (or Expression with resultType array of objects). + :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """The write setting type. Required. Default value is None.""" + max_concurrent_connections: Optional[Any] = rest_field( + name="maxConcurrentConnections", visibility=["read", "create", "update", "delete", "query"] + ) + """The maximum concurrent connection count for the source data store. Type: integer (or Expression + with resultType integer).""" + disable_metrics_collection: Optional[Any] = rest_field( + name="disableMetricsCollection", visibility=["read", "create", "update", "delete", "query"] + ) + """If true, disable data store metrics collection. Default is false. Type: boolean (or Expression + with resultType boolean).""" + copy_behavior: Optional[Any] = rest_field( + name="copyBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of copy behavior for copy sink.""" + metadata: Optional[list["_models.MetadataItem"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the custom metadata to be added to sink data. Type: array of objects (or Expression + with resultType array of objects).""" + + @overload + def __init__( + self, + *, + type: str, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + copy_behavior: Optional[Any] = None, + metadata: Optional[list["_models.MetadataItem"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureBlobFSWriteSettings(StoreWriteSettings, discriminator="AzureBlobFSWriteSettings"): + """Azure blobFS write settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar copy_behavior: The type of copy behavior for copy sink. + :vartype copy_behavior: any + :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects + (or Expression with resultType array of objects). + :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] + :ivar block_size_in_mb: Indicates the block size(MB) when writing data to blob. Type: integer + (or Expression with resultType integer). + :vartype block_size_in_mb: any + :ivar type: The write setting type. Required. Default value is "AzureBlobFSWriteSettings". + :vartype type: str + """ + + block_size_in_mb: Optional[Any] = rest_field( + name="blockSizeInMB", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates the block size(MB) when writing data to blob. Type: integer (or Expression with + resultType integer).""" + type: Literal["AzureBlobFSWriteSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The write setting type. Required. Default value is \"AzureBlobFSWriteSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + copy_behavior: Optional[Any] = None, + metadata: Optional[list["_models.MetadataItem"]] = None, + block_size_in_mb: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureBlobFSWriteSettings" # type: ignore + + +class AzureBlobStorageLinkedService(LinkedService, discriminator="AzureBlobStorage"): + """The azure blob storage linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure Blob Storage linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureBlobStorageLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureBlobStorage". + :vartype type: str + """ + + type_properties: "_models.AzureBlobStorageLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Blob Storage linked service properties. Required.""" + type: Literal["AzureBlobStorage"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureBlobStorage\".""" + + __flattened_items = [ + "connection_string", + "account_key", + "sas_uri", + "sas_token", + "service_endpoint", + "service_principal_id", + "service_principal_key", + "tenant", + "azure_cloud_type", + "account_kind", + "encrypted_credential", + "credential", + "authentication_type", + "container_uri", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureBlobStorageLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureBlobStorageLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Azure Blob Storage linked service properties. + + :ivar connection_string: The connection string. It is mutually exclusive with sasUri, + serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar account_key: The Azure key vault secret reference of accountKey in connection string. + :vartype account_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar sas_uri: SAS URI of the Azure Blob Storage resource. It is mutually exclusive with + connectionString, serviceEndpoint property. Type: string, SecureString or + AzureKeyVaultSecretReference. + :vartype sas_uri: any + :ivar sas_token: The Azure key vault secret reference of sasToken in sas uri. + :vartype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar service_endpoint: Blob service endpoint of the Azure Blob Storage resource. It is + mutually exclusive with connectionString, sasUri property. + :vartype service_endpoint: any + :ivar service_principal_id: The ID of the service principal used to authenticate against Azure + SQL Data Warehouse. Type: string (or Expression with resultType string). + :vartype service_principal_id: any + :ivar service_principal_key: The key of the service principal used to authenticate against + Azure SQL Data Warehouse. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string + (or Expression with resultType string). + :vartype tenant: any + :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed + values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data + factory regions’ cloud type. Type: string (or Expression with resultType string). + :vartype azure_cloud_type: any + :ivar account_kind: Specify the kind of your storage account. Allowed values are: Storage + (general purpose v1), StorageV2 (general purpose v2), BlobStorage, or BlockBlobStorage. Type: + string (or Expression with resultType string). + :vartype account_kind: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + :ivar authentication_type: The type used for authentication. Type: string. Known values are: + "Anonymous", "AccountKey", "SasUri", "ServicePrincipal", and "Msi". + :vartype authentication_type: str or + ~azure.mgmt.datafactory.models.AzureStorageAuthenticationType + :ivar container_uri: Container uri of the Azure Blob Storage resource only support for + anonymous access. Type: string (or Expression with resultType string). + :vartype container_uri: any + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection string. It is mutually exclusive with sasUri, serviceEndpoint property. Type: + string, SecureString or AzureKeyVaultSecretReference.""" + account_key: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + name="accountKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of accountKey in connection string.""" + sas_uri: Optional[Any] = rest_field(name="sasUri", visibility=["read", "create", "update", "delete", "query"]) + """SAS URI of the Azure Blob Storage resource. It is mutually exclusive with connectionString, + serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference.""" + sas_token: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + name="sasToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of sasToken in sas uri.""" + service_endpoint: Optional[Any] = rest_field( + name="serviceEndpoint", visibility=["read", "create", "update", "delete", "query"] + ) + """Blob service endpoint of the Azure Blob Storage resource. It is mutually exclusive with + connectionString, sasUri property.""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: + string (or Expression with resultType string).""" + service_principal_key: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The key of the service principal used to authenticate against Azure SQL Data Warehouse.""" + tenant: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name or ID of the tenant to which the service principal belongs. Type: string (or + Expression with resultType string).""" + azure_cloud_type: Optional[Any] = rest_field( + name="azureCloudType", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, + AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud + type. Type: string (or Expression with resultType string).""" + account_kind: Optional[Any] = rest_field( + name="accountKind", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the kind of your storage account. Allowed values are: Storage (general purpose v1), + StorageV2 (general purpose v2), BlobStorage, or BlockBlobStorage. Type: string (or Expression + with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + authentication_type: Optional[Union[str, "_models.AzureStorageAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type used for authentication. Type: string. Known values are: \"Anonymous\", + \"AccountKey\", \"SasUri\", \"ServicePrincipal\", and \"Msi\".""" + container_uri: Optional[Any] = rest_field( + name="containerUri", visibility=["read", "create", "update", "delete", "query"] + ) + """Container uri of the Azure Blob Storage resource only support for anonymous access. Type: + string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + connection_string: Optional[Any] = None, + account_key: Optional["_models.AzureKeyVaultSecretReference"] = None, + sas_uri: Optional[Any] = None, + sas_token: Optional["_models.AzureKeyVaultSecretReference"] = None, + service_endpoint: Optional[Any] = None, + service_principal_id: Optional[Any] = None, + service_principal_key: Optional["_models.SecretBase"] = None, + tenant: Optional[Any] = None, + azure_cloud_type: Optional[Any] = None, + account_kind: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + credential: Optional["_models.CredentialReference"] = None, + authentication_type: Optional[Union[str, "_models.AzureStorageAuthenticationType"]] = None, + container_uri: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureBlobStorageLocation(DatasetLocation, discriminator="AzureBlobStorageLocation"): + """The location of azure blob dataset. + + :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with + resultType string). + :vartype folder_path: any + :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType + string). + :vartype file_name: any + :ivar container: Specify the container of azure blob. Type: string (or Expression with + resultType string). + :vartype container: any + :ivar type: Type of dataset storage location. Required. Default value is + "AzureBlobStorageLocation". + :vartype type: str + """ + + container: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specify the container of azure blob. Type: string (or Expression with resultType string).""" + type: Literal["AzureBlobStorageLocation"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage location. Required. Default value is \"AzureBlobStorageLocation\".""" + + @overload + def __init__( + self, + *, + folder_path: Optional[Any] = None, + file_name: Optional[Any] = None, + container: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureBlobStorageLocation" # type: ignore + + +class AzureBlobStorageReadSettings(StoreReadSettings, discriminator="AzureBlobStorageReadSettings"): + """Azure blob read settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar recursive: If true, files under the folder path will be read recursively. Default is + true. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar wildcard_folder_path: Azure blob wildcardFolderPath. Type: string (or Expression with + resultType string). + :vartype wildcard_folder_path: any + :ivar wildcard_file_name: Azure blob wildcardFileName. Type: string (or Expression with + resultType string). + :vartype wildcard_file_name: any + :ivar prefix: The prefix filter for the Azure Blob name. Type: string (or Expression with + resultType string). + :vartype prefix: any + :ivar file_list_path: Point to a text file that lists each file (relative path to the path + configured in the dataset) that you want to copy. Type: string (or Expression with resultType + string). + :vartype file_list_path: any + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: any + :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: + string (or Expression with resultType string). + :vartype partition_root_path: any + :ivar delete_files_after_completion: Indicates whether the source files need to be deleted + after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + :vartype delete_files_after_completion: any + :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or + Expression with resultType string). + :vartype modified_datetime_start: any + :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression + with resultType string). + :vartype modified_datetime_end: any + :ivar type: The read setting type. Required. Default value is "AzureBlobStorageReadSettings". + :vartype type: str + """ + + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files under the folder path will be read recursively. Default is true. Type: boolean + (or Expression with resultType boolean).""" + wildcard_folder_path: Optional[Any] = rest_field( + name="wildcardFolderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure blob wildcardFolderPath. Type: string (or Expression with resultType string).""" + wildcard_file_name: Optional[Any] = rest_field( + name="wildcardFileName", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure blob wildcardFileName. Type: string (or Expression with resultType string).""" + prefix: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The prefix filter for the Azure Blob name. Type: string (or Expression with resultType string).""" + file_list_path: Optional[Any] = rest_field( + name="fileListPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Point to a text file that lists each file (relative path to the path configured in the dataset) + that you want to copy. Type: string (or Expression with resultType string).""" + enable_partition_discovery: Optional[Any] = rest_field( + name="enablePartitionDiscovery", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType + boolean).""" + partition_root_path: Optional[Any] = rest_field( + name="partitionRootPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the root path where partition discovery starts from. Type: string (or Expression with + resultType string).""" + delete_files_after_completion: Optional[Any] = rest_field( + name="deleteFilesAfterCompletion", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the source files need to be deleted after copy completion. Default is false. + Type: boolean (or Expression with resultType boolean).""" + modified_datetime_start: Optional[Any] = rest_field( + name="modifiedDatetimeStart", visibility=["read", "create", "update", "delete", "query"] + ) + """The start of file's modified datetime. Type: string (or Expression with resultType string).""" + modified_datetime_end: Optional[Any] = rest_field( + name="modifiedDatetimeEnd", visibility=["read", "create", "update", "delete", "query"] + ) + """The end of file's modified datetime. Type: string (or Expression with resultType string).""" + type: Literal["AzureBlobStorageReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"AzureBlobStorageReadSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + recursive: Optional[Any] = None, + wildcard_folder_path: Optional[Any] = None, + wildcard_file_name: Optional[Any] = None, + prefix: Optional[Any] = None, + file_list_path: Optional[Any] = None, + enable_partition_discovery: Optional[Any] = None, + partition_root_path: Optional[Any] = None, + delete_files_after_completion: Optional[Any] = None, + modified_datetime_start: Optional[Any] = None, + modified_datetime_end: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureBlobStorageReadSettings" # type: ignore + + +class AzureBlobStorageWriteSettings(StoreWriteSettings, discriminator="AzureBlobStorageWriteSettings"): + """Azure blob write settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar copy_behavior: The type of copy behavior for copy sink. + :vartype copy_behavior: any + :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects + (or Expression with resultType array of objects). + :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] + :ivar block_size_in_mb: Indicates the block size(MB) when writing data to blob. Type: integer + (or Expression with resultType integer). + :vartype block_size_in_mb: any + :ivar type: The write setting type. Required. Default value is "AzureBlobStorageWriteSettings". + :vartype type: str + """ + + block_size_in_mb: Optional[Any] = rest_field( + name="blockSizeInMB", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates the block size(MB) when writing data to blob. Type: integer (or Expression with + resultType integer).""" + type: Literal["AzureBlobStorageWriteSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The write setting type. Required. Default value is \"AzureBlobStorageWriteSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + copy_behavior: Optional[Any] = None, + metadata: Optional[list["_models.MetadataItem"]] = None, + block_size_in_mb: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureBlobStorageWriteSettings" # type: ignore + + +class AzureDatabricksDeltaLakeDataset(Dataset, discriminator="AzureDatabricksDeltaLakeDataset"): + """Azure Databricks Delta Lake dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "AzureDatabricksDeltaLakeDataset". + :vartype type: str + """ + + type_properties: Optional["_models.AzureDatabricksDeltaLakeDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["AzureDatabricksDeltaLakeDataset"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"AzureDatabricksDeltaLakeDataset\".""" + + __flattened_items = ["table", "database"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.AzureDatabricksDeltaLakeDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureDatabricksDeltaLakeDatasetTypeProperties(_Model): # pylint: disable=name-too-long + """Azure Databricks Delta Lake Dataset Properties. + + :ivar table: The name of delta table. Type: string (or Expression with resultType string). + :vartype table: any + :ivar database: The database name of delta table. Type: string (or Expression with resultType + string). + :vartype database: any + """ + + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of delta table. Type: string (or Expression with resultType string).""" + database: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The database name of delta table. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table: Optional[Any] = None, + database: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExportSettings(_Model): + """Export command settings. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + AzureDatabricksDeltaLakeExportCommand, SnowflakeExportCopyCommand + + :ivar type: The export setting type. Required. Default value is None. + :vartype type: str + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """The export setting type. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureDatabricksDeltaLakeExportCommand(ExportSettings, discriminator="AzureDatabricksDeltaLakeExportCommand"): + """Azure Databricks Delta Lake export command settings. + + :ivar date_format: Specify the date format for the csv in Azure Databricks Delta Lake Copy. + Type: string (or Expression with resultType string). + :vartype date_format: any + :ivar timestamp_format: Specify the timestamp format for the csv in Azure Databricks Delta Lake + Copy. Type: string (or Expression with resultType string). + :vartype timestamp_format: any + :ivar type: The export setting type. Required. Default value is + "AzureDatabricksDeltaLakeExportCommand". + :vartype type: str + """ + + date_format: Optional[Any] = rest_field( + name="dateFormat", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the date format for the csv in Azure Databricks Delta Lake Copy. Type: string (or + Expression with resultType string).""" + timestamp_format: Optional[Any] = rest_field( + name="timestampFormat", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the timestamp format for the csv in Azure Databricks Delta Lake Copy. Type: string (or + Expression with resultType string).""" + type: Literal["AzureDatabricksDeltaLakeExportCommand"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The export setting type. Required. Default value is \"AzureDatabricksDeltaLakeExportCommand\".""" + + @overload + def __init__( + self, + *, + date_format: Optional[Any] = None, + timestamp_format: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureDatabricksDeltaLakeExportCommand" # type: ignore + + +class ImportSettings(_Model): + """Import command settings. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + AzureDatabricksDeltaLakeImportCommand, SnowflakeImportCopyCommand, TeradataImportCommand + + :ivar type: The import setting type. Required. Default value is None. + :vartype type: str + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """The import setting type. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureDatabricksDeltaLakeImportCommand(ImportSettings, discriminator="AzureDatabricksDeltaLakeImportCommand"): + """Azure Databricks Delta Lake import command settings. + + :ivar date_format: Specify the date format for csv in Azure Databricks Delta Lake Copy. Type: + string (or Expression with resultType string). + :vartype date_format: any + :ivar timestamp_format: Specify the timestamp format for csv in Azure Databricks Delta Lake + Copy. Type: string (or Expression with resultType string). + :vartype timestamp_format: any + :ivar type: The import setting type. Required. Default value is + "AzureDatabricksDeltaLakeImportCommand". + :vartype type: str + """ + + date_format: Optional[Any] = rest_field( + name="dateFormat", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the date format for csv in Azure Databricks Delta Lake Copy. Type: string (or + Expression with resultType string).""" + timestamp_format: Optional[Any] = rest_field( + name="timestampFormat", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the timestamp format for csv in Azure Databricks Delta Lake Copy. Type: string (or + Expression with resultType string).""" + type: Literal["AzureDatabricksDeltaLakeImportCommand"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The import setting type. Required. Default value is \"AzureDatabricksDeltaLakeImportCommand\".""" + + @overload + def __init__( + self, + *, + date_format: Optional[Any] = None, + timestamp_format: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureDatabricksDeltaLakeImportCommand" # type: ignore + + +class AzureDatabricksDeltaLakeLinkedService(LinkedService, discriminator="AzureDatabricksDeltaLake"): + """Azure Databricks Delta Lake linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure Databricks Delta Lake linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureDatabricksDetltaLakeLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureDatabricksDeltaLake". + :vartype type: str + """ + + type_properties: "_models.AzureDatabricksDetltaLakeLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Databricks Delta Lake linked service properties. Required.""" + type: Literal["AzureDatabricksDeltaLake"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureDatabricksDeltaLake\".""" + + __flattened_items = [ + "domain", + "access_token", + "cluster_id", + "encrypted_credential", + "credential", + "workspace_resource_id", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureDatabricksDetltaLakeLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureDatabricksDeltaLakeSink(CopySink, discriminator="AzureDatabricksDeltaLakeSink"): + """A copy activity Azure Databricks Delta Lake sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType + string). + :vartype pre_copy_script: any + :ivar import_settings: Azure Databricks Delta Lake import settings. + :vartype import_settings: ~azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeImportCommand + :ivar type: Copy sink type. Required. Default value is "AzureDatabricksDeltaLakeSink". + :vartype type: str + """ + + pre_copy_script: Optional[Any] = rest_field( + name="preCopyScript", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL pre-copy script. Type: string (or Expression with resultType string).""" + import_settings: Optional["_models.AzureDatabricksDeltaLakeImportCommand"] = rest_field( + name="importSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Databricks Delta Lake import settings.""" + type: Literal["AzureDatabricksDeltaLakeSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"AzureDatabricksDeltaLakeSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + pre_copy_script: Optional[Any] = None, + import_settings: Optional["_models.AzureDatabricksDeltaLakeImportCommand"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureDatabricksDeltaLakeSink" # type: ignore + + +class AzureDatabricksDeltaLakeSource(CopySource, discriminator="AzureDatabricksDeltaLakeSource"): + """A copy activity Azure Databricks Delta Lake source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query: Azure Databricks Delta Lake Sql query. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar export_settings: Azure Databricks Delta Lake export settings. + :vartype export_settings: ~azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeExportCommand + :ivar type: Copy source type. Required. Default value is "AzureDatabricksDeltaLakeSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Azure Databricks Delta Lake Sql query. Type: string (or Expression with resultType string).""" + export_settings: Optional["_models.AzureDatabricksDeltaLakeExportCommand"] = rest_field( + name="exportSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Databricks Delta Lake export settings.""" + type: Literal["AzureDatabricksDeltaLakeSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"AzureDatabricksDeltaLakeSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query: Optional[Any] = None, + export_settings: Optional["_models.AzureDatabricksDeltaLakeExportCommand"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureDatabricksDeltaLakeSource" # type: ignore + + +class AzureDatabricksDetltaLakeLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Azure Databricks Delta Lake linked service properties. + + :ivar domain: .azuredatabricks.net, domain name of your Databricks deployment. Type: + string (or Expression with resultType string). Required. + :vartype domain: any + :ivar access_token: Access token for databricks REST API. Refer to + `https://docs.azuredatabricks.net/api/latest/authentication.html + `_. Type: string, SecureString + or AzureKeyVaultSecretReference. + :vartype access_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar cluster_id: The id of an existing interactive cluster that will be used for all runs of + this job. Type: string (or Expression with resultType string). + :vartype cluster_id: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + :ivar workspace_resource_id: Workspace resource id for databricks REST API. Type: string (or + Expression with resultType string). + :vartype workspace_resource_id: any + """ + + domain: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """.azuredatabricks.net, domain name of your Databricks deployment. Type: string (or + Expression with resultType string). Required.""" + access_token: Optional["_models.SecretBase"] = rest_field( + name="accessToken", visibility=["read", "create", "update", "delete", "query"] + ) + """Access token for databricks REST API. Refer to + `https://docs.azuredatabricks.net/api/latest/authentication.html + `_. Type: string, SecureString + or AzureKeyVaultSecretReference.""" + cluster_id: Optional[Any] = rest_field(name="clusterId", visibility=["read", "create", "update", "delete", "query"]) + """The id of an existing interactive cluster that will be used for all runs of this job. Type: + string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + workspace_resource_id: Optional[Any] = rest_field( + name="workspaceResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """Workspace resource id for databricks REST API. Type: string (or Expression with resultType + string).""" + + @overload + def __init__( + self, + *, + domain: Any, + access_token: Optional["_models.SecretBase"] = None, + cluster_id: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + credential: Optional["_models.CredentialReference"] = None, + workspace_resource_id: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureDatabricksLinkedService(LinkedService, discriminator="AzureDatabricks"): + """Azure Databricks linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure Databricks linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureDatabricksLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureDatabricks". + :vartype type: str + """ + + type_properties: "_models.AzureDatabricksLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Databricks linked service properties. Required.""" + type: Literal["AzureDatabricks"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureDatabricks\".""" + + __flattened_items = [ + "domain", + "access_token", + "authentication", + "workspace_resource_id", + "existing_cluster_id", + "instance_pool_id", + "new_cluster_version", + "new_cluster_num_of_worker", + "new_cluster_node_type", + "new_cluster_spark_conf", + "new_cluster_spark_env_vars", + "new_cluster_custom_tags", + "new_cluster_log_destination", + "new_cluster_driver_node_type", + "new_cluster_init_scripts", + "new_cluster_enable_elastic_disk", + "encrypted_credential", + "policy_id", + "credential", + "data_security_mode", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureDatabricksLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureDatabricksLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Azure Databricks linked service properties. + + :ivar domain: .azuredatabricks.net, domain name of your Databricks deployment. Type: + string (or Expression with resultType string). Required. + :vartype domain: any + :ivar access_token: Access token for databricks REST API. Refer to + `https://docs.azuredatabricks.net/api/latest/authentication.html + `_. Type: string (or + Expression with resultType string). + :vartype access_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar authentication: Required to specify MSI, if using Workspace resource id for databricks + REST API. Type: string (or Expression with resultType string). + :vartype authentication: any + :ivar workspace_resource_id: Workspace resource id for databricks REST API. Type: string (or + Expression with resultType string). + :vartype workspace_resource_id: any + :ivar existing_cluster_id: The id of an existing interactive cluster that will be used for all + runs of this activity. Type: string (or Expression with resultType string). + :vartype existing_cluster_id: any + :ivar instance_pool_id: The id of an existing instance pool that will be used for all runs of + this activity. Type: string (or Expression with resultType string). + :vartype instance_pool_id: any + :ivar new_cluster_version: If not using an existing interactive cluster, this specifies the + Spark version of a new job cluster or instance pool nodes created for each run of this + activity. Required if instancePoolId is specified. Type: string (or Expression with resultType + string). + :vartype new_cluster_version: any + :ivar new_cluster_num_of_worker: If not using an existing interactive cluster, this specifies + the number of worker nodes to use for the new job cluster or instance pool. For new job + clusters, this a string-formatted Int32, like '1' means numOfWorker is 1 or '1:10' means + auto-scale from 1 (min) to 10 (max). For instance pools, this is a string-formatted Int32, and + can only specify a fixed number of worker nodes, such as '2'. Required if newClusterVersion is + specified. Type: string (or Expression with resultType string). + :vartype new_cluster_num_of_worker: any + :ivar new_cluster_node_type: The node type of the new job cluster. This property is required if + newClusterVersion is specified and instancePoolId is not specified. If instancePoolId is + specified, this property is ignored. Type: string (or Expression with resultType string). + :vartype new_cluster_node_type: any + :ivar new_cluster_spark_conf: A set of optional, user-specified Spark configuration key-value + pairs. + :vartype new_cluster_spark_conf: dict[str, any] + :ivar new_cluster_spark_env_vars: A set of optional, user-specified Spark environment variables + key-value pairs. + :vartype new_cluster_spark_env_vars: dict[str, any] + :ivar new_cluster_custom_tags: Additional tags for cluster resources. This property is ignored + in instance pool configurations. + :vartype new_cluster_custom_tags: dict[str, any] + :ivar new_cluster_log_destination: Specify a location to deliver Spark driver, worker, and + event logs. Type: string (or Expression with resultType string). + :vartype new_cluster_log_destination: any + :ivar new_cluster_driver_node_type: The driver node type for the new job cluster. This property + is ignored in instance pool configurations. Type: string (or Expression with resultType + string). + :vartype new_cluster_driver_node_type: any + :ivar new_cluster_init_scripts: User-defined initialization scripts for the new cluster. Type: + array of strings (or Expression with resultType array of strings). + :vartype new_cluster_init_scripts: any + :ivar new_cluster_enable_elastic_disk: Enable the elastic disk on the new cluster. This + property is now ignored, and takes the default elastic disk behavior in Databricks (elastic + disks are always enabled). Type: boolean (or Expression with resultType boolean). + :vartype new_cluster_enable_elastic_disk: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar policy_id: The policy id for limiting the ability to configure clusters based on a user + defined set of rules. Type: string (or Expression with resultType string). + :vartype policy_id: any + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + :ivar data_security_mode: The data security mode for the Databricks Cluster. Type: string (or + Expression with resultType string). + :vartype data_security_mode: any + """ + + domain: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """.azuredatabricks.net, domain name of your Databricks deployment. Type: string (or + Expression with resultType string). Required.""" + access_token: Optional["_models.SecretBase"] = rest_field( + name="accessToken", visibility=["read", "create", "update", "delete", "query"] + ) + """Access token for databricks REST API. Refer to + `https://docs.azuredatabricks.net/api/latest/authentication.html + `_. Type: string (or + Expression with resultType string).""" + authentication: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Required to specify MSI, if using Workspace resource id for databricks REST API. Type: string + (or Expression with resultType string).""" + workspace_resource_id: Optional[Any] = rest_field( + name="workspaceResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """Workspace resource id for databricks REST API. Type: string (or Expression with resultType + string).""" + existing_cluster_id: Optional[Any] = rest_field( + name="existingClusterId", visibility=["read", "create", "update", "delete", "query"] + ) + """The id of an existing interactive cluster that will be used for all runs of this activity. + Type: string (or Expression with resultType string).""" + instance_pool_id: Optional[Any] = rest_field( + name="instancePoolId", visibility=["read", "create", "update", "delete", "query"] + ) + """The id of an existing instance pool that will be used for all runs of this activity. Type: + string (or Expression with resultType string).""" + new_cluster_version: Optional[Any] = rest_field( + name="newClusterVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """If not using an existing interactive cluster, this specifies the Spark version of a new job + cluster or instance pool nodes created for each run of this activity. Required if + instancePoolId is specified. Type: string (or Expression with resultType string).""" + new_cluster_num_of_worker: Optional[Any] = rest_field( + name="newClusterNumOfWorker", visibility=["read", "create", "update", "delete", "query"] + ) + """If not using an existing interactive cluster, this specifies the number of worker nodes to use + for the new job cluster or instance pool. For new job clusters, this a string-formatted Int32, + like '1' means numOfWorker is 1 or '1:10' means auto-scale from 1 (min) to 10 (max). For + instance pools, this is a string-formatted Int32, and can only specify a fixed number of worker + nodes, such as '2'. Required if newClusterVersion is specified. Type: string (or Expression + with resultType string).""" + new_cluster_node_type: Optional[Any] = rest_field( + name="newClusterNodeType", visibility=["read", "create", "update", "delete", "query"] + ) + """The node type of the new job cluster. This property is required if newClusterVersion is + specified and instancePoolId is not specified. If instancePoolId is specified, this property is + ignored. Type: string (or Expression with resultType string).""" + new_cluster_spark_conf: Optional[dict[str, Any]] = rest_field( + name="newClusterSparkConf", visibility=["read", "create", "update", "delete", "query"] + ) + """A set of optional, user-specified Spark configuration key-value pairs.""" + new_cluster_spark_env_vars: Optional[dict[str, Any]] = rest_field( + name="newClusterSparkEnvVars", visibility=["read", "create", "update", "delete", "query"] + ) + """A set of optional, user-specified Spark environment variables key-value pairs.""" + new_cluster_custom_tags: Optional[dict[str, Any]] = rest_field( + name="newClusterCustomTags", visibility=["read", "create", "update", "delete", "query"] + ) + """Additional tags for cluster resources. This property is ignored in instance pool + configurations.""" + new_cluster_log_destination: Optional[Any] = rest_field( + name="newClusterLogDestination", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify a location to deliver Spark driver, worker, and event logs. Type: string (or Expression + with resultType string).""" + new_cluster_driver_node_type: Optional[Any] = rest_field( + name="newClusterDriverNodeType", visibility=["read", "create", "update", "delete", "query"] + ) + """The driver node type for the new job cluster. This property is ignored in instance pool + configurations. Type: string (or Expression with resultType string).""" + new_cluster_init_scripts: Optional[Any] = rest_field( + name="newClusterInitScripts", visibility=["read", "create", "update", "delete", "query"] + ) + """User-defined initialization scripts for the new cluster. Type: array of strings (or Expression + with resultType array of strings).""" + new_cluster_enable_elastic_disk: Optional[Any] = rest_field( + name="newClusterEnableElasticDisk", visibility=["read", "create", "update", "delete", "query"] + ) + """Enable the elastic disk on the new cluster. This property is now ignored, and takes the default + elastic disk behavior in Databricks (elastic disks are always enabled). Type: boolean (or + Expression with resultType boolean).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + policy_id: Optional[Any] = rest_field(name="policyId", visibility=["read", "create", "update", "delete", "query"]) + """The policy id for limiting the ability to configure clusters based on a user defined set of + rules. Type: string (or Expression with resultType string).""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + data_security_mode: Optional[Any] = rest_field( + name="dataSecurityMode", visibility=["read", "create", "update", "delete", "query"] + ) + """The data security mode for the Databricks Cluster. Type: string (or Expression with resultType + string).""" + + @overload + def __init__( + self, + *, + domain: Any, + access_token: Optional["_models.SecretBase"] = None, + authentication: Optional[Any] = None, + workspace_resource_id: Optional[Any] = None, + existing_cluster_id: Optional[Any] = None, + instance_pool_id: Optional[Any] = None, + new_cluster_version: Optional[Any] = None, + new_cluster_num_of_worker: Optional[Any] = None, + new_cluster_node_type: Optional[Any] = None, + new_cluster_spark_conf: Optional[dict[str, Any]] = None, + new_cluster_spark_env_vars: Optional[dict[str, Any]] = None, + new_cluster_custom_tags: Optional[dict[str, Any]] = None, + new_cluster_log_destination: Optional[Any] = None, + new_cluster_driver_node_type: Optional[Any] = None, + new_cluster_init_scripts: Optional[Any] = None, + new_cluster_enable_elastic_disk: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + policy_id: Optional[Any] = None, + credential: Optional["_models.CredentialReference"] = None, + data_security_mode: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExecutionActivity(Activity, discriminator="Execution"): + """Base class for all execution activities. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + AzureDataExplorerCommandActivity, AzureFunctionActivity, AzureMLBatchExecutionActivity, + AzureMLExecutePipelineActivity, AzureMLUpdateResourceActivity, CopyActivity, CustomActivity, + DataLakeAnalyticsUSQLActivity, DatabricksJobActivity, DatabricksNotebookActivity, + DatabricksSparkJarActivity, DatabricksSparkPythonActivity, DeleteActivity, + ExecuteDataFlowActivity, ExecuteSSISPackageActivity, GetMetadataActivity, + HDInsightHiveActivity, HDInsightMapReduceActivity, HDInsightPigActivity, + HDInsightSparkActivity, HDInsightStreamingActivity, LookupActivity, ScriptActivity, + SynapseSparkJobDefinitionActivity, SqlServerStoredProcedureActivity, SynapseNotebookActivity, + WebActivity + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type: Required. Default value is "Execution". + :vartype type: str + """ + + __mapping__: dict[str, _Model] = {} + linked_service_name: Optional["_models.LinkedServiceReference"] = rest_field( + name="linkedServiceName", visibility=["read", "create", "update", "delete", "query"] + ) + """Linked service reference.""" + policy: Optional["_models.ActivityPolicy"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Activity policy.""" + type: Literal["Execution"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Required. Default value is \"Execution\".""" + + @overload + def __init__( + self, + *, + name: str, + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "Execution" # type: ignore + + +class AzureDataExplorerCommandActivity(ExecutionActivity, discriminator="AzureDataExplorerCommand"): + """Azure Data Explorer command activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Azure Data Explorer command activity properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureDataExplorerCommandActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "AzureDataExplorerCommand". + :vartype type: str + """ + + type_properties: "_models.AzureDataExplorerCommandActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Data Explorer command activity properties. Required.""" + type: Literal["AzureDataExplorerCommand"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"AzureDataExplorerCommand\".""" + + __flattened_items = ["command", "command_timeout"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.AzureDataExplorerCommandActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureDataExplorerCommandActivityTypeProperties(_Model): # pylint: disable=name-too-long + """Azure Data Explorer command activity properties. + + :ivar command: A control command, according to the Azure Data Explorer command syntax. Type: + string (or Expression with resultType string). Required. + :vartype command: any + :ivar command_timeout: Control command timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..). + :vartype command_timeout: any + """ + + command: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A control command, according to the Azure Data Explorer command syntax. Type: string (or + Expression with resultType string). Required.""" + command_timeout: Optional[Any] = rest_field( + name="commandTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """Control command timeout. Type: string (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..).""" + + @overload + def __init__( + self, + *, + command: Any, + command_timeout: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureDataExplorerDatasetTypeProperties(_Model): + """Azure Data Explorer (Kusto) dataset properties. + + :ivar table: The table name of the Azure Data Explorer database. Type: string (or Expression + with resultType string). + :vartype table: any + """ + + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Azure Data Explorer database. Type: string (or Expression with resultType + string).""" + + @overload + def __init__( + self, + *, + table: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureDataExplorerLinkedService(LinkedService, discriminator="AzureDataExplorer"): + """Azure Data Explorer (Kusto) linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure Data Explorer (Kusto) linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureDataExplorerLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureDataExplorer". + :vartype type: str + """ + + type_properties: "_models.AzureDataExplorerLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Data Explorer (Kusto) linked service properties. Required.""" + type: Literal["AzureDataExplorer"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureDataExplorer\".""" + + __flattened_items = [ + "endpoint", + "service_principal_id", + "service_principal_key", + "database", + "tenant", + "credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureDataExplorerLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureDataExplorerLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Azure Data Explorer (Kusto) linked service properties. + + :ivar endpoint: The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the + format https://..kusto.windows.net. Type: string (or Expression with + resultType string). Required. + :vartype endpoint: any + :ivar service_principal_id: The ID of the service principal used to authenticate against Azure + Data Explorer. Type: string (or Expression with resultType string). + :vartype service_principal_id: any + :ivar service_principal_key: The key of the service principal used to authenticate against + Kusto. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar database: Database name for connection. Type: string (or Expression with resultType + string). Required. + :vartype database: any + :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string + (or Expression with resultType string). + :vartype tenant: any + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + endpoint: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the format + https://..kusto.windows.net. Type: string (or Expression with + resultType string). Required.""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of the service principal used to authenticate against Azure Data Explorer. Type: string + (or Expression with resultType string).""" + service_principal_key: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The key of the service principal used to authenticate against Kusto.""" + database: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database name for connection. Type: string (or Expression with resultType string). Required.""" + tenant: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name or ID of the tenant to which the service principal belongs. Type: string (or + Expression with resultType string).""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( + self, + *, + endpoint: Any, + database: Any, + service_principal_id: Optional[Any] = None, + service_principal_key: Optional["_models.SecretBase"] = None, + tenant: Optional[Any] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureDataExplorerSink(CopySink, discriminator="AzureDataExplorerSink"): + """A copy activity Azure Data Explorer sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar ingestion_mapping_name: A name of a pre-created csv mapping that was defined on the + target Kusto table. Type: string. + :vartype ingestion_mapping_name: any + :ivar ingestion_mapping_as_json: An explicit column mapping description provided in a json + format. Type: string. + :vartype ingestion_mapping_as_json: any + :ivar flush_immediately: If set to true, any aggregation will be skipped. Default is false. + Type: boolean. + :vartype flush_immediately: any + :ivar type: Copy sink type. Required. Default value is "AzureDataExplorerSink". + :vartype type: str + """ + + ingestion_mapping_name: Optional[Any] = rest_field( + name="ingestionMappingName", visibility=["read", "create", "update", "delete", "query"] + ) + """A name of a pre-created csv mapping that was defined on the target Kusto table. Type: string.""" + ingestion_mapping_as_json: Optional[Any] = rest_field( + name="ingestionMappingAsJson", visibility=["read", "create", "update", "delete", "query"] + ) + """An explicit column mapping description provided in a json format. Type: string.""" + flush_immediately: Optional[Any] = rest_field( + name="flushImmediately", visibility=["read", "create", "update", "delete", "query"] + ) + """If set to true, any aggregation will be skipped. Default is false. Type: boolean.""" + type: Literal["AzureDataExplorerSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"AzureDataExplorerSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + ingestion_mapping_name: Optional[Any] = None, + ingestion_mapping_as_json: Optional[Any] = None, + flush_immediately: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureDataExplorerSink" # type: ignore + + +class AzureDataExplorerSource(CopySource, discriminator="AzureDataExplorerSource"): + """A copy activity Azure Data Explorer (Kusto) source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query: Database query. Should be a Kusto Query Language (KQL) query. Type: string (or + Expression with resultType string). Required. + :vartype query: any + :ivar no_truncation: The name of the Boolean option that controls whether truncation is applied + to result-sets that go beyond a certain row-count limit. + :vartype no_truncation: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).. + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "AzureDataExplorerSource". + :vartype type: str + """ + + query: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database query. Should be a Kusto Query Language (KQL) query. Type: string (or Expression with + resultType string). Required.""" + no_truncation: Optional[Any] = rest_field( + name="noTruncation", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the Boolean option that controls whether truncation is applied to result-sets that + go beyond a certain row-count limit.""" + query_timeout: Optional[Any] = rest_field( + name="queryTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """Query timeout. Type: string (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["AzureDataExplorerSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"AzureDataExplorerSource\".""" + + @overload + def __init__( + self, + *, + query: Any, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + no_truncation: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureDataExplorerSource" # type: ignore + + +class AzureDataExplorerTableDataset(Dataset, discriminator="AzureDataExplorerTable"): + """The Azure Data Explorer (Kusto) dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Azure Data Explorer (Kusto) dataset properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AzureDataExplorerDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "AzureDataExplorerTable". + :vartype type: str + """ + + type_properties: "_models.AzureDataExplorerDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Data Explorer (Kusto) dataset properties. Required.""" + type: Literal["AzureDataExplorerTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"AzureDataExplorerTable\".""" + + __flattened_items = ["table"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.AzureDataExplorerDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureDataLakeAnalyticsLinkedService(LinkedService, discriminator="AzureDataLakeAnalytics"): + """Azure Data Lake Analytics linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure Data Lake Analytics linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureDataLakeAnalyticsLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureDataLakeAnalytics". + :vartype type: str + """ + + type_properties: "_models.AzureDataLakeAnalyticsLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Data Lake Analytics linked service properties. Required.""" + type: Literal["AzureDataLakeAnalytics"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureDataLakeAnalytics\".""" + + __flattened_items = [ + "account_name", + "service_principal_id", + "service_principal_key", + "tenant", + "subscription_id", + "resource_group_name", + "data_lake_analytics_uri", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureDataLakeAnalyticsLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureDataLakeAnalyticsLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Azure Data Lake Analytics linked service properties. + + :ivar account_name: The Azure Data Lake Analytics account name. Type: string (or Expression + with resultType string). Required. + :vartype account_name: any + :ivar service_principal_id: The ID of the application used to authenticate against the Azure + Data Lake Analytics account. Type: string (or Expression with resultType string). + :vartype service_principal_id: any + :ivar service_principal_key: The Key of the application used to authenticate against the Azure + Data Lake Analytics account. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string + (or Expression with resultType string). Required. + :vartype tenant: any + :ivar subscription_id: Data Lake Analytics account subscription ID (if different from Data + Factory account). Type: string (or Expression with resultType string). + :vartype subscription_id: any + :ivar resource_group_name: Data Lake Analytics account resource group name (if different from + Data Factory account). Type: string (or Expression with resultType string). + :vartype resource_group_name: any + :ivar data_lake_analytics_uri: Azure Data Lake Analytics URI Type: string (or Expression with + resultType string). + :vartype data_lake_analytics_uri: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + account_name: Any = rest_field(name="accountName", visibility=["read", "create", "update", "delete", "query"]) + """The Azure Data Lake Analytics account name. Type: string (or Expression with resultType + string). Required.""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of the application used to authenticate against the Azure Data Lake Analytics account. + Type: string (or Expression with resultType string).""" + service_principal_key: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The Key of the application used to authenticate against the Azure Data Lake Analytics account.""" + tenant: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name or ID of the tenant to which the service principal belongs. Type: string (or + Expression with resultType string). Required.""" + subscription_id: Optional[Any] = rest_field( + name="subscriptionId", visibility=["read", "create", "update", "delete", "query"] + ) + """Data Lake Analytics account subscription ID (if different from Data Factory account). Type: + string (or Expression with resultType string).""" + resource_group_name: Optional[Any] = rest_field( + name="resourceGroupName", visibility=["read", "create", "update", "delete", "query"] + ) + """Data Lake Analytics account resource group name (if different from Data Factory account). Type: + string (or Expression with resultType string).""" + data_lake_analytics_uri: Optional[Any] = rest_field( + name="dataLakeAnalyticsUri", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Data Lake Analytics URI Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + account_name: Any, + tenant: Any, + service_principal_id: Optional[Any] = None, + service_principal_key: Optional["_models.SecretBase"] = None, + subscription_id: Optional[Any] = None, + resource_group_name: Optional[Any] = None, + data_lake_analytics_uri: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureDataLakeStoreDataset(Dataset, discriminator="AzureDataLakeStoreFile"): + """Azure Data Lake Store dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Azure Data Lake Store dataset properties. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureDataLakeStoreDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "AzureDataLakeStoreFile". + :vartype type: str + """ + + type_properties: Optional["_models.AzureDataLakeStoreDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Data Lake Store dataset properties.""" + type: Literal["AzureDataLakeStoreFile"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"AzureDataLakeStoreFile\".""" + + __flattened_items = ["folder_path", "file_name", "format", "compression"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.AzureDataLakeStoreDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureDataLakeStoreDatasetTypeProperties(_Model): + """Azure Data Lake Store dataset properties. + + :ivar folder_path: Path to the folder in the Azure Data Lake Store. Type: string (or Expression + with resultType string). + :vartype folder_path: any + :ivar file_name: The name of the file in the Azure Data Lake Store. Type: string (or Expression + with resultType string). + :vartype file_name: any + :ivar format: The format of the Data Lake Store. + :vartype format: ~azure.mgmt.datafactory.models.DatasetStorageFormat + :ivar compression: The data compression method used for the item(s) in the Azure Data Lake + Store. + :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression + """ + + folder_path: Optional[Any] = rest_field( + name="folderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Path to the folder in the Azure Data Lake Store. Type: string (or Expression with resultType + string).""" + file_name: Optional[Any] = rest_field(name="fileName", visibility=["read", "create", "update", "delete", "query"]) + """The name of the file in the Azure Data Lake Store. Type: string (or Expression with resultType + string).""" + format: Optional["_models.DatasetStorageFormat"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The format of the Data Lake Store.""" + compression: Optional["_models.DatasetCompression"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The data compression method used for the item(s) in the Azure Data Lake Store.""" + + @overload + def __init__( + self, + *, + folder_path: Optional[Any] = None, + file_name: Optional[Any] = None, + format: Optional["_models.DatasetStorageFormat"] = None, + compression: Optional["_models.DatasetCompression"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureDataLakeStoreLinkedService(LinkedService, discriminator="AzureDataLakeStore"): + """Azure Data Lake Store linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure Data Lake Store linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureDataLakeStoreLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureDataLakeStore". + :vartype type: str + """ + + type_properties: "_models.AzureDataLakeStoreLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Data Lake Store linked service properties. Required.""" + type: Literal["AzureDataLakeStore"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureDataLakeStore\".""" + + __flattened_items = [ + "data_lake_store_uri", + "service_principal_id", + "service_principal_key", + "tenant", + "azure_cloud_type", + "account_name", + "subscription_id", + "resource_group_name", + "encrypted_credential", + "credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureDataLakeStoreLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureDataLakeStoreLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Azure Data Lake Store linked service properties. + + :ivar data_lake_store_uri: Data Lake Store service URI. Type: string (or Expression with + resultType string). Required. + :vartype data_lake_store_uri: any + :ivar service_principal_id: The ID of the application used to authenticate against the Azure + Data Lake Store account. Type: string (or Expression with resultType string). + :vartype service_principal_id: any + :ivar service_principal_key: The Key of the application used to authenticate against the Azure + Data Lake Store account. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string + (or Expression with resultType string). + :vartype tenant: any + :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed + values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data + factory regions’ cloud type. Type: string (or Expression with resultType string). + :vartype azure_cloud_type: any + :ivar account_name: Data Lake Store account name. Type: string (or Expression with resultType + string). + :vartype account_name: any + :ivar subscription_id: Data Lake Store account subscription ID (if different from Data Factory + account). Type: string (or Expression with resultType string). + :vartype subscription_id: any + :ivar resource_group_name: Data Lake Store account resource group name (if different from Data + Factory account). Type: string (or Expression with resultType string). + :vartype resource_group_name: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + data_lake_store_uri: Any = rest_field( + name="dataLakeStoreUri", visibility=["read", "create", "update", "delete", "query"] + ) + """Data Lake Store service URI. Type: string (or Expression with resultType string). Required.""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of the application used to authenticate against the Azure Data Lake Store account. Type: + string (or Expression with resultType string).""" + service_principal_key: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The Key of the application used to authenticate against the Azure Data Lake Store account.""" + tenant: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name or ID of the tenant to which the service principal belongs. Type: string (or + Expression with resultType string).""" + azure_cloud_type: Optional[Any] = rest_field( + name="azureCloudType", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, + AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud + type. Type: string (or Expression with resultType string).""" + account_name: Optional[Any] = rest_field( + name="accountName", visibility=["read", "create", "update", "delete", "query"] + ) + """Data Lake Store account name. Type: string (or Expression with resultType string).""" + subscription_id: Optional[Any] = rest_field( + name="subscriptionId", visibility=["read", "create", "update", "delete", "query"] + ) + """Data Lake Store account subscription ID (if different from Data Factory account). Type: string + (or Expression with resultType string).""" + resource_group_name: Optional[Any] = rest_field( + name="resourceGroupName", visibility=["read", "create", "update", "delete", "query"] + ) + """Data Lake Store account resource group name (if different from Data Factory account). Type: + string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( + self, + *, + data_lake_store_uri: Any, + service_principal_id: Optional[Any] = None, + service_principal_key: Optional["_models.SecretBase"] = None, + tenant: Optional[Any] = None, + azure_cloud_type: Optional[Any] = None, + account_name: Optional[Any] = None, + subscription_id: Optional[Any] = None, + resource_group_name: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureDataLakeStoreLocation(DatasetLocation, discriminator="AzureDataLakeStoreLocation"): + """The location of azure data lake store dataset. + + :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with + resultType string). + :vartype folder_path: any + :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType + string). + :vartype file_name: any + :ivar type: Type of dataset storage location. Required. Default value is + "AzureDataLakeStoreLocation". + :vartype type: str + """ + + type: Literal["AzureDataLakeStoreLocation"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage location. Required. Default value is \"AzureDataLakeStoreLocation\".""" + + @overload + def __init__( + self, + *, + folder_path: Optional[Any] = None, + file_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureDataLakeStoreLocation" # type: ignore + + +class AzureDataLakeStoreReadSettings(StoreReadSettings, discriminator="AzureDataLakeStoreReadSettings"): + """Azure data lake store read settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar recursive: If true, files under the folder path will be read recursively. Default is + true. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar wildcard_folder_path: ADLS wildcardFolderPath. Type: string (or Expression with + resultType string). + :vartype wildcard_folder_path: any + :ivar wildcard_file_name: ADLS wildcardFileName. Type: string (or Expression with resultType + string). + :vartype wildcard_file_name: any + :ivar file_list_path: Point to a text file that lists each file (relative path to the path + configured in the dataset) that you want to copy. Type: string (or Expression with resultType + string). + :vartype file_list_path: any + :ivar list_after: Lists files after the value (exclusive) based on file/folder names’ + lexicographical order. Applies under the folderPath in data set, and filter files/sub-folders + under the folderPath. Type: string (or Expression with resultType string). + :vartype list_after: any + :ivar list_before: Lists files before the value (inclusive) based on file/folder names’ + lexicographical order. Applies under the folderPath in data set, and filter files/sub-folders + under the folderPath. Type: string (or Expression with resultType string). + :vartype list_before: any + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: any + :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: + string (or Expression with resultType string). + :vartype partition_root_path: any + :ivar delete_files_after_completion: Indicates whether the source files need to be deleted + after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + :vartype delete_files_after_completion: any + :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or + Expression with resultType string). + :vartype modified_datetime_start: any + :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression + with resultType string). + :vartype modified_datetime_end: any + :ivar type: The read setting type. Required. Default value is "AzureDataLakeStoreReadSettings". + :vartype type: str + """ + + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files under the folder path will be read recursively. Default is true. Type: boolean + (or Expression with resultType boolean).""" + wildcard_folder_path: Optional[Any] = rest_field( + name="wildcardFolderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """ADLS wildcardFolderPath. Type: string (or Expression with resultType string).""" + wildcard_file_name: Optional[Any] = rest_field( + name="wildcardFileName", visibility=["read", "create", "update", "delete", "query"] + ) + """ADLS wildcardFileName. Type: string (or Expression with resultType string).""" + file_list_path: Optional[Any] = rest_field( + name="fileListPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Point to a text file that lists each file (relative path to the path configured in the dataset) + that you want to copy. Type: string (or Expression with resultType string).""" + list_after: Optional[Any] = rest_field(name="listAfter", visibility=["read", "create", "update", "delete", "query"]) + """Lists files after the value (exclusive) based on file/folder names’ lexicographical order. + Applies under the folderPath in data set, and filter files/sub-folders under the folderPath. + Type: string (or Expression with resultType string).""" + list_before: Optional[Any] = rest_field( + name="listBefore", visibility=["read", "create", "update", "delete", "query"] + ) + """Lists files before the value (inclusive) based on file/folder names’ lexicographical order. + Applies under the folderPath in data set, and filter files/sub-folders under the folderPath. + Type: string (or Expression with resultType string).""" + enable_partition_discovery: Optional[Any] = rest_field( + name="enablePartitionDiscovery", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType + boolean).""" + partition_root_path: Optional[Any] = rest_field( + name="partitionRootPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the root path where partition discovery starts from. Type: string (or Expression with + resultType string).""" + delete_files_after_completion: Optional[Any] = rest_field( + name="deleteFilesAfterCompletion", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the source files need to be deleted after copy completion. Default is false. + Type: boolean (or Expression with resultType boolean).""" + modified_datetime_start: Optional[Any] = rest_field( + name="modifiedDatetimeStart", visibility=["read", "create", "update", "delete", "query"] + ) + """The start of file's modified datetime. Type: string (or Expression with resultType string).""" + modified_datetime_end: Optional[Any] = rest_field( + name="modifiedDatetimeEnd", visibility=["read", "create", "update", "delete", "query"] + ) + """The end of file's modified datetime. Type: string (or Expression with resultType string).""" + type: Literal["AzureDataLakeStoreReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"AzureDataLakeStoreReadSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + recursive: Optional[Any] = None, + wildcard_folder_path: Optional[Any] = None, + wildcard_file_name: Optional[Any] = None, + file_list_path: Optional[Any] = None, + list_after: Optional[Any] = None, + list_before: Optional[Any] = None, + enable_partition_discovery: Optional[Any] = None, + partition_root_path: Optional[Any] = None, + delete_files_after_completion: Optional[Any] = None, + modified_datetime_start: Optional[Any] = None, + modified_datetime_end: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureDataLakeStoreReadSettings" # type: ignore + + +class AzureDataLakeStoreSink(CopySink, discriminator="AzureDataLakeStoreSink"): + """A copy activity Azure Data Lake Store sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar copy_behavior: The type of copy behavior for copy sink. Type: string (or Expression with + resultType string). + :vartype copy_behavior: any + :ivar enable_adls_single_file_parallel: Single File Parallel. + :vartype enable_adls_single_file_parallel: any + :ivar type: Copy sink type. Required. Default value is "AzureDataLakeStoreSink". + :vartype type: str + """ + + copy_behavior: Optional[Any] = rest_field( + name="copyBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of copy behavior for copy sink. Type: string (or Expression with resultType string).""" + enable_adls_single_file_parallel: Optional[Any] = rest_field( + name="enableAdlsSingleFileParallel", visibility=["read", "create", "update", "delete", "query"] + ) + """Single File Parallel.""" + type: Literal["AzureDataLakeStoreSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"AzureDataLakeStoreSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + copy_behavior: Optional[Any] = None, + enable_adls_single_file_parallel: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureDataLakeStoreSink" # type: ignore + + +class AzureDataLakeStoreSource(CopySource, discriminator="AzureDataLakeStoreSource"): + """A copy activity Azure Data Lake source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar recursive: If true, files under the folder path will be read recursively. Default is + true. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar type: Copy source type. Required. Default value is "AzureDataLakeStoreSource". + :vartype type: str + """ + + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files under the folder path will be read recursively. Default is true. Type: boolean + (or Expression with resultType boolean).""" + type: Literal["AzureDataLakeStoreSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"AzureDataLakeStoreSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + recursive: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureDataLakeStoreSource" # type: ignore + + +class AzureDataLakeStoreWriteSettings(StoreWriteSettings, discriminator="AzureDataLakeStoreWriteSettings"): + """Azure data lake store write settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar copy_behavior: The type of copy behavior for copy sink. + :vartype copy_behavior: any + :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects + (or Expression with resultType array of objects). + :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] + :ivar expiry_date_time: Specifies the expiry time of the written files. The time is applied to + the UTC time zone in the format of "2018-12-01T05:00:00Z". Default value is NULL. Type: string + (or Expression with resultType string). + :vartype expiry_date_time: any + :ivar type: The write setting type. Required. Default value is + "AzureDataLakeStoreWriteSettings". + :vartype type: str + """ + + expiry_date_time: Optional[Any] = rest_field( + name="expiryDateTime", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the expiry time of the written files. The time is applied to the UTC time zone in the + format of \"2018-12-01T05:00:00Z\". Default value is NULL. Type: string (or Expression with + resultType string).""" + type: Literal["AzureDataLakeStoreWriteSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The write setting type. Required. Default value is \"AzureDataLakeStoreWriteSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + copy_behavior: Optional[Any] = None, + metadata: Optional[list["_models.MetadataItem"]] = None, + expiry_date_time: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureDataLakeStoreWriteSettings" # type: ignore + + +class AzureFileStorageLinkedService(LinkedService, discriminator="AzureFileStorage"): + """Azure File Storage linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure File Storage linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureFileStorageLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureFileStorage". + :vartype type: str + """ + + type_properties: "_models.AzureFileStorageLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure File Storage linked service properties. Required.""" + type: Literal["AzureFileStorage"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureFileStorage\".""" + + __flattened_items = [ + "host", + "user_id", + "password", + "connection_string", + "account_key", + "sas_uri", + "sas_token", + "file_share", + "snapshot", + "encrypted_credential", + "service_endpoint", + "credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureFileStorageLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureFileStorageLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Azure File Storage linked service properties. + + :ivar host: Host name of the server. Type: string (or Expression with resultType string). + :vartype host: any + :ivar user_id: User ID to logon the server. Type: string (or Expression with resultType + string). + :vartype user_id: any + :ivar password: Password to logon the server. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar connection_string: The connection string. It is mutually exclusive with sasUri property. + Type: string, SecureString or AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar account_key: The Azure key vault secret reference of accountKey in connection string. + :vartype account_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar sas_uri: SAS URI of the Azure File resource. It is mutually exclusive with + connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. + :vartype sas_uri: any + :ivar sas_token: The Azure key vault secret reference of sasToken in sas uri. + :vartype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar file_share: The azure file share name. It is required when auth with accountKey/sasToken. + Type: string (or Expression with resultType string). + :vartype file_share: any + :ivar snapshot: The azure file share snapshot version. Type: string (or Expression with + resultType string). + :vartype snapshot: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar service_endpoint: File service endpoint of the Azure File Storage resource. It is + mutually exclusive with connectionString, sasUri property. + :vartype service_endpoint: any + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + host: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Host name of the server. Type: string (or Expression with resultType string).""" + user_id: Optional[Any] = rest_field(name="userId", visibility=["read", "create", "update", "delete", "query"]) + """User ID to logon the server. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password to logon the server.""" + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection string. It is mutually exclusive with sasUri property. Type: string, + SecureString or AzureKeyVaultSecretReference.""" + account_key: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + name="accountKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of accountKey in connection string.""" + sas_uri: Optional[Any] = rest_field(name="sasUri", visibility=["read", "create", "update", "delete", "query"]) + """SAS URI of the Azure File resource. It is mutually exclusive with connectionString property. + Type: string, SecureString or AzureKeyVaultSecretReference.""" + sas_token: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + name="sasToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of sasToken in sas uri.""" + file_share: Optional[Any] = rest_field(name="fileShare", visibility=["read", "create", "update", "delete", "query"]) + """The azure file share name. It is required when auth with accountKey/sasToken. Type: string (or + Expression with resultType string).""" + snapshot: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The azure file share snapshot version. Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + service_endpoint: Optional[Any] = rest_field( + name="serviceEndpoint", visibility=["read", "create", "update", "delete", "query"] + ) + """File service endpoint of the Azure File Storage resource. It is mutually exclusive with + connectionString, sasUri property.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( + self, + *, + host: Optional[Any] = None, + user_id: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + connection_string: Optional[Any] = None, + account_key: Optional["_models.AzureKeyVaultSecretReference"] = None, + sas_uri: Optional[Any] = None, + sas_token: Optional["_models.AzureKeyVaultSecretReference"] = None, + file_share: Optional[Any] = None, + snapshot: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + service_endpoint: Optional[Any] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureFileStorageLocation(DatasetLocation, discriminator="AzureFileStorageLocation"): + """The location of file server dataset. + + :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with + resultType string). + :vartype folder_path: any + :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType + string). + :vartype file_name: any + :ivar type: Type of dataset storage location. Required. Default value is + "AzureFileStorageLocation". + :vartype type: str + """ + + type: Literal["AzureFileStorageLocation"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage location. Required. Default value is \"AzureFileStorageLocation\".""" + + @overload + def __init__( + self, + *, + folder_path: Optional[Any] = None, + file_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureFileStorageLocation" # type: ignore + + +class AzureFileStorageReadSettings(StoreReadSettings, discriminator="AzureFileStorageReadSettings"): + """Azure File Storage read settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar recursive: If true, files under the folder path will be read recursively. Default is + true. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar wildcard_folder_path: Azure File Storage wildcardFolderPath. Type: string (or Expression + with resultType string). + :vartype wildcard_folder_path: any + :ivar wildcard_file_name: Azure File Storage wildcardFileName. Type: string (or Expression with + resultType string). + :vartype wildcard_file_name: any + :ivar prefix: The prefix filter for the Azure File name starting from root path. Type: string + (or Expression with resultType string). + :vartype prefix: any + :ivar file_list_path: Point to a text file that lists each file (relative path to the path + configured in the dataset) that you want to copy. Type: string (or Expression with resultType + string). + :vartype file_list_path: any + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: any + :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: + string (or Expression with resultType string). + :vartype partition_root_path: any + :ivar delete_files_after_completion: Indicates whether the source files need to be deleted + after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + :vartype delete_files_after_completion: any + :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or + Expression with resultType string). + :vartype modified_datetime_start: any + :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression + with resultType string). + :vartype modified_datetime_end: any + :ivar type: The read setting type. Required. Default value is "AzureFileStorageReadSettings". + :vartype type: str + """ + + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files under the folder path will be read recursively. Default is true. Type: boolean + (or Expression with resultType boolean).""" + wildcard_folder_path: Optional[Any] = rest_field( + name="wildcardFolderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure File Storage wildcardFolderPath. Type: string (or Expression with resultType string).""" + wildcard_file_name: Optional[Any] = rest_field( + name="wildcardFileName", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure File Storage wildcardFileName. Type: string (or Expression with resultType string).""" + prefix: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The prefix filter for the Azure File name starting from root path. Type: string (or Expression + with resultType string).""" + file_list_path: Optional[Any] = rest_field( + name="fileListPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Point to a text file that lists each file (relative path to the path configured in the dataset) + that you want to copy. Type: string (or Expression with resultType string).""" + enable_partition_discovery: Optional[Any] = rest_field( + name="enablePartitionDiscovery", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType + boolean).""" + partition_root_path: Optional[Any] = rest_field( + name="partitionRootPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the root path where partition discovery starts from. Type: string (or Expression with + resultType string).""" + delete_files_after_completion: Optional[Any] = rest_field( + name="deleteFilesAfterCompletion", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the source files need to be deleted after copy completion. Default is false. + Type: boolean (or Expression with resultType boolean).""" + modified_datetime_start: Optional[Any] = rest_field( + name="modifiedDatetimeStart", visibility=["read", "create", "update", "delete", "query"] + ) + """The start of file's modified datetime. Type: string (or Expression with resultType string).""" + modified_datetime_end: Optional[Any] = rest_field( + name="modifiedDatetimeEnd", visibility=["read", "create", "update", "delete", "query"] + ) + """The end of file's modified datetime. Type: string (or Expression with resultType string).""" + type: Literal["AzureFileStorageReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"AzureFileStorageReadSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + recursive: Optional[Any] = None, + wildcard_folder_path: Optional[Any] = None, + wildcard_file_name: Optional[Any] = None, + prefix: Optional[Any] = None, + file_list_path: Optional[Any] = None, + enable_partition_discovery: Optional[Any] = None, + partition_root_path: Optional[Any] = None, + delete_files_after_completion: Optional[Any] = None, + modified_datetime_start: Optional[Any] = None, + modified_datetime_end: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureFileStorageReadSettings" # type: ignore + + +class AzureFileStorageWriteSettings(StoreWriteSettings, discriminator="AzureFileStorageWriteSettings"): + """Azure File Storage write settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar copy_behavior: The type of copy behavior for copy sink. + :vartype copy_behavior: any + :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects + (or Expression with resultType array of objects). + :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] + :ivar type: The write setting type. Required. Default value is "AzureFileStorageWriteSettings". + :vartype type: str + """ + + type: Literal["AzureFileStorageWriteSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The write setting type. Required. Default value is \"AzureFileStorageWriteSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + copy_behavior: Optional[Any] = None, + metadata: Optional[list["_models.MetadataItem"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureFileStorageWriteSettings" # type: ignore + + +class AzureFunctionActivity(ExecutionActivity, discriminator="AzureFunctionActivity"): + """Azure Function activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Azure Function activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AzureFunctionActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "AzureFunctionActivity". + :vartype type: str + """ + + type_properties: "_models.AzureFunctionActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Function activity properties. Required.""" + type: Literal["AzureFunctionActivity"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"AzureFunctionActivity\".""" + + __flattened_items = ["method", "function_name", "headers", "body"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.AzureFunctionActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureFunctionActivityTypeProperties(_Model): + """Azure Function activity type properties. + + :ivar method: Rest API method for target endpoint. Required. Known values are: "GET", "POST", + "PUT", "DELETE", "OPTIONS", "HEAD", and "TRACE". + :vartype method: str or ~azure.mgmt.datafactory.models.AzureFunctionActivityMethod + :ivar function_name: Name of the Function that the Azure Function Activity will call. Type: + string (or Expression with resultType string). Required. + :vartype function_name: any + :ivar headers: Represents the headers that will be sent to the request. For example, to set the + language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": + "application/json" }. Type: string (or Expression with resultType string). + :vartype headers: dict[str, any] + :ivar body: Represents the payload that will be sent to the endpoint. Required for POST/PUT + method, not allowed for GET method Type: string (or Expression with resultType string). + :vartype body: any + """ + + method: Union[str, "_models.AzureFunctionActivityMethod"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Rest API method for target endpoint. Required. Known values are: \"GET\", \"POST\", \"PUT\", + \"DELETE\", \"OPTIONS\", \"HEAD\", and \"TRACE\".""" + function_name: Any = rest_field(name="functionName", visibility=["read", "create", "update", "delete", "query"]) + """Name of the Function that the Azure Function Activity will call. Type: string (or Expression + with resultType string). Required.""" + headers: Optional[dict[str, Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Represents the headers that will be sent to the request. For example, to set the language and + type on a request: \"headers\" : { \"Accept-Language\": \"en-us\", \"Content-Type\": + \"application/json\" }. Type: string (or Expression with resultType string).""" + body: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not + allowed for GET method Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + method: Union[str, "_models.AzureFunctionActivityMethod"], + function_name: Any, + headers: Optional[dict[str, Any]] = None, + body: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureFunctionLinkedService(LinkedService, discriminator="AzureFunction"): + """Azure Function linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure Function linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureFunctionLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureFunction". + :vartype type: str + """ + + type_properties: "_models.AzureFunctionLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Function linked service properties. Required.""" + type: Literal["AzureFunction"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureFunction\".""" + + __flattened_items = [ + "function_app_url", + "function_key", + "encrypted_credential", + "credential", + "resource_id", + "authentication", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureFunctionLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureFunctionLinkedServiceTypeProperties(_Model): + """Azure Function linked service properties. + + :ivar function_app_url: The endpoint of the Azure Function App. URL will be in the format + https://.azurewebsites.net. Type: string (or Expression with resultType string). + Required. + :vartype function_app_url: any + :ivar function_key: Function or Host key for Azure Function App. + :vartype function_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + :ivar resource_id: Allowed token audiences for azure function. Type: string (or Expression with + resultType string). + :vartype resource_id: any + :ivar authentication: Type of authentication (Required to specify MSI) used to connect to + AzureFunction. Type: string (or Expression with resultType string). + :vartype authentication: any + """ + + function_app_url: Any = rest_field( + name="functionAppUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """The endpoint of the Azure Function App. URL will be in the format + https://.azurewebsites.net. Type: string (or Expression with resultType string). + Required.""" + function_key: Optional["_models.SecretBase"] = rest_field( + name="functionKey", visibility=["read", "create", "update", "delete", "query"] + ) + """Function or Host key for Azure Function App.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + resource_id: Optional[Any] = rest_field( + name="resourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """Allowed token audiences for azure function. Type: string (or Expression with resultType + string).""" + authentication: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Type of authentication (Required to specify MSI) used to connect to AzureFunction. Type: string + (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + function_app_url: Any, + function_key: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + credential: Optional["_models.CredentialReference"] = None, + resource_id: Optional[Any] = None, + authentication: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureKeyVaultLinkedService(LinkedService, discriminator="AzureKeyVault"): + """Azure Key Vault linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure Key Vault linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureKeyVaultLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureKeyVault". + :vartype type: str + """ + + type_properties: "_models.AzureKeyVaultLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Key Vault linked service properties. Required.""" + type: Literal["AzureKeyVault"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureKeyVault\".""" + + __flattened_items = ["base_url", "credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureKeyVaultLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureKeyVaultLinkedServiceTypeProperties(_Model): + """Azure Key Vault linked service properties. + + :ivar base_url: The base URL of the Azure Key Vault. e.g. `https://myakv.vault.azure.net + `_ Type: string (or Expression with resultType string). + Required. + :vartype base_url: any + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + base_url: Any = rest_field(name="baseUrl", visibility=["read", "create", "update", "delete", "query"]) + """The base URL of the Azure Key Vault. e.g. `https://myakv.vault.azure.net + `_ Type: string (or Expression with resultType string). + Required.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( + self, + *, + base_url: Any, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SecretBase(_Model): + """The base definition of a secret type. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + AzureKeyVaultSecretReference, SecureString + + :ivar type: Type of the secret. Required. Default value is None. + :vartype type: str + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """Type of the secret. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureKeyVaultSecretReference(SecretBase, discriminator="AzureKeyVaultSecret"): + """Azure Key Vault secret reference. + + :ivar store: The Azure Key Vault linked service reference. Required. + :vartype store: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar secret_name: The name of the secret in Azure Key Vault. Type: string (or Expression with + resultType string). Required. + :vartype secret_name: any + :ivar secret_version: The version of the secret in Azure Key Vault. The default value is the + latest version of the secret. Type: string (or Expression with resultType string). + :vartype secret_version: any + :ivar type: Type of the secret. Required. Default value is "AzureKeyVaultSecret". + :vartype type: str + """ + + store: "_models.LinkedServiceReference" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Azure Key Vault linked service reference. Required.""" + secret_name: Any = rest_field(name="secretName", visibility=["read", "create", "update", "delete", "query"]) + """The name of the secret in Azure Key Vault. Type: string (or Expression with resultType string). + Required.""" + secret_version: Optional[Any] = rest_field( + name="secretVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The version of the secret in Azure Key Vault. The default value is the latest version of the + secret. Type: string (or Expression with resultType string).""" + type: Literal["AzureKeyVaultSecret"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of the secret. Required. Default value is \"AzureKeyVaultSecret\".""" + + @overload + def __init__( + self, + *, + store: "_models.LinkedServiceReference", + secret_name: Any, + secret_version: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureKeyVaultSecret" # type: ignore + + +class AzureMariaDBLinkedService(LinkedService, discriminator="AzureMariaDB"): + """Azure Database for MariaDB linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure Database for MariaDB linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureMariaDBLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureMariaDB". + :vartype type: str + """ + + type_properties: "_models.AzureMariaDBLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Database for MariaDB linked service properties. Required.""" + type: Literal["AzureMariaDB"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureMariaDB\".""" + + __flattened_items = ["connection_string", "pwd", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureMariaDBLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureMariaDBLinkedServiceTypeProperties(_Model): + """Azure Database for MariaDB linked service properties. + + :ivar connection_string: An ODBC connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar pwd: The Azure key vault secret reference of password in connection string. + :vartype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference.""" + pwd: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of password in connection string.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_string: Optional[Any] = None, + pwd: Optional["_models.AzureKeyVaultSecretReference"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureMariaDBSource(TabularSource, discriminator="AzureMariaDBSource"): + """A copy activity Azure MariaDB source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "AzureMariaDBSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["AzureMariaDBSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"AzureMariaDBSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureMariaDBSource" # type: ignore + + +class AzureMariaDBTableDataset(Dataset, discriminator="AzureMariaDBTable"): + """Azure Database for MariaDB dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "AzureMariaDBTable". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["AzureMariaDBTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"AzureMariaDBTable\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureMLBatchExecutionActivity(ExecutionActivity, discriminator="AzureMLBatchExecution"): + """Azure ML Batch Execution activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Azure ML Batch Execution activity properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureMLBatchExecutionActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "AzureMLBatchExecution". + :vartype type: str + """ + + type_properties: "_models.AzureMLBatchExecutionActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure ML Batch Execution activity properties. Required.""" + type: Literal["AzureMLBatchExecution"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"AzureMLBatchExecution\".""" + + __flattened_items = ["global_parameters", "web_service_outputs", "web_service_inputs"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.AzureMLBatchExecutionActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureMLBatchExecutionActivityTypeProperties(_Model): # pylint: disable=name-too-long + """Azure ML Batch Execution activity properties. + + :ivar global_parameters: Key,Value pairs to be passed to the Azure ML Batch Execution Service + endpoint. Keys must match the names of web service parameters defined in the published Azure ML + web service. Values will be passed in the GlobalParameters property of the Azure ML batch + execution request. + :vartype global_parameters: dict[str, any] + :ivar web_service_outputs: Key,Value pairs, mapping the names of Azure ML endpoint's Web + Service Outputs to AzureMLWebServiceFile objects specifying the output Blob locations. This + information will be passed in the WebServiceOutputs property of the Azure ML batch execution + request. + :vartype web_service_outputs: dict[str, ~azure.mgmt.datafactory.models.AzureMLWebServiceFile] + :ivar web_service_inputs: Key,Value pairs, mapping the names of Azure ML endpoint's Web Service + Inputs to AzureMLWebServiceFile objects specifying the input Blob locations.. This information + will be passed in the WebServiceInputs property of the Azure ML batch execution request. + :vartype web_service_inputs: dict[str, ~azure.mgmt.datafactory.models.AzureMLWebServiceFile] + """ + + global_parameters: Optional[dict[str, Any]] = rest_field( + name="globalParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """Key,Value pairs to be passed to the Azure ML Batch Execution Service endpoint. Keys must match + the names of web service parameters defined in the published Azure ML web service. Values will + be passed in the GlobalParameters property of the Azure ML batch execution request.""" + web_service_outputs: Optional[dict[str, "_models.AzureMLWebServiceFile"]] = rest_field( + name="webServiceOutputs", visibility=["read", "create", "update", "delete", "query"] + ) + """Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Outputs to + AzureMLWebServiceFile objects specifying the output Blob locations. This information will be + passed in the WebServiceOutputs property of the Azure ML batch execution request.""" + web_service_inputs: Optional[dict[str, "_models.AzureMLWebServiceFile"]] = rest_field( + name="webServiceInputs", visibility=["read", "create", "update", "delete", "query"] + ) + """Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Inputs to + AzureMLWebServiceFile objects specifying the input Blob locations.. This information will be + passed in the WebServiceInputs property of the Azure ML batch execution request.""" + + @overload + def __init__( + self, + *, + global_parameters: Optional[dict[str, Any]] = None, + web_service_outputs: Optional[dict[str, "_models.AzureMLWebServiceFile"]] = None, + web_service_inputs: Optional[dict[str, "_models.AzureMLWebServiceFile"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureMLExecutePipelineActivity(ExecutionActivity, discriminator="AzureMLExecutePipeline"): + """Azure ML Execute Pipeline activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Azure ML Execute Pipeline activity properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureMLExecutePipelineActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "AzureMLExecutePipeline". + :vartype type: str + """ + + type_properties: "_models.AzureMLExecutePipelineActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure ML Execute Pipeline activity properties. Required.""" + type: Literal["AzureMLExecutePipeline"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"AzureMLExecutePipeline\".""" + + __flattened_items = [ + "ml_pipeline_id", + "ml_pipeline_endpoint_id", + "version", + "experiment_name", + "ml_pipeline_parameters", + "data_path_assignments", + "ml_parent_run_id", + "continue_on_step_failure", + ] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.AzureMLExecutePipelineActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureMLExecutePipelineActivityTypeProperties(_Model): # pylint: disable=name-too-long + """Azure ML Execute Pipeline activity properties. + + :ivar ml_pipeline_id: ID of the published Azure ML pipeline. Type: string (or Expression with + resultType string). + :vartype ml_pipeline_id: any + :ivar ml_pipeline_endpoint_id: ID of the published Azure ML pipeline endpoint. Type: string (or + Expression with resultType string). + :vartype ml_pipeline_endpoint_id: any + :ivar version: Version of the published Azure ML pipeline endpoint. Type: string (or Expression + with resultType string). + :vartype version: any + :ivar experiment_name: Run history experiment name of the pipeline run. This information will + be passed in the ExperimentName property of the published pipeline execution request. Type: + string (or Expression with resultType string). + :vartype experiment_name: any + :ivar ml_pipeline_parameters: Key,Value pairs to be passed to the published Azure ML pipeline + endpoint. Keys must match the names of pipeline parameters defined in the published pipeline. + Values will be passed in the ParameterAssignments property of the published pipeline execution + request. Type: object with key value pairs (or Expression with resultType object). + :vartype ml_pipeline_parameters: any + :ivar data_path_assignments: Dictionary used for changing data path assignments without + retraining. Values will be passed in the dataPathAssignments property of the published pipeline + execution request. Type: object (or Expression with resultType object). + :vartype data_path_assignments: any + :ivar ml_parent_run_id: The parent Azure ML Service pipeline run id. This information will be + passed in the ParentRunId property of the published pipeline execution request. Type: string + (or Expression with resultType string). + :vartype ml_parent_run_id: any + :ivar continue_on_step_failure: Whether to continue execution of other steps in the PipelineRun + if a step fails. This information will be passed in the continueOnStepFailure property of the + published pipeline execution request. Type: boolean (or Expression with resultType boolean). + :vartype continue_on_step_failure: any + """ + + ml_pipeline_id: Optional[Any] = rest_field( + name="mlPipelineId", visibility=["read", "create", "update", "delete", "query"] + ) + """ID of the published Azure ML pipeline. Type: string (or Expression with resultType string).""" + ml_pipeline_endpoint_id: Optional[Any] = rest_field( + name="mlPipelineEndpointId", visibility=["read", "create", "update", "delete", "query"] + ) + """ID of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType + string).""" + version: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Version of the published Azure ML pipeline endpoint. Type: string (or Expression with + resultType string).""" + experiment_name: Optional[Any] = rest_field( + name="experimentName", visibility=["read", "create", "update", "delete", "query"] + ) + """Run history experiment name of the pipeline run. This information will be passed in the + ExperimentName property of the published pipeline execution request. Type: string (or + Expression with resultType string).""" + ml_pipeline_parameters: Optional[Any] = rest_field( + name="mlPipelineParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """Key,Value pairs to be passed to the published Azure ML pipeline endpoint. Keys must match the + names of pipeline parameters defined in the published pipeline. Values will be passed in the + ParameterAssignments property of the published pipeline execution request. Type: object with + key value pairs (or Expression with resultType object).""" + data_path_assignments: Optional[Any] = rest_field( + name="dataPathAssignments", visibility=["read", "create", "update", "delete", "query"] + ) + """Dictionary used for changing data path assignments without retraining. Values will be passed in + the dataPathAssignments property of the published pipeline execution request. Type: object (or + Expression with resultType object).""" + ml_parent_run_id: Optional[Any] = rest_field( + name="mlParentRunId", visibility=["read", "create", "update", "delete", "query"] + ) + """The parent Azure ML Service pipeline run id. This information will be passed in the ParentRunId + property of the published pipeline execution request. Type: string (or Expression with + resultType string).""" + continue_on_step_failure: Optional[Any] = rest_field( + name="continueOnStepFailure", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to continue execution of other steps in the PipelineRun if a step fails. This + information will be passed in the continueOnStepFailure property of the published pipeline + execution request. Type: boolean (or Expression with resultType boolean).""" + + @overload + def __init__( + self, + *, + ml_pipeline_id: Optional[Any] = None, + ml_pipeline_endpoint_id: Optional[Any] = None, + version: Optional[Any] = None, + experiment_name: Optional[Any] = None, + ml_pipeline_parameters: Optional[Any] = None, + data_path_assignments: Optional[Any] = None, + ml_parent_run_id: Optional[Any] = None, + continue_on_step_failure: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureMLLinkedService(LinkedService, discriminator="AzureML"): + """Azure ML Studio Web Service linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure ML Studio Web Service linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AzureMLLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureML". + :vartype type: str + """ + + type_properties: "_models.AzureMLLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure ML Studio Web Service linked service properties. Required.""" + type: Literal["AzureML"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureML\".""" + + __flattened_items = [ + "ml_endpoint", + "api_key", + "update_resource_endpoint", + "service_principal_id", + "service_principal_key", + "tenant", + "encrypted_credential", + "authentication", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureMLLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureMLLinkedServiceTypeProperties(_Model): + """Azure ML Studio Web Service linked service properties. + + :ivar ml_endpoint: The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. + Type: string (or Expression with resultType string). Required. + :vartype ml_endpoint: any + :ivar api_key: The API key for accessing the Azure ML model endpoint. Required. + :vartype api_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar update_resource_endpoint: The Update Resource REST URL for an Azure ML Studio Web Service + endpoint. Type: string (or Expression with resultType string). + :vartype update_resource_endpoint: any + :ivar service_principal_id: The ID of the service principal used to authenticate against the + ARM-based updateResourceEndpoint of an Azure ML Studio web service. Type: string (or Expression + with resultType string). + :vartype service_principal_id: any + :ivar service_principal_key: The key of the service principal used to authenticate against the + ARM-based updateResourceEndpoint of an Azure ML Studio web service. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string + (or Expression with resultType string). + :vartype tenant: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar authentication: Type of authentication (Required to specify MSI) used to connect to + AzureML. Type: string (or Expression with resultType string). + :vartype authentication: any + """ + + ml_endpoint: Any = rest_field(name="mlEndpoint", visibility=["read", "create", "update", "delete", "query"]) + """The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: string (or + Expression with resultType string). Required.""" + api_key: "_models.SecretBase" = rest_field( + name="apiKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The API key for accessing the Azure ML model endpoint. Required.""" + update_resource_endpoint: Optional[Any] = rest_field( + name="updateResourceEndpoint", visibility=["read", "create", "update", "delete", "query"] + ) + """The Update Resource REST URL for an Azure ML Studio Web Service endpoint. Type: string (or + Expression with resultType string).""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of the service principal used to authenticate against the ARM-based + updateResourceEndpoint of an Azure ML Studio web service. Type: string (or Expression with + resultType string).""" + service_principal_key: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The key of the service principal used to authenticate against the ARM-based + updateResourceEndpoint of an Azure ML Studio web service.""" + tenant: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name or ID of the tenant to which the service principal belongs. Type: string (or + Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + authentication: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or + Expression with resultType string).""" + + @overload + def __init__( + self, + *, + ml_endpoint: Any, + api_key: "_models.SecretBase", + update_resource_endpoint: Optional[Any] = None, + service_principal_id: Optional[Any] = None, + service_principal_key: Optional["_models.SecretBase"] = None, + tenant: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + authentication: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureMLServiceLinkedService(LinkedService, discriminator="AzureMLService"): + """Azure ML Service linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure ML Service linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureMLServiceLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureMLService". + :vartype type: str + """ + + type_properties: "_models.AzureMLServiceLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure ML Service linked service properties. Required.""" + type: Literal["AzureMLService"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureMLService\".""" + + __flattened_items = [ + "subscription_id", + "resource_group_name", + "ml_workspace_name", + "authentication", + "service_principal_id", + "service_principal_key", + "tenant", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureMLServiceLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureMLServiceLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Azure ML Service linked service properties. + + :ivar subscription_id: Azure ML Service workspace subscription ID. Type: string (or Expression + with resultType string). Required. + :vartype subscription_id: any + :ivar resource_group_name: Azure ML Service workspace resource group name. Type: string (or + Expression with resultType string). Required. + :vartype resource_group_name: any + :ivar ml_workspace_name: Azure ML Service workspace name. Type: string (or Expression with + resultType string). Required. + :vartype ml_workspace_name: any + :ivar authentication: Type of authentication (Required to specify MSI) used to connect to + AzureML. Type: string (or Expression with resultType string). + :vartype authentication: any + :ivar service_principal_id: The ID of the service principal used to authenticate against the + endpoint of a published Azure ML Service pipeline. Type: string (or Expression with resultType + string). + :vartype service_principal_id: any + :ivar service_principal_key: The key of the service principal used to authenticate against the + endpoint of a published Azure ML Service pipeline. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string + (or Expression with resultType string). + :vartype tenant: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + subscription_id: Any = rest_field(name="subscriptionId", visibility=["read", "create", "update", "delete", "query"]) + """Azure ML Service workspace subscription ID. Type: string (or Expression with resultType + string). Required.""" + resource_group_name: Any = rest_field( + name="resourceGroupName", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure ML Service workspace resource group name. Type: string (or Expression with resultType + string). Required.""" + ml_workspace_name: Any = rest_field( + name="mlWorkspaceName", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure ML Service workspace name. Type: string (or Expression with resultType string). Required.""" + authentication: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or + Expression with resultType string).""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of the service principal used to authenticate against the endpoint of a published Azure + ML Service pipeline. Type: string (or Expression with resultType string).""" + service_principal_key: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The key of the service principal used to authenticate against the endpoint of a published Azure + ML Service pipeline.""" + tenant: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name or ID of the tenant to which the service principal belongs. Type: string (or + Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + subscription_id: Any, + resource_group_name: Any, + ml_workspace_name: Any, + authentication: Optional[Any] = None, + service_principal_id: Optional[Any] = None, + service_principal_key: Optional["_models.SecretBase"] = None, + tenant: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureMLUpdateResourceActivity(ExecutionActivity, discriminator="AzureMLUpdateResource"): + """Azure ML Update Resource management activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Azure ML Update Resource management activity properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureMLUpdateResourceActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "AzureMLUpdateResource". + :vartype type: str + """ + + type_properties: "_models.AzureMLUpdateResourceActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure ML Update Resource management activity properties. Required.""" + type: Literal["AzureMLUpdateResource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"AzureMLUpdateResource\".""" + + __flattened_items = ["trained_model_name", "trained_model_linked_service_name", "trained_model_file_path"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.AzureMLUpdateResourceActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureMLUpdateResourceActivityTypeProperties(_Model): # pylint: disable=name-too-long + """Azure ML Update Resource activity properties. + + :ivar trained_model_name: Name of the Trained Model module in the Web Service experiment to be + updated. Type: string (or Expression with resultType string). Required. + :vartype trained_model_name: any + :ivar trained_model_linked_service_name: Name of Azure Storage linked service holding the + .ilearner file that will be uploaded by the update operation. Required. + :vartype trained_model_linked_service_name: + ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar trained_model_file_path: The relative file path in trainedModelLinkedService to represent + the .ilearner file that will be uploaded by the update operation. Type: string (or Expression + with resultType string). Required. + :vartype trained_model_file_path: any + """ + + trained_model_name: Any = rest_field( + name="trainedModelName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the Trained Model module in the Web Service experiment to be updated. Type: string (or + Expression with resultType string). Required.""" + trained_model_linked_service_name: "_models.LinkedServiceReference" = rest_field( + name="trainedModelLinkedServiceName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of Azure Storage linked service holding the .ilearner file that will be uploaded by the + update operation. Required.""" + trained_model_file_path: Any = rest_field( + name="trainedModelFilePath", visibility=["read", "create", "update", "delete", "query"] + ) + """The relative file path in trainedModelLinkedService to represent the .ilearner file that will + be uploaded by the update operation. Type: string (or Expression with resultType string). + Required.""" + + @overload + def __init__( + self, + *, + trained_model_name: Any, + trained_model_linked_service_name: "_models.LinkedServiceReference", + trained_model_file_path: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureMLWebServiceFile(_Model): + """Azure ML WebService Input/Output file. + + :ivar file_path: The relative file path, including container name, in the Azure Blob Storage + specified by the LinkedService. Type: string (or Expression with resultType string). Required. + :vartype file_path: any + :ivar linked_service_name: Reference to an Azure Storage LinkedService, where Azure ML + WebService Input/Output file located. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + """ + + file_path: Any = rest_field(name="filePath", visibility=["read", "create", "update", "delete", "query"]) + """The relative file path, including container name, in the Azure Blob Storage specified by the + LinkedService. Type: string (or Expression with resultType string). Required.""" + linked_service_name: "_models.LinkedServiceReference" = rest_field( + name="linkedServiceName", visibility=["read", "create", "update", "delete", "query"] + ) + """Reference to an Azure Storage LinkedService, where Azure ML WebService Input/Output file + located. Required.""" + + @overload + def __init__( + self, + *, + file_path: Any, + linked_service_name: "_models.LinkedServiceReference", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureMySqlLinkedService(LinkedService, discriminator="AzureMySql"): + """Azure MySQL database linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure MySQL database linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AzureMySqlLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureMySql". + :vartype type: str + """ + + type_properties: "_models.AzureMySqlLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure MySQL database linked service properties. Required.""" + type: Literal["AzureMySql"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureMySql\".""" + + __flattened_items = ["connection_string", "password", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureMySqlLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureMySqlLinkedServiceTypeProperties(_Model): + """Azure MySQL database linked service properties. + + :ivar connection_string: The connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. Required. + :vartype connection_string: any + :ivar password: The Azure key vault secret reference of password in connection string. + :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_string: Any = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Required.""" + password: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of password in connection string.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_string: Any, + password: Optional["_models.AzureKeyVaultSecretReference"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureMySqlSink(CopySink, discriminator="AzureMySqlSink"): + """A copy activity Azure MySql sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar pre_copy_script: A query to execute before starting the copy. Type: string (or Expression + with resultType string). + :vartype pre_copy_script: any + :ivar type: Copy sink type. Required. Default value is "AzureMySqlSink". + :vartype type: str + """ + + pre_copy_script: Optional[Any] = rest_field( + name="preCopyScript", visibility=["read", "create", "update", "delete", "query"] + ) + """A query to execute before starting the copy. Type: string (or Expression with resultType + string).""" + type: Literal["AzureMySqlSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"AzureMySqlSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + pre_copy_script: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureMySqlSink" # type: ignore + + +class AzureMySqlSource(TabularSource, discriminator="AzureMySqlSource"): + """A copy activity Azure MySQL source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: Database query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "AzureMySqlSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database query. Type: string (or Expression with resultType string).""" + type: Literal["AzureMySqlSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"AzureMySqlSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureMySqlSource" # type: ignore + + +class AzureMySqlTableDataset(Dataset, discriminator="AzureMySqlTable"): + """The Azure MySQL database dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Azure MySQL database dataset properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AzureMySqlTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "AzureMySqlTable". + :vartype type: str + """ + + type_properties: "_models.AzureMySqlTableDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure MySQL database dataset properties. Required.""" + type: Literal["AzureMySqlTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"AzureMySqlTable\".""" + + __flattened_items = ["table_name", "table"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.AzureMySqlTableDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureMySqlTableDatasetTypeProperties(_Model): + """Azure MySQL database dataset properties. + + :ivar table_name: The Azure MySQL database table name. Type: string (or Expression with + resultType string). + :vartype table_name: any + :ivar table: The name of Azure MySQL database table. Type: string (or Expression with + resultType string). + :vartype table: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """The Azure MySQL database table name. Type: string (or Expression with resultType string).""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of Azure MySQL database table. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + table: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzurePostgreSqlLinkedService(LinkedService, discriminator="AzurePostgreSql"): + """Azure PostgreSQL linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure PostgreSQL linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzurePostgreSqlLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzurePostgreSql". + :vartype type: str + """ + + type_properties: "_models.AzurePostgreSqlLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure PostgreSQL linked service properties. Required.""" + type: Literal["AzurePostgreSql"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzurePostgreSql\".""" + + __flattened_items = [ + "connection_string", + "server", + "port", + "username", + "database", + "ssl_mode", + "timeout", + "command_timeout", + "trust_server_certificate", + "read_buffer_size", + "timezone", + "encoding", + "password", + "encrypted_credential", + "service_principal_id", + "service_principal_key", + "service_principal_credential_type", + "service_principal_embedded_cert", + "service_principal_embedded_cert_password", + "tenant", + "azure_cloud_type", + "credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzurePostgreSqlLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzurePostgreSqlLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Azure PostgreSQL linked service properties. + + :ivar connection_string: An ODBC connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar server: Server name for connection. Type: string. + :vartype server: any + :ivar port: The port for the connection. Type: integer. + :vartype port: any + :ivar username: Username for authentication. Type: string. + :vartype username: any + :ivar database: Database name for connection. Type: string. + :vartype database: any + :ivar ssl_mode: SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: + require, 4: verify-ca, 5: verify-full. Type: integer. + :vartype ssl_mode: any + :ivar timeout: The time to wait (in seconds) while trying to establish a connection before + terminating the attempt and generating an error. Type: integer. + :vartype timeout: any + :ivar command_timeout: The time to wait (in seconds) while trying to execute a command before + terminating the attempt and generating an error. Set to zero for infinity. Type: integer. + :vartype command_timeout: any + :ivar trust_server_certificate: Whether to trust the server certificate without validating it. + Type: boolean. + :vartype trust_server_certificate: any + :ivar read_buffer_size: Determines the size of the internal buffer uses when reading. + Increasing may improve performance if transferring large values from the database. Type: + integer. + :vartype read_buffer_size: any + :ivar timezone: Gets or sets the session timezone. Type: string. + :vartype timezone: any + :ivar encoding: Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL + string data. Type: string. + :vartype encoding: any + :ivar password: The Azure key vault secret reference of password in connection string. + :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar service_principal_id: The ID of the service principal used to authenticate against Azure + Database for PostgreSQL Flexible server. Type: string (or Expression with resultType string). + :vartype service_principal_id: any + :ivar service_principal_key: The key of the service principal used to authenticate against + Azure Database for PostgreSQL Flexible server. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_principal_credential_type: The service principal credential type to use in + Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' + for certificate. Type: string (or Expression with resultType string). + :vartype service_principal_credential_type: any + :ivar service_principal_embedded_cert: Specify the base64 encoded certificate of your + application registered in Azure Active Directory. Type: string (or Expression with resultType + string). + :vartype service_principal_embedded_cert: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_principal_embedded_cert_password: Specify the password of your certificate if + your certificate has a password and you are using AadServicePrincipal authentication. Type: + string (or Expression with resultType string). + :vartype service_principal_embedded_cert_password: ~azure.mgmt.datafactory.models.SecretBase + :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string + (or Expression with resultType string). + :vartype tenant: any + :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed + values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data + factory regions’ cloud type. Type: string (or Expression with resultType string). + :vartype azure_cloud_type: any + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference.""" + server: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Server name for connection. Type: string.""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The port for the connection. Type: integer.""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Username for authentication. Type: string.""" + database: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database name for connection. Type: string.""" + ssl_mode: Optional[Any] = rest_field(name="sslMode", visibility=["read", "create", "update", "delete", "query"]) + """SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: + verify-ca, 5: verify-full. Type: integer.""" + timeout: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The time to wait (in seconds) while trying to establish a connection before terminating the + attempt and generating an error. Type: integer.""" + command_timeout: Optional[Any] = rest_field( + name="commandTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """The time to wait (in seconds) while trying to execute a command before terminating the attempt + and generating an error. Set to zero for infinity. Type: integer.""" + trust_server_certificate: Optional[Any] = rest_field( + name="trustServerCertificate", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to trust the server certificate without validating it. Type: boolean.""" + read_buffer_size: Optional[Any] = rest_field( + name="readBufferSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Determines the size of the internal buffer uses when reading. Increasing may improve + performance if transferring large values from the database. Type: integer.""" + timezone: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Gets or sets the session timezone. Type: string.""" + encoding: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL string data. Type: + string.""" + password: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of password in connection string.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of the service principal used to authenticate against Azure Database for PostgreSQL + Flexible server. Type: string (or Expression with resultType string).""" + service_principal_key: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The key of the service principal used to authenticate against Azure Database for PostgreSQL + Flexible server.""" + service_principal_credential_type: Optional[Any] = rest_field( + name="servicePrincipalCredentialType", visibility=["read", "create", "update", "delete", "query"] + ) + """The service principal credential type to use in Server-To-Server authentication. + 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + Expression with resultType string).""" + service_principal_embedded_cert: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalEmbeddedCert", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the base64 encoded certificate of your application registered in Azure Active + Directory. Type: string (or Expression with resultType string).""" + service_principal_embedded_cert_password: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalEmbeddedCertPassword", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the password of your certificate if your certificate has a password and you are using + AadServicePrincipal authentication. Type: string (or Expression with resultType string).""" + tenant: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name or ID of the tenant to which the service principal belongs. Type: string (or + Expression with resultType string).""" + azure_cloud_type: Optional[Any] = rest_field( + name="azureCloudType", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, + AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud + type. Type: string (or Expression with resultType string).""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( + self, + *, + connection_string: Optional[Any] = None, + server: Optional[Any] = None, + port: Optional[Any] = None, + username: Optional[Any] = None, + database: Optional[Any] = None, + ssl_mode: Optional[Any] = None, + timeout: Optional[Any] = None, + command_timeout: Optional[Any] = None, + trust_server_certificate: Optional[Any] = None, + read_buffer_size: Optional[Any] = None, + timezone: Optional[Any] = None, + encoding: Optional[Any] = None, + password: Optional["_models.AzureKeyVaultSecretReference"] = None, + encrypted_credential: Optional[str] = None, + service_principal_id: Optional[Any] = None, + service_principal_key: Optional["_models.SecretBase"] = None, + service_principal_credential_type: Optional[Any] = None, + service_principal_embedded_cert: Optional["_models.SecretBase"] = None, + service_principal_embedded_cert_password: Optional["_models.SecretBase"] = None, + tenant: Optional[Any] = None, + azure_cloud_type: Optional[Any] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzurePostgreSqlSink(CopySink, discriminator="AzurePostgreSqlSink"): + """A copy activity Azure Database for PostgreSQL sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar pre_copy_script: A query to execute before starting the copy. Type: string (or Expression + with resultType string). + :vartype pre_copy_script: any + :ivar write_method: The write behavior for the operation. Default is Bulk Insert. Known values + are: "BulkInsert", "CopyCommand", and "Upsert". + :vartype write_method: str or ~azure.mgmt.datafactory.models.AzurePostgreSqlWriteMethodEnum + :ivar upsert_settings: Azure Database for PostgreSQL upsert option settings. + :vartype upsert_settings: ~azure.mgmt.datafactory.models.AzurePostgreSqlSinkUpsertSettings + :ivar type: Copy sink type. Required. Default value is "AzurePostgreSqlSink". + :vartype type: str + """ + + pre_copy_script: Optional[Any] = rest_field( + name="preCopyScript", visibility=["read", "create", "update", "delete", "query"] + ) + """A query to execute before starting the copy. Type: string (or Expression with resultType + string).""" + write_method: Optional[Union[str, "_models.AzurePostgreSqlWriteMethodEnum"]] = rest_field( + name="writeMethod", visibility=["read", "create", "update", "delete", "query"] + ) + """The write behavior for the operation. Default is Bulk Insert. Known values are: \"BulkInsert\", + \"CopyCommand\", and \"Upsert\".""" + upsert_settings: Optional["_models.AzurePostgreSqlSinkUpsertSettings"] = rest_field( + name="upsertSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Database for PostgreSQL upsert option settings.""" + type: Literal["AzurePostgreSqlSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"AzurePostgreSqlSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + pre_copy_script: Optional[Any] = None, + write_method: Optional[Union[str, "_models.AzurePostgreSqlWriteMethodEnum"]] = None, + upsert_settings: Optional["_models.AzurePostgreSqlSinkUpsertSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzurePostgreSqlSink" # type: ignore + + +class AzurePostgreSqlSinkUpsertSettings(_Model): + """Azure Database for PostgreSQL upsert option settings. + + :ivar keys_property: Key column names for unique row identification. Type: array of strings (or + Expression with resultType array of strings). + :vartype keys_property: any + """ + + keys_property: Optional[Any] = rest_field( + name="keys", visibility=["read", "create", "update", "delete", "query"], original_tsp_name="keys" + ) + """Key column names for unique row identification. Type: array of strings (or Expression with + resultType array of strings).""" + + @overload + def __init__( + self, + *, + keys_property: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzurePostgreSqlSource(TabularSource, discriminator="AzurePostgreSqlSource"): + """A copy activity Azure Database for PostgreSQL source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "AzurePostgreSqlSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["AzurePostgreSqlSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"AzurePostgreSqlSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzurePostgreSqlSource" # type: ignore + + +class AzurePostgreSqlTableDataset(Dataset, discriminator="AzurePostgreSqlTable"): + """Azure PostgreSQL dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzurePostgreSqlTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "AzurePostgreSqlTable". + :vartype type: str + """ + + type_properties: Optional["_models.AzurePostgreSqlTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["AzurePostgreSqlTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"AzurePostgreSqlTable\".""" + + __flattened_items = ["table_name", "table", "schema"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.AzurePostgreSqlTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzurePostgreSqlTableDatasetTypeProperties(_Model): # pylint: disable=name-too-long + """Azure PostgreSQL dataset properties. + + :ivar table_name: The table name of the Azure PostgreSQL database which includes both schema + and table. Type: string (or Expression with resultType string). + :vartype table_name: any + :ivar table: The table name of the Azure PostgreSQL database. Type: string (or Expression with + resultType string). + :vartype table: any + :ivar schema: The schema name of the Azure PostgreSQL database. Type: string (or Expression + with resultType string). + :vartype schema: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Azure PostgreSQL database which includes both schema and table. Type: + string (or Expression with resultType string).""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Azure PostgreSQL database. Type: string (or Expression with resultType + string).""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the Azure PostgreSQL database. Type: string (or Expression with resultType + string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + table: Optional[Any] = None, + schema: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureQueueSink(CopySink, discriminator="AzureQueueSink"): + """A copy activity Azure Queue sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar type: Copy sink type. Required. Default value is "AzureQueueSink". + :vartype type: str + """ + + type: Literal["AzureQueueSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"AzureQueueSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureQueueSink" # type: ignore + + +class AzureSearchIndexDataset(Dataset, discriminator="AzureSearchIndex"): + """The Azure Search Index. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AzureSearchIndexDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "AzureSearchIndex". + :vartype type: str + """ + + type_properties: "_models.AzureSearchIndexDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type. Required.""" + type: Literal["AzureSearchIndex"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"AzureSearchIndex\".""" + + __flattened_items = ["index_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.AzureSearchIndexDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureSearchIndexDatasetTypeProperties(_Model): + """Properties specific to this dataset type. + + :ivar index_name: The name of the Azure Search Index. Type: string (or Expression with + resultType string). Required. + :vartype index_name: any + """ + + index_name: Any = rest_field(name="indexName", visibility=["read", "create", "update", "delete", "query"]) + """The name of the Azure Search Index. Type: string (or Expression with resultType string). + Required.""" + + @overload + def __init__( + self, + *, + index_name: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureSearchIndexSink(CopySink, discriminator="AzureSearchIndexSink"): + """A copy activity Azure Search Index sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar write_behavior: Specify the write behavior when upserting documents into Azure Search + Index. Known values are: "Merge" and "Upload". + :vartype write_behavior: str or + ~azure.mgmt.datafactory.models.AzureSearchIndexWriteBehaviorType + :ivar type: Copy sink type. Required. Default value is "AzureSearchIndexSink". + :vartype type: str + """ + + write_behavior: Optional[Union[str, "_models.AzureSearchIndexWriteBehaviorType"]] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the write behavior when upserting documents into Azure Search Index. Known values are: + \"Merge\" and \"Upload\".""" + type: Literal["AzureSearchIndexSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"AzureSearchIndexSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + write_behavior: Optional[Union[str, "_models.AzureSearchIndexWriteBehaviorType"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureSearchIndexSink" # type: ignore + + +class AzureSearchLinkedService(LinkedService, discriminator="AzureSearch"): + """Linked service for Windows Azure Search Service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Windows Azure Search Service linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AzureSearchLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureSearch". + :vartype type: str + """ + + type_properties: "_models.AzureSearchLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Windows Azure Search Service linked service properties. Required.""" + type: Literal["AzureSearch"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureSearch\".""" + + __flattened_items = ["url", "key", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureSearchLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureSearchLinkedServiceTypeProperties(_Model): + """Windows Azure Search Service linked service properties. + + :ivar url: URL for Azure Search service. Type: string (or Expression with resultType string). + Required. + :vartype url: any + :ivar key: Admin Key for Azure Search service. + :vartype key: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + url: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """URL for Azure Search service. Type: string (or Expression with resultType string). Required.""" + key: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Admin Key for Azure Search service.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + url: Any, + key: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureSqlDatabaseLinkedService(LinkedService, discriminator="AzureSqlDatabase"): + """Microsoft Azure SQL Database linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure SQL Database linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureSqlDatabaseLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureSqlDatabase". + :vartype type: str + """ + + type_properties: "_models.AzureSqlDatabaseLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure SQL Database linked service properties. Required.""" + type: Literal["AzureSqlDatabase"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureSqlDatabase\".""" + + __flattened_items = [ + "server", + "database", + "encrypt", + "trust_server_certificate", + "host_name_in_certificate", + "application_intent", + "connect_timeout", + "connect_retry_count", + "connect_retry_interval", + "load_balance_timeout", + "command_timeout", + "integrated_security", + "failover_partner", + "max_pool_size", + "min_pool_size", + "multiple_active_result_sets", + "multi_subnet_failover", + "packet_size", + "pooling", + "connection_string", + "authentication_type", + "user_name", + "password", + "service_principal_id", + "service_principal_key", + "service_principal_credential_type", + "service_principal_credential", + "tenant", + "azure_cloud_type", + "encrypted_credential", + "always_encrypted_settings", + "credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureSqlDatabaseLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureSqlDatabaseLinkedServiceTypeProperties( + SqlServerBaseLinkedServiceTypeProperties +): # pylint: disable=name-too-long + """Azure SQL Database linked service properties. + + :ivar server: The name or network address of the instance of SQL Server to which to connect, + used by recommended version. Type: string (or Expression with resultType string). + :vartype server: any + :ivar database: The name of the database, used by recommended version. Type: string (or + Expression with resultType string). + :vartype database: any + :ivar encrypt: Indicate whether TLS encryption is required for all data sent between the client + and server, used by recommended version. Possible values are true/yes/mandatory, + false/no/optional and strict. Type: string (or Expression with resultType string). + :vartype encrypt: any + :ivar trust_server_certificate: Indicate whether the channel will be encrypted while bypassing + walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or + Expression with resultType boolean). + :vartype trust_server_certificate: any + :ivar host_name_in_certificate: The host name to use when validating the server certificate for + the connection. When not specified, the server name from the Data Source is used for + certificate validation, used by recommended version. Type: string (or Expression with + resultType string). + :vartype host_name_in_certificate: any + :ivar application_intent: The application workload type when connecting to a server, used by + recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression + with resultType string). + :vartype application_intent: any + :ivar connect_timeout: The length of time (in seconds) to wait for a connection to the server + before terminating the attempt and generating an error, used by recommended version. Type: + integer (or Expression with resultType integer). + :vartype connect_timeout: any + :ivar connect_retry_count: The number of re-connections attempted after identifying that there + was an idle connection failure, used by recommended version. This must be an integer between 0 + and 255. Type: integer (or Expression with resultType integer). + :vartype connect_retry_count: any + :ivar connect_retry_interval: The amount of time (in seconds) between each re-connection + attempt after identifying that there was an idle connection failure, used by recommended + version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType + integer). + :vartype connect_retry_interval: any + :ivar load_balance_timeout: The minimum time, in seconds, for the connection to live in the + connection pool before being destroyed, used by recommended version. Type: integer (or + Expression with resultType integer). + :vartype load_balance_timeout: any + :ivar command_timeout: The default wait time (in seconds) before terminating the attempt to + execute a command and generating an error, used by recommended version. Type: integer (or + Expression with resultType integer). + :vartype command_timeout: any + :ivar integrated_security: Indicate whether User ID and Password are specified in the + connection (when false) or whether the current Windows account credentials are used for + authentication (when true), used by recommended version. Type: Boolean (or Expression with + resultType boolean). + :vartype integrated_security: any + :ivar failover_partner: The name or address of the partner server to connect to if the primary + server is down, used by recommended version. Type: string (or Expression with resultType + string). + :vartype failover_partner: any + :ivar max_pool_size: The maximum number of connections allowed in the connection pool for this + specific connection string, used by recommended version. Type: integer (or Expression with + resultType integer). + :vartype max_pool_size: any + :ivar min_pool_size: The minimum number of connections allowed in the connection pool for this + specific connection string, used by recommended version. Type: integer (or Expression with + resultType integer). + :vartype min_pool_size: any + :ivar multiple_active_result_sets: When true, an application can maintain multiple active + result sets (MARS). When false, an application must process or cancel all result sets from one + batch before it can execute any other batch on that connection, used by recommended version. + Type: Boolean (or Expression with resultType boolean). + :vartype multiple_active_result_sets: any + :ivar multi_subnet_failover: If your application is connecting to an AlwaysOn availability + group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of + and connection to the (currently) active server, used by recommended version. Type: Boolean (or + Expression with resultType boolean). + :vartype multi_subnet_failover: any + :ivar packet_size: The size in bytes of the network packets used to communicate with an + instance of server, used by recommended version. Type: integer (or Expression with resultType + integer). + :vartype packet_size: any + :ivar pooling: Indicate whether the connection will be pooled or explicitly opened every time + that the connection is requested, used by recommended version. Type: Boolean (or Expression + with resultType boolean). + :vartype pooling: any + :ivar connection_string: The connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar authentication_type: The type used for authentication. Type: string. Known values are: + "SQL", "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". + :vartype authentication_type: str or + ~azure.mgmt.datafactory.models.AzureSqlDatabaseAuthenticationType + :ivar user_name: The user name to be used when connecting to server. Type: string (or + Expression with resultType string). + :vartype user_name: any + :ivar password: The Azure key vault secret reference of password in connection string. + :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar service_principal_id: The ID of the service principal used to authenticate against Azure + SQL Database. Type: string (or Expression with resultType string). + :vartype service_principal_id: any + :ivar service_principal_key: The key of the service principal used to authenticate against + Azure SQL Database. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_principal_credential_type: The service principal credential type to use in + Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' + for certificate. Type: string (or Expression with resultType string). + :vartype service_principal_credential_type: any + :ivar service_principal_credential: The credential of the service principal object in Azure + Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', + servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If + servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only + be AzureKeyVaultSecretReference. + :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase + :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string + (or Expression with resultType string). + :vartype tenant: any + :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed + values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data + factory regions’ cloud type. Type: string (or Expression with resultType string). + :vartype azure_cloud_type: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar always_encrypted_settings: Sql always encrypted properties. + :vartype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.""" + authentication_type: Optional[Union[str, "_models.AzureSqlDatabaseAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type used for authentication. Type: string. Known values are: \"SQL\", + \"ServicePrincipal\", \"SystemAssignedManagedIdentity\", and \"UserAssignedManagedIdentity\".""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """The user name to be used when connecting to server. Type: string (or Expression with resultType + string).""" + password: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of password in connection string.""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of the service principal used to authenticate against Azure SQL Database. Type: string + (or Expression with resultType string).""" + service_principal_key: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The key of the service principal used to authenticate against Azure SQL Database.""" + service_principal_credential_type: Optional[Any] = rest_field( + name="servicePrincipalCredentialType", visibility=["read", "create", "update", "delete", "query"] + ) + """The service principal credential type to use in Server-To-Server authentication. + 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + Expression with resultType string).""" + service_principal_credential: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The credential of the service principal object in Azure Active Directory. If + servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be + SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is + 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.""" + tenant: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name or ID of the tenant to which the service principal belongs. Type: string (or + Expression with resultType string).""" + azure_cloud_type: Optional[Any] = rest_field( + name="azureCloudType", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, + AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud + type. Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = rest_field( + name="alwaysEncryptedSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Sql always encrypted properties.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( # pylint: disable=too-many-locals + self, + *, + server: Optional[Any] = None, + database: Optional[Any] = None, + encrypt: Optional[Any] = None, + trust_server_certificate: Optional[Any] = None, + host_name_in_certificate: Optional[Any] = None, + application_intent: Optional[Any] = None, + connect_timeout: Optional[Any] = None, + connect_retry_count: Optional[Any] = None, + connect_retry_interval: Optional[Any] = None, + load_balance_timeout: Optional[Any] = None, + command_timeout: Optional[Any] = None, + integrated_security: Optional[Any] = None, + failover_partner: Optional[Any] = None, + max_pool_size: Optional[Any] = None, + min_pool_size: Optional[Any] = None, + multiple_active_result_sets: Optional[Any] = None, + multi_subnet_failover: Optional[Any] = None, + packet_size: Optional[Any] = None, + pooling: Optional[Any] = None, + connection_string: Optional[Any] = None, + authentication_type: Optional[Union[str, "_models.AzureSqlDatabaseAuthenticationType"]] = None, + user_name: Optional[Any] = None, + password: Optional["_models.AzureKeyVaultSecretReference"] = None, + service_principal_id: Optional[Any] = None, + service_principal_key: Optional["_models.SecretBase"] = None, + service_principal_credential_type: Optional[Any] = None, + service_principal_credential: Optional["_models.SecretBase"] = None, + tenant: Optional[Any] = None, + azure_cloud_type: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureSqlDWLinkedService(LinkedService, discriminator="AzureSqlDW"): + """Azure SQL Data Warehouse linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure SQL Data Warehouse linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AzureSqlDWLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureSqlDW". + :vartype type: str + """ + + type_properties: "_models.AzureSqlDWLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure SQL Data Warehouse linked service properties. Required.""" + type: Literal["AzureSqlDW"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureSqlDW\".""" + + __flattened_items = [ + "server", + "database", + "encrypt", + "trust_server_certificate", + "host_name_in_certificate", + "application_intent", + "connect_timeout", + "connect_retry_count", + "connect_retry_interval", + "load_balance_timeout", + "command_timeout", + "integrated_security", + "failover_partner", + "max_pool_size", + "min_pool_size", + "multiple_active_result_sets", + "multi_subnet_failover", + "packet_size", + "pooling", + "connection_string", + "authentication_type", + "user_name", + "password", + "service_principal_id", + "service_principal_key", + "service_principal_credential_type", + "service_principal_credential", + "tenant", + "azure_cloud_type", + "encrypted_credential", + "credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureSqlDWLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureSqlDWLinkedServiceTypeProperties(SqlServerBaseLinkedServiceTypeProperties): + """Azure SQL Data Warehouse linked service properties. + + :ivar server: The name or network address of the instance of SQL Server to which to connect, + used by recommended version. Type: string (or Expression with resultType string). + :vartype server: any + :ivar database: The name of the database, used by recommended version. Type: string (or + Expression with resultType string). + :vartype database: any + :ivar encrypt: Indicate whether TLS encryption is required for all data sent between the client + and server, used by recommended version. Possible values are true/yes/mandatory, + false/no/optional and strict. Type: string (or Expression with resultType string). + :vartype encrypt: any + :ivar trust_server_certificate: Indicate whether the channel will be encrypted while bypassing + walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or + Expression with resultType boolean). + :vartype trust_server_certificate: any + :ivar host_name_in_certificate: The host name to use when validating the server certificate for + the connection. When not specified, the server name from the Data Source is used for + certificate validation, used by recommended version. Type: string (or Expression with + resultType string). + :vartype host_name_in_certificate: any + :ivar application_intent: The application workload type when connecting to a server, used by + recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression + with resultType string). + :vartype application_intent: any + :ivar connect_timeout: The length of time (in seconds) to wait for a connection to the server + before terminating the attempt and generating an error, used by recommended version. Type: + integer (or Expression with resultType integer). + :vartype connect_timeout: any + :ivar connect_retry_count: The number of re-connections attempted after identifying that there + was an idle connection failure, used by recommended version. This must be an integer between 0 + and 255. Type: integer (or Expression with resultType integer). + :vartype connect_retry_count: any + :ivar connect_retry_interval: The amount of time (in seconds) between each re-connection + attempt after identifying that there was an idle connection failure, used by recommended + version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType + integer). + :vartype connect_retry_interval: any + :ivar load_balance_timeout: The minimum time, in seconds, for the connection to live in the + connection pool before being destroyed, used by recommended version. Type: integer (or + Expression with resultType integer). + :vartype load_balance_timeout: any + :ivar command_timeout: The default wait time (in seconds) before terminating the attempt to + execute a command and generating an error, used by recommended version. Type: integer (or + Expression with resultType integer). + :vartype command_timeout: any + :ivar integrated_security: Indicate whether User ID and Password are specified in the + connection (when false) or whether the current Windows account credentials are used for + authentication (when true), used by recommended version. Type: Boolean (or Expression with + resultType boolean). + :vartype integrated_security: any + :ivar failover_partner: The name or address of the partner server to connect to if the primary + server is down, used by recommended version. Type: string (or Expression with resultType + string). + :vartype failover_partner: any + :ivar max_pool_size: The maximum number of connections allowed in the connection pool for this + specific connection string, used by recommended version. Type: integer (or Expression with + resultType integer). + :vartype max_pool_size: any + :ivar min_pool_size: The minimum number of connections allowed in the connection pool for this + specific connection string, used by recommended version. Type: integer (or Expression with + resultType integer). + :vartype min_pool_size: any + :ivar multiple_active_result_sets: When true, an application can maintain multiple active + result sets (MARS). When false, an application must process or cancel all result sets from one + batch before it can execute any other batch on that connection, used by recommended version. + Type: Boolean (or Expression with resultType boolean). + :vartype multiple_active_result_sets: any + :ivar multi_subnet_failover: If your application is connecting to an AlwaysOn availability + group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of + and connection to the (currently) active server, used by recommended version. Type: Boolean (or + Expression with resultType boolean). + :vartype multi_subnet_failover: any + :ivar packet_size: The size in bytes of the network packets used to communicate with an + instance of server, used by recommended version. Type: integer (or Expression with resultType + integer). + :vartype packet_size: any + :ivar pooling: Indicate whether the connection will be pooled or explicitly opened every time + that the connection is requested, used by recommended version. Type: Boolean (or Expression + with resultType boolean). + :vartype pooling: any + :ivar connection_string: The connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar authentication_type: The type used for authentication. Type: string. Known values are: + "SQL", "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". + :vartype authentication_type: str or + ~azure.mgmt.datafactory.models.AzureSqlDWAuthenticationType + :ivar user_name: The user name to be used when connecting to server. Type: string (or + Expression with resultType string). + :vartype user_name: any + :ivar password: The Azure key vault secret reference of password in connection string. + :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar service_principal_id: The ID of the service principal used to authenticate against Azure + SQL Data Warehouse. Type: string (or Expression with resultType string). + :vartype service_principal_id: any + :ivar service_principal_key: The key of the service principal used to authenticate against + Azure SQL Data Warehouse. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_principal_credential_type: The service principal credential type to use in + Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' + for certificate. Type: string (or Expression with resultType string). + :vartype service_principal_credential_type: any + :ivar service_principal_credential: The credential of the service principal object in Azure + Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', + servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If + servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only + be AzureKeyVaultSecretReference. + :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase + :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string + (or Expression with resultType string). + :vartype tenant: any + :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed + values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data + factory regions’ cloud type. Type: string (or Expression with resultType string). + :vartype azure_cloud_type: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: + string, SecureString or AzureKeyVaultSecretReference.""" + authentication_type: Optional[Union[str, "_models.AzureSqlDWAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type used for authentication. Type: string. Known values are: \"SQL\", + \"ServicePrincipal\", \"SystemAssignedManagedIdentity\", and \"UserAssignedManagedIdentity\".""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """The user name to be used when connecting to server. Type: string (or Expression with resultType + string).""" + password: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of password in connection string.""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: + string (or Expression with resultType string).""" + service_principal_key: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The key of the service principal used to authenticate against Azure SQL Data Warehouse.""" + service_principal_credential_type: Optional[Any] = rest_field( + name="servicePrincipalCredentialType", visibility=["read", "create", "update", "delete", "query"] + ) + """The service principal credential type to use in Server-To-Server authentication. + 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + Expression with resultType string).""" + service_principal_credential: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The credential of the service principal object in Azure Active Directory. If + servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be + SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is + 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.""" + tenant: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name or ID of the tenant to which the service principal belongs. Type: string (or + Expression with resultType string).""" + azure_cloud_type: Optional[Any] = rest_field( + name="azureCloudType", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, + AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud + type. Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( # pylint: disable=too-many-locals + self, + *, + server: Optional[Any] = None, + database: Optional[Any] = None, + encrypt: Optional[Any] = None, + trust_server_certificate: Optional[Any] = None, + host_name_in_certificate: Optional[Any] = None, + application_intent: Optional[Any] = None, + connect_timeout: Optional[Any] = None, + connect_retry_count: Optional[Any] = None, + connect_retry_interval: Optional[Any] = None, + load_balance_timeout: Optional[Any] = None, + command_timeout: Optional[Any] = None, + integrated_security: Optional[Any] = None, + failover_partner: Optional[Any] = None, + max_pool_size: Optional[Any] = None, + min_pool_size: Optional[Any] = None, + multiple_active_result_sets: Optional[Any] = None, + multi_subnet_failover: Optional[Any] = None, + packet_size: Optional[Any] = None, + pooling: Optional[Any] = None, + connection_string: Optional[Any] = None, + authentication_type: Optional[Union[str, "_models.AzureSqlDWAuthenticationType"]] = None, + user_name: Optional[Any] = None, + password: Optional["_models.AzureKeyVaultSecretReference"] = None, + service_principal_id: Optional[Any] = None, + service_principal_key: Optional["_models.SecretBase"] = None, + service_principal_credential_type: Optional[Any] = None, + service_principal_credential: Optional["_models.SecretBase"] = None, + tenant: Optional[Any] = None, + azure_cloud_type: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureSqlDWTableDataset(Dataset, discriminator="AzureSqlDWTable"): + """The Azure SQL Data Warehouse dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Azure SQL Data Warehouse dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.AzureSqlDWTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "AzureSqlDWTable". + :vartype type: str + """ + + type_properties: Optional["_models.AzureSqlDWTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure SQL Data Warehouse dataset properties.""" + type: Literal["AzureSqlDWTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"AzureSqlDWTable\".""" + + __flattened_items = ["table_name", "schema", "table"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.AzureSqlDWTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureSqlDWTableDatasetTypeProperties(_Model): + """Azure SQL Data Warehouse dataset properties. + + :ivar table_name: This property will be retired. Please consider using schema + table + properties instead. + :vartype table_name: any + :ivar schema: The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with + resultType string). + :vartype schema: any + :ivar table: The table name of the Azure SQL Data Warehouse. Type: string (or Expression with + resultType string). + :vartype table: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property will be retired. Please consider using schema + table properties instead.""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType + string).""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType + string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + schema: Optional[Any] = None, + table: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureSqlMILinkedService(LinkedService, discriminator="AzureSqlMI"): + """Azure SQL Managed Instance linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure SQL Managed Instance linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AzureSqlMILinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureSqlMI". + :vartype type: str + """ + + type_properties: "_models.AzureSqlMILinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure SQL Managed Instance linked service properties. Required.""" + type: Literal["AzureSqlMI"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureSqlMI\".""" + + __flattened_items = [ + "server", + "database", + "encrypt", + "trust_server_certificate", + "host_name_in_certificate", + "application_intent", + "connect_timeout", + "connect_retry_count", + "connect_retry_interval", + "load_balance_timeout", + "command_timeout", + "integrated_security", + "failover_partner", + "max_pool_size", + "min_pool_size", + "multiple_active_result_sets", + "multi_subnet_failover", + "packet_size", + "pooling", + "connection_string", + "authentication_type", + "user_name", + "password", + "service_principal_id", + "service_principal_key", + "service_principal_credential_type", + "service_principal_credential", + "tenant", + "azure_cloud_type", + "encrypted_credential", + "always_encrypted_settings", + "credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureSqlMILinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureSqlMILinkedServiceTypeProperties(SqlServerBaseLinkedServiceTypeProperties): + """Azure SQL Managed Instance linked service properties. + + :ivar server: The name or network address of the instance of SQL Server to which to connect, + used by recommended version. Type: string (or Expression with resultType string). + :vartype server: any + :ivar database: The name of the database, used by recommended version. Type: string (or + Expression with resultType string). + :vartype database: any + :ivar encrypt: Indicate whether TLS encryption is required for all data sent between the client + and server, used by recommended version. Possible values are true/yes/mandatory, + false/no/optional and strict. Type: string (or Expression with resultType string). + :vartype encrypt: any + :ivar trust_server_certificate: Indicate whether the channel will be encrypted while bypassing + walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or + Expression with resultType boolean). + :vartype trust_server_certificate: any + :ivar host_name_in_certificate: The host name to use when validating the server certificate for + the connection. When not specified, the server name from the Data Source is used for + certificate validation, used by recommended version. Type: string (or Expression with + resultType string). + :vartype host_name_in_certificate: any + :ivar application_intent: The application workload type when connecting to a server, used by + recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression + with resultType string). + :vartype application_intent: any + :ivar connect_timeout: The length of time (in seconds) to wait for a connection to the server + before terminating the attempt and generating an error, used by recommended version. Type: + integer (or Expression with resultType integer). + :vartype connect_timeout: any + :ivar connect_retry_count: The number of re-connections attempted after identifying that there + was an idle connection failure, used by recommended version. This must be an integer between 0 + and 255. Type: integer (or Expression with resultType integer). + :vartype connect_retry_count: any + :ivar connect_retry_interval: The amount of time (in seconds) between each re-connection + attempt after identifying that there was an idle connection failure, used by recommended + version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType + integer). + :vartype connect_retry_interval: any + :ivar load_balance_timeout: The minimum time, in seconds, for the connection to live in the + connection pool before being destroyed, used by recommended version. Type: integer (or + Expression with resultType integer). + :vartype load_balance_timeout: any + :ivar command_timeout: The default wait time (in seconds) before terminating the attempt to + execute a command and generating an error, used by recommended version. Type: integer (or + Expression with resultType integer). + :vartype command_timeout: any + :ivar integrated_security: Indicate whether User ID and Password are specified in the + connection (when false) or whether the current Windows account credentials are used for + authentication (when true), used by recommended version. Type: Boolean (or Expression with + resultType boolean). + :vartype integrated_security: any + :ivar failover_partner: The name or address of the partner server to connect to if the primary + server is down, used by recommended version. Type: string (or Expression with resultType + string). + :vartype failover_partner: any + :ivar max_pool_size: The maximum number of connections allowed in the connection pool for this + specific connection string, used by recommended version. Type: integer (or Expression with + resultType integer). + :vartype max_pool_size: any + :ivar min_pool_size: The minimum number of connections allowed in the connection pool for this + specific connection string, used by recommended version. Type: integer (or Expression with + resultType integer). + :vartype min_pool_size: any + :ivar multiple_active_result_sets: When true, an application can maintain multiple active + result sets (MARS). When false, an application must process or cancel all result sets from one + batch before it can execute any other batch on that connection, used by recommended version. + Type: Boolean (or Expression with resultType boolean). + :vartype multiple_active_result_sets: any + :ivar multi_subnet_failover: If your application is connecting to an AlwaysOn availability + group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of + and connection to the (currently) active server, used by recommended version. Type: Boolean (or + Expression with resultType boolean). + :vartype multi_subnet_failover: any + :ivar packet_size: The size in bytes of the network packets used to communicate with an + instance of server, used by recommended version. Type: integer (or Expression with resultType + integer). + :vartype packet_size: any + :ivar pooling: Indicate whether the connection will be pooled or explicitly opened every time + that the connection is requested, used by recommended version. Type: Boolean (or Expression + with resultType boolean). + :vartype pooling: any + :ivar connection_string: The connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar authentication_type: The type used for authentication. Type: string. Known values are: + "SQL", "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". + :vartype authentication_type: str or + ~azure.mgmt.datafactory.models.AzureSqlMIAuthenticationType + :ivar user_name: The user name to be used when connecting to server. Type: string (or + Expression with resultType string). + :vartype user_name: any + :ivar password: The Azure key vault secret reference of password in connection string. + :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar service_principal_id: The ID of the service principal used to authenticate against Azure + SQL Managed Instance. Type: string (or Expression with resultType string). + :vartype service_principal_id: any + :ivar service_principal_key: The key of the service principal used to authenticate against + Azure SQL Managed Instance. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_principal_credential_type: The service principal credential type to use in + Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' + for certificate. Type: string (or Expression with resultType string). + :vartype service_principal_credential_type: any + :ivar service_principal_credential: The credential of the service principal object in Azure + Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', + servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If + servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only + be AzureKeyVaultSecretReference. + :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase + :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string + (or Expression with resultType string). + :vartype tenant: any + :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed + values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data + factory regions’ cloud type. Type: string (or Expression with resultType string). + :vartype azure_cloud_type: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar always_encrypted_settings: Sql always encrypted properties. + :vartype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.""" + authentication_type: Optional[Union[str, "_models.AzureSqlMIAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type used for authentication. Type: string. Known values are: \"SQL\", + \"ServicePrincipal\", \"SystemAssignedManagedIdentity\", and \"UserAssignedManagedIdentity\".""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """The user name to be used when connecting to server. Type: string (or Expression with resultType + string).""" + password: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of password in connection string.""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of the service principal used to authenticate against Azure SQL Managed Instance. Type: + string (or Expression with resultType string).""" + service_principal_key: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The key of the service principal used to authenticate against Azure SQL Managed Instance.""" + service_principal_credential_type: Optional[Any] = rest_field( + name="servicePrincipalCredentialType", visibility=["read", "create", "update", "delete", "query"] + ) + """The service principal credential type to use in Server-To-Server authentication. + 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + Expression with resultType string).""" + service_principal_credential: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The credential of the service principal object in Azure Active Directory. If + servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be + SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is + 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.""" + tenant: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name or ID of the tenant to which the service principal belongs. Type: string (or + Expression with resultType string).""" + azure_cloud_type: Optional[Any] = rest_field( + name="azureCloudType", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, + AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud + type. Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = rest_field( + name="alwaysEncryptedSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Sql always encrypted properties.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( # pylint: disable=too-many-locals + self, + *, + server: Optional[Any] = None, + database: Optional[Any] = None, + encrypt: Optional[Any] = None, + trust_server_certificate: Optional[Any] = None, + host_name_in_certificate: Optional[Any] = None, + application_intent: Optional[Any] = None, + connect_timeout: Optional[Any] = None, + connect_retry_count: Optional[Any] = None, + connect_retry_interval: Optional[Any] = None, + load_balance_timeout: Optional[Any] = None, + command_timeout: Optional[Any] = None, + integrated_security: Optional[Any] = None, + failover_partner: Optional[Any] = None, + max_pool_size: Optional[Any] = None, + min_pool_size: Optional[Any] = None, + multiple_active_result_sets: Optional[Any] = None, + multi_subnet_failover: Optional[Any] = None, + packet_size: Optional[Any] = None, + pooling: Optional[Any] = None, + connection_string: Optional[Any] = None, + authentication_type: Optional[Union[str, "_models.AzureSqlMIAuthenticationType"]] = None, + user_name: Optional[Any] = None, + password: Optional["_models.AzureKeyVaultSecretReference"] = None, + service_principal_id: Optional[Any] = None, + service_principal_key: Optional["_models.SecretBase"] = None, + service_principal_credential_type: Optional[Any] = None, + service_principal_credential: Optional["_models.SecretBase"] = None, + tenant: Optional[Any] = None, + azure_cloud_type: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureSqlMITableDataset(Dataset, discriminator="AzureSqlMITable"): + """The Azure SQL Managed Instance dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Azure SQL Managed Instance dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.AzureSqlMITableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "AzureSqlMITable". + :vartype type: str + """ + + type_properties: Optional["_models.AzureSqlMITableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure SQL Managed Instance dataset properties.""" + type: Literal["AzureSqlMITable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"AzureSqlMITable\".""" + + __flattened_items = ["table_name", "schema", "table"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.AzureSqlMITableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureSqlMITableDatasetTypeProperties(_Model): + """Azure SQL Managed Instance dataset properties. + + :ivar table_name: This property will be retired. Please consider using schema + table + properties instead. + :vartype table_name: any + :ivar schema: The schema name of the Azure SQL Managed Instance. Type: string (or Expression + with resultType string). + :vartype schema: any + :ivar table: The table name of the Azure SQL Managed Instance dataset. Type: string (or + Expression with resultType string). + :vartype table: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property will be retired. Please consider using schema + table properties instead.""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the Azure SQL Managed Instance. Type: string (or Expression with resultType + string).""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Azure SQL Managed Instance dataset. Type: string (or Expression with + resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + schema: Optional[Any] = None, + table: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureSqlSink(CopySink, discriminator="AzureSqlSink"): + """A copy activity Azure SQL sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar sql_writer_stored_procedure_name: SQL writer stored procedure name. Type: string (or + Expression with resultType string). + :vartype sql_writer_stored_procedure_name: any + :ivar sql_writer_table_type: SQL writer table type. Type: string (or Expression with resultType + string). + :vartype sql_writer_table_type: any + :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType + string). + :vartype pre_copy_script: any + :ivar stored_procedure_parameters: SQL stored procedure parameters. + :vartype stored_procedure_parameters: any + :ivar stored_procedure_table_type_parameter_name: The stored procedure parameter name of the + table type. Type: string (or Expression with resultType string). + :vartype stored_procedure_table_type_parameter_name: any + :ivar table_option: The option to handle sink table, such as autoCreate. For now only + 'autoCreate' value is supported. Type: string (or Expression with resultType string). + :vartype table_option: any + :ivar sql_writer_use_table_lock: Whether to use table lock during bulk copy. Type: boolean (or + Expression with resultType boolean). + :vartype sql_writer_use_table_lock: any + :ivar write_behavior: Write behavior when copying data into Azure SQL. Type: + SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum). + :vartype write_behavior: any + :ivar upsert_settings: SQL upsert settings. + :vartype upsert_settings: ~azure.mgmt.datafactory.models.SqlUpsertSettings + :ivar type: Copy sink type. Required. Default value is "AzureSqlSink". + :vartype type: str + """ + + sql_writer_stored_procedure_name: Optional[Any] = rest_field( + name="sqlWriterStoredProcedureName", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL writer stored procedure name. Type: string (or Expression with resultType string).""" + sql_writer_table_type: Optional[Any] = rest_field( + name="sqlWriterTableType", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL writer table type. Type: string (or Expression with resultType string).""" + pre_copy_script: Optional[Any] = rest_field( + name="preCopyScript", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL pre-copy script. Type: string (or Expression with resultType string).""" + stored_procedure_parameters: Optional[Any] = rest_field( + name="storedProcedureParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL stored procedure parameters.""" + stored_procedure_table_type_parameter_name: Optional[Any] = rest_field( + name="storedProcedureTableTypeParameterName", visibility=["read", "create", "update", "delete", "query"] + ) + """The stored procedure parameter name of the table type. Type: string (or Expression with + resultType string).""" + table_option: Optional[Any] = rest_field( + name="tableOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is + supported. Type: string (or Expression with resultType string).""" + sql_writer_use_table_lock: Optional[Any] = rest_field( + name="sqlWriterUseTableLock", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType + boolean).""" + write_behavior: Optional[Any] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """Write behavior when copying data into Azure SQL. Type: SqlWriteBehaviorEnum (or Expression with + resultType SqlWriteBehaviorEnum).""" + upsert_settings: Optional["_models.SqlUpsertSettings"] = rest_field( + name="upsertSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL upsert settings.""" + type: Literal["AzureSqlSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"AzureSqlSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + sql_writer_stored_procedure_name: Optional[Any] = None, + sql_writer_table_type: Optional[Any] = None, + pre_copy_script: Optional[Any] = None, + stored_procedure_parameters: Optional[Any] = None, + stored_procedure_table_type_parameter_name: Optional[Any] = None, + table_option: Optional[Any] = None, + sql_writer_use_table_lock: Optional[Any] = None, + write_behavior: Optional[Any] = None, + upsert_settings: Optional["_models.SqlUpsertSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureSqlSink" # type: ignore + + +class AzureSqlSource(TabularSource, discriminator="AzureSqlSource"): + """A copy activity Azure SQL source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar sql_reader_query: SQL reader query. Type: string (or Expression with resultType string). + :vartype sql_reader_query: any + :ivar sql_reader_stored_procedure_name: Name of the stored procedure for a SQL Database source. + This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with + resultType string). + :vartype sql_reader_stored_procedure_name: any + :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. + Example: "{Parameter1: {value: "1", type: "int"}}". + :vartype stored_procedure_parameters: any + :ivar isolation_level: Specifies the transaction locking behavior for the SQL source. Allowed + values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value + is ReadCommitted. Type: string (or Expression with resultType string). + :vartype isolation_level: any + :ivar produce_additional_types: Which additional types to produce. + :vartype produce_additional_types: any + :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. + Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or + Expression with resultType string). + :vartype partition_option: any + :ivar partition_settings: The settings that will be leveraged for Sql source partitioning. + :vartype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings + :ivar type: Copy source type. Required. Default value is "AzureSqlSource". + :vartype type: str + """ + + sql_reader_query: Optional[Any] = rest_field( + name="sqlReaderQuery", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL reader query. Type: string (or Expression with resultType string).""" + sql_reader_stored_procedure_name: Optional[Any] = rest_field( + name="sqlReaderStoredProcedureName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the stored procedure for a SQL Database source. This cannot be used at the same time as + SqlReaderQuery. Type: string (or Expression with resultType string).""" + stored_procedure_parameters: Optional[Any] = rest_field( + name="storedProcedureParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """Value and type setting for stored procedure parameters. Example: \"{Parameter1: {value: \"1\", + type: \"int\"}}\".""" + isolation_level: Optional[Any] = rest_field( + name="isolationLevel", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the transaction locking behavior for the SQL source. Allowed values: + ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is + ReadCommitted. Type: string (or Expression with resultType string).""" + produce_additional_types: Optional[Any] = rest_field( + name="produceAdditionalTypes", visibility=["read", "create", "update", "delete", "query"] + ) + """Which additional types to produce.""" + partition_option: Optional[Any] = rest_field( + name="partitionOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The partition mechanism that will be used for Sql read in parallel. Possible values include: + \"None\", \"PhysicalPartitionsOfTable\", \"DynamicRange\". Type: string (or Expression with + resultType string).""" + partition_settings: Optional["_models.SqlPartitionSettings"] = rest_field( + name="partitionSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The settings that will be leveraged for Sql source partitioning.""" + type: Literal["AzureSqlSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"AzureSqlSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + sql_reader_query: Optional[Any] = None, + sql_reader_stored_procedure_name: Optional[Any] = None, + stored_procedure_parameters: Optional[Any] = None, + isolation_level: Optional[Any] = None, + produce_additional_types: Optional[Any] = None, + partition_option: Optional[Any] = None, + partition_settings: Optional["_models.SqlPartitionSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureSqlSource" # type: ignore + + +class AzureSqlTableDataset(Dataset, discriminator="AzureSqlTable"): + """The Azure SQL Server database dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Azure SQL dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.AzureSqlTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "AzureSqlTable". + :vartype type: str + """ + + type_properties: Optional["_models.AzureSqlTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure SQL dataset properties.""" + type: Literal["AzureSqlTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"AzureSqlTable\".""" + + __flattened_items = ["table_name", "schema", "table"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.AzureSqlTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureSqlTableDatasetTypeProperties(_Model): + """Azure SQL dataset properties. + + :ivar table_name: This property will be retired. Please consider using schema + table + properties instead. + :vartype table_name: any + :ivar schema: The schema name of the Azure SQL database. Type: string (or Expression with + resultType string). + :vartype schema: any + :ivar table: The table name of the Azure SQL database. Type: string (or Expression with + resultType string). + :vartype table: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property will be retired. Please consider using schema + table properties instead.""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the Azure SQL database. Type: string (or Expression with resultType string).""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Azure SQL database. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + schema: Optional[Any] = None, + table: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureStorageLinkedService(LinkedService, discriminator="AzureStorage"): + """The storage account linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure Storage linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureStorageLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureStorage". + :vartype type: str + """ + + type_properties: "_models.AzureStorageLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Storage linked service properties. Required.""" + type: Literal["AzureStorage"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureStorage\".""" + + __flattened_items = ["connection_string", "account_key", "sas_uri", "sas_token", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureStorageLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureStorageLinkedServiceTypeProperties(_Model): + """Azure Storage linked service properties. + + :ivar connection_string: The connection string. It is mutually exclusive with sasUri property. + Type: string, SecureString or AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar account_key: The Azure key vault secret reference of accountKey in connection string. + :vartype account_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar sas_uri: SAS URI of the Azure Storage resource. It is mutually exclusive with + connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. + :vartype sas_uri: any + :ivar sas_token: The Azure key vault secret reference of sasToken in sas uri. + :vartype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection string. It is mutually exclusive with sasUri property. Type: string, + SecureString or AzureKeyVaultSecretReference.""" + account_key: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + name="accountKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of accountKey in connection string.""" + sas_uri: Optional[Any] = rest_field(name="sasUri", visibility=["read", "create", "update", "delete", "query"]) + """SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString property. + Type: string, SecureString or AzureKeyVaultSecretReference.""" + sas_token: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + name="sasToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of sasToken in sas uri.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_string: Optional[Any] = None, + account_key: Optional["_models.AzureKeyVaultSecretReference"] = None, + sas_uri: Optional[Any] = None, + sas_token: Optional["_models.AzureKeyVaultSecretReference"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureSynapseArtifactsLinkedService(LinkedService, discriminator="AzureSynapseArtifacts"): + """Azure Synapse Analytics (Artifacts) linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure Synapse Analytics (Artifacts) linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureSynapseArtifactsLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureSynapseArtifacts". + :vartype type: str + """ + + type_properties: "_models.AzureSynapseArtifactsLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Synapse Analytics (Artifacts) linked service properties. Required.""" + type: Literal["AzureSynapseArtifacts"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureSynapseArtifacts\".""" + + __flattened_items = ["endpoint", "authentication", "workspace_resource_id"] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureSynapseArtifactsLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureSynapseArtifactsLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Azure Synapse Analytics (Artifacts) linked service properties. + + :ivar endpoint: https://.dev.azuresynapse.net, Azure Synapse Analytics workspace + URL. Type: string (or Expression with resultType string). Required. + :vartype endpoint: any + :ivar authentication: Required to specify MSI, if using system assigned managed identity as + authentication method. Type: string (or Expression with resultType string). + :vartype authentication: any + :ivar workspace_resource_id: The resource ID of the Synapse workspace. The format should be: + /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Synapse/workspaces/{workspaceName}. + Type: string (or Expression with resultType string). + :vartype workspace_resource_id: any + """ + + endpoint: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """https://.dev.azuresynapse.net, Azure Synapse Analytics workspace URL. Type: + string (or Expression with resultType string). Required.""" + authentication: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Required to specify MSI, if using system assigned managed identity as authentication method. + Type: string (or Expression with resultType string).""" + workspace_resource_id: Optional[Any] = rest_field( + name="workspaceResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """The resource ID of the Synapse workspace. The format should be: + /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Synapse/workspaces/{workspaceName}. + Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + endpoint: Any, + authentication: Optional[Any] = None, + workspace_resource_id: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureTableDataset(Dataset, discriminator="AzureTable"): + """The Azure Table storage dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Azure Table dataset properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.AzureTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "AzureTable". + :vartype type: str + """ + + type_properties: "_models.AzureTableDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Table dataset properties. Required.""" + type: Literal["AzureTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"AzureTable\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.AzureTableDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureTableDatasetTypeProperties(_Model): + """Azure Table dataset properties. + + :ivar table_name: The table name of the Azure Table storage. Type: string (or Expression with + resultType string). Required. + :vartype table_name: any + """ + + table_name: Any = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Azure Table storage. Type: string (or Expression with resultType string). + Required.""" + + @overload + def __init__( + self, + *, + table_name: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureTableSink(CopySink, discriminator="AzureTableSink"): + """A copy activity Azure Table sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar azure_table_default_partition_key_value: Azure Table default partition key value. Type: + string (or Expression with resultType string). + :vartype azure_table_default_partition_key_value: any + :ivar azure_table_partition_key_name: Azure Table partition key name. Type: string (or + Expression with resultType string). + :vartype azure_table_partition_key_name: any + :ivar azure_table_row_key_name: Azure Table row key name. Type: string (or Expression with + resultType string). + :vartype azure_table_row_key_name: any + :ivar azure_table_insert_type: Azure Table insert type. Type: string (or Expression with + resultType string). + :vartype azure_table_insert_type: any + :ivar type: Copy sink type. Required. Default value is "AzureTableSink". + :vartype type: str + """ + + azure_table_default_partition_key_value: Optional[Any] = rest_field( + name="azureTableDefaultPartitionKeyValue", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Table default partition key value. Type: string (or Expression with resultType string).""" + azure_table_partition_key_name: Optional[Any] = rest_field( + name="azureTablePartitionKeyName", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Table partition key name. Type: string (or Expression with resultType string).""" + azure_table_row_key_name: Optional[Any] = rest_field( + name="azureTableRowKeyName", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Table row key name. Type: string (or Expression with resultType string).""" + azure_table_insert_type: Optional[Any] = rest_field( + name="azureTableInsertType", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Table insert type. Type: string (or Expression with resultType string).""" + type: Literal["AzureTableSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"AzureTableSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + azure_table_default_partition_key_value: Optional[Any] = None, + azure_table_partition_key_name: Optional[Any] = None, + azure_table_row_key_name: Optional[Any] = None, + azure_table_insert_type: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureTableSink" # type: ignore + + +class AzureTableSource(TabularSource, discriminator="AzureTableSource"): + """A copy activity Azure Table source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar azure_table_source_query: Azure Table source query. Type: string (or Expression with + resultType string). + :vartype azure_table_source_query: any + :ivar azure_table_source_ignore_table_not_found: Azure Table source ignore table not found. + Type: boolean (or Expression with resultType boolean). + :vartype azure_table_source_ignore_table_not_found: any + :ivar type: Copy source type. Required. Default value is "AzureTableSource". + :vartype type: str + """ + + azure_table_source_query: Optional[Any] = rest_field( + name="azureTableSourceQuery", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Table source query. Type: string (or Expression with resultType string).""" + azure_table_source_ignore_table_not_found: Optional[Any] = rest_field( + name="azureTableSourceIgnoreTableNotFound", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Table source ignore table not found. Type: boolean (or Expression with resultType + boolean).""" + type: Literal["AzureTableSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"AzureTableSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + azure_table_source_query: Optional[Any] = None, + azure_table_source_ignore_table_not_found: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "AzureTableSource" # type: ignore + + +class AzureTableStorageLinkedService(LinkedService, discriminator="AzureTableStorage"): + """The azure table storage linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Azure Table Storage linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.AzureTableStorageLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "AzureTableStorage". + :vartype type: str + """ + + type_properties: "_models.AzureTableStorageLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Table Storage linked service properties. Required.""" + type: Literal["AzureTableStorage"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"AzureTableStorage\".""" + + __flattened_items = [ + "connection_string", + "account_key", + "sas_uri", + "sas_token", + "encrypted_credential", + "service_endpoint", + "credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.AzureTableStorageLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class AzureTableStorageLinkedServiceTypeProperties( + AzureStorageLinkedServiceTypeProperties +): # pylint: disable=name-too-long + """Azure Table Storage linked service properties. + + :ivar connection_string: The connection string. It is mutually exclusive with sasUri property. + Type: string, SecureString or AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar account_key: The Azure key vault secret reference of accountKey in connection string. + :vartype account_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar sas_uri: SAS URI of the Azure Storage resource. It is mutually exclusive with + connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. + :vartype sas_uri: any + :ivar sas_token: The Azure key vault secret reference of sasToken in sas uri. + :vartype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar service_endpoint: Table service endpoint of the Azure Table Storage resource. It is + mutually exclusive with connectionString, sasUri property. + :vartype service_endpoint: any + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + service_endpoint: Optional[Any] = rest_field( + name="serviceEndpoint", visibility=["read", "create", "update", "delete", "query"] + ) + """Table service endpoint of the Azure Table Storage resource. It is mutually exclusive with + connectionString, sasUri property.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( + self, + *, + connection_string: Optional[Any] = None, + account_key: Optional["_models.AzureKeyVaultSecretReference"] = None, + sas_uri: Optional[Any] = None, + sas_token: Optional["_models.AzureKeyVaultSecretReference"] = None, + encrypted_credential: Optional[str] = None, + service_endpoint: Optional[Any] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BigDataPoolParametrizationReference(_Model): + """Big data pool reference type. + + :ivar type: Big data pool reference type. Required. "BigDataPoolReference" + :vartype type: str or ~azure.mgmt.datafactory.models.BigDataPoolReferenceType + :ivar reference_name: Reference big data pool name. Type: string (or Expression with resultType + string). Required. + :vartype reference_name: any + """ + + type: Union[str, "_models.BigDataPoolReferenceType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Big data pool reference type. Required. \"BigDataPoolReference\"""" + reference_name: Any = rest_field(name="referenceName", visibility=["read", "create", "update", "delete", "query"]) + """Reference big data pool name. Type: string (or Expression with resultType string). Required.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.BigDataPoolReferenceType"], + reference_name: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BinaryDataset(Dataset, discriminator="Binary"): + """Binary dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Binary dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.BinaryDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "Binary". + :vartype type: str + """ + + type_properties: Optional["_models.BinaryDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Binary dataset properties.""" + type: Literal["Binary"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"Binary\".""" + + __flattened_items = ["location", "compression"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.BinaryDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class BinaryDatasetTypeProperties(_Model): + """Binary dataset properties. + + :ivar location: The location of the Binary storage. Required. + :vartype location: ~azure.mgmt.datafactory.models.DatasetLocation + :ivar compression: The data compression method used for the binary dataset. + :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression + """ + + location: "_models.DatasetLocation" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The location of the Binary storage. Required.""" + compression: Optional["_models.DatasetCompression"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The data compression method used for the binary dataset.""" + + @overload + def __init__( + self, + *, + location: "_models.DatasetLocation", + compression: Optional["_models.DatasetCompression"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class FormatReadSettings(_Model): + """Format read settings. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + BinaryReadSettings, DelimitedTextReadSettings, JsonReadSettings, ParquetReadSettings, + XmlReadSettings + + :ivar type: The read setting type. Required. Default value is None. + :vartype type: str + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """The read setting type. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BinaryReadSettings(FormatReadSettings, discriminator="BinaryReadSettings"): + """Binary read settings. + + :ivar compression_properties: Compression settings. + :vartype compression_properties: ~azure.mgmt.datafactory.models.CompressionReadSettings + :ivar type: The read setting type. Required. Default value is "BinaryReadSettings". + :vartype type: str + """ + + compression_properties: Optional["_models.CompressionReadSettings"] = rest_field( + name="compressionProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Compression settings.""" + type: Literal["BinaryReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"BinaryReadSettings\".""" + + @overload + def __init__( + self, + *, + compression_properties: Optional["_models.CompressionReadSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "BinaryReadSettings" # type: ignore + + +class BinarySink(CopySink, discriminator="BinarySink"): + """A copy activity Binary sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar store_settings: Binary store settings. + :vartype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings + :ivar type: Copy sink type. Required. Default value is "BinarySink". + :vartype type: str + """ + + store_settings: Optional["_models.StoreWriteSettings"] = rest_field( + name="storeSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Binary store settings.""" + type: Literal["BinarySink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"BinarySink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + store_settings: Optional["_models.StoreWriteSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "BinarySink" # type: ignore + + +class BinarySource(CopySource, discriminator="BinarySource"): + """A copy activity Binary source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar store_settings: Binary store settings. + :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings + :ivar format_settings: Binary format settings. + :vartype format_settings: ~azure.mgmt.datafactory.models.BinaryReadSettings + :ivar type: Copy source type. Required. Default value is "BinarySource". + :vartype type: str + """ + + store_settings: Optional["_models.StoreReadSettings"] = rest_field( + name="storeSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Binary store settings.""" + format_settings: Optional["_models.BinaryReadSettings"] = rest_field( + name="formatSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Binary format settings.""" + type: Literal["BinarySource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"BinarySource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + store_settings: Optional["_models.StoreReadSettings"] = None, + format_settings: Optional["_models.BinaryReadSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "BinarySource" # type: ignore + + +class Trigger(_Model): + """Azure data factory nested object which contains information about creating pipeline run. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + BlobEventsTrigger, BlobTrigger, ChainingTrigger, CustomEventsTrigger, MultiplePipelineTrigger, + RerunTumblingWindowTrigger, ScheduleTrigger, TumblingWindowTrigger + + :ivar type: Trigger type. Required. Default value is None. + :vartype type: str + :ivar description: Trigger description. + :vartype description: str + :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are + called on the Trigger. Known values are: "Started", "Stopped", and "Disabled". + :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :ivar annotations: List of tags that can be used for describing the trigger. + :vartype annotations: list[any] + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """Trigger type. Required. Default value is None.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Trigger description.""" + runtime_state: Optional[Union[str, "_models.TriggerRuntimeState"]] = rest_field( + name="runtimeState", visibility=["read"] + ) + """Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. + Known values are: \"Started\", \"Stopped\", and \"Disabled\".""" + annotations: Optional[list[Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of tags that can be used for describing the trigger.""" + + @overload + def __init__( + self, + *, + type: str, + description: Optional[str] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MultiplePipelineTrigger(Trigger, discriminator="MultiplePipelineTrigger"): + """Base class for all triggers that support one to many model for trigger to pipeline. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + BlobEventsTrigger, BlobTrigger, CustomEventsTrigger, ScheduleTrigger + + :ivar description: Trigger description. + :vartype description: str + :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are + called on the Trigger. Known values are: "Started", "Stopped", and "Disabled". + :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :ivar annotations: List of tags that can be used for describing the trigger. + :vartype annotations: list[any] + :ivar pipelines: Pipelines that need to be started. + :vartype pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] + :ivar type: Required. Default value is "MultiplePipelineTrigger". + :vartype type: str + """ + + __mapping__: dict[str, _Model] = {} + pipelines: Optional[list["_models.TriggerPipelineReference"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Pipelines that need to be started.""" + type: Literal["MultiplePipelineTrigger"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Required. Default value is \"MultiplePipelineTrigger\".""" + + @overload + def __init__( + self, + *, + description: Optional[str] = None, + annotations: Optional[list[Any]] = None, + pipelines: Optional[list["_models.TriggerPipelineReference"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "MultiplePipelineTrigger" # type: ignore + + +class BlobEventsTrigger(MultiplePipelineTrigger, discriminator="BlobEventsTrigger"): + """Trigger that runs every time a Blob event occurs. + + :ivar description: Trigger description. + :vartype description: str + :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are + called on the Trigger. Known values are: "Started", "Stopped", and "Disabled". + :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :ivar annotations: List of tags that can be used for describing the trigger. + :vartype annotations: list[any] + :ivar pipelines: Pipelines that need to be started. + :vartype pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] + :ivar type_properties: Blob Events Trigger properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.BlobEventsTriggerTypeProperties + :ivar type: Trigger type. Required. Default value is "BlobEventsTrigger". + :vartype type: str + """ + + type_properties: "_models.BlobEventsTriggerTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Blob Events Trigger properties. Required.""" + type: Literal["BlobEventsTrigger"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Trigger type. Required. Default value is \"BlobEventsTrigger\".""" + + __flattened_items = ["blob_path_begins_with", "blob_path_ends_with", "ignore_empty_blobs", "events", "scope"] + + @overload + def __init__( + self, + *, + type_properties: "_models.BlobEventsTriggerTypeProperties", + description: Optional[str] = None, + annotations: Optional[list[Any]] = None, + pipelines: Optional[list["_models.TriggerPipelineReference"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class BlobEventsTriggerTypeProperties(_Model): + """Blob Events Trigger properties. + + :ivar blob_path_begins_with: The blob path must begin with the pattern provided for trigger to + fire. For example, '/records/blobs/december/' will only fire the trigger for blobs in the + december folder under the records container. At least one of these must be provided: + blobPathBeginsWith, blobPathEndsWith. + :vartype blob_path_begins_with: str + :ivar blob_path_ends_with: The blob path must end with the pattern provided for trigger to + fire. For example, 'december/boxes.csv' will only fire the trigger for blobs named boxes in a + december folder. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith. + :vartype blob_path_ends_with: str + :ivar ignore_empty_blobs: If set to true, blobs with zero bytes will be ignored. + :vartype ignore_empty_blobs: bool + :ivar events: The type of events that cause this trigger to fire. Required. + :vartype events: list[str or ~azure.mgmt.datafactory.models.BlobEventTypes] + :ivar scope: The ARM resource ID of the Storage Account. Required. + :vartype scope: str + """ + + blob_path_begins_with: Optional[str] = rest_field( + name="blobPathBeginsWith", visibility=["read", "create", "update", "delete", "query"] + ) + """The blob path must begin with the pattern provided for trigger to fire. For example, + '/records/blobs/december/' will only fire the trigger for blobs in the december folder under + the records container. At least one of these must be provided: blobPathBeginsWith, + blobPathEndsWith.""" + blob_path_ends_with: Optional[str] = rest_field( + name="blobPathEndsWith", visibility=["read", "create", "update", "delete", "query"] + ) + """The blob path must end with the pattern provided for trigger to fire. For example, + 'december/boxes.csv' will only fire the trigger for blobs named boxes in a december folder. At + least one of these must be provided: blobPathBeginsWith, blobPathEndsWith.""" + ignore_empty_blobs: Optional[bool] = rest_field( + name="ignoreEmptyBlobs", visibility=["read", "create", "update", "delete", "query"] + ) + """If set to true, blobs with zero bytes will be ignored.""" + events: list[Union[str, "_models.BlobEventTypes"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The type of events that cause this trigger to fire. Required.""" + scope: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The ARM resource ID of the Storage Account. Required.""" + + @overload + def __init__( + self, + *, + events: list[Union[str, "_models.BlobEventTypes"]], + scope: str, + blob_path_begins_with: Optional[str] = None, + blob_path_ends_with: Optional[str] = None, + ignore_empty_blobs: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BlobSink(CopySink, discriminator="BlobSink"): + """A copy activity Azure Blob sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar blob_writer_overwrite_files: Blob writer overwrite files. Type: boolean (or Expression + with resultType boolean). + :vartype blob_writer_overwrite_files: any + :ivar blob_writer_date_time_format: Blob writer date time format. Type: string (or Expression + with resultType string). + :vartype blob_writer_date_time_format: any + :ivar blob_writer_add_header: Blob writer add header. Type: boolean (or Expression with + resultType boolean). + :vartype blob_writer_add_header: any + :ivar copy_behavior: The type of copy behavior for copy sink. + :vartype copy_behavior: any + :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects + (or Expression with resultType array of objects). + :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] + :ivar type: Copy sink type. Required. Default value is "BlobSink". + :vartype type: str + """ + + blob_writer_overwrite_files: Optional[Any] = rest_field( + name="blobWriterOverwriteFiles", visibility=["read", "create", "update", "delete", "query"] + ) + """Blob writer overwrite files. Type: boolean (or Expression with resultType boolean).""" + blob_writer_date_time_format: Optional[Any] = rest_field( + name="blobWriterDateTimeFormat", visibility=["read", "create", "update", "delete", "query"] + ) + """Blob writer date time format. Type: string (or Expression with resultType string).""" + blob_writer_add_header: Optional[Any] = rest_field( + name="blobWriterAddHeader", visibility=["read", "create", "update", "delete", "query"] + ) + """Blob writer add header. Type: boolean (or Expression with resultType boolean).""" + copy_behavior: Optional[Any] = rest_field( + name="copyBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of copy behavior for copy sink.""" + metadata: Optional[list["_models.MetadataItem"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the custom metadata to be added to sink data. Type: array of objects (or Expression + with resultType array of objects).""" + type: Literal["BlobSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"BlobSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + blob_writer_overwrite_files: Optional[Any] = None, + blob_writer_date_time_format: Optional[Any] = None, + blob_writer_add_header: Optional[Any] = None, + copy_behavior: Optional[Any] = None, + metadata: Optional[list["_models.MetadataItem"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "BlobSink" # type: ignore + + +class BlobSource(CopySource, discriminator="BlobSource"): + """A copy activity Azure Blob source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar treat_empty_as_null: Treat empty as null. Type: boolean (or Expression with resultType + boolean). + :vartype treat_empty_as_null: any + :ivar skip_header_line_count: Number of header lines to skip from each blob. Type: integer (or + Expression with resultType integer). + :vartype skip_header_line_count: any + :ivar recursive: If true, files under the folder path will be read recursively. Default is + true. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar type: Copy source type. Required. Default value is "BlobSource". + :vartype type: str + """ + + treat_empty_as_null: Optional[Any] = rest_field( + name="treatEmptyAsNull", visibility=["read", "create", "update", "delete", "query"] + ) + """Treat empty as null. Type: boolean (or Expression with resultType boolean).""" + skip_header_line_count: Optional[Any] = rest_field( + name="skipHeaderLineCount", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of header lines to skip from each blob. Type: integer (or Expression with resultType + integer).""" + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files under the folder path will be read recursively. Default is true. Type: boolean + (or Expression with resultType boolean).""" + type: Literal["BlobSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"BlobSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + treat_empty_as_null: Optional[Any] = None, + skip_header_line_count: Optional[Any] = None, + recursive: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "BlobSource" # type: ignore + + +class BlobTrigger(MultiplePipelineTrigger, discriminator="BlobTrigger"): + """Trigger that runs every time the selected Blob container changes. + + :ivar description: Trigger description. + :vartype description: str + :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are + called on the Trigger. Known values are: "Started", "Stopped", and "Disabled". + :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :ivar annotations: List of tags that can be used for describing the trigger. + :vartype annotations: list[any] + :ivar pipelines: Pipelines that need to be started. + :vartype pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] + :ivar type_properties: Blob Trigger properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.BlobTriggerTypeProperties + :ivar type: Trigger type. Required. Default value is "BlobTrigger". + :vartype type: str + """ + + type_properties: "_models.BlobTriggerTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Blob Trigger properties. Required.""" + type: Literal["BlobTrigger"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Trigger type. Required. Default value is \"BlobTrigger\".""" + + __flattened_items = ["folder_path", "max_concurrency", "linked_service"] + + @overload + def __init__( + self, + *, + type_properties: "_models.BlobTriggerTypeProperties", + description: Optional[str] = None, + annotations: Optional[list[Any]] = None, + pipelines: Optional[list["_models.TriggerPipelineReference"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class BlobTriggerTypeProperties(_Model): + """Blob Trigger properties. + + :ivar folder_path: The path of the container/folder that will trigger the pipeline. Required. + :vartype folder_path: str + :ivar max_concurrency: The max number of parallel files to handle when it is triggered. + Required. + :vartype max_concurrency: int + :ivar linked_service: The Azure Storage linked service reference. Required. + :vartype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + """ + + folder_path: str = rest_field(name="folderPath", visibility=["read", "create", "update", "delete", "query"]) + """The path of the container/folder that will trigger the pipeline. Required.""" + max_concurrency: int = rest_field(name="maxConcurrency", visibility=["read", "create", "update", "delete", "query"]) + """The max number of parallel files to handle when it is triggered. Required.""" + linked_service: "_models.LinkedServiceReference" = rest_field( + name="linkedService", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure Storage linked service reference. Required.""" + + @overload + def __init__( + self, + *, + folder_path: str, + max_concurrency: int, + linked_service: "_models.LinkedServiceReference", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CassandraLinkedService(LinkedService, discriminator="Cassandra"): + """Linked service for Cassandra data source. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Cassandra linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.CassandraLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Cassandra". + :vartype type: str + """ + + type_properties: "_models.CassandraLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Cassandra linked service properties. Required.""" + type: Literal["Cassandra"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Cassandra\".""" + + __flattened_items = ["host", "authentication_type", "port", "username", "password", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.CassandraLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class CassandraLinkedServiceTypeProperties(_Model): + """Cassandra linked service properties. + + :ivar host: Host name for connection. Type: string (or Expression with resultType string). + Required. + :vartype host: any + :ivar authentication_type: AuthenticationType to be used for connection. Type: string (or + Expression with resultType string). + :vartype authentication_type: any + :ivar port: The port for the connection. Type: integer (or Expression with resultType integer). + :vartype port: any + :ivar username: Username for authentication. Type: string (or Expression with resultType + string). + :vartype username: any + :ivar password: Password for authentication. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + host: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Host name for connection. Type: string (or Expression with resultType string). Required.""" + authentication_type: Optional[Any] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """AuthenticationType to be used for connection. Type: string (or Expression with resultType + string).""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The port for the connection. Type: integer (or Expression with resultType integer).""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Username for authentication. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password for authentication.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + host: Any, + authentication_type: Optional[Any] = None, + port: Optional[Any] = None, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CassandraSource(TabularSource, discriminator="CassandraSource"): + """A copy activity source for a Cassandra database. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: Database query. Should be a SQL-92 query expression or Cassandra Query Language + (CQL) command. Type: string (or Expression with resultType string). + :vartype query: any + :ivar consistency_level: The consistency level specifies how many Cassandra servers must + respond to a read request before returning data to the client application. Cassandra checks the + specified number of Cassandra servers for data to satisfy the read request. Must be one of + cassandraSourceReadConsistencyLevels. The default value is 'ONE'. It is case-insensitive. Known + values are: "ALL", "EACH_QUORUM", "QUORUM", "LOCAL_QUORUM", "ONE", "TWO", "THREE", "LOCAL_ONE", + "SERIAL", and "LOCAL_SERIAL". + :vartype consistency_level: str or + ~azure.mgmt.datafactory.models.CassandraSourceReadConsistencyLevels + :ivar type: Copy source type. Required. Default value is "CassandraSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database query. Should be a SQL-92 query expression or Cassandra Query Language (CQL) command. + Type: string (or Expression with resultType string).""" + consistency_level: Optional[Union[str, "_models.CassandraSourceReadConsistencyLevels"]] = rest_field( + name="consistencyLevel", visibility=["read", "create", "update", "delete", "query"] + ) + """The consistency level specifies how many Cassandra servers must respond to a read request + before returning data to the client application. Cassandra checks the specified number of + Cassandra servers for data to satisfy the read request. Must be one of + cassandraSourceReadConsistencyLevels. The default value is 'ONE'. It is case-insensitive. Known + values are: \"ALL\", \"EACH_QUORUM\", \"QUORUM\", \"LOCAL_QUORUM\", \"ONE\", \"TWO\", + \"THREE\", \"LOCAL_ONE\", \"SERIAL\", and \"LOCAL_SERIAL\".""" + type: Literal["CassandraSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"CassandraSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + consistency_level: Optional[Union[str, "_models.CassandraSourceReadConsistencyLevels"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "CassandraSource" # type: ignore + + +class CassandraTableDataset(Dataset, discriminator="CassandraTable"): + """The Cassandra database dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Cassandra dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.CassandraTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "CassandraTable". + :vartype type: str + """ + + type_properties: Optional["_models.CassandraTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Cassandra dataset properties.""" + type: Literal["CassandraTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"CassandraTable\".""" + + __flattened_items = ["table_name", "keyspace"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.CassandraTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class CassandraTableDatasetTypeProperties(_Model): + """Cassandra dataset properties. + + :ivar table_name: The table name of the Cassandra database. Type: string (or Expression with + resultType string). + :vartype table_name: any + :ivar keyspace: The keyspace of the Cassandra database. Type: string (or Expression with + resultType string). + :vartype keyspace: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Cassandra database. Type: string (or Expression with resultType string).""" + keyspace: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The keyspace of the Cassandra database. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + keyspace: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ChainingTrigger(Trigger, discriminator="ChainingTrigger"): + """Trigger that allows the referenced pipeline to depend on other pipeline runs based on + runDimension Name/Value pairs. Upstream pipelines should declare the same runDimension Name and + their runs should have the values for those runDimensions. The referenced pipeline run would be + triggered if the values for the runDimension match for all upstream pipeline runs. + + :ivar description: Trigger description. + :vartype description: str + :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are + called on the Trigger. Known values are: "Started", "Stopped", and "Disabled". + :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :ivar annotations: List of tags that can be used for describing the trigger. + :vartype annotations: list[any] + :ivar pipeline: Pipeline for which runs are created when all upstream pipelines complete + successfully. Required. + :vartype pipeline: ~azure.mgmt.datafactory.models.TriggerPipelineReference + :ivar type_properties: Chaining Trigger properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.ChainingTriggerTypeProperties + :ivar type: Trigger type. Required. Default value is "ChainingTrigger". + :vartype type: str + """ + + pipeline: "_models.TriggerPipelineReference" = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Pipeline for which runs are created when all upstream pipelines complete successfully. + Required.""" + type_properties: "_models.ChainingTriggerTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Chaining Trigger properties. Required.""" + type: Literal["ChainingTrigger"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Trigger type. Required. Default value is \"ChainingTrigger\".""" + + __flattened_items = ["depends_on", "run_dimension"] + + @overload + def __init__( + self, + *, + pipeline: "_models.TriggerPipelineReference", + type_properties: "_models.ChainingTriggerTypeProperties", + description: Optional[str] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ChainingTriggerTypeProperties(_Model): + """Chaining Trigger properties. + + :ivar depends_on: Upstream Pipelines. Required. + :vartype depends_on: list[~azure.mgmt.datafactory.models.PipelineReference] + :ivar run_dimension: Run Dimension property that needs to be emitted by upstream pipelines. + Required. + :vartype run_dimension: str + """ + + depends_on: list["_models.PipelineReference"] = rest_field( + name="dependsOn", visibility=["read", "create", "update", "delete", "query"] + ) + """Upstream Pipelines. Required.""" + run_dimension: str = rest_field(name="runDimension", visibility=["read", "create", "update", "delete", "query"]) + """Run Dimension property that needs to be emitted by upstream pipelines. Required.""" + + @overload + def __init__( + self, + *, + depends_on: list["_models.PipelineReference"], + run_dimension: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ChangeDataCapture(_Model): + """A Azure Data Factory object which automatically detects data changes at the source and then + sends the updated data to the destination. + + :ivar folder: The folder that this CDC is in. If not specified, CDC will appear at the root + level. + :vartype folder: ~azure.mgmt.datafactory.models.ChangeDataCaptureFolder + :ivar description: The description of the change data capture. + :vartype description: str + :ivar source_connections_info: List of sources connections that can be used as sources in the + CDC. Required. + :vartype source_connections_info: + list[~azure.mgmt.datafactory.models.MapperSourceConnectionsInfo] + :ivar target_connections_info: List of target connections that can be used as sources in the + CDC. Required. + :vartype target_connections_info: + list[~azure.mgmt.datafactory.models.MapperTargetConnectionsInfo] + :ivar policy: CDC policy. Required. + :vartype policy: ~azure.mgmt.datafactory.models.MapperPolicy + :ivar allow_v_net_override: A boolean to determine if the vnet configuration needs to be + overwritten. + :vartype allow_v_net_override: bool + :ivar status: Status of the CDC as to if it is running or stopped. + :vartype status: str + """ + + folder: Optional["_models.ChangeDataCaptureFolder"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The folder that this CDC is in. If not specified, CDC will appear at the root level.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The description of the change data capture.""" + source_connections_info: list["_models.MapperSourceConnectionsInfo"] = rest_field( + name="sourceConnectionsInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """List of sources connections that can be used as sources in the CDC. Required.""" + target_connections_info: list["_models.MapperTargetConnectionsInfo"] = rest_field( + name="targetConnectionsInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """List of target connections that can be used as sources in the CDC. Required.""" + policy: "_models.MapperPolicy" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """CDC policy. Required.""" + allow_v_net_override: Optional[bool] = rest_field( + name="allowVNetOverride", visibility=["read", "create", "update", "delete", "query"] + ) + """A boolean to determine if the vnet configuration needs to be overwritten.""" + status: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Status of the CDC as to if it is running or stopped.""" + + @overload + def __init__( + self, + *, + source_connections_info: list["_models.MapperSourceConnectionsInfo"], + target_connections_info: list["_models.MapperTargetConnectionsInfo"], + policy: "_models.MapperPolicy", + folder: Optional["_models.ChangeDataCaptureFolder"] = None, + description: Optional[str] = None, + allow_v_net_override: Optional[bool] = None, + status: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ChangeDataCaptureFolder(_Model): + """The folder that this CDC is in. If not specified, CDC will appear at the root level. + + :ivar name: The name of the folder that this CDC is in. + :vartype name: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the folder that this CDC is in.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Resource(_Model): + """Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datafactory.models.SystemData + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.""" + name: Optional[str] = rest_field(visibility=["read"]) + """The name of the resource.""" + type: Optional[str] = rest_field(visibility=["read"]) + """The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or + \"Microsoft.Storage/storageAccounts\".""" + system_data: Optional["_models.SystemData"] = rest_field(name="systemData", visibility=["read"]) + """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" + + +class ProxyResource(Resource): + """Proxy Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datafactory.models.SystemData + """ + + +class ChangeDataCaptureResource(ProxyResource): + """Change data capture resource type. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datafactory.models.SystemData + :ivar properties: Properties of the change data capture. Required. + :vartype properties: ~azure.mgmt.datafactory.models.ChangeDataCapture + :ivar etag: "If etag is provided in the response body, it may also be provided as a header per + the normal etag convention. Entity tags are used for comparing two or more entities from the + same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match + (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). + :vartype etag: str + """ + + properties: "_models.ChangeDataCapture" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Properties of the change data capture. Required.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """\"If etag is provided in the response body, it may also be provided as a header per the normal + etag convention. Entity tags are used for comparing two or more entities from the same + requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section + 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.\").""" + + __flattened_items = [ + "folder", + "description", + "source_connections_info", + "target_connections_info", + "policy", + "allow_v_net_override", + "status", + ] + + @overload + def __init__( + self, + *, + properties: "_models.ChangeDataCapture", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class CloudError(_Model): + """The object that defines the structure of an Azure Data Factory error response. + + :ivar error: Error data. Required. + :vartype error: ~azure.mgmt.datafactory.models.CloudErrorBody + """ + + error: "_models.CloudErrorBody" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Error data. Required.""" + + __flattened_items = ["code", "message", "target", "details"] + + @overload + def __init__( + self, + *, + error: "_models.CloudErrorBody", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.error is None: + return None + return getattr(self.error, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.error is None: + self.error = self._attr_to_rest_field["error"]._class_type() + setattr(self.error, key, value) + else: + super().__setattr__(key, value) + + +class CloudErrorBody(_Model): + """The object that defines the structure of an Azure Data Factory error. + + :ivar code: Error code. Required. + :vartype code: str + :ivar message: Error message. Required. + :vartype message: str + :ivar target: Property name/path in request associated with error. + :vartype target: str + :ivar details: Array with additional error details. + :vartype details: list[~azure.mgmt.datafactory.models.CloudError] + """ + + code: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Error code. Required.""" + message: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Error message. Required.""" + target: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Property name/path in request associated with error.""" + details: Optional[list["_models.CloudError"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Array with additional error details.""" + + @overload + def __init__( + self, + *, + code: str, + message: str, + target: Optional[str] = None, + details: Optional[list["_models.CloudError"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CmdkeySetup(CustomSetupBase, discriminator="CmdkeySetup"): + """The custom setup of running cmdkey commands. + + :ivar type_properties: Cmdkey command custom setup type properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.CmdkeySetupTypeProperties + :ivar type: The type of custom setup. Required. Default value is "CmdkeySetup". + :vartype type: str + """ + + type_properties: "_models.CmdkeySetupTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Cmdkey command custom setup type properties. Required.""" + type: Literal["CmdkeySetup"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The type of custom setup. Required. Default value is \"CmdkeySetup\".""" + + __flattened_items = ["target_name", "user_name", "password"] + + @overload + def __init__( + self, + *, + type_properties: "_models.CmdkeySetupTypeProperties", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class CmdkeySetupTypeProperties(_Model): + """Cmdkey command custom setup type properties. + + :ivar target_name: The server name of data source access. Type: string. Required. + :vartype target_name: any + :ivar user_name: The user name of data source access. Type: string. Required. + :vartype user_name: any + :ivar password: The password of data source access. Required. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + """ + + target_name: Any = rest_field(name="targetName", visibility=["read", "create", "update", "delete", "query"]) + """The server name of data source access. Type: string. Required.""" + user_name: Any = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """The user name of data source access. Type: string. Required.""" + password: "_models.SecretBase" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password of data source access. Required.""" + + @overload + def __init__( + self, + *, + target_name: Any, + user_name: Any, + password: "_models.SecretBase", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CMKIdentityDefinition(_Model): + """Managed Identity used for CMK. + + :ivar user_assigned_identity: The resource id of the user assigned identity to authenticate to + customer's key vault. + :vartype user_assigned_identity: str + """ + + user_assigned_identity: Optional[str] = rest_field( + name="userAssignedIdentity", visibility=["read", "create", "update", "delete", "query"] + ) + """The resource id of the user assigned identity to authenticate to customer's key vault.""" + + @overload + def __init__( + self, + *, + user_assigned_identity: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CommonDataServiceForAppsEntityDataset(Dataset, discriminator="CommonDataServiceForAppsEntity"): + """The Common Data Service for Apps entity dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Common Data Service for Apps entity dataset properties. + :vartype type_properties: + ~azure.mgmt.datafactory.models.CommonDataServiceForAppsEntityDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "CommonDataServiceForAppsEntity". + :vartype type: str + """ + + type_properties: Optional["_models.CommonDataServiceForAppsEntityDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Common Data Service for Apps entity dataset properties.""" + type: Literal["CommonDataServiceForAppsEntity"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"CommonDataServiceForAppsEntity\".""" + + __flattened_items = ["entity_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.CommonDataServiceForAppsEntityDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class CommonDataServiceForAppsEntityDatasetTypeProperties(_Model): # pylint: disable=name-too-long + """Common Data Service for Apps entity dataset properties. + + :ivar entity_name: The logical name of the entity. Type: string (or Expression with resultType + string). + :vartype entity_name: any + """ + + entity_name: Optional[Any] = rest_field( + name="entityName", visibility=["read", "create", "update", "delete", "query"] + ) + """The logical name of the entity. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + entity_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CommonDataServiceForAppsLinkedService(LinkedService, discriminator="CommonDataServiceForApps"): + """Common Data Service for Apps linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Common Data Service for Apps linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.CommonDataServiceForAppsLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "CommonDataServiceForApps". + :vartype type: str + """ + + type_properties: "_models.CommonDataServiceForAppsLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Common Data Service for Apps linked service properties. Required.""" + type: Literal["CommonDataServiceForApps"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"CommonDataServiceForApps\".""" + + __flattened_items = [ + "deployment_type", + "host_name", + "port", + "service_uri", + "organization_name", + "authentication_type", + "domain", + "username", + "password", + "service_principal_id", + "service_principal_credential_type", + "service_principal_credential", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.CommonDataServiceForAppsLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class CommonDataServiceForAppsLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Common Data Service for Apps linked service properties. + + :ivar deployment_type: The deployment type of the Common Data Service for Apps instance. + 'Online' for Common Data Service for Apps Online and 'OnPremisesWithIfd' for Common Data + Service for Apps on-premises with Ifd. Type: string (or Expression with resultType string). + Required. + :vartype deployment_type: any + :ivar host_name: The host name of the on-premises Common Data Service for Apps server. The + property is required for on-prem and not allowed for online. Type: string (or Expression with + resultType string). + :vartype host_name: any + :ivar port: The port of on-premises Common Data Service for Apps server. The property is + required for on-prem and not allowed for online. Default is 443. Type: integer (or Expression + with resultType integer), minimum: 0. + :vartype port: any + :ivar service_uri: The URL to the Microsoft Common Data Service for Apps server. The property + is required for on-line and not allowed for on-prem. Type: string (or Expression with + resultType string). + :vartype service_uri: any + :ivar organization_name: The organization name of the Common Data Service for Apps instance. + The property is required for on-prem and required for online when there are more than one + Common Data Service for Apps instances associated with the user. Type: string (or Expression + with resultType string). + :vartype organization_name: any + :ivar authentication_type: The authentication type to connect to Common Data Service for Apps + server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. + 'AADServicePrincipal' for Server-To-Server authentication in online scenario, 'Active + Directory' for Dynamics on-premises with IFD. Type: string (or Expression with resultType + string). Required. + :vartype authentication_type: any + :ivar domain: The Active Directory domain that will verify user credentials. Type: string (or + Expression with resultType string). + :vartype domain: any + :ivar username: User name to access the Common Data Service for Apps instance. Type: string (or + Expression with resultType string). + :vartype username: any + :ivar password: Password to access the Common Data Service for Apps instance. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_principal_id: The client ID of the application in Azure Active Directory used for + Server-To-Server authentication. Type: string (or Expression with resultType string). + :vartype service_principal_id: any + :ivar service_principal_credential_type: The service principal credential type to use in + Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' + for certificate. Type: string (or Expression with resultType string). + :vartype service_principal_credential_type: any + :ivar service_principal_credential: The credential of the service principal object in Azure + Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', + servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If + servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only + be AzureKeyVaultSecretReference. + :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + deployment_type: Any = rest_field(name="deploymentType", visibility=["read", "create", "update", "delete", "query"]) + """The deployment type of the Common Data Service for Apps instance. 'Online' for Common Data + Service for Apps Online and 'OnPremisesWithIfd' for Common Data Service for Apps on-premises + with Ifd. Type: string (or Expression with resultType string). Required.""" + host_name: Optional[Any] = rest_field(name="hostName", visibility=["read", "create", "update", "delete", "query"]) + """The host name of the on-premises Common Data Service for Apps server. The property is required + for on-prem and not allowed for online. Type: string (or Expression with resultType string).""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The port of on-premises Common Data Service for Apps server. The property is required for + on-prem and not allowed for online. Default is 443. Type: integer (or Expression with + resultType integer), minimum: 0.""" + service_uri: Optional[Any] = rest_field( + name="serviceUri", visibility=["read", "create", "update", "delete", "query"] + ) + """The URL to the Microsoft Common Data Service for Apps server. The property is required for + on-line and not allowed for on-prem. Type: string (or Expression with resultType string).""" + organization_name: Optional[Any] = rest_field( + name="organizationName", visibility=["read", "create", "update", "delete", "query"] + ) + """The organization name of the Common Data Service for Apps instance. The property is required + for on-prem and required for online when there are more than one Common Data Service for Apps + instances associated with the user. Type: string (or Expression with resultType string).""" + authentication_type: Any = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to connect to Common Data Service for Apps server. 'Office365' for + online scenario, 'Ifd' for on-premises with Ifd scenario. 'AADServicePrincipal' for + Server-To-Server authentication in online scenario, 'Active Directory' for Dynamics on-premises + with IFD. Type: string (or Expression with resultType string). Required.""" + domain: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Active Directory domain that will verify user credentials. Type: string (or Expression with + resultType string).""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """User name to access the Common Data Service for Apps instance. Type: string (or Expression with + resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password to access the Common Data Service for Apps instance.""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The client ID of the application in Azure Active Directory used for Server-To-Server + authentication. Type: string (or Expression with resultType string).""" + service_principal_credential_type: Optional[Any] = rest_field( + name="servicePrincipalCredentialType", visibility=["read", "create", "update", "delete", "query"] + ) + """The service principal credential type to use in Server-To-Server authentication. + 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + Expression with resultType string).""" + service_principal_credential: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The credential of the service principal object in Azure Active Directory. If + servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be + SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is + 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + deployment_type: Any, + authentication_type: Any, + host_name: Optional[Any] = None, + port: Optional[Any] = None, + service_uri: Optional[Any] = None, + organization_name: Optional[Any] = None, + domain: Optional[Any] = None, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + service_principal_id: Optional[Any] = None, + service_principal_credential_type: Optional[Any] = None, + service_principal_credential: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CommonDataServiceForAppsSink(CopySink, discriminator="CommonDataServiceForAppsSink"): + """A copy activity Common Data Service for Apps sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar write_behavior: The write behavior for the operation. Required. "Upsert" + :vartype write_behavior: str or ~azure.mgmt.datafactory.models.DynamicsSinkWriteBehavior + :ivar ignore_null_values: The flag indicating whether to ignore null values from input dataset + (except key fields) during write operation. Default is false. Type: boolean (or Expression with + resultType boolean). + :vartype ignore_null_values: any + :ivar alternate_key_name: The logical name of the alternate key which will be used when + upserting records. Type: string (or Expression with resultType string). + :vartype alternate_key_name: any + :ivar bypass_business_logic_execution: Controls the bypass of Dataverse custom business logic. + Type: string (or Expression with resultType string). Type: string (or Expression with + resultType string). + :vartype bypass_business_logic_execution: any + :ivar bypass_power_automate_flows: Controls the bypass of Power Automate flows. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype bypass_power_automate_flows: any + :ivar type: Copy sink type. Required. Default value is "CommonDataServiceForAppsSink". + :vartype type: str + """ + + write_behavior: Union[str, "_models.DynamicsSinkWriteBehavior"] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """The write behavior for the operation. Required. \"Upsert\"""" + ignore_null_values: Optional[Any] = rest_field( + name="ignoreNullValues", visibility=["read", "create", "update", "delete", "query"] + ) + """The flag indicating whether to ignore null values from input dataset (except key fields) during + write operation. Default is false. Type: boolean (or Expression with resultType boolean).""" + alternate_key_name: Optional[Any] = rest_field( + name="alternateKeyName", visibility=["read", "create", "update", "delete", "query"] + ) + """The logical name of the alternate key which will be used when upserting records. Type: string + (or Expression with resultType string).""" + bypass_business_logic_execution: Optional[Any] = rest_field( + name="bypassBusinessLogicExecution", visibility=["read", "create", "update", "delete", "query"] + ) + """Controls the bypass of Dataverse custom business logic. Type: string (or Expression with + resultType string). Type: string (or Expression with resultType string).""" + bypass_power_automate_flows: Optional[Any] = rest_field( + name="bypassPowerAutomateFlows", visibility=["read", "create", "update", "delete", "query"] + ) + """Controls the bypass of Power Automate flows. Default is false. Type: boolean (or Expression + with resultType boolean).""" + type: Literal["CommonDataServiceForAppsSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"CommonDataServiceForAppsSink\".""" + + @overload + def __init__( + self, + *, + write_behavior: Union[str, "_models.DynamicsSinkWriteBehavior"], + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + ignore_null_values: Optional[Any] = None, + alternate_key_name: Optional[Any] = None, + bypass_business_logic_execution: Optional[Any] = None, + bypass_power_automate_flows: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "CommonDataServiceForAppsSink" # type: ignore + + +class CommonDataServiceForAppsSource(CopySource, discriminator="CommonDataServiceForAppsSource"): + """A copy activity Common Data Service for Apps source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query: FetchXML is a proprietary query language that is used in Microsoft Common Data + Service for Apps (online & on-premises). Type: string (or Expression with resultType string). + :vartype query: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "CommonDataServiceForAppsSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """FetchXML is a proprietary query language that is used in Microsoft Common Data Service for Apps + (online & on-premises). Type: string (or Expression with resultType string).""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["CommonDataServiceForAppsSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"CommonDataServiceForAppsSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "CommonDataServiceForAppsSource" # type: ignore + + +class ComponentSetup(CustomSetupBase, discriminator="ComponentSetup"): + """The custom setup of installing 3rd party components. + + :ivar type_properties: Install 3rd party component type properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.LicensedComponentSetupTypeProperties + :ivar type: The type of custom setup. Required. Default value is "ComponentSetup". + :vartype type: str + """ + + type_properties: "_models.LicensedComponentSetupTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Install 3rd party component type properties. Required.""" + type: Literal["ComponentSetup"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The type of custom setup. Required. Default value is \"ComponentSetup\".""" + + __flattened_items = ["component_name", "license_key"] + + @overload + def __init__( + self, + *, + type_properties: "_models.LicensedComponentSetupTypeProperties", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class CompressionReadSettings(_Model): + """Compression read settings. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + TarGZipReadSettings, TarReadSettings, ZipDeflateReadSettings + + :ivar type: The Compression setting type. Required. Default value is None. + :vartype type: str + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """The Compression setting type. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConcurLinkedService(LinkedService, discriminator="Concur"): + """Concur Service linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Concur Service linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.ConcurLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Concur". + :vartype type: str + """ + + type_properties: "_models.ConcurLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Concur Service linked service properties. Required.""" + type: Literal["Concur"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Concur\".""" + + __flattened_items = [ + "connection_properties", + "client_id", + "username", + "password", + "use_encrypted_endpoints", + "use_host_verification", + "use_peer_verification", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.ConcurLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ConcurLinkedServiceTypeProperties(_Model): + """Concur Service linked service properties. + + :ivar connection_properties: Properties used to connect to Concur. It is mutually exclusive + with any other properties in the linked service. Type: object. + :vartype connection_properties: any + :ivar client_id: Application client_id supplied by Concur App Management. Required. + :vartype client_id: any + :ivar username: The user name that you use to access Concur Service. Required. + :vartype username: any + :ivar password: The password corresponding to the user name that you provided in the username + field. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using + HTTPS. The default value is true. + :vartype use_encrypted_endpoints: any + :ivar use_host_verification: Specifies whether to require the host name in the server's + certificate to match the host name of the server when connecting over SSL. The default value is + true. + :vartype use_host_verification: any + :ivar use_peer_verification: Specifies whether to verify the identity of the server when + connecting over SSL. The default value is true. + :vartype use_peer_verification: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_properties: Optional[Any] = rest_field( + name="connectionProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties used to connect to Concur. It is mutually exclusive with any other properties in the + linked service. Type: object.""" + client_id: Any = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """Application client_id supplied by Concur App Management. Required.""" + username: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The user name that you use to access Concur Service. Required.""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password corresponding to the user name that you provided in the username field.""" + use_encrypted_endpoints: Optional[Any] = rest_field( + name="useEncryptedEndpoints", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the data source endpoints are encrypted using HTTPS. The default value is + true.""" + use_host_verification: Optional[Any] = rest_field( + name="useHostVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require the host name in the server's certificate to match the host name + of the server when connecting over SSL. The default value is true.""" + use_peer_verification: Optional[Any] = rest_field( + name="usePeerVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to verify the identity of the server when connecting over SSL. The default + value is true.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + client_id: Any, + username: Any, + connection_properties: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + use_encrypted_endpoints: Optional[Any] = None, + use_host_verification: Optional[Any] = None, + use_peer_verification: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConcurObjectDataset(Dataset, discriminator="ConcurObject"): + """Concur Service dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "ConcurObject". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["ConcurObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"ConcurObject\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ConcurSource(TabularSource, discriminator="ConcurSource"): + """A copy activity Concur Service source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "ConcurSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["ConcurSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"ConcurSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "ConcurSource" # type: ignore + + +class ConnectionStateProperties(_Model): + """The connection state of a managed private endpoint. + + :ivar actions_required: The actions required on the managed private endpoint. + :vartype actions_required: str + :ivar description: The managed private endpoint description. + :vartype description: str + :ivar status: The approval status. + :vartype status: str + """ + + actions_required: Optional[str] = rest_field(name="actionsRequired", visibility=["read"]) + """The actions required on the managed private endpoint.""" + description: Optional[str] = rest_field(visibility=["read"]) + """The managed private endpoint description.""" + status: Optional[str] = rest_field(visibility=["read"]) + """The approval status.""" + + +class ContinuationSettingsReference(_Model): + """Continuation settings for execute data flow activity. + + :ivar continuation_ttl_in_minutes: Continuation TTL in minutes. + :vartype continuation_ttl_in_minutes: any + :ivar idle_condition: Idle condition. + :vartype idle_condition: any + :ivar customized_checkpoint_key: Customized checkpoint key. + :vartype customized_checkpoint_key: any + """ + + continuation_ttl_in_minutes: Optional[Any] = rest_field( + name="continuationTtlInMinutes", visibility=["read", "create", "update", "delete", "query"] + ) + """Continuation TTL in minutes.""" + idle_condition: Optional[Any] = rest_field( + name="idleCondition", visibility=["read", "create", "update", "delete", "query"] + ) + """Idle condition.""" + customized_checkpoint_key: Optional[Any] = rest_field( + name="customizedCheckpointKey", visibility=["read", "create", "update", "delete", "query"] + ) + """Customized checkpoint key.""" + + @overload + def __init__( + self, + *, + continuation_ttl_in_minutes: Optional[Any] = None, + idle_condition: Optional[Any] = None, + customized_checkpoint_key: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CopyActivity(ExecutionActivity, discriminator="Copy"): + """Copy activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Copy activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.CopyActivityTypeProperties + :ivar inputs: List of inputs for the activity. + :vartype inputs: list[~azure.mgmt.datafactory.models.DatasetReference] + :ivar outputs: List of outputs for the activity. + :vartype outputs: list[~azure.mgmt.datafactory.models.DatasetReference] + :ivar type: Type of activity. Required. Default value is "Copy". + :vartype type: str + """ + + type_properties: "_models.CopyActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Copy activity properties. Required.""" + inputs: Optional[list["_models.DatasetReference"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of inputs for the activity.""" + outputs: Optional[list["_models.DatasetReference"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of outputs for the activity.""" + type: Literal["Copy"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"Copy\".""" + + __flattened_items = [ + "source", + "sink", + "translator", + "enable_staging", + "staging_settings", + "parallel_copies", + "data_integration_units", + "enable_skip_incompatible_row", + "redirect_incompatible_row_settings", + "log_storage_settings", + "log_settings", + "preserve_rules", + "preserve", + "validate_data_consistency", + "skip_error_file", + ] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.CopyActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + inputs: Optional[list["_models.DatasetReference"]] = None, + outputs: Optional[list["_models.DatasetReference"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class CopyActivityLogSettings(_Model): + """Settings for copy activity log. + + :ivar log_level: Gets or sets the log level, support: Info, Warning. Type: string (or + Expression with resultType string). + :vartype log_level: any + :ivar enable_reliable_logging: Specifies whether to enable reliable logging. Type: boolean (or + Expression with resultType boolean). + :vartype enable_reliable_logging: any + """ + + log_level: Optional[Any] = rest_field(name="logLevel", visibility=["read", "create", "update", "delete", "query"]) + """Gets or sets the log level, support: Info, Warning. Type: string (or Expression with resultType + string).""" + enable_reliable_logging: Optional[Any] = rest_field( + name="enableReliableLogging", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to enable reliable logging. Type: boolean (or Expression with resultType + boolean).""" + + @overload + def __init__( + self, + *, + log_level: Optional[Any] = None, + enable_reliable_logging: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CopyActivityTypeProperties(_Model): + """Copy activity properties. + + :ivar source: Copy activity source. Required. + :vartype source: ~azure.mgmt.datafactory.models.CopySource + :ivar sink: Copy activity sink. Required. + :vartype sink: ~azure.mgmt.datafactory.models.CopySink + :ivar translator: Copy activity translator. If not specified, tabular translator is used. + :vartype translator: any + :ivar enable_staging: Specifies whether to copy data via an interim staging. Default value is + false. Type: boolean (or Expression with resultType boolean). + :vartype enable_staging: any + :ivar staging_settings: Specifies interim staging settings when EnableStaging is true. + :vartype staging_settings: ~azure.mgmt.datafactory.models.StagingSettings + :ivar parallel_copies: Maximum number of concurrent sessions opened on the source or sink to + avoid overloading the data store. Type: integer (or Expression with resultType integer), + minimum: 0. + :vartype parallel_copies: any + :ivar data_integration_units: Maximum number of data integration units that can be used to + perform this data movement. Type: integer (or Expression with resultType integer), minimum: 0. + :vartype data_integration_units: any + :ivar enable_skip_incompatible_row: Whether to skip incompatible row. Default value is false. + Type: boolean (or Expression with resultType boolean). + :vartype enable_skip_incompatible_row: any + :ivar redirect_incompatible_row_settings: Redirect incompatible row settings when + EnableSkipIncompatibleRow is true. + :vartype redirect_incompatible_row_settings: + ~azure.mgmt.datafactory.models.RedirectIncompatibleRowSettings + :ivar log_storage_settings: (Deprecated. Please use LogSettings) Log storage settings customer + need to provide when enabling session log. + :vartype log_storage_settings: ~azure.mgmt.datafactory.models.LogStorageSettings + :ivar log_settings: Log settings customer needs provide when enabling log. + :vartype log_settings: ~azure.mgmt.datafactory.models.LogSettings + :ivar preserve_rules: Preserve Rules. + :vartype preserve_rules: list[any] + :ivar preserve: Preserve rules. + :vartype preserve: list[any] + :ivar validate_data_consistency: Whether to enable Data Consistency validation. Type: boolean + (or Expression with resultType boolean). + :vartype validate_data_consistency: any + :ivar skip_error_file: Specify the fault tolerance for data consistency. + :vartype skip_error_file: ~azure.mgmt.datafactory.models.SkipErrorFile + """ + + source: "_models.CopySource" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Copy activity source. Required.""" + sink: "_models.CopySink" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Copy activity sink. Required.""" + translator: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Copy activity translator. If not specified, tabular translator is used.""" + enable_staging: Optional[Any] = rest_field( + name="enableStaging", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to copy data via an interim staging. Default value is false. Type: boolean + (or Expression with resultType boolean).""" + staging_settings: Optional["_models.StagingSettings"] = rest_field( + name="stagingSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies interim staging settings when EnableStaging is true.""" + parallel_copies: Optional[Any] = rest_field( + name="parallelCopies", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum number of concurrent sessions opened on the source or sink to avoid overloading the + data store. Type: integer (or Expression with resultType integer), minimum: 0.""" + data_integration_units: Optional[Any] = rest_field( + name="dataIntegrationUnits", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum number of data integration units that can be used to perform this data movement. Type: + integer (or Expression with resultType integer), minimum: 0.""" + enable_skip_incompatible_row: Optional[Any] = rest_field( + name="enableSkipIncompatibleRow", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to skip incompatible row. Default value is false. Type: boolean (or Expression with + resultType boolean).""" + redirect_incompatible_row_settings: Optional["_models.RedirectIncompatibleRowSettings"] = rest_field( + name="redirectIncompatibleRowSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Redirect incompatible row settings when EnableSkipIncompatibleRow is true.""" + log_storage_settings: Optional["_models.LogStorageSettings"] = rest_field( + name="logStorageSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """(Deprecated. Please use LogSettings) Log storage settings customer need to provide when + enabling session log.""" + log_settings: Optional["_models.LogSettings"] = rest_field( + name="logSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Log settings customer needs provide when enabling log.""" + preserve_rules: Optional[list[Any]] = rest_field( + name="preserveRules", visibility=["read", "create", "update", "delete", "query"] + ) + """Preserve Rules.""" + preserve: Optional[list[Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Preserve rules.""" + validate_data_consistency: Optional[Any] = rest_field( + name="validateDataConsistency", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to enable Data Consistency validation. Type: boolean (or Expression with resultType + boolean).""" + skip_error_file: Optional["_models.SkipErrorFile"] = rest_field( + name="skipErrorFile", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the fault tolerance for data consistency.""" + + @overload + def __init__( + self, + *, + source: "_models.CopySource", + sink: "_models.CopySink", + translator: Optional[Any] = None, + enable_staging: Optional[Any] = None, + staging_settings: Optional["_models.StagingSettings"] = None, + parallel_copies: Optional[Any] = None, + data_integration_units: Optional[Any] = None, + enable_skip_incompatible_row: Optional[Any] = None, + redirect_incompatible_row_settings: Optional["_models.RedirectIncompatibleRowSettings"] = None, + log_storage_settings: Optional["_models.LogStorageSettings"] = None, + log_settings: Optional["_models.LogSettings"] = None, + preserve_rules: Optional[list[Any]] = None, + preserve: Optional[list[Any]] = None, + validate_data_consistency: Optional[Any] = None, + skip_error_file: Optional["_models.SkipErrorFile"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CopyComputeScaleProperties(_Model): + """CopyComputeScale properties for managed integration runtime. + + :ivar data_integration_unit: DIU number setting reserved for copy activity execution. Supported + values are multiples of 4 in range 4-256. + :vartype data_integration_unit: int + :ivar time_to_live: Time to live (in minutes) setting of integration runtime which will execute + copy activity. + :vartype time_to_live: int + """ + + data_integration_unit: Optional[int] = rest_field( + name="dataIntegrationUnit", visibility=["read", "create", "update", "delete", "query"] + ) + """DIU number setting reserved for copy activity execution. Supported values are multiples of 4 in + range 4-256.""" + time_to_live: Optional[int] = rest_field( + name="timeToLive", visibility=["read", "create", "update", "delete", "query"] + ) + """Time to live (in minutes) setting of integration runtime which will execute copy activity.""" + + @overload + def __init__( + self, + *, + data_integration_unit: Optional[int] = None, + time_to_live: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CosmosDbLinkedService(LinkedService, discriminator="CosmosDb"): + """Microsoft Azure Cosmos Database (CosmosDB) linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: CosmosDB linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.CosmosDbLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "CosmosDb". + :vartype type: str + """ + + type_properties: "_models.CosmosDbLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """CosmosDB linked service properties. Required.""" + type: Literal["CosmosDb"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"CosmosDb\".""" + + __flattened_items = [ + "connection_string", + "account_endpoint", + "database", + "account_key", + "service_principal_id", + "service_principal_credential_type", + "service_principal_credential", + "tenant", + "azure_cloud_type", + "connection_mode", + "encrypted_credential", + "credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.CosmosDbLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class CosmosDbLinkedServiceTypeProperties(_Model): + """CosmosDB linked service properties. + + :ivar connection_string: The connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar account_endpoint: The endpoint of the Azure CosmosDB account. Type: string (or Expression + with resultType string). + :vartype account_endpoint: any + :ivar database: The name of the database. Type: string (or Expression with resultType string). + :vartype database: any + :ivar account_key: The account key of the Azure CosmosDB account. Type: SecureString or + AzureKeyVaultSecretReference. + :vartype account_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_principal_id: The client ID of the application in Azure Active Directory used for + Server-To-Server authentication. Type: string (or Expression with resultType string). + :vartype service_principal_id: any + :ivar service_principal_credential_type: The service principal credential type to use in + Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' + for certificate. Type: string. + :vartype service_principal_credential_type: any + :ivar service_principal_credential: The credential of the service principal object in Azure + Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', + servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If + servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only + be AzureKeyVaultSecretReference. + :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase + :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string + (or Expression with resultType string). + :vartype tenant: any + :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed + values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data + factory regions’ cloud type. Type: string (or Expression with resultType string). + :vartype azure_cloud_type: any + :ivar connection_mode: The connection mode used to access CosmosDB account. Type: string. Known + values are: "Gateway" and "Direct". + :vartype connection_mode: str or ~azure.mgmt.datafactory.models.CosmosDbConnectionMode + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.""" + account_endpoint: Optional[Any] = rest_field( + name="accountEndpoint", visibility=["read", "create", "update", "delete", "query"] + ) + """The endpoint of the Azure CosmosDB account. Type: string (or Expression with resultType + string).""" + database: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the database. Type: string (or Expression with resultType string).""" + account_key: Optional["_models.SecretBase"] = rest_field( + name="accountKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The account key of the Azure CosmosDB account. Type: SecureString or + AzureKeyVaultSecretReference.""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The client ID of the application in Azure Active Directory used for Server-To-Server + authentication. Type: string (or Expression with resultType string).""" + service_principal_credential_type: Optional[Any] = rest_field( + name="servicePrincipalCredentialType", visibility=["read", "create", "update", "delete", "query"] + ) + """The service principal credential type to use in Server-To-Server authentication. + 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string.""" + service_principal_credential: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The credential of the service principal object in Azure Active Directory. If + servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be + SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is + 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.""" + tenant: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name or ID of the tenant to which the service principal belongs. Type: string (or + Expression with resultType string).""" + azure_cloud_type: Optional[Any] = rest_field( + name="azureCloudType", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, + AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud + type. Type: string (or Expression with resultType string).""" + connection_mode: Optional[Union[str, "_models.CosmosDbConnectionMode"]] = rest_field( + name="connectionMode", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection mode used to access CosmosDB account. Type: string. Known values are: + \"Gateway\" and \"Direct\".""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( + self, + *, + connection_string: Optional[Any] = None, + account_endpoint: Optional[Any] = None, + database: Optional[Any] = None, + account_key: Optional["_models.SecretBase"] = None, + service_principal_id: Optional[Any] = None, + service_principal_credential_type: Optional[Any] = None, + service_principal_credential: Optional["_models.SecretBase"] = None, + tenant: Optional[Any] = None, + azure_cloud_type: Optional[Any] = None, + connection_mode: Optional[Union[str, "_models.CosmosDbConnectionMode"]] = None, + encrypted_credential: Optional[str] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CosmosDbMongoDbApiCollectionDataset(Dataset, discriminator="CosmosDbMongoDbApiCollection"): + """The CosmosDB (MongoDB API) database dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: CosmosDB (MongoDB API) database dataset properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.CosmosDbMongoDbApiCollectionDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "CosmosDbMongoDbApiCollection". + :vartype type: str + """ + + type_properties: "_models.CosmosDbMongoDbApiCollectionDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """CosmosDB (MongoDB API) database dataset properties. Required.""" + type: Literal["CosmosDbMongoDbApiCollection"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"CosmosDbMongoDbApiCollection\".""" + + __flattened_items = ["collection"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.CosmosDbMongoDbApiCollectionDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class CosmosDbMongoDbApiCollectionDatasetTypeProperties(_Model): # pylint: disable=name-too-long + """CosmosDB (MongoDB API) database dataset properties. + + :ivar collection: The collection name of the CosmosDB (MongoDB API) database. Type: string (or + Expression with resultType string). Required. + :vartype collection: any + """ + + collection: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The collection name of the CosmosDB (MongoDB API) database. Type: string (or Expression with + resultType string). Required.""" + + @overload + def __init__( + self, + *, + collection: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CosmosDbMongoDbApiLinkedService(LinkedService, discriminator="CosmosDbMongoDbApi"): + """Linked service for CosmosDB (MongoDB API) data source. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: CosmosDB (MongoDB API) linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.CosmosDbMongoDbApiLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "CosmosDbMongoDbApi". + :vartype type: str + """ + + type_properties: "_models.CosmosDbMongoDbApiLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """CosmosDB (MongoDB API) linked service properties. Required.""" + type: Literal["CosmosDbMongoDbApi"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"CosmosDbMongoDbApi\".""" + + __flattened_items = ["is_server_version_above32", "connection_string", "database"] + + @overload + def __init__( + self, + *, + type_properties: "_models.CosmosDbMongoDbApiLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class CosmosDbMongoDbApiLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """CosmosDB (MongoDB API) linked service properties. + + :ivar is_server_version_above32: Whether the CosmosDB (MongoDB API) server version is higher + than 3.2. The default value is false. Type: boolean (or Expression with resultType boolean). + :vartype is_server_version_above32: any + :ivar connection_string: The CosmosDB (MongoDB API) connection string. Type: string, + SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or + AzureKeyVaultSecretReference. Required. + :vartype connection_string: any + :ivar database: The name of the CosmosDB (MongoDB API) database that you want to access. Type: + string (or Expression with resultType string). Required. + :vartype database: any + """ + + is_server_version_above32: Optional[Any] = rest_field( + name="isServerVersionAbove32", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether the CosmosDB (MongoDB API) server version is higher than 3.2. The default value is + false. Type: boolean (or Expression with resultType boolean).""" + connection_string: Any = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The CosmosDB (MongoDB API) connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. + Required.""" + database: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the CosmosDB (MongoDB API) database that you want to access. Type: string (or + Expression with resultType string). Required.""" + + @overload + def __init__( + self, + *, + connection_string: Any, + database: Any, + is_server_version_above32: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CosmosDbMongoDbApiSink(CopySink, discriminator="CosmosDbMongoDbApiSink"): + """A copy activity sink for a CosmosDB (MongoDB API) database. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar write_behavior: Specifies whether the document with same key to be overwritten (upsert) + rather than throw exception (insert). The default value is "insert". Type: string (or + Expression with resultType string). Type: string (or Expression with resultType string). + :vartype write_behavior: any + :ivar type: Copy sink type. Required. Default value is "CosmosDbMongoDbApiSink". + :vartype type: str + """ + + write_behavior: Optional[Any] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the document with same key to be overwritten (upsert) rather than throw + exception (insert). The default value is \"insert\". Type: string (or Expression with + resultType string). Type: string (or Expression with resultType string).""" + type: Literal["CosmosDbMongoDbApiSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"CosmosDbMongoDbApiSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + write_behavior: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "CosmosDbMongoDbApiSink" # type: ignore + + +class CosmosDbMongoDbApiSource(CopySource, discriminator="CosmosDbMongoDbApiSource"): + """A copy activity source for a CosmosDB (MongoDB API) database. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar filter: Specifies selection filter using query operators. To return all documents in a + collection, omit this parameter or pass an empty document ({}). Type: string (or Expression + with resultType string). + :vartype filter: any + :ivar cursor_methods: Cursor methods for Mongodb query. + :vartype cursor_methods: ~azure.mgmt.datafactory.models.MongoDbCursorMethodsProperties + :ivar batch_size: Specifies the number of documents to return in each batch of the response + from MongoDB instance. In most cases, modifying the batch size will not affect the user or the + application. This property's main purpose is to avoid hit the limitation of response size. + Type: integer (or Expression with resultType integer). + :vartype batch_size: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "CosmosDbMongoDbApiSource". + :vartype type: str + """ + + filter: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specifies selection filter using query operators. To return all documents in a collection, omit + this parameter or pass an empty document ({}). Type: string (or Expression with resultType + string).""" + cursor_methods: Optional["_models.MongoDbCursorMethodsProperties"] = rest_field( + name="cursorMethods", visibility=["read", "create", "update", "delete", "query"] + ) + """Cursor methods for Mongodb query.""" + batch_size: Optional[Any] = rest_field(name="batchSize", visibility=["read", "create", "update", "delete", "query"]) + """Specifies the number of documents to return in each batch of the response from MongoDB + instance. In most cases, modifying the batch size will not affect the user or the application. + This property's main purpose is to avoid hit the limitation of response size. Type: integer (or + Expression with resultType integer).""" + query_timeout: Optional[Any] = rest_field( + name="queryTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """Query timeout. Type: string (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["CosmosDbMongoDbApiSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"CosmosDbMongoDbApiSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + filter: Optional[Any] = None, # pylint: disable=redefined-builtin + cursor_methods: Optional["_models.MongoDbCursorMethodsProperties"] = None, + batch_size: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "CosmosDbMongoDbApiSource" # type: ignore + + +class CosmosDbSqlApiCollectionDataset(Dataset, discriminator="CosmosDbSqlApiCollection"): + """Microsoft Azure CosmosDB (SQL API) Collection dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: CosmosDB (SQL API) Collection dataset properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.CosmosDbSqlApiCollectionDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "CosmosDbSqlApiCollection". + :vartype type: str + """ + + type_properties: "_models.CosmosDbSqlApiCollectionDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """CosmosDB (SQL API) Collection dataset properties. Required.""" + type: Literal["CosmosDbSqlApiCollection"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"CosmosDbSqlApiCollection\".""" + + __flattened_items = ["collection_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.CosmosDbSqlApiCollectionDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class CosmosDbSqlApiCollectionDatasetTypeProperties(_Model): # pylint: disable=name-too-long + """CosmosDB (SQL API) Collection dataset properties. + + :ivar collection_name: CosmosDB (SQL API) collection name. Type: string (or Expression with + resultType string). Required. + :vartype collection_name: any + """ + + collection_name: Any = rest_field(name="collectionName", visibility=["read", "create", "update", "delete", "query"]) + """CosmosDB (SQL API) collection name. Type: string (or Expression with resultType string). + Required.""" + + @overload + def __init__( + self, + *, + collection_name: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CosmosDbSqlApiSink(CopySink, discriminator="CosmosDbSqlApiSink"): + """A copy activity Azure CosmosDB (SQL API) Collection sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar write_behavior: Describes how to write data to Azure Cosmos DB. Type: string (or + Expression with resultType string). Allowed values: insert and upsert. + :vartype write_behavior: any + :ivar type: Copy sink type. Required. Default value is "CosmosDbSqlApiSink". + :vartype type: str + """ + + write_behavior: Optional[Any] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """Describes how to write data to Azure Cosmos DB. Type: string (or Expression with resultType + string). Allowed values: insert and upsert.""" + type: Literal["CosmosDbSqlApiSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"CosmosDbSqlApiSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + write_behavior: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "CosmosDbSqlApiSink" # type: ignore + + +class CosmosDbSqlApiSource(CopySource, discriminator="CosmosDbSqlApiSource"): + """A copy activity Azure CosmosDB (SQL API) Collection source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query: SQL API query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar page_size: Page size of the result. Type: integer (or Expression with resultType + integer). + :vartype page_size: any + :ivar preferred_regions: Preferred regions. Type: array of strings (or Expression with + resultType array of strings). + :vartype preferred_regions: any + :ivar detect_datetime: Whether detect primitive values as datetime values. Type: boolean (or + Expression with resultType boolean). + :vartype detect_datetime: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "CosmosDbSqlApiSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """SQL API query. Type: string (or Expression with resultType string).""" + page_size: Optional[Any] = rest_field(name="pageSize", visibility=["read", "create", "update", "delete", "query"]) + """Page size of the result. Type: integer (or Expression with resultType integer).""" + preferred_regions: Optional[Any] = rest_field( + name="preferredRegions", visibility=["read", "create", "update", "delete", "query"] + ) + """Preferred regions. Type: array of strings (or Expression with resultType array of strings).""" + detect_datetime: Optional[Any] = rest_field( + name="detectDatetime", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether detect primitive values as datetime values. Type: boolean (or Expression with + resultType boolean).""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["CosmosDbSqlApiSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"CosmosDbSqlApiSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query: Optional[Any] = None, + page_size: Optional[Any] = None, + preferred_regions: Optional[Any] = None, + detect_datetime: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "CosmosDbSqlApiSource" # type: ignore + + +class CouchbaseLinkedService(LinkedService, discriminator="Couchbase"): + """Couchbase server linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Couchbase server linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.CouchbaseLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Couchbase". + :vartype type: str + """ + + type_properties: "_models.CouchbaseLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Couchbase server linked service properties. Required.""" + type: Literal["Couchbase"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Couchbase\".""" + + __flattened_items = ["connection_string", "cred_string", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.CouchbaseLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class CouchbaseLinkedServiceTypeProperties(_Model): + """Couchbase server linked service properties. + + :ivar connection_string: An ODBC connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar cred_string: The Azure key vault secret reference of credString in connection string. + :vartype cred_string: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference.""" + cred_string: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + name="credString", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of credString in connection string.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_string: Optional[Any] = None, + cred_string: Optional["_models.AzureKeyVaultSecretReference"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CouchbaseSource(TabularSource, discriminator="CouchbaseSource"): + """A copy activity Couchbase server source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "CouchbaseSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["CouchbaseSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"CouchbaseSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "CouchbaseSource" # type: ignore + + +class CouchbaseTableDataset(Dataset, discriminator="CouchbaseTable"): + """Couchbase server dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "CouchbaseTable". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["CouchbaseTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"CouchbaseTable\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class CreateDataFlowDebugSessionRequest(_Model): + """Request body structure for creating data flow debug session. + + :ivar compute_type: Compute type of the cluster. The value will be overwritten by the same + setting in integration runtime if provided. + :vartype compute_type: str + :ivar core_count: Core count of the cluster. The value will be overwritten by the same setting + in integration runtime if provided. + :vartype core_count: int + :ivar time_to_live: Time to live setting of the cluster in minutes. + :vartype time_to_live: int + :ivar integration_runtime: Set to use integration runtime setting for data flow debug session. + :vartype integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeDebugResource + """ + + compute_type: Optional[str] = rest_field( + name="computeType", visibility=["read", "create", "update", "delete", "query"] + ) + """Compute type of the cluster. The value will be overwritten by the same setting in integration + runtime if provided.""" + core_count: Optional[int] = rest_field(name="coreCount", visibility=["read", "create", "update", "delete", "query"]) + """Core count of the cluster. The value will be overwritten by the same setting in integration + runtime if provided.""" + time_to_live: Optional[int] = rest_field( + name="timeToLive", visibility=["read", "create", "update", "delete", "query"] + ) + """Time to live setting of the cluster in minutes.""" + integration_runtime: Optional["_models.IntegrationRuntimeDebugResource"] = rest_field( + name="integrationRuntime", visibility=["read", "create", "update", "delete", "query"] + ) + """Set to use integration runtime setting for data flow debug session.""" + + @overload + def __init__( + self, + *, + compute_type: Optional[str] = None, + core_count: Optional[int] = None, + time_to_live: Optional[int] = None, + integration_runtime: Optional["_models.IntegrationRuntimeDebugResource"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CreateDataFlowDebugSessionResponse(_Model): + """Response body structure for creating data flow debug session. + + :ivar status: The state of the debug session. + :vartype status: str + :ivar session_id: The ID of data flow debug session. + :vartype session_id: str + """ + + status: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The state of the debug session.""" + session_id: Optional[str] = rest_field(name="sessionId", visibility=["read", "create", "update", "delete", "query"]) + """The ID of data flow debug session.""" + + @overload + def __init__( + self, + *, + status: Optional[str] = None, + session_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CreateLinkedIntegrationRuntimeRequest(_Model): + """The linked integration runtime information. + + :ivar name: The name of the linked integration runtime. + :vartype name: str + :ivar subscription_id: The ID of the subscription that the linked integration runtime belongs + to. + :vartype subscription_id: str + :ivar data_factory_name: The name of the data factory that the linked integration runtime + belongs to. + :vartype data_factory_name: str + :ivar data_factory_location: The location of the data factory that the linked integration + runtime belongs to. + :vartype data_factory_location: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the linked integration runtime.""" + subscription_id: Optional[str] = rest_field( + name="subscriptionId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of the subscription that the linked integration runtime belongs to.""" + data_factory_name: Optional[str] = rest_field( + name="dataFactoryName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the data factory that the linked integration runtime belongs to.""" + data_factory_location: Optional[str] = rest_field( + name="dataFactoryLocation", visibility=["read", "create", "update", "delete", "query"] + ) + """The location of the data factory that the linked integration runtime belongs to.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + subscription_id: Optional[str] = None, + data_factory_name: Optional[str] = None, + data_factory_location: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CreateRunResponse(_Model): + """Response body with a run identifier. + + :ivar run_id: Identifier of a run. Required. + :vartype run_id: str + """ + + run_id: str = rest_field(name="runId", visibility=["read", "create", "update", "delete", "query"]) + """Identifier of a run. Required.""" + + @overload + def __init__( + self, + *, + run_id: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Credential(_Model): + """The Azure Data Factory nested object which contains the information and credential which can be + used to connect with related store or compute resource. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + ManagedIdentityCredential, ServicePrincipalCredential + + :ivar type: Type of credential. Required. Default value is None. + :vartype type: str + :ivar description: Credential description. + :vartype description: str + :ivar annotations: List of tags that can be used for describing the Credential. + :vartype annotations: list[any] + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """Type of credential. Required. Default value is None.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Credential description.""" + annotations: Optional[list[Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of tags that can be used for describing the Credential.""" + + @overload + def __init__( + self, + *, + type: str, + description: Optional[str] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CredentialReference(_Model): + """Credential reference type. + + :ivar type: Credential reference type. Required. "CredentialReference" + :vartype type: str or ~azure.mgmt.datafactory.models.CredentialReferenceType + :ivar reference_name: Reference credential name. Required. + :vartype reference_name: str + """ + + type: Union[str, "_models.CredentialReferenceType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Credential reference type. Required. \"CredentialReference\"""" + reference_name: str = rest_field(name="referenceName", visibility=["read", "create", "update", "delete", "query"]) + """Reference credential name. Required.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.CredentialReferenceType"], + reference_name: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CredentialResource(ProxyResource): + """Credential resource type. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datafactory.models.SystemData + :ivar properties: Properties of credentials. Required. + :vartype properties: ~azure.mgmt.datafactory.models.Credential + :ivar etag: "If etag is provided in the response body, it may also be provided as a header per + the normal etag convention. Entity tags are used for comparing two or more entities from the + same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match + (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). + :vartype etag: str + """ + + properties: "_models.Credential" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Properties of credentials. Required.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """\"If etag is provided in the response body, it may also be provided as a header per the normal + etag convention. Entity tags are used for comparing two or more entities from the same + requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section + 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.\").""" + + @overload + def __init__( + self, + *, + properties: "_models.Credential", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CustomActivity(ExecutionActivity, discriminator="Custom"): + """Custom activity type. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Custom activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.CustomActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "Custom". + :vartype type: str + """ + + type_properties: "_models.CustomActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Custom activity properties. Required.""" + type: Literal["Custom"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"Custom\".""" + + __flattened_items = [ + "command", + "resource_linked_service", + "folder_path", + "reference_objects", + "extended_properties", + "retention_time_in_days", + "auto_user_specification", + ] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.CustomActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class CustomActivityReferenceObject(_Model): + """Reference objects for custom activity. + + :ivar linked_services: Linked service references. + :vartype linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceReference] + :ivar datasets: Dataset references. + :vartype datasets: list[~azure.mgmt.datafactory.models.DatasetReference] + """ + + linked_services: Optional[list["_models.LinkedServiceReference"]] = rest_field( + name="linkedServices", visibility=["read", "create", "update", "delete", "query"] + ) + """Linked service references.""" + datasets: Optional[list["_models.DatasetReference"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Dataset references.""" + + @overload + def __init__( + self, + *, + linked_services: Optional[list["_models.LinkedServiceReference"]] = None, + datasets: Optional[list["_models.DatasetReference"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CustomActivityTypeProperties(_Model): + """Custom activity properties. + + :ivar command: Command for custom activity Type: string (or Expression with resultType string). + Required. + :vartype command: any + :ivar resource_linked_service: Resource linked service reference. + :vartype resource_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar folder_path: Folder path for resource files Type: string (or Expression with resultType + string). + :vartype folder_path: any + :ivar reference_objects: Reference objects. + :vartype reference_objects: ~azure.mgmt.datafactory.models.CustomActivityReferenceObject + :ivar extended_properties: User defined property bag. There is no restriction on the keys or + values that can be used. The user specified custom activity has the full responsibility to + consume and interpret the content defined. + :vartype extended_properties: dict[str, any] + :ivar retention_time_in_days: The retention time for the files submitted for custom activity. + Type: double (or Expression with resultType double). + :vartype retention_time_in_days: any + :ivar auto_user_specification: Elevation level and scope for the user, default is nonadmin + task. Type: string (or Expression with resultType double). + :vartype auto_user_specification: any + """ + + command: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Command for custom activity Type: string (or Expression with resultType string). Required.""" + resource_linked_service: Optional["_models.LinkedServiceReference"] = rest_field( + name="resourceLinkedService", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource linked service reference.""" + folder_path: Optional[Any] = rest_field( + name="folderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Folder path for resource files Type: string (or Expression with resultType string).""" + reference_objects: Optional["_models.CustomActivityReferenceObject"] = rest_field( + name="referenceObjects", visibility=["read", "create", "update", "delete", "query"] + ) + """Reference objects.""" + extended_properties: Optional[dict[str, Any]] = rest_field( + name="extendedProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """User defined property bag. There is no restriction on the keys or values that can be used. The + user specified custom activity has the full responsibility to consume and interpret the content + defined.""" + retention_time_in_days: Optional[Any] = rest_field( + name="retentionTimeInDays", visibility=["read", "create", "update", "delete", "query"] + ) + """The retention time for the files submitted for custom activity. Type: double (or Expression + with resultType double).""" + auto_user_specification: Optional[Any] = rest_field( + name="autoUserSpecification", visibility=["read", "create", "update", "delete", "query"] + ) + """Elevation level and scope for the user, default is nonadmin task. Type: string (or Expression + with resultType double).""" + + @overload + def __init__( + self, + *, + command: Any, + resource_linked_service: Optional["_models.LinkedServiceReference"] = None, + folder_path: Optional[Any] = None, + reference_objects: Optional["_models.CustomActivityReferenceObject"] = None, + extended_properties: Optional[dict[str, Any]] = None, + retention_time_in_days: Optional[Any] = None, + auto_user_specification: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CustomDataset(Dataset, discriminator="CustomDataset"): + """The custom dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Custom dataset properties. + :vartype type_properties: any + :ivar type: Type of dataset. Required. Default value is "CustomDataset". + :vartype type: str + """ + + type_properties: Optional[Any] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Custom dataset properties.""" + type: Literal["CustomDataset"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"CustomDataset\".""" + + __flattened_items = [""] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class CustomDataSourceLinkedService(LinkedService, discriminator="CustomDataSource"): + """Custom linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Custom linked service properties. Required. + :vartype type_properties: any + :ivar type: Type of linked service. Required. Default value is "CustomDataSource". + :vartype type: str + """ + + type_properties: Any = rest_field(name="typeProperties", visibility=["read", "create", "update", "delete", "query"]) + """Custom linked service properties. Required.""" + type: Literal["CustomDataSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"CustomDataSource\".""" + + __flattened_items = [""] + + @overload + def __init__( + self, + *, + type_properties: Any, + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class CustomEventsTrigger(MultiplePipelineTrigger, discriminator="CustomEventsTrigger"): + """Trigger that runs every time a custom event is received. + + :ivar description: Trigger description. + :vartype description: str + :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are + called on the Trigger. Known values are: "Started", "Stopped", and "Disabled". + :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :ivar annotations: List of tags that can be used for describing the trigger. + :vartype annotations: list[any] + :ivar pipelines: Pipelines that need to be started. + :vartype pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] + :ivar type_properties: Custom Events Trigger properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.CustomEventsTriggerTypeProperties + :ivar type: Trigger type. Required. Default value is "CustomEventsTrigger". + :vartype type: str + """ + + type_properties: "_models.CustomEventsTriggerTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Custom Events Trigger properties. Required.""" + type: Literal["CustomEventsTrigger"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Trigger type. Required. Default value is \"CustomEventsTrigger\".""" + + __flattened_items = ["subject_begins_with", "subject_ends_with", "events", "scope"] + + @overload + def __init__( + self, + *, + type_properties: "_models.CustomEventsTriggerTypeProperties", + description: Optional[str] = None, + annotations: Optional[list[Any]] = None, + pipelines: Optional[list["_models.TriggerPipelineReference"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class CustomEventsTriggerTypeProperties(_Model): + """Custom Events Trigger properties. + + :ivar subject_begins_with: The event subject must begin with the pattern provided for trigger + to fire. At least one of these must be provided: subjectBeginsWith, subjectEndsWith. + :vartype subject_begins_with: str + :ivar subject_ends_with: The event subject must end with the pattern provided for trigger to + fire. At least one of these must be provided: subjectBeginsWith, subjectEndsWith. + :vartype subject_ends_with: str + :ivar events: The list of event types that cause this trigger to fire. Required. + :vartype events: list[any] + :ivar scope: The ARM resource ID of the Azure Event Grid Topic. Required. + :vartype scope: str + """ + + subject_begins_with: Optional[str] = rest_field( + name="subjectBeginsWith", visibility=["read", "create", "update", "delete", "query"] + ) + """The event subject must begin with the pattern provided for trigger to fire. At least one of + these must be provided: subjectBeginsWith, subjectEndsWith.""" + subject_ends_with: Optional[str] = rest_field( + name="subjectEndsWith", visibility=["read", "create", "update", "delete", "query"] + ) + """The event subject must end with the pattern provided for trigger to fire. At least one of these + must be provided: subjectBeginsWith, subjectEndsWith.""" + events: list[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The list of event types that cause this trigger to fire. Required.""" + scope: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The ARM resource ID of the Azure Event Grid Topic. Required.""" + + @overload + def __init__( + self, + *, + events: list[Any], + scope: str, + subject_begins_with: Optional[str] = None, + subject_ends_with: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatabricksJobActivity(ExecutionActivity, discriminator="DatabricksJob"): + """Databricks Job activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Databricks Job activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.DatabricksJobActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "DatabricksJob". + :vartype type: str + """ + + type_properties: "_models.DatabricksJobActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Databricks Job activity properties. Required.""" + type: Literal["DatabricksJob"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"DatabricksJob\".""" + + __flattened_items = ["job_id", "job_parameters"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.DatabricksJobActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class DatabricksJobActivityTypeProperties(_Model): + """Databricks Job activity properties. + + :ivar job_id: The Id of the Databricks Job to be executed. Type: string (or Expression with + resultType string). Required. + :vartype job_id: any + :ivar job_parameters: Job parameters to be used for each run of this job. If the job takes a + parameter that is not specified, the default value from the job will be used. + :vartype job_parameters: dict[str, any] + """ + + job_id: Any = rest_field(name="jobId", visibility=["read", "create", "update", "delete", "query"]) + """The Id of the Databricks Job to be executed. Type: string (or Expression with resultType + string). Required.""" + job_parameters: Optional[dict[str, Any]] = rest_field( + name="jobParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """Job parameters to be used for each run of this job. If the job takes a parameter that is not + specified, the default value from the job will be used.""" + + @overload + def __init__( + self, + *, + job_id: Any, + job_parameters: Optional[dict[str, Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatabricksNotebookActivity(ExecutionActivity, discriminator="DatabricksNotebook"): + """DatabricksNotebook activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Databricks Notebook activity properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.DatabricksNotebookActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "DatabricksNotebook". + :vartype type: str + """ + + type_properties: "_models.DatabricksNotebookActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Databricks Notebook activity properties. Required.""" + type: Literal["DatabricksNotebook"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"DatabricksNotebook\".""" + + __flattened_items = ["notebook_path", "base_parameters", "libraries"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.DatabricksNotebookActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class DatabricksNotebookActivityTypeProperties(_Model): + """Databricks Notebook activity properties. + + :ivar notebook_path: The absolute path of the notebook to be run in the Databricks Workspace. + This path must begin with a slash. Type: string (or Expression with resultType string). + Required. + :vartype notebook_path: any + :ivar base_parameters: Base parameters to be used for each run of this job.If the notebook + takes a parameter that is not specified, the default value from the notebook will be used. + :vartype base_parameters: dict[str, any] + :ivar libraries: A list of libraries to be installed on the cluster that will execute the job. + :vartype libraries: list[dict[str, any]] + """ + + notebook_path: Any = rest_field(name="notebookPath", visibility=["read", "create", "update", "delete", "query"]) + """The absolute path of the notebook to be run in the Databricks Workspace. This path must begin + with a slash. Type: string (or Expression with resultType string). Required.""" + base_parameters: Optional[dict[str, Any]] = rest_field( + name="baseParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """Base parameters to be used for each run of this job.If the notebook takes a parameter that is + not specified, the default value from the notebook will be used.""" + libraries: Optional[list[dict[str, Any]]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A list of libraries to be installed on the cluster that will execute the job.""" + + @overload + def __init__( + self, + *, + notebook_path: Any, + base_parameters: Optional[dict[str, Any]] = None, + libraries: Optional[list[dict[str, Any]]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatabricksSparkJarActivity(ExecutionActivity, discriminator="DatabricksSparkJar"): + """DatabricksSparkJar activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Databricks SparkJar activity properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.DatabricksSparkJarActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "DatabricksSparkJar". + :vartype type: str + """ + + type_properties: "_models.DatabricksSparkJarActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Databricks SparkJar activity properties. Required.""" + type: Literal["DatabricksSparkJar"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"DatabricksSparkJar\".""" + + __flattened_items = ["main_class_name", "parameters", "libraries"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.DatabricksSparkJarActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class DatabricksSparkJarActivityTypeProperties(_Model): + """Databricks SparkJar activity properties. + + :ivar main_class_name: The full name of the class containing the main method to be executed. + This class must be contained in a JAR provided as a library. Type: string (or Expression with + resultType string). Required. + :vartype main_class_name: any + :ivar parameters: Parameters that will be passed to the main method. + :vartype parameters: list[any] + :ivar libraries: A list of libraries to be installed on the cluster that will execute the job. + :vartype libraries: list[dict[str, any]] + """ + + main_class_name: Any = rest_field(name="mainClassName", visibility=["read", "create", "update", "delete", "query"]) + """The full name of the class containing the main method to be executed. This class must be + contained in a JAR provided as a library. Type: string (or Expression with resultType string). + Required.""" + parameters: Optional[list[Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Parameters that will be passed to the main method.""" + libraries: Optional[list[dict[str, Any]]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A list of libraries to be installed on the cluster that will execute the job.""" + + @overload + def __init__( + self, + *, + main_class_name: Any, + parameters: Optional[list[Any]] = None, + libraries: Optional[list[dict[str, Any]]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatabricksSparkPythonActivity(ExecutionActivity, discriminator="DatabricksSparkPython"): + """DatabricksSparkPython activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Databricks SparkPython activity properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.DatabricksSparkPythonActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "DatabricksSparkPython". + :vartype type: str + """ + + type_properties: "_models.DatabricksSparkPythonActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Databricks SparkPython activity properties. Required.""" + type: Literal["DatabricksSparkPython"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"DatabricksSparkPython\".""" + + __flattened_items = ["python_file", "parameters", "libraries"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.DatabricksSparkPythonActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class DatabricksSparkPythonActivityTypeProperties(_Model): # pylint: disable=name-too-long + """Databricks SparkPython activity properties. + + :ivar python_file: The URI of the Python file to be executed. DBFS paths are supported. Type: + string (or Expression with resultType string). Required. + :vartype python_file: any + :ivar parameters: Command line parameters that will be passed to the Python file. + :vartype parameters: list[any] + :ivar libraries: A list of libraries to be installed on the cluster that will execute the job. + :vartype libraries: list[dict[str, any]] + """ + + python_file: Any = rest_field(name="pythonFile", visibility=["read", "create", "update", "delete", "query"]) + """The URI of the Python file to be executed. DBFS paths are supported. Type: string (or + Expression with resultType string). Required.""" + parameters: Optional[list[Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Command line parameters that will be passed to the Python file.""" + libraries: Optional[list[dict[str, Any]]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A list of libraries to be installed on the cluster that will execute the job.""" + + @overload + def __init__( + self, + *, + python_file: Any, + parameters: Optional[list[Any]] = None, + libraries: Optional[list[dict[str, Any]]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataFlow(_Model): + """Azure Data Factory nested object which contains a flow with data movements and transformations. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + Flowlet, MappingDataFlow, WranglingDataFlow + + :ivar type: Type of data flow. Required. Default value is None. + :vartype type: str + :ivar description: The description of the data flow. + :vartype description: str + :ivar annotations: List of tags that can be used for describing the data flow. + :vartype annotations: list[any] + :ivar folder: The folder that this data flow is in. If not specified, Data flow will appear at + the root level. + :vartype folder: ~azure.mgmt.datafactory.models.DataFlowFolder + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """Type of data flow. Required. Default value is None.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The description of the data flow.""" + annotations: Optional[list[Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of tags that can be used for describing the data flow.""" + folder: Optional["_models.DataFlowFolder"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The folder that this data flow is in. If not specified, Data flow will appear at the root + level.""" + + @overload + def __init__( + self, + *, + type: str, + description: Optional[str] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DataFlowFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataFlowDebugCommandPayload(_Model): + """Structure of command payload. + + :ivar stream_name: The stream name which is used for preview. Required. + :vartype stream_name: str + :ivar row_limits: Row limits for preview response. + :vartype row_limits: int + :ivar columns: Array of column names. + :vartype columns: list[str] + :ivar expression: The expression which is used for preview. + :vartype expression: str + """ + + stream_name: str = rest_field(name="streamName", visibility=["read", "create", "update", "delete", "query"]) + """The stream name which is used for preview. Required.""" + row_limits: Optional[int] = rest_field(name="rowLimits", visibility=["read", "create", "update", "delete", "query"]) + """Row limits for preview response.""" + columns: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Array of column names.""" + expression: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The expression which is used for preview.""" + + @overload + def __init__( + self, + *, + stream_name: str, + row_limits: Optional[int] = None, + columns: Optional[list[str]] = None, + expression: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataFlowDebugCommandRequest(_Model): + """Request body structure for data flow debug command. + + :ivar session_id: The ID of data flow debug session. + :vartype session_id: str + :ivar command: The command type. Known values are: "executePreviewQuery", + "executeStatisticsQuery", and "executeExpressionQuery". + :vartype command: str or ~azure.mgmt.datafactory.models.DataFlowDebugCommandType + :ivar command_payload: The command payload object. + :vartype command_payload: ~azure.mgmt.datafactory.models.DataFlowDebugCommandPayload + """ + + session_id: Optional[str] = rest_field(name="sessionId", visibility=["read", "create", "update", "delete", "query"]) + """The ID of data flow debug session.""" + command: Optional[Union[str, "_models.DataFlowDebugCommandType"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The command type. Known values are: \"executePreviewQuery\", \"executeStatisticsQuery\", and + \"executeExpressionQuery\".""" + command_payload: Optional["_models.DataFlowDebugCommandPayload"] = rest_field( + name="commandPayload", visibility=["read", "create", "update", "delete", "query"] + ) + """The command payload object.""" + + @overload + def __init__( + self, + *, + session_id: Optional[str] = None, + command: Optional[Union[str, "_models.DataFlowDebugCommandType"]] = None, + command_payload: Optional["_models.DataFlowDebugCommandPayload"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataFlowDebugCommandResponse(_Model): + """Response body structure of data flow result for data preview, statistics or expression preview. + + :ivar status: The run status of data preview, statistics or expression preview. + :vartype status: str + :ivar data: The result data of data preview, statistics or expression preview. + :vartype data: str + """ + + status: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The run status of data preview, statistics or expression preview.""" + data: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The result data of data preview, statistics or expression preview.""" + + @overload + def __init__( + self, + *, + status: Optional[str] = None, + data: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataFlowDebugPackage(_Model): + """Request body structure for starting data flow debug session. + + :ivar session_id: The ID of data flow debug session. + :vartype session_id: str + :ivar data_flow: Data flow instance. + :vartype data_flow: ~azure.mgmt.datafactory.models.DataFlowDebugResource + :ivar data_flows: List of Data flows. + :vartype data_flows: list[~azure.mgmt.datafactory.models.DataFlowDebugResource] + :ivar datasets: List of datasets. + :vartype datasets: list[~azure.mgmt.datafactory.models.DatasetDebugResource] + :ivar linked_services: List of linked services. + :vartype linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceDebugResource] + :ivar staging: Staging info for debug session. + :vartype staging: ~azure.mgmt.datafactory.models.DataFlowStagingInfo + :ivar debug_settings: Data flow debug settings. + :vartype debug_settings: ~azure.mgmt.datafactory.models.DataFlowDebugPackageDebugSettings + """ + + session_id: Optional[str] = rest_field(name="sessionId", visibility=["read", "create", "update", "delete", "query"]) + """The ID of data flow debug session.""" + data_flow: Optional["_models.DataFlowDebugResource"] = rest_field( + name="dataFlow", visibility=["read", "create", "update", "delete", "query"] + ) + """Data flow instance.""" + data_flows: Optional[list["_models.DataFlowDebugResource"]] = rest_field( + name="dataFlows", visibility=["read", "create", "update", "delete", "query"] + ) + """List of Data flows.""" + datasets: Optional[list["_models.DatasetDebugResource"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of datasets.""" + linked_services: Optional[list["_models.LinkedServiceDebugResource"]] = rest_field( + name="linkedServices", visibility=["read", "create", "update", "delete", "query"] + ) + """List of linked services.""" + staging: Optional["_models.DataFlowStagingInfo"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Staging info for debug session.""" + debug_settings: Optional["_models.DataFlowDebugPackageDebugSettings"] = rest_field( + name="debugSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Data flow debug settings.""" + + @overload + def __init__( + self, + *, + session_id: Optional[str] = None, + data_flow: Optional["_models.DataFlowDebugResource"] = None, + data_flows: Optional[list["_models.DataFlowDebugResource"]] = None, + datasets: Optional[list["_models.DatasetDebugResource"]] = None, + linked_services: Optional[list["_models.LinkedServiceDebugResource"]] = None, + staging: Optional["_models.DataFlowStagingInfo"] = None, + debug_settings: Optional["_models.DataFlowDebugPackageDebugSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataFlowDebugPackageDebugSettings(_Model): + """Data flow debug settings. + + :ivar source_settings: Source setting for data flow debug. + :vartype source_settings: list[~azure.mgmt.datafactory.models.DataFlowSourceSetting] + :ivar parameters: Data flow parameters. + :vartype parameters: dict[str, any] + :ivar dataset_parameters: Parameters for dataset. + :vartype dataset_parameters: any + """ + + source_settings: Optional[list["_models.DataFlowSourceSetting"]] = rest_field( + name="sourceSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Source setting for data flow debug.""" + parameters: Optional[dict[str, Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Data flow parameters.""" + dataset_parameters: Optional[Any] = rest_field( + name="datasetParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """Parameters for dataset.""" + + @overload + def __init__( + self, + *, + source_settings: Optional[list["_models.DataFlowSourceSetting"]] = None, + parameters: Optional[dict[str, Any]] = None, + dataset_parameters: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SubResourceDebugResource(_Model): + """Azure Data Factory nested debug resource. + + :ivar name: The resource name. + :vartype name: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource name.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataFlowDebugResource(SubResourceDebugResource): + """Data flow debug resource. + + :ivar name: The resource name. + :vartype name: str + :ivar properties: Data flow properties. Required. + :vartype properties: ~azure.mgmt.datafactory.models.DataFlow + """ + + properties: "_models.DataFlow" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Data flow properties. Required.""" + + @overload + def __init__( + self, + *, + properties: "_models.DataFlow", + name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataFlowDebugSessionInfo(_Model): + """Data flow debug session info. + + :ivar data_flow_name: The name of the data flow. + :vartype data_flow_name: str + :ivar compute_type: Compute type of the cluster. + :vartype compute_type: str + :ivar core_count: Core count of the cluster. + :vartype core_count: int + :ivar node_count: Node count of the cluster. (deprecated property). + :vartype node_count: int + :ivar integration_runtime_name: Attached integration runtime name of data flow debug session. + :vartype integration_runtime_name: str + :ivar session_id: The ID of data flow debug session. + :vartype session_id: str + :ivar start_time: Start time of data flow debug session. + :vartype start_time: str + :ivar time_to_live_in_minutes: Compute type of the cluster. + :vartype time_to_live_in_minutes: int + :ivar last_activity_time: Last activity time of data flow debug session. + :vartype last_activity_time: str + """ + + data_flow_name: Optional[str] = rest_field( + name="dataFlowName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the data flow.""" + compute_type: Optional[str] = rest_field( + name="computeType", visibility=["read", "create", "update", "delete", "query"] + ) + """Compute type of the cluster.""" + core_count: Optional[int] = rest_field(name="coreCount", visibility=["read", "create", "update", "delete", "query"]) + """Core count of the cluster.""" + node_count: Optional[int] = rest_field(name="nodeCount", visibility=["read", "create", "update", "delete", "query"]) + """Node count of the cluster. (deprecated property).""" + integration_runtime_name: Optional[str] = rest_field( + name="integrationRuntimeName", visibility=["read", "create", "update", "delete", "query"] + ) + """Attached integration runtime name of data flow debug session.""" + session_id: Optional[str] = rest_field(name="sessionId", visibility=["read", "create", "update", "delete", "query"]) + """The ID of data flow debug session.""" + start_time: Optional[str] = rest_field(name="startTime", visibility=["read", "create", "update", "delete", "query"]) + """Start time of data flow debug session.""" + time_to_live_in_minutes: Optional[int] = rest_field( + name="timeToLiveInMinutes", visibility=["read", "create", "update", "delete", "query"] + ) + """Compute type of the cluster.""" + last_activity_time: Optional[str] = rest_field( + name="lastActivityTime", visibility=["read", "create", "update", "delete", "query"] + ) + """Last activity time of data flow debug session.""" + + @overload + def __init__( + self, + *, + data_flow_name: Optional[str] = None, + compute_type: Optional[str] = None, + core_count: Optional[int] = None, + node_count: Optional[int] = None, + integration_runtime_name: Optional[str] = None, + session_id: Optional[str] = None, + start_time: Optional[str] = None, + time_to_live_in_minutes: Optional[int] = None, + last_activity_time: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataFlowFolder(_Model): + """The folder that this data flow is in. If not specified, Data flow will appear at the root + level. + + :ivar name: The name of the folder that this data flow is in. + :vartype name: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the folder that this data flow is in.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataFlowReference(_Model): + """Data flow reference type. + + :ivar type: Data flow reference type. Required. "DataFlowReference" + :vartype type: str or ~azure.mgmt.datafactory.models.DataFlowReferenceType + :ivar reference_name: Reference data flow name. Required. + :vartype reference_name: str + :ivar dataset_parameters: Reference data flow parameters from dataset. + :vartype dataset_parameters: any + :ivar parameters: Data flow parameters. + :vartype parameters: dict[str, any] + """ + + type: Union[str, "_models.DataFlowReferenceType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Data flow reference type. Required. \"DataFlowReference\"""" + reference_name: str = rest_field(name="referenceName", visibility=["read", "create", "update", "delete", "query"]) + """Reference data flow name. Required.""" + dataset_parameters: Optional[Any] = rest_field( + name="datasetParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """Reference data flow parameters from dataset.""" + parameters: Optional[dict[str, Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Data flow parameters.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.DataFlowReferenceType"], + reference_name: str, + dataset_parameters: Optional[Any] = None, + parameters: Optional[dict[str, Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataFlowResource(ProxyResource): + """Data flow resource type. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datafactory.models.SystemData + :ivar properties: Data flow properties. Required. + :vartype properties: ~azure.mgmt.datafactory.models.DataFlow + :ivar etag: "If etag is provided in the response body, it may also be provided as a header per + the normal etag convention. Entity tags are used for comparing two or more entities from the + same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match + (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). + :vartype etag: str + """ + + properties: "_models.DataFlow" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Data flow properties. Required.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """\"If etag is provided in the response body, it may also be provided as a header per the normal + etag convention. Entity tags are used for comparing two or more entities from the same + requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section + 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.\").""" + + @overload + def __init__( + self, + *, + properties: "_models.DataFlow", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Transformation(_Model): + """A data flow transformation. + + :ivar name: Transformation name. Required. + :vartype name: str + :ivar description: Transformation description. + :vartype description: str + :ivar dataset: Dataset reference. + :vartype dataset: ~azure.mgmt.datafactory.models.DatasetReference + :ivar linked_service: Linked service reference. + :vartype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar flowlet: Flowlet Reference. + :vartype flowlet: ~azure.mgmt.datafactory.models.DataFlowReference + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Transformation name. Required.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Transformation description.""" + dataset: Optional["_models.DatasetReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Dataset reference.""" + linked_service: Optional["_models.LinkedServiceReference"] = rest_field( + name="linkedService", visibility=["read", "create", "update", "delete", "query"] + ) + """Linked service reference.""" + flowlet: Optional["_models.DataFlowReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Flowlet Reference.""" + + @overload + def __init__( + self, + *, + name: str, + description: Optional[str] = None, + dataset: Optional["_models.DatasetReference"] = None, + linked_service: Optional["_models.LinkedServiceReference"] = None, + flowlet: Optional["_models.DataFlowReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataFlowSink(Transformation): + """Transformation for data flow sink. + + :ivar name: Transformation name. Required. + :vartype name: str + :ivar description: Transformation description. + :vartype description: str + :ivar dataset: Dataset reference. + :vartype dataset: ~azure.mgmt.datafactory.models.DatasetReference + :ivar linked_service: Linked service reference. + :vartype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar flowlet: Flowlet Reference. + :vartype flowlet: ~azure.mgmt.datafactory.models.DataFlowReference + :ivar schema_linked_service: Schema linked service reference. + :vartype schema_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar rejected_data_linked_service: Rejected data linked service reference. + :vartype rejected_data_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + """ + + schema_linked_service: Optional["_models.LinkedServiceReference"] = rest_field( + name="schemaLinkedService", visibility=["read", "create", "update", "delete", "query"] + ) + """Schema linked service reference.""" + rejected_data_linked_service: Optional["_models.LinkedServiceReference"] = rest_field( + name="rejectedDataLinkedService", visibility=["read", "create", "update", "delete", "query"] + ) + """Rejected data linked service reference.""" + + @overload + def __init__( + self, + *, + name: str, + description: Optional[str] = None, + dataset: Optional["_models.DatasetReference"] = None, + linked_service: Optional["_models.LinkedServiceReference"] = None, + flowlet: Optional["_models.DataFlowReference"] = None, + schema_linked_service: Optional["_models.LinkedServiceReference"] = None, + rejected_data_linked_service: Optional["_models.LinkedServiceReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataFlowSource(Transformation): + """Transformation for data flow source. + + :ivar name: Transformation name. Required. + :vartype name: str + :ivar description: Transformation description. + :vartype description: str + :ivar dataset: Dataset reference. + :vartype dataset: ~azure.mgmt.datafactory.models.DatasetReference + :ivar linked_service: Linked service reference. + :vartype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar flowlet: Flowlet Reference. + :vartype flowlet: ~azure.mgmt.datafactory.models.DataFlowReference + :ivar schema_linked_service: Schema linked service reference. + :vartype schema_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + """ + + schema_linked_service: Optional["_models.LinkedServiceReference"] = rest_field( + name="schemaLinkedService", visibility=["read", "create", "update", "delete", "query"] + ) + """Schema linked service reference.""" + + @overload + def __init__( + self, + *, + name: str, + description: Optional[str] = None, + dataset: Optional["_models.DatasetReference"] = None, + linked_service: Optional["_models.LinkedServiceReference"] = None, + flowlet: Optional["_models.DataFlowReference"] = None, + schema_linked_service: Optional["_models.LinkedServiceReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataFlowSourceSetting(_Model): + """Definition of data flow source setting for debug. + + :ivar source_name: The data flow source name. + :vartype source_name: str + :ivar row_limit: Defines the row limit of data flow source in debug. + :vartype row_limit: int + """ + + source_name: Optional[str] = rest_field( + name="sourceName", visibility=["read", "create", "update", "delete", "query"] + ) + """The data flow source name.""" + row_limit: Optional[int] = rest_field(name="rowLimit", visibility=["read", "create", "update", "delete", "query"]) + """Defines the row limit of data flow source in debug.""" + + @overload + def __init__( + self, + *, + source_name: Optional[str] = None, + row_limit: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataFlowStagingInfo(_Model): + """Staging info for execute data flow activity. + + :ivar linked_service: Staging linked service reference. + :vartype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar folder_path: Folder path for staging blob. Type: string (or Expression with resultType + string). + :vartype folder_path: any + """ + + linked_service: Optional["_models.LinkedServiceReference"] = rest_field( + name="linkedService", visibility=["read", "create", "update", "delete", "query"] + ) + """Staging linked service reference.""" + folder_path: Optional[Any] = rest_field( + name="folderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Folder path for staging blob. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + linked_service: Optional["_models.LinkedServiceReference"] = None, + folder_path: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataLakeAnalyticsUSQLActivity(ExecutionActivity, discriminator="DataLakeAnalyticsU-SQL"): + """Data Lake Analytics U-SQL activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Data Lake Analytics U-SQL activity properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.DataLakeAnalyticsUSQLActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "DataLakeAnalyticsU-SQL". + :vartype type: str + """ + + type_properties: "_models.DataLakeAnalyticsUSQLActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Data Lake Analytics U-SQL activity properties. Required.""" + type: Literal["DataLakeAnalyticsU-SQL"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"DataLakeAnalyticsU-SQL\".""" + + __flattened_items = [ + "script_path", + "script_linked_service", + "degree_of_parallelism", + "priority", + "parameters", + "runtime_version", + "compilation_mode", + ] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.DataLakeAnalyticsUSQLActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class DataLakeAnalyticsUSQLActivityTypeProperties(_Model): # pylint: disable=name-too-long + """DataLakeAnalyticsU-SQL activity properties. + + :ivar script_path: Case-sensitive path to folder that contains the U-SQL script. Type: string + (or Expression with resultType string). Required. + :vartype script_path: any + :ivar script_linked_service: Script linked service reference. Required. + :vartype script_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar degree_of_parallelism: The maximum number of nodes simultaneously used to run the job. + Default value is 1. Type: integer (or Expression with resultType integer), minimum: 1. + :vartype degree_of_parallelism: any + :ivar priority: Determines which jobs out of all that are queued should be selected to run + first. The lower the number, the higher the priority. Default value is 1000. Type: integer (or + Expression with resultType integer), minimum: 1. + :vartype priority: any + :ivar parameters: Parameters for U-SQL job request. + :vartype parameters: dict[str, any] + :ivar runtime_version: Runtime version of the U-SQL engine to use. Type: string (or Expression + with resultType string). + :vartype runtime_version: any + :ivar compilation_mode: Compilation mode of U-SQL. Must be one of these values : Semantic, Full + and SingleBox. Type: string (or Expression with resultType string). + :vartype compilation_mode: any + """ + + script_path: Any = rest_field(name="scriptPath", visibility=["read", "create", "update", "delete", "query"]) + """Case-sensitive path to folder that contains the U-SQL script. Type: string (or Expression with + resultType string). Required.""" + script_linked_service: "_models.LinkedServiceReference" = rest_field( + name="scriptLinkedService", visibility=["read", "create", "update", "delete", "query"] + ) + """Script linked service reference. Required.""" + degree_of_parallelism: Optional[Any] = rest_field( + name="degreeOfParallelism", visibility=["read", "create", "update", "delete", "query"] + ) + """The maximum number of nodes simultaneously used to run the job. Default value is 1. Type: + integer (or Expression with resultType integer), minimum: 1.""" + priority: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Determines which jobs out of all that are queued should be selected to run first. The lower the + number, the higher the priority. Default value is 1000. Type: integer (or Expression with + resultType integer), minimum: 1.""" + parameters: Optional[dict[str, Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Parameters for U-SQL job request.""" + runtime_version: Optional[Any] = rest_field( + name="runtimeVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """Runtime version of the U-SQL engine to use. Type: string (or Expression with resultType + string).""" + compilation_mode: Optional[Any] = rest_field( + name="compilationMode", visibility=["read", "create", "update", "delete", "query"] + ) + """Compilation mode of U-SQL. Must be one of these values : Semantic, Full and SingleBox. Type: + string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + script_path: Any, + script_linked_service: "_models.LinkedServiceReference", + degree_of_parallelism: Optional[Any] = None, + priority: Optional[Any] = None, + parameters: Optional[dict[str, Any]] = None, + runtime_version: Optional[Any] = None, + compilation_mode: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataMapperMapping(_Model): + """Source and target table mapping details. + + :ivar target_entity_name: Name of the target table. + :vartype target_entity_name: str + :ivar source_entity_name: Name of the source table. + :vartype source_entity_name: str + :ivar source_connection_reference: The connection reference for the source connection. + :vartype source_connection_reference: ~azure.mgmt.datafactory.models.MapperConnectionReference + :ivar attribute_mapping_info: This holds the user provided attribute mapping information. + :vartype attribute_mapping_info: ~azure.mgmt.datafactory.models.MapperAttributeMappings + :ivar source_denormalize_info: This holds the source denormalization information used while + joining multiple sources. + :vartype source_denormalize_info: any + """ + + target_entity_name: Optional[str] = rest_field( + name="targetEntityName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the target table.""" + source_entity_name: Optional[str] = rest_field( + name="sourceEntityName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the source table.""" + source_connection_reference: Optional["_models.MapperConnectionReference"] = rest_field( + name="sourceConnectionReference", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection reference for the source connection.""" + attribute_mapping_info: Optional["_models.MapperAttributeMappings"] = rest_field( + name="attributeMappingInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """This holds the user provided attribute mapping information.""" + source_denormalize_info: Optional[Any] = rest_field( + name="sourceDenormalizeInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """This holds the source denormalization information used while joining multiple sources.""" + + @overload + def __init__( + self, + *, + target_entity_name: Optional[str] = None, + source_entity_name: Optional[str] = None, + source_connection_reference: Optional["_models.MapperConnectionReference"] = None, + attribute_mapping_info: Optional["_models.MapperAttributeMappings"] = None, + source_denormalize_info: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatasetCompression(_Model): + """The compression method used on a dataset. + + :ivar type: Type of dataset compression. Type: string (or Expression with resultType string). + Required. + :vartype type: any + :ivar level: The dataset compression level. Type: string (or Expression with resultType + string). + :vartype level: any + """ + + type: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Type of dataset compression. Type: string (or Expression with resultType string). Required.""" + level: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The dataset compression level. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + type: Any, + level: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatasetDebugResource(SubResourceDebugResource): + """Dataset debug resource. + + :ivar name: The resource name. + :vartype name: str + :ivar properties: Dataset properties. Required. + :vartype properties: ~azure.mgmt.datafactory.models.Dataset + """ + + properties: "_models.Dataset" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Dataset properties. Required.""" + + @overload + def __init__( + self, + *, + properties: "_models.Dataset", + name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatasetFolder(_Model): + """The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + + :ivar name: The name of the folder that this Dataset is in. + :vartype name: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the folder that this Dataset is in.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatasetReference(_Model): + """Dataset reference type. + + :ivar type: Dataset reference type. Required. "DatasetReference" + :vartype type: str or ~azure.mgmt.datafactory.models.DatasetReferenceType + :ivar reference_name: Reference dataset name. Required. + :vartype reference_name: str + :ivar parameters: Arguments for dataset. + :vartype parameters: dict[str, any] + """ + + type: Union[str, "_models.DatasetReferenceType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Dataset reference type. Required. \"DatasetReference\"""" + reference_name: str = rest_field(name="referenceName", visibility=["read", "create", "update", "delete", "query"]) + """Reference dataset name. Required.""" + parameters: Optional[dict[str, Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Arguments for dataset.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.DatasetReferenceType"], + reference_name: str, + parameters: Optional[dict[str, Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatasetResource(ProxyResource): + """Dataset resource type. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datafactory.models.SystemData + :ivar properties: Dataset properties. Required. + :vartype properties: ~azure.mgmt.datafactory.models.Dataset + :ivar etag: "If etag is provided in the response body, it may also be provided as a header per + the normal etag convention. Entity tags are used for comparing two or more entities from the + same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match + (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). + :vartype etag: str + """ + + properties: "_models.Dataset" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Dataset properties. Required.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """\"If etag is provided in the response body, it may also be provided as a header per the normal + etag convention. Entity tags are used for comparing two or more entities from the same + requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section + 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.\").""" + + @overload + def __init__( + self, + *, + properties: "_models.Dataset", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataworldLinkedService(LinkedService, discriminator="Dataworld"): + """Linked service for Dataworld. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Dataworld linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.DataworldLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Dataworld". + :vartype type: str + """ + + type_properties: "_models.DataworldLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Dataworld linked service properties. Required.""" + type: Literal["Dataworld"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Dataworld\".""" + + __flattened_items = ["api_token", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.DataworldLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class DataworldLinkedServiceTypeProperties(_Model): + """Dataworld linked service type properties. + + :ivar api_token: The api token for the Dataworld source. Required. + :vartype api_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + api_token: "_models.SecretBase" = rest_field( + name="apiToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The api token for the Dataworld source. Required.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + api_token: "_models.SecretBase", + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Db2LinkedService(LinkedService, discriminator="Db2"): + """Linked service for DB2 data source. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: DB2 linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.Db2LinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Db2". + :vartype type: str + """ + + type_properties: "_models.Db2LinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """DB2 linked service properties. Required.""" + type: Literal["Db2"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Db2\".""" + + __flattened_items = [ + "connection_string", + "server", + "database", + "authentication_type", + "username", + "password", + "package_collection", + "certificate_common_name", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.Db2LinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class Db2LinkedServiceTypeProperties(_Model): + """DB2 linked service properties. + + :ivar connection_string: The connection string. It is mutually exclusive with server, database, + authenticationType, userName, packageCollection and certificateCommonName property. Type: + string, SecureString or AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar server: Server name for connection. It is mutually exclusive with connectionString + property. Type: string (or Expression with resultType string). + :vartype server: any + :ivar database: Database name for connection. It is mutually exclusive with connectionString + property. Type: string (or Expression with resultType string). + :vartype database: any + :ivar authentication_type: AuthenticationType to be used for connection. It is mutually + exclusive with connectionString property. "Basic" + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.Db2AuthenticationType + :ivar username: Username for authentication. It is mutually exclusive with connectionString + property. Type: string (or Expression with resultType string). + :vartype username: any + :ivar password: Password for authentication. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar package_collection: Under where packages are created when querying database. It is + mutually exclusive with connectionString property. Type: string (or Expression with resultType + string). + :vartype package_collection: any + :ivar certificate_common_name: Certificate Common Name when TLS is enabled. It is mutually + exclusive with connectionString property. Type: string (or Expression with resultType string). + :vartype certificate_common_name: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. It is mutually exclusive with + connectionString property. Type: string. + :vartype encrypted_credential: str + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection string. It is mutually exclusive with server, database, authenticationType, + userName, packageCollection and certificateCommonName property. Type: string, SecureString or + AzureKeyVaultSecretReference.""" + server: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Server name for connection. It is mutually exclusive with connectionString property. Type: + string (or Expression with resultType string).""" + database: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database name for connection. It is mutually exclusive with connectionString property. Type: + string (or Expression with resultType string).""" + authentication_type: Optional[Union[str, "_models.Db2AuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """AuthenticationType to be used for connection. It is mutually exclusive with connectionString + property. \"Basic\"""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Username for authentication. It is mutually exclusive with connectionString property. Type: + string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password for authentication.""" + package_collection: Optional[Any] = rest_field( + name="packageCollection", visibility=["read", "create", "update", "delete", "query"] + ) + """Under where packages are created when querying database. It is mutually exclusive with + connectionString property. Type: string (or Expression with resultType string).""" + certificate_common_name: Optional[Any] = rest_field( + name="certificateCommonName", visibility=["read", "create", "update", "delete", "query"] + ) + """Certificate Common Name when TLS is enabled. It is mutually exclusive with connectionString + property. Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. It is mutually exclusive with connectionString + property. Type: string.""" + + @overload + def __init__( + self, + *, + connection_string: Optional[Any] = None, + server: Optional[Any] = None, + database: Optional[Any] = None, + authentication_type: Optional[Union[str, "_models.Db2AuthenticationType"]] = None, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + package_collection: Optional[Any] = None, + certificate_common_name: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Db2Source(TabularSource, discriminator="Db2Source"): + """A copy activity source for Db2 databases. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: Database query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "Db2Source". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database query. Type: string (or Expression with resultType string).""" + type: Literal["Db2Source"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"Db2Source\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "Db2Source" # type: ignore + + +class Db2TableDataset(Dataset, discriminator="Db2Table"): + """The Db2 table dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Db2 table dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.Db2TableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "Db2Table". + :vartype type: str + """ + + type_properties: Optional["_models.Db2TableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Db2 table dataset properties.""" + type: Literal["Db2Table"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"Db2Table\".""" + + __flattened_items = ["table_name", "schema", "table"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.Db2TableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class Db2TableDatasetTypeProperties(_Model): + """Db2 table dataset properties. + + :ivar table_name: This property will be retired. Please consider using schema + table + properties instead. + :vartype table_name: any + :ivar schema: The Db2 schema name. Type: string (or Expression with resultType string). + :vartype schema: any + :ivar table: The Db2 table name. Type: string (or Expression with resultType string). + :vartype table: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property will be retired. Please consider using schema + table properties instead.""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Db2 schema name. Type: string (or Expression with resultType string).""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Db2 table name. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + schema: Optional[Any] = None, + table: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DeleteActivity(ExecutionActivity, discriminator="Delete"): + """Delete activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Delete activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.DeleteActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "Delete". + :vartype type: str + """ + + type_properties: "_models.DeleteActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Delete activity properties. Required.""" + type: Literal["Delete"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"Delete\".""" + + __flattened_items = [ + "recursive", + "max_concurrent_connections", + "enable_logging", + "log_storage_settings", + "dataset", + "store_settings", + ] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.DeleteActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class DeleteActivityTypeProperties(_Model): + """Delete activity properties. + + :ivar recursive: If true, files or sub-folders under current folder path will be deleted + recursively. Default is false. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar max_concurrent_connections: The max concurrent connections to connect data source at the + same time. + :vartype max_concurrent_connections: int + :ivar enable_logging: Whether to record detailed logs of delete-activity execution. Default + value is false. Type: boolean (or Expression with resultType boolean). + :vartype enable_logging: any + :ivar log_storage_settings: Log storage settings customer need to provide when enableLogging is + true. + :vartype log_storage_settings: ~azure.mgmt.datafactory.models.LogStorageSettings + :ivar dataset: Delete activity dataset reference. Required. + :vartype dataset: ~azure.mgmt.datafactory.models.DatasetReference + :ivar store_settings: Delete activity store settings. + :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings + """ + + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files or sub-folders under current folder path will be deleted recursively. Default is + false. Type: boolean (or Expression with resultType boolean).""" + max_concurrent_connections: Optional[int] = rest_field( + name="maxConcurrentConnections", visibility=["read", "create", "update", "delete", "query"] + ) + """The max concurrent connections to connect data source at the same time.""" + enable_logging: Optional[Any] = rest_field( + name="enableLogging", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to record detailed logs of delete-activity execution. Default value is false. Type: + boolean (or Expression with resultType boolean).""" + log_storage_settings: Optional["_models.LogStorageSettings"] = rest_field( + name="logStorageSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Log storage settings customer need to provide when enableLogging is true.""" + dataset: "_models.DatasetReference" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Delete activity dataset reference. Required.""" + store_settings: Optional["_models.StoreReadSettings"] = rest_field( + name="storeSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Delete activity store settings.""" + + @overload + def __init__( + self, + *, + dataset: "_models.DatasetReference", + recursive: Optional[Any] = None, + max_concurrent_connections: Optional[int] = None, + enable_logging: Optional[Any] = None, + log_storage_settings: Optional["_models.LogStorageSettings"] = None, + store_settings: Optional["_models.StoreReadSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DeleteDataFlowDebugSessionRequest(_Model): + """Request body structure for deleting data flow debug session. + + :ivar session_id: The ID of data flow debug session. + :vartype session_id: str + """ + + session_id: Optional[str] = rest_field(name="sessionId", visibility=["read", "create", "update", "delete", "query"]) + """The ID of data flow debug session.""" + + @overload + def __init__( + self, + *, + session_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DelimitedTextDataset(Dataset, discriminator="DelimitedText"): + """Delimited text dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Delimited text dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.DelimitedTextDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "DelimitedText". + :vartype type: str + """ + + type_properties: Optional["_models.DelimitedTextDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Delimited text dataset properties.""" + type: Literal["DelimitedText"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"DelimitedText\".""" + + __flattened_items = [ + "location", + "column_delimiter", + "row_delimiter", + "encoding_name", + "compression_codec", + "compression_level", + "quote_char", + "escape_char", + "first_row_as_header", + "null_value", + ] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.DelimitedTextDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class DelimitedTextDatasetTypeProperties(_Model): + """DelimitedText dataset properties. + + :ivar location: The location of the delimited text storage. Required. + :vartype location: ~azure.mgmt.datafactory.models.DatasetLocation + :ivar column_delimiter: The column delimiter. Type: string (or Expression with resultType + string). + :vartype column_delimiter: any + :ivar row_delimiter: The row delimiter. Type: string (or Expression with resultType string). + :vartype row_delimiter: any + :ivar encoding_name: The code page name of the preferred encoding. If miss, the default value + is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in + the following link to set supported values: + `https://msdn.microsoft.com/library/system.text.encoding.aspx + `_. Type: string (or Expression + with resultType string). + :vartype encoding_name: any + :ivar compression_codec: The data compressionCodec. Type: string (or Expression with resultType + string). + :vartype compression_codec: any + :ivar compression_level: The data compression method used for DelimitedText. + :vartype compression_level: any + :ivar quote_char: The quote character. Type: string (or Expression with resultType string). + :vartype quote_char: any + :ivar escape_char: The escape character. Type: string (or Expression with resultType string). + :vartype escape_char: any + :ivar first_row_as_header: When used as input, treat the first row of data as headers. When + used as output,write the headers into the output as the first row of data. The default value is + false. Type: boolean (or Expression with resultType boolean). + :vartype first_row_as_header: any + :ivar null_value: The null value string. Type: string (or Expression with resultType string). + :vartype null_value: any + """ + + location: "_models.DatasetLocation" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The location of the delimited text storage. Required.""" + column_delimiter: Optional[Any] = rest_field( + name="columnDelimiter", visibility=["read", "create", "update", "delete", "query"] + ) + """The column delimiter. Type: string (or Expression with resultType string).""" + row_delimiter: Optional[Any] = rest_field( + name="rowDelimiter", visibility=["read", "create", "update", "delete", "query"] + ) + """The row delimiter. Type: string (or Expression with resultType string).""" + encoding_name: Optional[Any] = rest_field( + name="encodingName", visibility=["read", "create", "update", "delete", "query"] + ) + """The code page name of the preferred encoding. If miss, the default value is UTF-8, unless BOM + denotes another Unicode encoding. Refer to the name column of the table in the following link + to set supported values: `https://msdn.microsoft.com/library/system.text.encoding.aspx + `_. Type: string (or Expression + with resultType string).""" + compression_codec: Optional[Any] = rest_field( + name="compressionCodec", visibility=["read", "create", "update", "delete", "query"] + ) + """The data compressionCodec. Type: string (or Expression with resultType string).""" + compression_level: Optional[Any] = rest_field( + name="compressionLevel", visibility=["read", "create", "update", "delete", "query"] + ) + """The data compression method used for DelimitedText.""" + quote_char: Optional[Any] = rest_field(name="quoteChar", visibility=["read", "create", "update", "delete", "query"]) + """The quote character. Type: string (or Expression with resultType string).""" + escape_char: Optional[Any] = rest_field( + name="escapeChar", visibility=["read", "create", "update", "delete", "query"] + ) + """The escape character. Type: string (or Expression with resultType string).""" + first_row_as_header: Optional[Any] = rest_field( + name="firstRowAsHeader", visibility=["read", "create", "update", "delete", "query"] + ) + """When used as input, treat the first row of data as headers. When used as output,write the + headers into the output as the first row of data. The default value is false. Type: boolean (or + Expression with resultType boolean).""" + null_value: Optional[Any] = rest_field(name="nullValue", visibility=["read", "create", "update", "delete", "query"]) + """The null value string. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + location: "_models.DatasetLocation", + column_delimiter: Optional[Any] = None, + row_delimiter: Optional[Any] = None, + encoding_name: Optional[Any] = None, + compression_codec: Optional[Any] = None, + compression_level: Optional[Any] = None, + quote_char: Optional[Any] = None, + escape_char: Optional[Any] = None, + first_row_as_header: Optional[Any] = None, + null_value: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DelimitedTextReadSettings(FormatReadSettings, discriminator="DelimitedTextReadSettings"): + """Delimited text read settings. + + :ivar skip_line_count: Indicates the number of non-empty rows to skip when reading data from + input files. Type: integer (or Expression with resultType integer). + :vartype skip_line_count: any + :ivar compression_properties: Compression settings. + :vartype compression_properties: ~azure.mgmt.datafactory.models.CompressionReadSettings + :ivar type: The read setting type. Required. Default value is "DelimitedTextReadSettings". + :vartype type: str + """ + + skip_line_count: Optional[Any] = rest_field( + name="skipLineCount", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates the number of non-empty rows to skip when reading data from input files. Type: + integer (or Expression with resultType integer).""" + compression_properties: Optional["_models.CompressionReadSettings"] = rest_field( + name="compressionProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Compression settings.""" + type: Literal["DelimitedTextReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"DelimitedTextReadSettings\".""" + + @overload + def __init__( + self, + *, + skip_line_count: Optional[Any] = None, + compression_properties: Optional["_models.CompressionReadSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "DelimitedTextReadSettings" # type: ignore + + +class DelimitedTextSink(CopySink, discriminator="DelimitedTextSink"): + """A copy activity DelimitedText sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar store_settings: DelimitedText store settings. + :vartype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings + :ivar format_settings: DelimitedText format settings. + :vartype format_settings: ~azure.mgmt.datafactory.models.DelimitedTextWriteSettings + :ivar type: Copy sink type. Required. Default value is "DelimitedTextSink". + :vartype type: str + """ + + store_settings: Optional["_models.StoreWriteSettings"] = rest_field( + name="storeSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """DelimitedText store settings.""" + format_settings: Optional["_models.DelimitedTextWriteSettings"] = rest_field( + name="formatSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """DelimitedText format settings.""" + type: Literal["DelimitedTextSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"DelimitedTextSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + store_settings: Optional["_models.StoreWriteSettings"] = None, + format_settings: Optional["_models.DelimitedTextWriteSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "DelimitedTextSink" # type: ignore + + +class DelimitedTextSource(CopySource, discriminator="DelimitedTextSource"): + """A copy activity DelimitedText source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar store_settings: DelimitedText store settings. + :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings + :ivar format_settings: DelimitedText format settings. + :vartype format_settings: ~azure.mgmt.datafactory.models.DelimitedTextReadSettings + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "DelimitedTextSource". + :vartype type: str + """ + + store_settings: Optional["_models.StoreReadSettings"] = rest_field( + name="storeSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """DelimitedText store settings.""" + format_settings: Optional["_models.DelimitedTextReadSettings"] = rest_field( + name="formatSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """DelimitedText format settings.""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["DelimitedTextSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"DelimitedTextSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + store_settings: Optional["_models.StoreReadSettings"] = None, + format_settings: Optional["_models.DelimitedTextReadSettings"] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "DelimitedTextSource" # type: ignore + + +class DelimitedTextWriteSettings(FormatWriteSettings, discriminator="DelimitedTextWriteSettings"): + """Delimited text write settings. + + :ivar quote_all_text: Indicates whether string values should always be enclosed with quotes. + Type: boolean (or Expression with resultType boolean). + :vartype quote_all_text: any + :ivar file_extension: The file extension used to create the files. Type: string (or Expression + with resultType string). Required. + :vartype file_extension: any + :ivar max_rows_per_file: Limit the written file's row count to be smaller than or equal to the + specified count. Type: integer (or Expression with resultType integer). + :vartype max_rows_per_file: any + :ivar file_name_prefix: Specifies the file name pattern + _. when copy from non-file based store without + partitionOptions. Type: string (or Expression with resultType string). + :vartype file_name_prefix: any + :ivar type: The write setting type. Required. Default value is "DelimitedTextWriteSettings". + :vartype type: str + """ + + quote_all_text: Optional[Any] = rest_field( + name="quoteAllText", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether string values should always be enclosed with quotes. Type: boolean (or + Expression with resultType boolean).""" + file_extension: Any = rest_field(name="fileExtension", visibility=["read", "create", "update", "delete", "query"]) + """The file extension used to create the files. Type: string (or Expression with resultType + string). Required.""" + max_rows_per_file: Optional[Any] = rest_field( + name="maxRowsPerFile", visibility=["read", "create", "update", "delete", "query"] + ) + """Limit the written file's row count to be smaller than or equal to the specified count. Type: + integer (or Expression with resultType integer).""" + file_name_prefix: Optional[Any] = rest_field( + name="fileNamePrefix", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the file name pattern _. when copy from + non-file based store without partitionOptions. Type: string (or Expression with resultType + string).""" + type: Literal["DelimitedTextWriteSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The write setting type. Required. Default value is \"DelimitedTextWriteSettings\".""" + + @overload + def __init__( + self, + *, + file_extension: Any, + quote_all_text: Optional[Any] = None, + max_rows_per_file: Optional[Any] = None, + file_name_prefix: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "DelimitedTextWriteSettings" # type: ignore + + +class DependencyReference(_Model): + """Referenced dependency. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + SelfDependencyTumblingWindowTriggerReference, TriggerDependencyReference, + TumblingWindowTriggerDependencyReference + + :ivar type: The type of dependency reference. Required. Default value is None. + :vartype type: str + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """The type of dependency reference. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DistcpSettings(_Model): + """Distcp settings. + + :ivar resource_manager_endpoint: Specifies the Yarn ResourceManager endpoint. Type: string (or + Expression with resultType string). Required. + :vartype resource_manager_endpoint: any + :ivar temp_script_path: Specifies an existing folder path which will be used to store temp + Distcp command script. The script file is generated by ADF and will be removed after Copy job + finished. Type: string (or Expression with resultType string). Required. + :vartype temp_script_path: any + :ivar distcp_options: Specifies the Distcp options. Type: string (or Expression with resultType + string). + :vartype distcp_options: any + """ + + resource_manager_endpoint: Any = rest_field( + name="resourceManagerEndpoint", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the Yarn ResourceManager endpoint. Type: string (or Expression with resultType + string). Required.""" + temp_script_path: Any = rest_field( + name="tempScriptPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies an existing folder path which will be used to store temp Distcp command script. The + script file is generated by ADF and will be removed after Copy job finished. Type: string (or + Expression with resultType string). Required.""" + distcp_options: Optional[Any] = rest_field( + name="distcpOptions", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the Distcp options. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + resource_manager_endpoint: Any, + temp_script_path: Any, + distcp_options: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DocumentDbCollectionDataset(Dataset, discriminator="DocumentDbCollection"): + """Microsoft Azure Document Database Collection dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: DocumentDB Collection dataset properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.DocumentDbCollectionDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "DocumentDbCollection". + :vartype type: str + """ + + type_properties: "_models.DocumentDbCollectionDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """DocumentDB Collection dataset properties. Required.""" + type: Literal["DocumentDbCollection"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"DocumentDbCollection\".""" + + __flattened_items = ["collection_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.DocumentDbCollectionDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class DocumentDbCollectionDatasetTypeProperties(_Model): # pylint: disable=name-too-long + """DocumentDB Collection dataset properties. + + :ivar collection_name: Document Database collection name. Type: string (or Expression with + resultType string). Required. + :vartype collection_name: any + """ + + collection_name: Any = rest_field(name="collectionName", visibility=["read", "create", "update", "delete", "query"]) + """Document Database collection name. Type: string (or Expression with resultType string). + Required.""" + + @overload + def __init__( + self, + *, + collection_name: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DocumentDbCollectionSink(CopySink, discriminator="DocumentDbCollectionSink"): + """A copy activity Document Database Collection sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar nesting_separator: Nested properties separator. Default is . (dot). Type: string (or + Expression with resultType string). + :vartype nesting_separator: any + :ivar write_behavior: Describes how to write data to Azure Cosmos DB. Type: string (or + Expression with resultType string). Allowed values: insert and upsert. + :vartype write_behavior: any + :ivar type: Copy sink type. Required. Default value is "DocumentDbCollectionSink". + :vartype type: str + """ + + nesting_separator: Optional[Any] = rest_field( + name="nestingSeparator", visibility=["read", "create", "update", "delete", "query"] + ) + """Nested properties separator. Default is . (dot). Type: string (or Expression with resultType + string).""" + write_behavior: Optional[Any] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """Describes how to write data to Azure Cosmos DB. Type: string (or Expression with resultType + string). Allowed values: insert and upsert.""" + type: Literal["DocumentDbCollectionSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"DocumentDbCollectionSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + nesting_separator: Optional[Any] = None, + write_behavior: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "DocumentDbCollectionSink" # type: ignore + + +class DocumentDbCollectionSource(CopySource, discriminator="DocumentDbCollectionSource"): + """A copy activity Document Database Collection source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query: Documents query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar nesting_separator: Nested properties separator. Type: string (or Expression with + resultType string). + :vartype nesting_separator: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "DocumentDbCollectionSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Documents query. Type: string (or Expression with resultType string).""" + nesting_separator: Optional[Any] = rest_field( + name="nestingSeparator", visibility=["read", "create", "update", "delete", "query"] + ) + """Nested properties separator. Type: string (or Expression with resultType string).""" + query_timeout: Optional[Any] = rest_field( + name="queryTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """Query timeout. Type: string (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["DocumentDbCollectionSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"DocumentDbCollectionSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query: Optional[Any] = None, + nesting_separator: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "DocumentDbCollectionSource" # type: ignore + + +class DrillDatasetTypeProperties(_Model): + """Drill Dataset Properties. + + :ivar table_name: This property will be retired. Please consider using schema + table + properties instead. + :vartype table_name: any + :ivar table: The table name of the Drill. Type: string (or Expression with resultType string). + :vartype table: any + :ivar schema: The schema name of the Drill. Type: string (or Expression with resultType + string). + :vartype schema: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property will be retired. Please consider using schema + table properties instead.""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Drill. Type: string (or Expression with resultType string).""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the Drill. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + table: Optional[Any] = None, + schema: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DrillLinkedService(LinkedService, discriminator="Drill"): + """Drill server linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Drill server linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.DrillLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Drill". + :vartype type: str + """ + + type_properties: "_models.DrillLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Drill server linked service properties. Required.""" + type: Literal["Drill"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Drill\".""" + + __flattened_items = ["connection_string", "pwd", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.DrillLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class DrillLinkedServiceTypeProperties(_Model): + """Drill server linked service properties. + + :ivar connection_string: An ODBC connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar pwd: The Azure key vault secret reference of password in connection string. + :vartype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference.""" + pwd: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of password in connection string.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_string: Optional[Any] = None, + pwd: Optional["_models.AzureKeyVaultSecretReference"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DrillSource(TabularSource, discriminator="DrillSource"): + """A copy activity Drill server source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "DrillSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["DrillSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"DrillSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "DrillSource" # type: ignore + + +class DrillTableDataset(Dataset, discriminator="DrillTable"): + """Drill server dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.DrillDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "DrillTable". + :vartype type: str + """ + + type_properties: Optional["_models.DrillDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["DrillTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"DrillTable\".""" + + __flattened_items = ["table_name", "table", "schema"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.DrillDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class DWCopyCommandDefaultValue(_Model): + """Default value. + + :ivar column_name: Column name. Type: object (or Expression with resultType string). + :vartype column_name: any + :ivar default_value: The default value of the column. Type: object (or Expression with + resultType string). + :vartype default_value: any + """ + + column_name: Optional[Any] = rest_field( + name="columnName", visibility=["read", "create", "update", "delete", "query"] + ) + """Column name. Type: object (or Expression with resultType string).""" + default_value: Optional[Any] = rest_field( + name="defaultValue", visibility=["read", "create", "update", "delete", "query"] + ) + """The default value of the column. Type: object (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + column_name: Optional[Any] = None, + default_value: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DWCopyCommandSettings(_Model): + """DW Copy Command settings. + + :ivar default_values: Specifies the default values for each target column in SQL DW. The + default values in the property overwrite the DEFAULT constraint set in the DB, and identity + column cannot have a default value. Type: array of objects (or Expression with resultType array + of objects). + :vartype default_values: list[~azure.mgmt.datafactory.models.DWCopyCommandDefaultValue] + :ivar additional_options: Additional options directly passed to SQL DW in Copy Command. Type: + key value pairs (value should be string type) (or Expression with resultType object). Example: + "additionalOptions": { "MAXERRORS": "1000", "DATEFORMAT": "'ymd'" }. + :vartype additional_options: dict[str, str] + """ + + default_values: Optional[list["_models.DWCopyCommandDefaultValue"]] = rest_field( + name="defaultValues", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the default values for each target column in SQL DW. The default values in the + property overwrite the DEFAULT constraint set in the DB, and identity column cannot have a + default value. Type: array of objects (or Expression with resultType array of objects).""" + additional_options: Optional[dict[str, str]] = rest_field( + name="additionalOptions", visibility=["read", "create", "update", "delete", "query"] + ) + """Additional options directly passed to SQL DW in Copy Command. Type: key value pairs (value + should be string type) (or Expression with resultType object). Example: \"additionalOptions\": + { \"MAXERRORS\": \"1000\", \"DATEFORMAT\": \"'ymd'\" }.""" + + @overload + def __init__( + self, + *, + default_values: Optional[list["_models.DWCopyCommandDefaultValue"]] = None, + additional_options: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DynamicsAXLinkedService(LinkedService, discriminator="DynamicsAX"): + """Dynamics AX linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Dynamics AX linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.DynamicsAXLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "DynamicsAX". + :vartype type: str + """ + + type_properties: "_models.DynamicsAXLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Dynamics AX linked service properties. Required.""" + type: Literal["DynamicsAX"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"DynamicsAX\".""" + + __flattened_items = [ + "url", + "service_principal_id", + "service_principal_key", + "tenant", + "aad_resource_id", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.DynamicsAXLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class DynamicsAXLinkedServiceTypeProperties(_Model): + """Dynamics AX linked service properties. + + :ivar url: The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. + Required. + :vartype url: any + :ivar service_principal_id: Specify the application's client ID. Type: string (or Expression + with resultType string). Required. + :vartype service_principal_id: any + :ivar service_principal_key: Specify the application's key. Mark this field as a SecureString + to store it securely in Data Factory, or reference a secret stored in Azure Key Vault. Type: + string (or Expression with resultType string). Required. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar tenant: Specify the tenant information (domain name or tenant ID) under which your + application resides. Retrieve it by hovering the mouse in the top-right corner of the Azure + portal. Type: string (or Expression with resultType string). Required. + :vartype tenant: any + :ivar aad_resource_id: Specify the resource you are requesting authorization. Type: string (or + Expression with resultType string). Required. + :vartype aad_resource_id: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + url: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. Required.""" + service_principal_id: Any = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the application's client ID. Type: string (or Expression with resultType string). + Required.""" + service_principal_key: "_models.SecretBase" = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the application's key. Mark this field as a SecureString to store it securely in Data + Factory, or reference a secret stored in Azure Key Vault. Type: string (or Expression with + resultType string). Required.""" + tenant: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specify the tenant information (domain name or tenant ID) under which your application resides. + Retrieve it by hovering the mouse in the top-right corner of the Azure portal. Type: string (or + Expression with resultType string). Required.""" + aad_resource_id: Any = rest_field(name="aadResourceId", visibility=["read", "create", "update", "delete", "query"]) + """Specify the resource you are requesting authorization. Type: string (or Expression with + resultType string). Required.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + url: Any, + service_principal_id: Any, + service_principal_key: "_models.SecretBase", + tenant: Any, + aad_resource_id: Any, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DynamicsAXResourceDataset(Dataset, discriminator="DynamicsAXResource"): + """The path of the Dynamics AX OData entity. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Dynamics AX OData resource dataset properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.DynamicsAXResourceDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "DynamicsAXResource". + :vartype type: str + """ + + type_properties: "_models.DynamicsAXResourceDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Dynamics AX OData resource dataset properties. Required.""" + type: Literal["DynamicsAXResource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"DynamicsAXResource\".""" + + __flattened_items = ["path"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.DynamicsAXResourceDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class DynamicsAXResourceDatasetTypeProperties(_Model): + """Dynamics AX OData resource dataset properties. + + :ivar path: The path of the Dynamics AX OData entity. Type: string (or Expression with + resultType string). Required. + :vartype path: any + """ + + path: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The path of the Dynamics AX OData entity. Type: string (or Expression with resultType string). + Required.""" + + @overload + def __init__( + self, + *, + path: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DynamicsAXSource(TabularSource, discriminator="DynamicsAXSource"): + """A copy activity Dynamics AX source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the timeout + to get a response, not the timeout to read response data. Default value: 00:05:00. Type: string + (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype http_request_timeout: any + :ivar type: Copy source type. Required. Default value is "DynamicsAXSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + http_request_timeout: Optional[Any] = rest_field( + name="httpRequestTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the + timeout to read response data. Default value: 00:05:00. Type: string (or Expression with + resultType string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + type: Literal["DynamicsAXSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"DynamicsAXSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + http_request_timeout: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "DynamicsAXSource" # type: ignore + + +class DynamicsCrmEntityDataset(Dataset, discriminator="DynamicsCrmEntity"): + """The Dynamics CRM entity dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Dynamics CRM entity dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.DynamicsCrmEntityDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "DynamicsCrmEntity". + :vartype type: str + """ + + type_properties: Optional["_models.DynamicsCrmEntityDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Dynamics CRM entity dataset properties.""" + type: Literal["DynamicsCrmEntity"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"DynamicsCrmEntity\".""" + + __flattened_items = ["entity_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.DynamicsCrmEntityDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class DynamicsCrmEntityDatasetTypeProperties(_Model): + """Dynamics CRM entity dataset properties. + + :ivar entity_name: The logical name of the entity. Type: string (or Expression with resultType + string). + :vartype entity_name: any + """ + + entity_name: Optional[Any] = rest_field( + name="entityName", visibility=["read", "create", "update", "delete", "query"] + ) + """The logical name of the entity. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + entity_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DynamicsCrmLinkedService(LinkedService, discriminator="DynamicsCrm"): + """Dynamics CRM linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Dynamics CRM linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.DynamicsCrmLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "DynamicsCrm". + :vartype type: str + """ + + type_properties: "_models.DynamicsCrmLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Dynamics CRM linked service properties. Required.""" + type: Literal["DynamicsCrm"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"DynamicsCrm\".""" + + __flattened_items = [ + "deployment_type", + "host_name", + "port", + "service_uri", + "organization_name", + "authentication_type", + "domain", + "username", + "password", + "service_principal_id", + "service_principal_credential_type", + "service_principal_credential", + "credential", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.DynamicsCrmLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class DynamicsCrmLinkedServiceTypeProperties(_Model): + """Dynamics CRM linked service properties. + + :ivar deployment_type: The deployment type of the Dynamics CRM instance. 'Online' for Dynamics + CRM Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with Ifd. Type: string (or + Expression with resultType string). Required. + :vartype deployment_type: any + :ivar host_name: The host name of the on-premises Dynamics CRM server. The property is required + for on-prem and not allowed for online. Type: string (or Expression with resultType string). + :vartype host_name: any + :ivar port: The port of on-premises Dynamics CRM server. The property is required for on-prem + and not allowed for online. Default is 443. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype port: any + :ivar service_uri: The URL to the Microsoft Dynamics CRM server. The property is required for + on-line and not allowed for on-prem. Type: string (or Expression with resultType string). + :vartype service_uri: any + :ivar organization_name: The organization name of the Dynamics CRM instance. The property is + required for on-prem and required for online when there are more than one Dynamics CRM + instances associated with the user. Type: string (or Expression with resultType string). + :vartype organization_name: any + :ivar authentication_type: The authentication type to connect to Dynamics CRM server. + 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' + for Server-To-Server authentication in online scenario, 'Active Directory' for Dynamics + on-premises with IFD. Type: string (or Expression with resultType string). Required. + :vartype authentication_type: any + :ivar domain: The Active Directory domain that will verify user credentials. Type: string (or + Expression with resultType string). + :vartype domain: any + :ivar username: User name to access the Dynamics CRM instance. Type: string (or Expression with + resultType string). + :vartype username: any + :ivar password: Password to access the Dynamics CRM instance. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_principal_id: The client ID of the application in Azure Active Directory used for + Server-To-Server authentication. Type: string (or Expression with resultType string). + :vartype service_principal_id: any + :ivar service_principal_credential_type: The service principal credential type to use in + Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' + for certificate. Type: string (or Expression with resultType string). + :vartype service_principal_credential_type: any + :ivar service_principal_credential: The credential of the service principal object in Azure + Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', + servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If + servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only + be AzureKeyVaultSecretReference. + :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + deployment_type: Any = rest_field(name="deploymentType", visibility=["read", "create", "update", "delete", "query"]) + """The deployment type of the Dynamics CRM instance. 'Online' for Dynamics CRM Online and + 'OnPremisesWithIfd' for Dynamics CRM on-premises with Ifd. Type: string (or Expression with + resultType string). Required.""" + host_name: Optional[Any] = rest_field(name="hostName", visibility=["read", "create", "update", "delete", "query"]) + """The host name of the on-premises Dynamics CRM server. The property is required for on-prem and + not allowed for online. Type: string (or Expression with resultType string).""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The port of on-premises Dynamics CRM server. The property is required for on-prem and not + allowed for online. Default is 443. Type: integer (or Expression with resultType integer), + minimum: 0.""" + service_uri: Optional[Any] = rest_field( + name="serviceUri", visibility=["read", "create", "update", "delete", "query"] + ) + """The URL to the Microsoft Dynamics CRM server. The property is required for on-line and not + allowed for on-prem. Type: string (or Expression with resultType string).""" + organization_name: Optional[Any] = rest_field( + name="organizationName", visibility=["read", "create", "update", "delete", "query"] + ) + """The organization name of the Dynamics CRM instance. The property is required for on-prem and + required for online when there are more than one Dynamics CRM instances associated with the + user. Type: string (or Expression with resultType string).""" + authentication_type: Any = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to connect to Dynamics CRM server. 'Office365' for online scenario, + 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for Server-To-Server + authentication in online scenario, 'Active Directory' for Dynamics on-premises with IFD. Type: + string (or Expression with resultType string). Required.""" + domain: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Active Directory domain that will verify user credentials. Type: string (or Expression with + resultType string).""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """User name to access the Dynamics CRM instance. Type: string (or Expression with resultType + string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password to access the Dynamics CRM instance.""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The client ID of the application in Azure Active Directory used for Server-To-Server + authentication. Type: string (or Expression with resultType string).""" + service_principal_credential_type: Optional[Any] = rest_field( + name="servicePrincipalCredentialType", visibility=["read", "create", "update", "delete", "query"] + ) + """The service principal credential type to use in Server-To-Server authentication. + 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + Expression with resultType string).""" + service_principal_credential: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The credential of the service principal object in Azure Active Directory. If + servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be + SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is + 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + deployment_type: Any, + authentication_type: Any, + host_name: Optional[Any] = None, + port: Optional[Any] = None, + service_uri: Optional[Any] = None, + organization_name: Optional[Any] = None, + domain: Optional[Any] = None, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + service_principal_id: Optional[Any] = None, + service_principal_credential_type: Optional[Any] = None, + service_principal_credential: Optional["_models.SecretBase"] = None, + credential: Optional["_models.CredentialReference"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DynamicsCrmSink(CopySink, discriminator="DynamicsCrmSink"): + """A copy activity Dynamics CRM sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar write_behavior: The write behavior for the operation. Required. "Upsert" + :vartype write_behavior: str or ~azure.mgmt.datafactory.models.DynamicsSinkWriteBehavior + :ivar ignore_null_values: The flag indicating whether to ignore null values from input dataset + (except key fields) during write operation. Default is false. Type: boolean (or Expression with + resultType boolean). + :vartype ignore_null_values: any + :ivar alternate_key_name: The logical name of the alternate key which will be used when + upserting records. Type: string (or Expression with resultType string). + :vartype alternate_key_name: any + :ivar bypass_business_logic_execution: Controls the bypass of Dataverse custom business logic. + Type: string (or Expression with resultType string). Type: string (or Expression with + resultType string). + :vartype bypass_business_logic_execution: any + :ivar bypass_power_automate_flows: Controls the bypass of Power Automate flows. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype bypass_power_automate_flows: any + :ivar type: Copy sink type. Required. Default value is "DynamicsCrmSink". + :vartype type: str + """ + + write_behavior: Union[str, "_models.DynamicsSinkWriteBehavior"] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """The write behavior for the operation. Required. \"Upsert\"""" + ignore_null_values: Optional[Any] = rest_field( + name="ignoreNullValues", visibility=["read", "create", "update", "delete", "query"] + ) + """The flag indicating whether to ignore null values from input dataset (except key fields) during + write operation. Default is false. Type: boolean (or Expression with resultType boolean).""" + alternate_key_name: Optional[Any] = rest_field( + name="alternateKeyName", visibility=["read", "create", "update", "delete", "query"] + ) + """The logical name of the alternate key which will be used when upserting records. Type: string + (or Expression with resultType string).""" + bypass_business_logic_execution: Optional[Any] = rest_field( + name="bypassBusinessLogicExecution", visibility=["read", "create", "update", "delete", "query"] + ) + """Controls the bypass of Dataverse custom business logic. Type: string (or Expression with + resultType string). Type: string (or Expression with resultType string).""" + bypass_power_automate_flows: Optional[Any] = rest_field( + name="bypassPowerAutomateFlows", visibility=["read", "create", "update", "delete", "query"] + ) + """Controls the bypass of Power Automate flows. Default is false. Type: boolean (or Expression + with resultType boolean).""" + type: Literal["DynamicsCrmSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"DynamicsCrmSink\".""" + + @overload + def __init__( + self, + *, + write_behavior: Union[str, "_models.DynamicsSinkWriteBehavior"], + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + ignore_null_values: Optional[Any] = None, + alternate_key_name: Optional[Any] = None, + bypass_business_logic_execution: Optional[Any] = None, + bypass_power_automate_flows: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "DynamicsCrmSink" # type: ignore + + +class DynamicsCrmSource(CopySource, discriminator="DynamicsCrmSource"): + """A copy activity Dynamics CRM source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query: FetchXML is a proprietary query language that is used in Microsoft Dynamics CRM + (online & on-premises). Type: string (or Expression with resultType string). + :vartype query: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "DynamicsCrmSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """FetchXML is a proprietary query language that is used in Microsoft Dynamics CRM (online & + on-premises). Type: string (or Expression with resultType string).""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["DynamicsCrmSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"DynamicsCrmSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "DynamicsCrmSource" # type: ignore + + +class DynamicsEntityDataset(Dataset, discriminator="DynamicsEntity"): + """The Dynamics entity dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Dynamics entity dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.DynamicsEntityDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "DynamicsEntity". + :vartype type: str + """ + + type_properties: Optional["_models.DynamicsEntityDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Dynamics entity dataset properties.""" + type: Literal["DynamicsEntity"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"DynamicsEntity\".""" + + __flattened_items = ["entity_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.DynamicsEntityDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class DynamicsEntityDatasetTypeProperties(_Model): + """Dynamics entity dataset properties. + + :ivar entity_name: The logical name of the entity. Type: string (or Expression with resultType + string). + :vartype entity_name: any + """ + + entity_name: Optional[Any] = rest_field( + name="entityName", visibility=["read", "create", "update", "delete", "query"] + ) + """The logical name of the entity. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + entity_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DynamicsLinkedService(LinkedService, discriminator="Dynamics"): + """Dynamics linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Dynamics linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.DynamicsLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Dynamics". + :vartype type: str + """ + + type_properties: "_models.DynamicsLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Dynamics linked service properties. Required.""" + type: Literal["Dynamics"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Dynamics\".""" + + __flattened_items = [ + "deployment_type", + "host_name", + "port", + "service_uri", + "organization_name", + "authentication_type", + "domain", + "username", + "password", + "service_principal_id", + "service_principal_credential_type", + "service_principal_credential", + "encrypted_credential", + "credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.DynamicsLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class DynamicsLinkedServiceTypeProperties(_Model): + """Dynamics linked service properties. + + :ivar deployment_type: The deployment type of the Dynamics instance. 'Online' for Dynamics + Online and 'OnPremisesWithIfd' for Dynamics on-premises with Ifd. Type: string (or Expression + with resultType string). Required. + :vartype deployment_type: any + :ivar host_name: The host name of the on-premises Dynamics server. The property is required for + on-prem and not allowed for online. Type: string (or Expression with resultType string). + :vartype host_name: any + :ivar port: The port of on-premises Dynamics server. The property is required for on-prem and + not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), + minimum: 0. + :vartype port: any + :ivar service_uri: The URL to the Microsoft Dynamics server. The property is required for + on-line and not allowed for on-prem. Type: string (or Expression with resultType string). + :vartype service_uri: any + :ivar organization_name: The organization name of the Dynamics instance. The property is + required for on-prem and required for online when there are more than one Dynamics instances + associated with the user. Type: string (or Expression with resultType string). + :vartype organization_name: any + :ivar authentication_type: The authentication type to connect to Dynamics server. 'Office365' + for online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for + Server-To-Server authentication in online scenario, 'Active Directory' for Dynamics on-premises + with IFD. Type: string (or Expression with resultType string). Required. + :vartype authentication_type: any + :ivar domain: The Active Directory domain that will verify user credentials. Type: string (or + Expression with resultType string). + :vartype domain: any + :ivar username: User name to access the Dynamics instance. Type: string (or Expression with + resultType string). + :vartype username: any + :ivar password: Password to access the Dynamics instance. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_principal_id: The client ID of the application in Azure Active Directory used for + Server-To-Server authentication. Type: string (or Expression with resultType string). + :vartype service_principal_id: any + :ivar service_principal_credential_type: The service principal credential type to use in + Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' + for certificate. Type: string (or Expression with resultType string). + :vartype service_principal_credential_type: any + :ivar service_principal_credential: The credential of the service principal object in Azure + Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', + servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If + servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only + be AzureKeyVaultSecretReference. + :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + deployment_type: Any = rest_field(name="deploymentType", visibility=["read", "create", "update", "delete", "query"]) + """The deployment type of the Dynamics instance. 'Online' for Dynamics Online and + 'OnPremisesWithIfd' for Dynamics on-premises with Ifd. Type: string (or Expression with + resultType string). Required.""" + host_name: Optional[Any] = rest_field(name="hostName", visibility=["read", "create", "update", "delete", "query"]) + """The host name of the on-premises Dynamics server. The property is required for on-prem and not + allowed for online. Type: string (or Expression with resultType string).""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The port of on-premises Dynamics server. The property is required for on-prem and not allowed + for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0.""" + service_uri: Optional[Any] = rest_field( + name="serviceUri", visibility=["read", "create", "update", "delete", "query"] + ) + """The URL to the Microsoft Dynamics server. The property is required for on-line and not allowed + for on-prem. Type: string (or Expression with resultType string).""" + organization_name: Optional[Any] = rest_field( + name="organizationName", visibility=["read", "create", "update", "delete", "query"] + ) + """The organization name of the Dynamics instance. The property is required for on-prem and + required for online when there are more than one Dynamics instances associated with the user. + Type: string (or Expression with resultType string).""" + authentication_type: Any = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to connect to Dynamics server. 'Office365' for online scenario, 'Ifd' + for on-premises with Ifd scenario, 'AADServicePrincipal' for Server-To-Server authentication in + online scenario, 'Active Directory' for Dynamics on-premises with IFD. Type: string (or + Expression with resultType string). Required.""" + domain: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Active Directory domain that will verify user credentials. Type: string (or Expression with + resultType string).""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """User name to access the Dynamics instance. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password to access the Dynamics instance.""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The client ID of the application in Azure Active Directory used for Server-To-Server + authentication. Type: string (or Expression with resultType string).""" + service_principal_credential_type: Optional[Any] = rest_field( + name="servicePrincipalCredentialType", visibility=["read", "create", "update", "delete", "query"] + ) + """The service principal credential type to use in Server-To-Server authentication. + 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + Expression with resultType string).""" + service_principal_credential: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The credential of the service principal object in Azure Active Directory. If + servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be + SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is + 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( + self, + *, + deployment_type: Any, + authentication_type: Any, + host_name: Optional[Any] = None, + port: Optional[Any] = None, + service_uri: Optional[Any] = None, + organization_name: Optional[Any] = None, + domain: Optional[Any] = None, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + service_principal_id: Optional[Any] = None, + service_principal_credential_type: Optional[Any] = None, + service_principal_credential: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DynamicsSink(CopySink, discriminator="DynamicsSink"): + """A copy activity Dynamics sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar write_behavior: The write behavior for the operation. Required. "Upsert" + :vartype write_behavior: str or ~azure.mgmt.datafactory.models.DynamicsSinkWriteBehavior + :ivar ignore_null_values: The flag indicating whether ignore null values from input dataset + (except key fields) during write operation. Default is false. Type: boolean (or Expression with + resultType boolean). + :vartype ignore_null_values: any + :ivar alternate_key_name: The logical name of the alternate key which will be used when + upserting records. Type: string (or Expression with resultType string). + :vartype alternate_key_name: any + :ivar bypass_business_logic_execution: Controls the bypass of Dataverse custom business logic. + Type: string (or Expression with resultType string). Type: string (or Expression with + resultType string). + :vartype bypass_business_logic_execution: any + :ivar bypass_power_automate_flows: Controls the bypass of Power Automate flows. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype bypass_power_automate_flows: any + :ivar type: Copy sink type. Required. Default value is "DynamicsSink". + :vartype type: str + """ + + write_behavior: Union[str, "_models.DynamicsSinkWriteBehavior"] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """The write behavior for the operation. Required. \"Upsert\"""" + ignore_null_values: Optional[Any] = rest_field( + name="ignoreNullValues", visibility=["read", "create", "update", "delete", "query"] + ) + """The flag indicating whether ignore null values from input dataset (except key fields) during + write operation. Default is false. Type: boolean (or Expression with resultType boolean).""" + alternate_key_name: Optional[Any] = rest_field( + name="alternateKeyName", visibility=["read", "create", "update", "delete", "query"] + ) + """The logical name of the alternate key which will be used when upserting records. Type: string + (or Expression with resultType string).""" + bypass_business_logic_execution: Optional[Any] = rest_field( + name="bypassBusinessLogicExecution", visibility=["read", "create", "update", "delete", "query"] + ) + """Controls the bypass of Dataverse custom business logic. Type: string (or Expression with + resultType string). Type: string (or Expression with resultType string).""" + bypass_power_automate_flows: Optional[Any] = rest_field( + name="bypassPowerAutomateFlows", visibility=["read", "create", "update", "delete", "query"] + ) + """Controls the bypass of Power Automate flows. Default is false. Type: boolean (or Expression + with resultType boolean).""" + type: Literal["DynamicsSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"DynamicsSink\".""" + + @overload + def __init__( + self, + *, + write_behavior: Union[str, "_models.DynamicsSinkWriteBehavior"], + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + ignore_null_values: Optional[Any] = None, + alternate_key_name: Optional[Any] = None, + bypass_business_logic_execution: Optional[Any] = None, + bypass_power_automate_flows: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "DynamicsSink" # type: ignore + + +class DynamicsSource(CopySource, discriminator="DynamicsSource"): + """A copy activity Dynamics source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query: FetchXML is a proprietary query language that is used in Microsoft Dynamics + (online & on-premises). Type: string (or Expression with resultType string). + :vartype query: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "DynamicsSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """FetchXML is a proprietary query language that is used in Microsoft Dynamics (online & + on-premises). Type: string (or Expression with resultType string).""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["DynamicsSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"DynamicsSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "DynamicsSource" # type: ignore + + +class EloquaLinkedService(LinkedService, discriminator="Eloqua"): + """Eloqua server linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Eloqua server linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.EloquaLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Eloqua". + :vartype type: str + """ + + type_properties: "_models.EloquaLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Eloqua server linked service properties. Required.""" + type: Literal["Eloqua"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Eloqua\".""" + + __flattened_items = [ + "endpoint", + "username", + "password", + "use_encrypted_endpoints", + "use_host_verification", + "use_peer_verification", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.EloquaLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class EloquaLinkedServiceTypeProperties(_Model): + """Eloqua server linked service properties. + + :ivar endpoint: The endpoint of the Eloqua server. (i.e. eloqua.example.com). Required. + :vartype endpoint: any + :ivar username: The site name and user name of your Eloqua account in the form: + sitename/username. (i.e. Eloqua/Alice). Required. + :vartype username: any + :ivar password: The password corresponding to the user name. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using + HTTPS. The default value is true. + :vartype use_encrypted_endpoints: any + :ivar use_host_verification: Specifies whether to require the host name in the server's + certificate to match the host name of the server when connecting over SSL. The default value is + true. + :vartype use_host_verification: any + :ivar use_peer_verification: Specifies whether to verify the identity of the server when + connecting over SSL. The default value is true. + :vartype use_peer_verification: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + endpoint: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The endpoint of the Eloqua server. (i.e. eloqua.example.com). Required.""" + username: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The site name and user name of your Eloqua account in the form: sitename/username. (i.e. + Eloqua/Alice). Required.""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password corresponding to the user name.""" + use_encrypted_endpoints: Optional[Any] = rest_field( + name="useEncryptedEndpoints", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the data source endpoints are encrypted using HTTPS. The default value is + true.""" + use_host_verification: Optional[Any] = rest_field( + name="useHostVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require the host name in the server's certificate to match the host name + of the server when connecting over SSL. The default value is true.""" + use_peer_verification: Optional[Any] = rest_field( + name="usePeerVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to verify the identity of the server when connecting over SSL. The default + value is true.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + endpoint: Any, + username: Any, + password: Optional["_models.SecretBase"] = None, + use_encrypted_endpoints: Optional[Any] = None, + use_host_verification: Optional[Any] = None, + use_peer_verification: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class EloquaObjectDataset(Dataset, discriminator="EloquaObject"): + """Eloqua server dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "EloquaObject". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["EloquaObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"EloquaObject\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class EloquaSource(TabularSource, discriminator="EloquaSource"): + """A copy activity Eloqua server source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "EloquaSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["EloquaSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"EloquaSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "EloquaSource" # type: ignore + + +class EnableInteractiveQueryRequest(_Model): + """The enable the interactive authoring information. + + :ivar auto_termination_minutes: The allowed idle time for interactive authoring. + :vartype auto_termination_minutes: int + """ + + auto_termination_minutes: Optional[int] = rest_field( + name="autoTerminationMinutes", visibility=["read", "create", "update", "delete", "query"] + ) + """The allowed idle time for interactive authoring.""" + + @overload + def __init__( + self, + *, + auto_termination_minutes: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class EncryptionConfiguration(_Model): + """Definition of CMK for the factory. + + :ivar key_name: The name of the key in Azure Key Vault to use as Customer Managed Key. + Required. + :vartype key_name: str + :ivar vault_base_url: The url of the Azure Key Vault used for CMK. Required. + :vartype vault_base_url: str + :ivar key_version: The version of the key used for CMK. If not provided, latest version will be + used. + :vartype key_version: str + :ivar identity: User assigned identity to use to authenticate to customer's key vault. If not + provided Managed Service Identity will be used. + :vartype identity: ~azure.mgmt.datafactory.models.CMKIdentityDefinition + """ + + key_name: str = rest_field(name="keyName", visibility=["read", "create", "update", "delete", "query"]) + """The name of the key in Azure Key Vault to use as Customer Managed Key. Required.""" + vault_base_url: str = rest_field(name="vaultBaseUrl", visibility=["read", "create", "update", "delete", "query"]) + """The url of the Azure Key Vault used for CMK. Required.""" + key_version: Optional[str] = rest_field( + name="keyVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The version of the key used for CMK. If not provided, latest version will be used.""" + identity: Optional["_models.CMKIdentityDefinition"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """User assigned identity to use to authenticate to customer's key vault. If not provided Managed + Service Identity will be used.""" + + @overload + def __init__( + self, + *, + key_name: str, + vault_base_url: str, + key_version: Optional[str] = None, + identity: Optional["_models.CMKIdentityDefinition"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class EntityReference(_Model): + """The entity reference. + + :ivar type: The type of this referenced entity. Known values are: "IntegrationRuntimeReference" + and "LinkedServiceReference". + :vartype type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeEntityReferenceType + :ivar reference_name: The name of this referenced entity. + :vartype reference_name: str + """ + + type: Optional[Union[str, "_models.IntegrationRuntimeEntityReferenceType"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The type of this referenced entity. Known values are: \"IntegrationRuntimeReference\" and + \"LinkedServiceReference\".""" + reference_name: Optional[str] = rest_field( + name="referenceName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of this referenced entity.""" + + @overload + def __init__( + self, + *, + type: Optional[Union[str, "_models.IntegrationRuntimeEntityReferenceType"]] = None, + reference_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class EnvironmentVariableSetup(CustomSetupBase, discriminator="EnvironmentVariableSetup"): + """The custom setup of setting environment variable. + + :ivar type_properties: Add environment variable type properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.EnvironmentVariableSetupTypeProperties + :ivar type: The type of custom setup. Required. Default value is "EnvironmentVariableSetup". + :vartype type: str + """ + + type_properties: "_models.EnvironmentVariableSetupTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Add environment variable type properties. Required.""" + type: Literal["EnvironmentVariableSetup"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The type of custom setup. Required. Default value is \"EnvironmentVariableSetup\".""" + + __flattened_items = ["variable_name", "variable_value"] + + @overload + def __init__( + self, + *, + type_properties: "_models.EnvironmentVariableSetupTypeProperties", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class EnvironmentVariableSetupTypeProperties(_Model): + """Environment variable custom setup type properties. + + :ivar variable_name: The name of the environment variable. Required. + :vartype variable_name: str + :ivar variable_value: The value of the environment variable. Required. + :vartype variable_value: str + """ + + variable_name: str = rest_field(name="variableName", visibility=["read", "create", "update", "delete", "query"]) + """The name of the environment variable. Required.""" + variable_value: str = rest_field(name="variableValue", visibility=["read", "create", "update", "delete", "query"]) + """The value of the environment variable. Required.""" + + @overload + def __init__( + self, + *, + variable_name: str, + variable_value: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ErrorAdditionalInfo(_Model): + """The resource management error additional info. + + :ivar type: The additional info type. + :vartype type: str + :ivar info: The additional info. + :vartype info: any + """ + + type: Optional[str] = rest_field(visibility=["read"]) + """The additional info type.""" + info: Optional[Any] = rest_field(visibility=["read"]) + """The additional info.""" + + +class ErrorDetail(_Model): + """The error detail. + + :ivar code: The error code. + :vartype code: str + :ivar message: The error message. + :vartype message: str + :ivar target: The error target. + :vartype target: str + :ivar details: The error details. + :vartype details: list[~azure.mgmt.datafactory.models.ErrorDetail] + :ivar additional_info: The error additional info. + :vartype additional_info: list[~azure.mgmt.datafactory.models.ErrorAdditionalInfo] + """ + + code: Optional[str] = rest_field(visibility=["read"]) + """The error code.""" + message: Optional[str] = rest_field(visibility=["read"]) + """The error message.""" + target: Optional[str] = rest_field(visibility=["read"]) + """The error target.""" + details: Optional[list["_models.ErrorDetail"]] = rest_field(visibility=["read"]) + """The error details.""" + additional_info: Optional[list["_models.ErrorAdditionalInfo"]] = rest_field( + name="additionalInfo", visibility=["read"] + ) + """The error additional info.""" + + +class ErrorResponse(_Model): + """Error response. + + :ivar error: The error object. + :vartype error: ~azure.mgmt.datafactory.models.ErrorDetail + """ + + error: Optional["_models.ErrorDetail"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The error object.""" + + @overload + def __init__( + self, + *, + error: Optional["_models.ErrorDetail"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExcelDataset(Dataset, discriminator="Excel"): + """Excel dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Excel dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.ExcelDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "Excel". + :vartype type: str + """ + + type_properties: Optional["_models.ExcelDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Excel dataset properties.""" + type: Literal["Excel"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"Excel\".""" + + __flattened_items = [ + "location", + "sheet_name", + "sheet_index", + "range", + "first_row_as_header", + "compression", + "null_value", + ] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.ExcelDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ExcelDatasetTypeProperties(_Model): + """Excel dataset properties. + + :ivar location: The location of the excel storage. Required. + :vartype location: ~azure.mgmt.datafactory.models.DatasetLocation + :ivar sheet_name: The sheet name of excel file. Type: string (or Expression with resultType + string). + :vartype sheet_name: any + :ivar sheet_index: The sheet index of excel file and default value is 0. Type: integer (or + Expression with resultType integer). + :vartype sheet_index: any + :ivar range: The partial data of one sheet. Type: string (or Expression with resultType + string). + :vartype range: any + :ivar first_row_as_header: When used as input, treat the first row of data as headers. When + used as output,write the headers into the output as the first row of data. The default value is + false. Type: boolean (or Expression with resultType boolean). + :vartype first_row_as_header: any + :ivar compression: The data compression method used for the json dataset. + :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression + :ivar null_value: The null value string. Type: string (or Expression with resultType string). + :vartype null_value: any + """ + + location: "_models.DatasetLocation" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The location of the excel storage. Required.""" + sheet_name: Optional[Any] = rest_field(name="sheetName", visibility=["read", "create", "update", "delete", "query"]) + """The sheet name of excel file. Type: string (or Expression with resultType string).""" + sheet_index: Optional[Any] = rest_field( + name="sheetIndex", visibility=["read", "create", "update", "delete", "query"] + ) + """The sheet index of excel file and default value is 0. Type: integer (or Expression with + resultType integer).""" + range: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The partial data of one sheet. Type: string (or Expression with resultType string).""" + first_row_as_header: Optional[Any] = rest_field( + name="firstRowAsHeader", visibility=["read", "create", "update", "delete", "query"] + ) + """When used as input, treat the first row of data as headers. When used as output,write the + headers into the output as the first row of data. The default value is false. Type: boolean (or + Expression with resultType boolean).""" + compression: Optional["_models.DatasetCompression"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The data compression method used for the json dataset.""" + null_value: Optional[Any] = rest_field(name="nullValue", visibility=["read", "create", "update", "delete", "query"]) + """The null value string. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + location: "_models.DatasetLocation", + sheet_name: Optional[Any] = None, + sheet_index: Optional[Any] = None, + range: Optional[Any] = None, + first_row_as_header: Optional[Any] = None, + compression: Optional["_models.DatasetCompression"] = None, + null_value: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExcelSource(CopySource, discriminator="ExcelSource"): + """A copy activity excel source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar store_settings: Excel store settings. + :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "ExcelSource". + :vartype type: str + """ + + store_settings: Optional["_models.StoreReadSettings"] = rest_field( + name="storeSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Excel store settings.""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["ExcelSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"ExcelSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + store_settings: Optional["_models.StoreReadSettings"] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "ExcelSource" # type: ignore + + +class ExecuteDataFlowActivity(ExecutionActivity, discriminator="ExecuteDataFlow"): + """Execute data flow activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Execute data flow activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.ExecuteDataFlowActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "ExecuteDataFlow". + :vartype type: str + """ + + type_properties: "_models.ExecuteDataFlowActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Execute data flow activity properties. Required.""" + type: Literal["ExecuteDataFlow"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"ExecuteDataFlow\".""" + + __flattened_items = [ + "data_flow", + "staging", + "integration_runtime", + "continuation_settings", + "compute", + "trace_level", + "continue_on_error", + "run_concurrently", + "source_staging_concurrency", + ] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.ExecuteDataFlowActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ExecuteDataFlowActivityTypeProperties(_Model): + """Execute data flow activity properties. + + :ivar data_flow: Data flow reference. Required. + :vartype data_flow: ~azure.mgmt.datafactory.models.DataFlowReference + :ivar staging: Staging info for execute data flow activity. + :vartype staging: ~azure.mgmt.datafactory.models.DataFlowStagingInfo + :ivar integration_runtime: The integration runtime reference. + :vartype integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar continuation_settings: Continuation settings for execute data flow activity. + :vartype continuation_settings: ~azure.mgmt.datafactory.models.ContinuationSettingsReference + :ivar compute: Compute properties for data flow activity. + :vartype compute: ~azure.mgmt.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute + :ivar trace_level: Trace level setting used for data flow monitoring output. Supported values + are: 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string). + :vartype trace_level: any + :ivar continue_on_error: Continue on error setting used for data flow execution. Enables + processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean). + :vartype continue_on_error: any + :ivar run_concurrently: Concurrent run setting used for data flow execution. Allows sinks with + the same save order to be processed concurrently. Type: boolean (or Expression with resultType + boolean). + :vartype run_concurrently: any + :ivar source_staging_concurrency: Specify number of parallel staging for sources applicable to + the sink. Type: integer (or Expression with resultType integer). + :vartype source_staging_concurrency: any + """ + + data_flow: "_models.DataFlowReference" = rest_field( + name="dataFlow", visibility=["read", "create", "update", "delete", "query"] + ) + """Data flow reference. Required.""" + staging: Optional["_models.DataFlowStagingInfo"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Staging info for execute data flow activity.""" + integration_runtime: Optional["_models.IntegrationRuntimeReference"] = rest_field( + name="integrationRuntime", visibility=["read", "create", "update", "delete", "query"] + ) + """The integration runtime reference.""" + continuation_settings: Optional["_models.ContinuationSettingsReference"] = rest_field( + name="continuationSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Continuation settings for execute data flow activity.""" + compute: Optional["_models.ExecuteDataFlowActivityTypePropertiesCompute"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Compute properties for data flow activity.""" + trace_level: Optional[Any] = rest_field( + name="traceLevel", visibility=["read", "create", "update", "delete", "query"] + ) + """Trace level setting used for data flow monitoring output. Supported values are: 'coarse', + 'fine', and 'none'. Type: string (or Expression with resultType string).""" + continue_on_error: Optional[Any] = rest_field( + name="continueOnError", visibility=["read", "create", "update", "delete", "query"] + ) + """Continue on error setting used for data flow execution. Enables processing to continue if a + sink fails. Type: boolean (or Expression with resultType boolean).""" + run_concurrently: Optional[Any] = rest_field( + name="runConcurrently", visibility=["read", "create", "update", "delete", "query"] + ) + """Concurrent run setting used for data flow execution. Allows sinks with the same save order to + be processed concurrently. Type: boolean (or Expression with resultType boolean).""" + source_staging_concurrency: Optional[Any] = rest_field( + name="sourceStagingConcurrency", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify number of parallel staging for sources applicable to the sink. Type: integer (or + Expression with resultType integer).""" + + @overload + def __init__( + self, + *, + data_flow: "_models.DataFlowReference", + staging: Optional["_models.DataFlowStagingInfo"] = None, + integration_runtime: Optional["_models.IntegrationRuntimeReference"] = None, + continuation_settings: Optional["_models.ContinuationSettingsReference"] = None, + compute: Optional["_models.ExecuteDataFlowActivityTypePropertiesCompute"] = None, + trace_level: Optional[Any] = None, + continue_on_error: Optional[Any] = None, + run_concurrently: Optional[Any] = None, + source_staging_concurrency: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExecuteDataFlowActivityTypePropertiesCompute(_Model): # pylint: disable=name-too-long + """Compute properties for data flow activity. + + :ivar compute_type: Compute type of the cluster which will execute data flow job. Possible + values include: 'General', 'MemoryOptimized', 'ComputeOptimized'. Type: string (or Expression + with resultType string). + :vartype compute_type: any + :ivar core_count: Core count of the cluster which will execute data flow job. Supported values + are: 8, 16, 32, 48, 80, 144 and 272. Type: integer (or Expression with resultType integer). + :vartype core_count: any + """ + + compute_type: Optional[Any] = rest_field( + name="computeType", visibility=["read", "create", "update", "delete", "query"] + ) + """Compute type of the cluster which will execute data flow job. Possible values include: + 'General', 'MemoryOptimized', 'ComputeOptimized'. Type: string (or Expression with resultType + string).""" + core_count: Optional[Any] = rest_field(name="coreCount", visibility=["read", "create", "update", "delete", "query"]) + """Core count of the cluster which will execute data flow job. Supported values are: 8, 16, 32, + 48, 80, 144 and 272. Type: integer (or Expression with resultType integer).""" + + @overload + def __init__( + self, + *, + compute_type: Optional[Any] = None, + core_count: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExecutePipelineActivity(ControlActivity, discriminator="ExecutePipeline"): + """Execute pipeline activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar policy: Execute pipeline activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ExecutePipelineActivityPolicy + :ivar type_properties: Execute pipeline activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.ExecutePipelineActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "ExecutePipeline". + :vartype type: str + """ + + policy: Optional["_models.ExecutePipelineActivityPolicy"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Execute pipeline activity policy.""" + type_properties: "_models.ExecutePipelineActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Execute pipeline activity properties. Required.""" + type: Literal["ExecutePipeline"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"ExecutePipeline\".""" + + __flattened_items = ["pipeline", "parameters", "wait_on_completion"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.ExecutePipelineActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + policy: Optional["_models.ExecutePipelineActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ExecutePipelineActivityPolicy(_Model): + """Execution policy for an execute pipeline activity. + + :ivar secure_input: When set to true, Input from activity is considered as secure and will not + be logged to monitoring. + :vartype secure_input: bool + """ + + secure_input: Optional[bool] = rest_field( + name="secureInput", visibility=["read", "create", "update", "delete", "query"] + ) + """When set to true, Input from activity is considered as secure and will not be logged to + monitoring.""" + + @overload + def __init__( + self, + *, + secure_input: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExecutePipelineActivityTypeProperties(_Model): + """Execute pipeline activity properties. + + :ivar pipeline: Pipeline reference. Required. + :vartype pipeline: ~azure.mgmt.datafactory.models.PipelineReference + :ivar parameters: Pipeline parameters. + :vartype parameters: dict[str, any] + :ivar wait_on_completion: Defines whether activity execution will wait for the dependent + pipeline execution to finish. Default is false. + :vartype wait_on_completion: bool + """ + + pipeline: "_models.PipelineReference" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Pipeline reference. Required.""" + parameters: Optional[dict[str, Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Pipeline parameters.""" + wait_on_completion: Optional[bool] = rest_field( + name="waitOnCompletion", visibility=["read", "create", "update", "delete", "query"] + ) + """Defines whether activity execution will wait for the dependent pipeline execution to finish. + Default is false.""" + + @overload + def __init__( + self, + *, + pipeline: "_models.PipelineReference", + parameters: Optional[dict[str, Any]] = None, + wait_on_completion: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExecutePowerQueryActivityTypeProperties(ExecuteDataFlowActivityTypeProperties): + """Execute power query data flow activity properties. + + :ivar data_flow: Data flow reference. Required. + :vartype data_flow: ~azure.mgmt.datafactory.models.DataFlowReference + :ivar staging: Staging info for execute data flow activity. + :vartype staging: ~azure.mgmt.datafactory.models.DataFlowStagingInfo + :ivar integration_runtime: The integration runtime reference. + :vartype integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar continuation_settings: Continuation settings for execute data flow activity. + :vartype continuation_settings: ~azure.mgmt.datafactory.models.ContinuationSettingsReference + :ivar compute: Compute properties for data flow activity. + :vartype compute: ~azure.mgmt.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute + :ivar trace_level: Trace level setting used for data flow monitoring output. Supported values + are: 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string). + :vartype trace_level: any + :ivar continue_on_error: Continue on error setting used for data flow execution. Enables + processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean). + :vartype continue_on_error: any + :ivar run_concurrently: Concurrent run setting used for data flow execution. Allows sinks with + the same save order to be processed concurrently. Type: boolean (or Expression with resultType + boolean). + :vartype run_concurrently: any + :ivar source_staging_concurrency: Specify number of parallel staging for sources applicable to + the sink. Type: integer (or Expression with resultType integer). + :vartype source_staging_concurrency: any + :ivar sinks: (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a + queryName. + :vartype sinks: dict[str, ~azure.mgmt.datafactory.models.PowerQuerySink] + :ivar queries: List of mapping for Power Query mashup query to sink dataset(s). + :vartype queries: list[~azure.mgmt.datafactory.models.PowerQuerySinkMapping] + """ + + sinks: Optional[dict[str, "_models.PowerQuerySink"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """(Deprecated. Please use Queries). List of Power Query activity sinks mapped to a queryName.""" + queries: Optional[list["_models.PowerQuerySinkMapping"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of mapping for Power Query mashup query to sink dataset(s).""" + + @overload + def __init__( + self, + *, + data_flow: "_models.DataFlowReference", + staging: Optional["_models.DataFlowStagingInfo"] = None, + integration_runtime: Optional["_models.IntegrationRuntimeReference"] = None, + continuation_settings: Optional["_models.ContinuationSettingsReference"] = None, + compute: Optional["_models.ExecuteDataFlowActivityTypePropertiesCompute"] = None, + trace_level: Optional[Any] = None, + continue_on_error: Optional[Any] = None, + run_concurrently: Optional[Any] = None, + source_staging_concurrency: Optional[Any] = None, + sinks: Optional[dict[str, "_models.PowerQuerySink"]] = None, + queries: Optional[list["_models.PowerQuerySinkMapping"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExecuteSSISPackageActivity(ExecutionActivity, discriminator="ExecuteSSISPackage"): + """Execute SSIS package activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Execute SSIS package activity properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.ExecuteSSISPackageActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "ExecuteSSISPackage". + :vartype type: str + """ + + type_properties: "_models.ExecuteSSISPackageActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Execute SSIS package activity properties. Required.""" + type: Literal["ExecuteSSISPackage"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"ExecuteSSISPackage\".""" + + __flattened_items = [ + "package_location", + "runtime", + "logging_level", + "environment_path", + "execution_credential", + "connect_via", + "project_parameters", + "package_parameters", + "project_connection_managers", + "package_connection_managers", + "property_overrides", + "log_location", + ] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.ExecuteSSISPackageActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ExecuteSSISPackageActivityTypeProperties(_Model): + """Execute SSIS package activity properties. + + :ivar package_location: SSIS package location. Required. + :vartype package_location: ~azure.mgmt.datafactory.models.SSISPackageLocation + :ivar runtime: Specifies the runtime to execute SSIS package. The value should be "x86" or + "x64". Type: string (or Expression with resultType string). + :vartype runtime: any + :ivar logging_level: The logging level of SSIS package execution. Type: string (or Expression + with resultType string). + :vartype logging_level: any + :ivar environment_path: The environment path to execute the SSIS package. Type: string (or + Expression with resultType string). + :vartype environment_path: any + :ivar execution_credential: The package execution credential. + :vartype execution_credential: ~azure.mgmt.datafactory.models.SSISExecutionCredential + :ivar connect_via: The integration runtime reference. Required. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar project_parameters: The project level parameters to execute the SSIS package. + :vartype project_parameters: dict[str, ~azure.mgmt.datafactory.models.SSISExecutionParameter] + :ivar package_parameters: The package level parameters to execute the SSIS package. + :vartype package_parameters: dict[str, ~azure.mgmt.datafactory.models.SSISExecutionParameter] + :ivar project_connection_managers: The project level connection managers to execute the SSIS + package. + :vartype project_connection_managers: dict[str, dict[str, + ~azure.mgmt.datafactory.models.SSISExecutionParameter]] + :ivar package_connection_managers: The package level connection managers to execute the SSIS + package. + :vartype package_connection_managers: dict[str, dict[str, + ~azure.mgmt.datafactory.models.SSISExecutionParameter]] + :ivar property_overrides: The property overrides to execute the SSIS package. + :vartype property_overrides: dict[str, ~azure.mgmt.datafactory.models.SSISPropertyOverride] + :ivar log_location: SSIS package execution log location. + :vartype log_location: ~azure.mgmt.datafactory.models.SSISLogLocation + """ + + package_location: "_models.SSISPackageLocation" = rest_field( + name="packageLocation", visibility=["read", "create", "update", "delete", "query"] + ) + """SSIS package location. Required.""" + runtime: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specifies the runtime to execute SSIS package. The value should be \"x86\" or \"x64\". Type: + string (or Expression with resultType string).""" + logging_level: Optional[Any] = rest_field( + name="loggingLevel", visibility=["read", "create", "update", "delete", "query"] + ) + """The logging level of SSIS package execution. Type: string (or Expression with resultType + string).""" + environment_path: Optional[Any] = rest_field( + name="environmentPath", visibility=["read", "create", "update", "delete", "query"] + ) + """The environment path to execute the SSIS package. Type: string (or Expression with resultType + string).""" + execution_credential: Optional["_models.SSISExecutionCredential"] = rest_field( + name="executionCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The package execution credential.""" + connect_via: "_models.IntegrationRuntimeReference" = rest_field( + name="connectVia", visibility=["read", "create", "update", "delete", "query"] + ) + """The integration runtime reference. Required.""" + project_parameters: Optional[dict[str, "_models.SSISExecutionParameter"]] = rest_field( + name="projectParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """The project level parameters to execute the SSIS package.""" + package_parameters: Optional[dict[str, "_models.SSISExecutionParameter"]] = rest_field( + name="packageParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """The package level parameters to execute the SSIS package.""" + project_connection_managers: Optional[dict[str, dict[str, "_models.SSISExecutionParameter"]]] = rest_field( + name="projectConnectionManagers", visibility=["read", "create", "update", "delete", "query"] + ) + """The project level connection managers to execute the SSIS package.""" + package_connection_managers: Optional[dict[str, dict[str, "_models.SSISExecutionParameter"]]] = rest_field( + name="packageConnectionManagers", visibility=["read", "create", "update", "delete", "query"] + ) + """The package level connection managers to execute the SSIS package.""" + property_overrides: Optional[dict[str, "_models.SSISPropertyOverride"]] = rest_field( + name="propertyOverrides", visibility=["read", "create", "update", "delete", "query"] + ) + """The property overrides to execute the SSIS package.""" + log_location: Optional["_models.SSISLogLocation"] = rest_field( + name="logLocation", visibility=["read", "create", "update", "delete", "query"] + ) + """SSIS package execution log location.""" + + @overload + def __init__( + self, + *, + package_location: "_models.SSISPackageLocation", + connect_via: "_models.IntegrationRuntimeReference", + runtime: Optional[Any] = None, + logging_level: Optional[Any] = None, + environment_path: Optional[Any] = None, + execution_credential: Optional["_models.SSISExecutionCredential"] = None, + project_parameters: Optional[dict[str, "_models.SSISExecutionParameter"]] = None, + package_parameters: Optional[dict[str, "_models.SSISExecutionParameter"]] = None, + project_connection_managers: Optional[dict[str, dict[str, "_models.SSISExecutionParameter"]]] = None, + package_connection_managers: Optional[dict[str, dict[str, "_models.SSISExecutionParameter"]]] = None, + property_overrides: Optional[dict[str, "_models.SSISPropertyOverride"]] = None, + log_location: Optional["_models.SSISLogLocation"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExecuteWranglingDataflowActivity(Activity, discriminator="ExecuteWranglingDataflow"): + """Execute power query activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar type_properties: Execute power query activity properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.ExecutePowerQueryActivityTypeProperties + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type: Type of activity. Required. Default value is "ExecuteWranglingDataflow". + :vartype type: str + """ + + type_properties: "_models.ExecutePowerQueryActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Execute power query activity properties. Required.""" + policy: Optional["_models.ActivityPolicy"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Activity policy.""" + type: Literal["ExecuteWranglingDataflow"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"ExecuteWranglingDataflow\".""" + + __flattened_items = [ + "data_flow", + "staging", + "integration_runtime", + "continuation_settings", + "compute", + "trace_level", + "continue_on_error", + "run_concurrently", + "source_staging_concurrency", + "sinks", + "queries", + ] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.ExecutePowerQueryActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ExposureControlBatchRequest(_Model): + """A list of exposure control features. + + :ivar exposure_control_requests: List of exposure control features. Required. + :vartype exposure_control_requests: list[~azure.mgmt.datafactory.models.ExposureControlRequest] + """ + + exposure_control_requests: list["_models.ExposureControlRequest"] = rest_field( + name="exposureControlRequests", visibility=["read", "create", "update", "delete", "query"] + ) + """List of exposure control features. Required.""" + + @overload + def __init__( + self, + *, + exposure_control_requests: list["_models.ExposureControlRequest"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExposureControlBatchResponse(_Model): + """A list of exposure control feature values. + + :ivar exposure_control_responses: List of exposure control feature values. Required. + :vartype exposure_control_responses: + list[~azure.mgmt.datafactory.models.ExposureControlResponse] + """ + + exposure_control_responses: list["_models.ExposureControlResponse"] = rest_field( + name="exposureControlResponses", visibility=["read", "create", "update", "delete", "query"] + ) + """List of exposure control feature values. Required.""" + + @overload + def __init__( + self, + *, + exposure_control_responses: list["_models.ExposureControlResponse"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExposureControlRequest(_Model): + """The exposure control request. + + :ivar feature_name: The feature name. + :vartype feature_name: str + :ivar feature_type: The feature type. + :vartype feature_type: str + """ + + feature_name: Optional[str] = rest_field( + name="featureName", visibility=["read", "create", "update", "delete", "query"] + ) + """The feature name.""" + feature_type: Optional[str] = rest_field( + name="featureType", visibility=["read", "create", "update", "delete", "query"] + ) + """The feature type.""" + + @overload + def __init__( + self, + *, + feature_name: Optional[str] = None, + feature_type: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExposureControlResponse(_Model): + """The exposure control response. + + :ivar feature_name: The feature name. + :vartype feature_name: str + :ivar value: The feature value. + :vartype value: str + """ + + feature_name: Optional[str] = rest_field(name="featureName", visibility=["read"]) + """The feature name.""" + value: Optional[str] = rest_field(visibility=["read"]) + """The feature value.""" + + +class Expression(_Model): + """Azure Data Factory expression definition. + + :ivar type: Expression type. Required. "Expression" + :vartype type: str or ~azure.mgmt.datafactory.models.ExpressionType + :ivar value: Expression value. Required. + :vartype value: str + """ + + type: Union[str, "_models.ExpressionType"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Expression type. Required. \"Expression\"""" + value: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Expression value. Required.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.ExpressionType"], + value: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExpressionV2(_Model): + """Nested representation of a complex expression. + + :ivar type: Type of expressions supported by the system. Type: string. Known values are: + "Constant", "Field", "Unary", "Binary", and "NAry". + :vartype type: str or ~azure.mgmt.datafactory.models.ExpressionV2Type + :ivar value: Value for Constant/Field Type: object. + :vartype value: any + :ivar operators: Expression operator value Type: list of strings. + :vartype operators: list[str] + :ivar operands: List of nested expressions. + :vartype operands: list[~azure.mgmt.datafactory.models.ExpressionV2] + """ + + type: Optional[Union[str, "_models.ExpressionV2Type"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Type of expressions supported by the system. Type: string. Known values are: \"Constant\", + \"Field\", \"Unary\", \"Binary\", and \"NAry\".""" + value: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Value for Constant/Field Type: object.""" + operators: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Expression operator value Type: list of strings.""" + operands: Optional[list["_models.ExpressionV2"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of nested expressions.""" + + @overload + def __init__( + self, + *, + type: Optional[Union[str, "_models.ExpressionV2Type"]] = None, + value: Optional[Any] = None, + operators: Optional[list[str]] = None, + operands: Optional[list["_models.ExpressionV2"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Factory(ProxyResource): + """Factory resource type. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datafactory.models.SystemData + :ivar properties: Properties of the factory. + :vartype properties: ~azure.mgmt.datafactory.models.FactoryProperties + :ivar identity: Managed service identity of the factory. + :vartype identity: ~azure.mgmt.datafactory.models.FactoryIdentity + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar e_tag: If eTag is provided in the response body, it may also be provided as a header per + the normal etag convention. Entity tags are used for comparing two or more entities from the + same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match + (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. + :vartype e_tag: str + """ + + properties: Optional["_models.FactoryProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Properties of the factory.""" + identity: Optional["_models.FactoryIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Managed service identity of the factory.""" + location: Optional[str] = rest_field(visibility=["read", "create"]) + """The resource location.""" + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource tags.""" + e_tag: Optional[str] = rest_field(name="eTag", visibility=["read"]) + """If eTag is provided in the response body, it may also be provided as a header per the normal + etag convention. Entity tags are used for comparing two or more entities from the same + requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section + 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.""" + + __flattened_items = [ + "provisioning_state", + "create_time", + "version", + "purview_configuration", + "repo_configuration", + "global_parameters", + "encryption", + "public_network_access", + ] + + @overload + def __init__( + self, + *, + properties: Optional["_models.FactoryProperties"] = None, + identity: Optional["_models.FactoryIdentity"] = None, + location: Optional[str] = None, + tags: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class FactoryRepoConfiguration(_Model): + """Factory's git repo information. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + FactoryGitHubConfiguration, FactoryVSTSConfiguration + + :ivar type: Type of repo configuration. Required. Default value is None. + :vartype type: str + :ivar account_name: Account name. Required. + :vartype account_name: str + :ivar repository_name: Repository name. Required. + :vartype repository_name: str + :ivar collaboration_branch: Collaboration branch. Required. + :vartype collaboration_branch: str + :ivar root_folder: Root folder. Required. + :vartype root_folder: str + :ivar last_commit_id: Last commit id. + :vartype last_commit_id: str + :ivar disable_publish: Disable manual publish operation in ADF studio to favor automated + publish. + :vartype disable_publish: bool + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """Type of repo configuration. Required. Default value is None.""" + account_name: str = rest_field(name="accountName", visibility=["read", "create", "update", "delete", "query"]) + """Account name. Required.""" + repository_name: str = rest_field(name="repositoryName", visibility=["read", "create", "update", "delete", "query"]) + """Repository name. Required.""" + collaboration_branch: str = rest_field( + name="collaborationBranch", visibility=["read", "create", "update", "delete", "query"] + ) + """Collaboration branch. Required.""" + root_folder: str = rest_field(name="rootFolder", visibility=["read", "create", "update", "delete", "query"]) + """Root folder. Required.""" + last_commit_id: Optional[str] = rest_field( + name="lastCommitId", visibility=["read", "create", "update", "delete", "query"] + ) + """Last commit id.""" + disable_publish: Optional[bool] = rest_field( + name="disablePublish", visibility=["read", "create", "update", "delete", "query"] + ) + """Disable manual publish operation in ADF studio to favor automated publish.""" + + @overload + def __init__( + self, + *, + type: str, + account_name: str, + repository_name: str, + collaboration_branch: str, + root_folder: str, + last_commit_id: Optional[str] = None, + disable_publish: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class FactoryGitHubConfiguration(FactoryRepoConfiguration, discriminator="FactoryGitHubConfiguration"): + """Factory's GitHub repo information. + + :ivar account_name: Account name. Required. + :vartype account_name: str + :ivar repository_name: Repository name. Required. + :vartype repository_name: str + :ivar collaboration_branch: Collaboration branch. Required. + :vartype collaboration_branch: str + :ivar root_folder: Root folder. Required. + :vartype root_folder: str + :ivar last_commit_id: Last commit id. + :vartype last_commit_id: str + :ivar disable_publish: Disable manual publish operation in ADF studio to favor automated + publish. + :vartype disable_publish: bool + :ivar host_name: GitHub Enterprise host name. For example: ``https://github.mydomain.com``. + :vartype host_name: str + :ivar client_id: GitHub bring your own app client id. + :vartype client_id: str + :ivar client_secret: GitHub bring your own app client secret information. + :vartype client_secret: ~azure.mgmt.datafactory.models.GitHubClientSecret + :ivar type: Type of repo configuration. Required. Default value is + "FactoryGitHubConfiguration". + :vartype type: str + """ + + host_name: Optional[str] = rest_field(name="hostName", visibility=["read", "create", "update", "delete", "query"]) + """GitHub Enterprise host name. For example: ``https://github.mydomain.com``.""" + client_id: Optional[str] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """GitHub bring your own app client id.""" + client_secret: Optional["_models.GitHubClientSecret"] = rest_field( + name="clientSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """GitHub bring your own app client secret information.""" + type: Literal["FactoryGitHubConfiguration"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of repo configuration. Required. Default value is \"FactoryGitHubConfiguration\".""" + + @overload + def __init__( + self, + *, + account_name: str, + repository_name: str, + collaboration_branch: str, + root_folder: str, + last_commit_id: Optional[str] = None, + disable_publish: Optional[bool] = None, + host_name: Optional[str] = None, + client_id: Optional[str] = None, + client_secret: Optional["_models.GitHubClientSecret"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "FactoryGitHubConfiguration" # type: ignore + + +class FactoryIdentity(_Model): + """Identity properties of the factory resource. + + :ivar type: The identity type. Required. Known values are: "SystemAssigned", "UserAssigned", + and "SystemAssigned,UserAssigned". + :vartype type: str or ~azure.mgmt.datafactory.models.FactoryIdentityType + :ivar principal_id: The principal id of the identity. + :vartype principal_id: str + :ivar tenant_id: The client tenant id of the identity. + :vartype tenant_id: str + :ivar user_assigned_identities: List of user assigned identities for the factory. + :vartype user_assigned_identities: dict[str, any] + """ + + type: Union[str, "_models.FactoryIdentityType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The identity type. Required. Known values are: \"SystemAssigned\", \"UserAssigned\", and + \"SystemAssigned,UserAssigned\".""" + principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"]) + """The principal id of the identity.""" + tenant_id: Optional[str] = rest_field(name="tenantId", visibility=["read"]) + """The client tenant id of the identity.""" + user_assigned_identities: Optional[dict[str, Any]] = rest_field( + name="userAssignedIdentities", visibility=["read", "create", "update", "delete", "query"] + ) + """List of user assigned identities for the factory.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.FactoryIdentityType"], + user_assigned_identities: Optional[dict[str, Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class FactoryProperties(_Model): + """Factory resource properties. + + :ivar provisioning_state: Factory provisioning state, example Succeeded. + :vartype provisioning_state: str + :ivar create_time: Time the factory was created in ISO8601 format. + :vartype create_time: ~datetime.datetime + :ivar version: Version of the factory. + :vartype version: str + :ivar purview_configuration: Purview information of the factory. + :vartype purview_configuration: ~azure.mgmt.datafactory.models.PurviewConfiguration + :ivar repo_configuration: Git repo information of the factory. + :vartype repo_configuration: ~azure.mgmt.datafactory.models.FactoryRepoConfiguration + :ivar global_parameters: List of parameters for factory. + :vartype global_parameters: dict[str, + ~azure.mgmt.datafactory.models.GlobalParameterSpecification] + :ivar encryption: Properties to enable Customer Managed Key for the factory. + :vartype encryption: ~azure.mgmt.datafactory.models.EncryptionConfiguration + :ivar public_network_access: Whether or not public network access is allowed for the data + factory. Known values are: "Enabled" and "Disabled". + :vartype public_network_access: str or ~azure.mgmt.datafactory.models.PublicNetworkAccess + """ + + provisioning_state: Optional[str] = rest_field(name="provisioningState", visibility=["read"]) + """Factory provisioning state, example Succeeded.""" + create_time: Optional[datetime.datetime] = rest_field(name="createTime", visibility=["read"], format="rfc3339") + """Time the factory was created in ISO8601 format.""" + version: Optional[str] = rest_field(visibility=["read"]) + """Version of the factory.""" + purview_configuration: Optional["_models.PurviewConfiguration"] = rest_field( + name="purviewConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Purview information of the factory.""" + repo_configuration: Optional["_models.FactoryRepoConfiguration"] = rest_field( + name="repoConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Git repo information of the factory.""" + global_parameters: Optional[dict[str, "_models.GlobalParameterSpecification"]] = rest_field( + name="globalParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """List of parameters for factory.""" + encryption: Optional["_models.EncryptionConfiguration"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Properties to enable Customer Managed Key for the factory.""" + public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = rest_field( + name="publicNetworkAccess", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether or not public network access is allowed for the data factory. Known values are: + \"Enabled\" and \"Disabled\".""" + + @overload + def __init__( + self, + *, + purview_configuration: Optional["_models.PurviewConfiguration"] = None, + repo_configuration: Optional["_models.FactoryRepoConfiguration"] = None, + global_parameters: Optional[dict[str, "_models.GlobalParameterSpecification"]] = None, + encryption: Optional["_models.EncryptionConfiguration"] = None, + public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class FactoryRepoUpdate(_Model): + """Factory's git repo information. + + :ivar factory_resource_id: The factory resource id. + :vartype factory_resource_id: str + :ivar repo_configuration: Git repo information of the factory. + :vartype repo_configuration: ~azure.mgmt.datafactory.models.FactoryRepoConfiguration + """ + + factory_resource_id: Optional[str] = rest_field( + name="factoryResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """The factory resource id.""" + repo_configuration: Optional["_models.FactoryRepoConfiguration"] = rest_field( + name="repoConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Git repo information of the factory.""" + + @overload + def __init__( + self, + *, + factory_resource_id: Optional[str] = None, + repo_configuration: Optional["_models.FactoryRepoConfiguration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class FactoryUpdateParameters(_Model): + """Parameters for updating a factory resource. + + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar identity: Managed service identity of the factory. + :vartype identity: ~azure.mgmt.datafactory.models.FactoryIdentity + :ivar properties: Properties of update the factory. + :vartype properties: ~azure.mgmt.datafactory.models.FactoryUpdateProperties + """ + + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource tags.""" + identity: Optional["_models.FactoryIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Managed service identity of the factory.""" + properties: Optional["_models.FactoryUpdateProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Properties of update the factory.""" + + __flattened_items = ["public_network_access"] + + @overload + def __init__( + self, + *, + tags: Optional[dict[str, str]] = None, + identity: Optional["_models.FactoryIdentity"] = None, + properties: Optional["_models.FactoryUpdateProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class FactoryUpdateProperties(_Model): + """Factory update resource properties. + + :ivar public_network_access: Whether or not public network access is allowed for the data + factory. Known values are: "Enabled" and "Disabled". + :vartype public_network_access: str or ~azure.mgmt.datafactory.models.PublicNetworkAccess + """ + + public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = rest_field( + name="publicNetworkAccess", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether or not public network access is allowed for the data factory. Known values are: + \"Enabled\" and \"Disabled\".""" + + @overload + def __init__( + self, + *, + public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class FactoryVSTSConfiguration(FactoryRepoConfiguration, discriminator="FactoryVSTSConfiguration"): + """Factory's VSTS repo information. + + :ivar account_name: Account name. Required. + :vartype account_name: str + :ivar repository_name: Repository name. Required. + :vartype repository_name: str + :ivar collaboration_branch: Collaboration branch. Required. + :vartype collaboration_branch: str + :ivar root_folder: Root folder. Required. + :vartype root_folder: str + :ivar last_commit_id: Last commit id. + :vartype last_commit_id: str + :ivar disable_publish: Disable manual publish operation in ADF studio to favor automated + publish. + :vartype disable_publish: bool + :ivar project_name: VSTS project name. Required. + :vartype project_name: str + :ivar tenant_id: VSTS tenant id. + :vartype tenant_id: str + :ivar type: Type of repo configuration. Required. Default value is "FactoryVSTSConfiguration". + :vartype type: str + """ + + project_name: str = rest_field(name="projectName", visibility=["read", "create", "update", "delete", "query"]) + """VSTS project name. Required.""" + tenant_id: Optional[str] = rest_field(name="tenantId", visibility=["read", "create", "update", "delete", "query"]) + """VSTS tenant id.""" + type: Literal["FactoryVSTSConfiguration"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of repo configuration. Required. Default value is \"FactoryVSTSConfiguration\".""" + + @overload + def __init__( + self, + *, + account_name: str, + repository_name: str, + collaboration_branch: str, + root_folder: str, + project_name: str, + last_commit_id: Optional[str] = None, + disable_publish: Optional[bool] = None, + tenant_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "FactoryVSTSConfiguration" # type: ignore + + +class FailActivity(ControlActivity, discriminator="Fail"): + """This activity will fail within its own scope and output a custom error message and error code. + The error message and code can provided either as a string literal or as an expression that can + be evaluated to a string at runtime. The activity scope can be the whole pipeline or a control + activity (e.g. foreach, switch, until), if the fail activity is contained in it. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar type_properties: Fail activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.FailActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "Fail". + :vartype type: str + """ + + type_properties: "_models.FailActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Fail activity properties. Required.""" + type: Literal["Fail"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"Fail\".""" + + __flattened_items = ["message", "error_code"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.FailActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class FailActivityTypeProperties(_Model): + """Fail activity properties. + + :ivar message: The error message that surfaced in the Fail activity. It can be dynamic content + that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with + resultType string). Required. + :vartype message: any + :ivar error_code: The error code that categorizes the error type of the Fail activity. It can + be dynamic content that's evaluated to a non empty/blank string at runtime. Type: string (or + Expression with resultType string). Required. + :vartype error_code: any + """ + + message: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The error message that surfaced in the Fail activity. It can be dynamic content that's + evaluated to a non empty/blank string at runtime. Type: string (or Expression with resultType + string). Required.""" + error_code: Any = rest_field(name="errorCode", visibility=["read", "create", "update", "delete", "query"]) + """The error code that categorizes the error type of the Fail activity. It can be dynamic content + that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with + resultType string). Required.""" + + @overload + def __init__( + self, + *, + message: Any, + error_code: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class FileServerLinkedService(LinkedService, discriminator="FileServer"): + """File system linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: File system linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.FileServerLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "FileServer". + :vartype type: str + """ + + type_properties: "_models.FileServerLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """File system linked service properties. Required.""" + type: Literal["FileServer"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"FileServer\".""" + + __flattened_items = ["host", "user_id", "password", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.FileServerLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class FileServerLinkedServiceTypeProperties(_Model): + """File system linked service properties. + + :ivar host: Host name of the server. Type: string (or Expression with resultType string). + Required. + :vartype host: any + :ivar user_id: User ID to logon the server. Type: string (or Expression with resultType + string). + :vartype user_id: any + :ivar password: Password to logon the server. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + host: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Host name of the server. Type: string (or Expression with resultType string). Required.""" + user_id: Optional[Any] = rest_field(name="userId", visibility=["read", "create", "update", "delete", "query"]) + """User ID to logon the server. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password to logon the server.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + host: Any, + user_id: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class FileServerLocation(DatasetLocation, discriminator="FileServerLocation"): + """The location of file server dataset. + + :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with + resultType string). + :vartype folder_path: any + :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType + string). + :vartype file_name: any + :ivar type: Type of dataset storage location. Required. Default value is "FileServerLocation". + :vartype type: str + """ + + type: Literal["FileServerLocation"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage location. Required. Default value is \"FileServerLocation\".""" + + @overload + def __init__( + self, + *, + folder_path: Optional[Any] = None, + file_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "FileServerLocation" # type: ignore + + +class FileServerReadSettings(StoreReadSettings, discriminator="FileServerReadSettings"): + """File server read settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar recursive: If true, files under the folder path will be read recursively. Default is + true. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar wildcard_folder_path: FileServer wildcardFolderPath. Type: string (or Expression with + resultType string). + :vartype wildcard_folder_path: any + :ivar wildcard_file_name: FileServer wildcardFileName. Type: string (or Expression with + resultType string). + :vartype wildcard_file_name: any + :ivar file_list_path: Point to a text file that lists each file (relative path to the path + configured in the dataset) that you want to copy. Type: string (or Expression with resultType + string). + :vartype file_list_path: any + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: any + :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: + string (or Expression with resultType string). + :vartype partition_root_path: any + :ivar delete_files_after_completion: Indicates whether the source files need to be deleted + after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + :vartype delete_files_after_completion: any + :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or + Expression with resultType string). + :vartype modified_datetime_start: any + :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression + with resultType string). + :vartype modified_datetime_end: any + :ivar file_filter: Specify a filter to be used to select a subset of files in the folderPath + rather than all files. Type: string (or Expression with resultType string). + :vartype file_filter: any + :ivar type: The read setting type. Required. Default value is "FileServerReadSettings". + :vartype type: str + """ + + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files under the folder path will be read recursively. Default is true. Type: boolean + (or Expression with resultType boolean).""" + wildcard_folder_path: Optional[Any] = rest_field( + name="wildcardFolderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """FileServer wildcardFolderPath. Type: string (or Expression with resultType string).""" + wildcard_file_name: Optional[Any] = rest_field( + name="wildcardFileName", visibility=["read", "create", "update", "delete", "query"] + ) + """FileServer wildcardFileName. Type: string (or Expression with resultType string).""" + file_list_path: Optional[Any] = rest_field( + name="fileListPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Point to a text file that lists each file (relative path to the path configured in the dataset) + that you want to copy. Type: string (or Expression with resultType string).""" + enable_partition_discovery: Optional[Any] = rest_field( + name="enablePartitionDiscovery", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType + boolean).""" + partition_root_path: Optional[Any] = rest_field( + name="partitionRootPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the root path where partition discovery starts from. Type: string (or Expression with + resultType string).""" + delete_files_after_completion: Optional[Any] = rest_field( + name="deleteFilesAfterCompletion", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the source files need to be deleted after copy completion. Default is false. + Type: boolean (or Expression with resultType boolean).""" + modified_datetime_start: Optional[Any] = rest_field( + name="modifiedDatetimeStart", visibility=["read", "create", "update", "delete", "query"] + ) + """The start of file's modified datetime. Type: string (or Expression with resultType string).""" + modified_datetime_end: Optional[Any] = rest_field( + name="modifiedDatetimeEnd", visibility=["read", "create", "update", "delete", "query"] + ) + """The end of file's modified datetime. Type: string (or Expression with resultType string).""" + file_filter: Optional[Any] = rest_field( + name="fileFilter", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify a filter to be used to select a subset of files in the folderPath rather than all + files. Type: string (or Expression with resultType string).""" + type: Literal["FileServerReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"FileServerReadSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + recursive: Optional[Any] = None, + wildcard_folder_path: Optional[Any] = None, + wildcard_file_name: Optional[Any] = None, + file_list_path: Optional[Any] = None, + enable_partition_discovery: Optional[Any] = None, + partition_root_path: Optional[Any] = None, + delete_files_after_completion: Optional[Any] = None, + modified_datetime_start: Optional[Any] = None, + modified_datetime_end: Optional[Any] = None, + file_filter: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "FileServerReadSettings" # type: ignore + + +class FileServerWriteSettings(StoreWriteSettings, discriminator="FileServerWriteSettings"): + """File server write settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar copy_behavior: The type of copy behavior for copy sink. + :vartype copy_behavior: any + :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects + (or Expression with resultType array of objects). + :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] + :ivar type: The write setting type. Required. Default value is "FileServerWriteSettings". + :vartype type: str + """ + + type: Literal["FileServerWriteSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The write setting type. Required. Default value is \"FileServerWriteSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + copy_behavior: Optional[Any] = None, + metadata: Optional[list["_models.MetadataItem"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "FileServerWriteSettings" # type: ignore + + +class FileShareDataset(Dataset, discriminator="FileShare"): + """An on-premises file system dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: On-premises file system dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.FileShareDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "FileShare". + :vartype type: str + """ + + type_properties: Optional["_models.FileShareDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """On-premises file system dataset properties.""" + type: Literal["FileShare"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"FileShare\".""" + + __flattened_items = [ + "folder_path", + "file_name", + "modified_datetime_start", + "modified_datetime_end", + "format", + "file_filter", + "compression", + ] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.FileShareDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class FileShareDatasetTypeProperties(_Model): + """On-premises file system dataset properties. + + :ivar folder_path: The path of the on-premises file system. Type: string (or Expression with + resultType string). + :vartype folder_path: any + :ivar file_name: The name of the on-premises file system. Type: string (or Expression with + resultType string). + :vartype file_name: any + :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or + Expression with resultType string). + :vartype modified_datetime_start: any + :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression + with resultType string). + :vartype modified_datetime_end: any + :ivar format: The format of the files. + :vartype format: ~azure.mgmt.datafactory.models.DatasetStorageFormat + :ivar file_filter: Specify a filter to be used to select a subset of files in the folderPath + rather than all files. Type: string (or Expression with resultType string). + :vartype file_filter: any + :ivar compression: The data compression method used for the file system. + :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression + """ + + folder_path: Optional[Any] = rest_field( + name="folderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """The path of the on-premises file system. Type: string (or Expression with resultType string).""" + file_name: Optional[Any] = rest_field(name="fileName", visibility=["read", "create", "update", "delete", "query"]) + """The name of the on-premises file system. Type: string (or Expression with resultType string).""" + modified_datetime_start: Optional[Any] = rest_field( + name="modifiedDatetimeStart", visibility=["read", "create", "update", "delete", "query"] + ) + """The start of file's modified datetime. Type: string (or Expression with resultType string).""" + modified_datetime_end: Optional[Any] = rest_field( + name="modifiedDatetimeEnd", visibility=["read", "create", "update", "delete", "query"] + ) + """The end of file's modified datetime. Type: string (or Expression with resultType string).""" + format: Optional["_models.DatasetStorageFormat"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The format of the files.""" + file_filter: Optional[Any] = rest_field( + name="fileFilter", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify a filter to be used to select a subset of files in the folderPath rather than all + files. Type: string (or Expression with resultType string).""" + compression: Optional["_models.DatasetCompression"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The data compression method used for the file system.""" + + @overload + def __init__( + self, + *, + folder_path: Optional[Any] = None, + file_name: Optional[Any] = None, + modified_datetime_start: Optional[Any] = None, + modified_datetime_end: Optional[Any] = None, + format: Optional["_models.DatasetStorageFormat"] = None, + file_filter: Optional[Any] = None, + compression: Optional["_models.DatasetCompression"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class FileSystemSink(CopySink, discriminator="FileSystemSink"): + """A copy activity file system sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar copy_behavior: The type of copy behavior for copy sink. + :vartype copy_behavior: any + :ivar type: Copy sink type. Required. Default value is "FileSystemSink". + :vartype type: str + """ + + copy_behavior: Optional[Any] = rest_field( + name="copyBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of copy behavior for copy sink.""" + type: Literal["FileSystemSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"FileSystemSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + copy_behavior: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "FileSystemSink" # type: ignore + + +class FileSystemSource(CopySource, discriminator="FileSystemSource"): + """A copy activity file system source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar recursive: If true, files under the folder path will be read recursively. Default is + true. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "FileSystemSource". + :vartype type: str + """ + + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files under the folder path will be read recursively. Default is true. Type: boolean + (or Expression with resultType boolean).""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["FileSystemSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"FileSystemSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + recursive: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "FileSystemSource" # type: ignore + + +class FilterActivity(ControlActivity, discriminator="Filter"): + """Filter and return results from input array based on the conditions. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar type_properties: Filter activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.FilterActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "Filter". + :vartype type: str + """ + + type_properties: "_models.FilterActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Filter activity properties. Required.""" + type: Literal["Filter"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"Filter\".""" + + __flattened_items = ["items_property", "condition"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.FilterActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class FilterActivityTypeProperties(_Model): + """Filter activity properties. + + :ivar items_property: Input array on which filter should be applied. Required. + :vartype items_property: ~azure.mgmt.datafactory.models.Expression + :ivar condition: Condition to be used for filtering the input. Required. + :vartype condition: ~azure.mgmt.datafactory.models.Expression + """ + + items_property: "_models.Expression" = rest_field( + name="items", visibility=["read", "create", "update", "delete", "query"], original_tsp_name="items" + ) + """Input array on which filter should be applied. Required.""" + condition: "_models.Expression" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Condition to be used for filtering the input. Required.""" + + @overload + def __init__( + self, + *, + items_property: "_models.Expression", + condition: "_models.Expression", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Flowlet(DataFlow, discriminator="Flowlet"): + """Data flow flowlet. + + :ivar description: The description of the data flow. + :vartype description: str + :ivar annotations: List of tags that can be used for describing the data flow. + :vartype annotations: list[any] + :ivar folder: The folder that this data flow is in. If not specified, Data flow will appear at + the root level. + :vartype folder: ~azure.mgmt.datafactory.models.DataFlowFolder + :ivar type_properties: Flowlet type properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.FlowletTypeProperties + :ivar type: Type of data flow. Required. Default value is "Flowlet". + :vartype type: str + """ + + type_properties: Optional["_models.FlowletTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Flowlet type properties.""" + type: Literal["Flowlet"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of data flow. Required. Default value is \"Flowlet\".""" + + __flattened_items = ["sources", "sinks", "transformations", "script", "script_lines"] + + @overload + def __init__( + self, + *, + description: Optional[str] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DataFlowFolder"] = None, + type_properties: Optional["_models.FlowletTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class FlowletTypeProperties(_Model): + """Flowlet type properties. + + :ivar sources: List of sources in Flowlet. + :vartype sources: list[~azure.mgmt.datafactory.models.DataFlowSource] + :ivar sinks: List of sinks in Flowlet. + :vartype sinks: list[~azure.mgmt.datafactory.models.DataFlowSink] + :ivar transformations: List of transformations in Flowlet. + :vartype transformations: list[~azure.mgmt.datafactory.models.Transformation] + :ivar script: Flowlet script. + :vartype script: str + :ivar script_lines: Flowlet script lines. + :vartype script_lines: list[str] + """ + + sources: Optional[list["_models.DataFlowSource"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of sources in Flowlet.""" + sinks: Optional[list["_models.DataFlowSink"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of sinks in Flowlet.""" + transformations: Optional[list["_models.Transformation"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of transformations in Flowlet.""" + script: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Flowlet script.""" + script_lines: Optional[list[str]] = rest_field( + name="scriptLines", visibility=["read", "create", "update", "delete", "query"] + ) + """Flowlet script lines.""" + + @overload + def __init__( + self, + *, + sources: Optional[list["_models.DataFlowSource"]] = None, + sinks: Optional[list["_models.DataFlowSink"]] = None, + transformations: Optional[list["_models.Transformation"]] = None, + script: Optional[str] = None, + script_lines: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ForEachActivity(ControlActivity, discriminator="ForEach"): + """This activity is used for iterating over a collection and execute given activities. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar type_properties: ForEach activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.ForEachActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "ForEach". + :vartype type: str + """ + + type_properties: "_models.ForEachActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """ForEach activity properties. Required.""" + type: Literal["ForEach"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"ForEach\".""" + + __flattened_items = ["is_sequential", "batch_count", "items_property", "activities"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.ForEachActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ForEachActivityTypeProperties(_Model): + """ForEach activity properties. + + :ivar is_sequential: Should the loop be executed in sequence or in parallel (max 50). + :vartype is_sequential: bool + :ivar batch_count: Batch count to be used for controlling the number of parallel execution + (when isSequential is set to false). + :vartype batch_count: int + :ivar items_property: Collection to iterate. Required. + :vartype items_property: ~azure.mgmt.datafactory.models.Expression + :ivar activities: List of activities to execute . Required. + :vartype activities: list[~azure.mgmt.datafactory.models.Activity] + """ + + is_sequential: Optional[bool] = rest_field( + name="isSequential", visibility=["read", "create", "update", "delete", "query"] + ) + """Should the loop be executed in sequence or in parallel (max 50).""" + batch_count: Optional[int] = rest_field( + name="batchCount", visibility=["read", "create", "update", "delete", "query"] + ) + """Batch count to be used for controlling the number of parallel execution (when isSequential is + set to false).""" + items_property: "_models.Expression" = rest_field( + name="items", visibility=["read", "create", "update", "delete", "query"], original_tsp_name="items" + ) + """Collection to iterate. Required.""" + activities: list["_models.Activity"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of activities to execute . Required.""" + + @overload + def __init__( + self, + *, + items_property: "_models.Expression", + activities: list["_models.Activity"], + is_sequential: Optional[bool] = None, + batch_count: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class FtpReadSettings(StoreReadSettings, discriminator="FtpReadSettings"): + """Ftp read settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar recursive: If true, files under the folder path will be read recursively. Default is + true. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar wildcard_folder_path: Ftp wildcardFolderPath. Type: string (or Expression with resultType + string). + :vartype wildcard_folder_path: any + :ivar wildcard_file_name: Ftp wildcardFileName. Type: string (or Expression with resultType + string). + :vartype wildcard_file_name: any + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: any + :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: + string (or Expression with resultType string). + :vartype partition_root_path: any + :ivar delete_files_after_completion: Indicates whether the source files need to be deleted + after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + :vartype delete_files_after_completion: any + :ivar file_list_path: Point to a text file that lists each file (relative path to the path + configured in the dataset) that you want to copy. Type: string (or Expression with resultType + string). + :vartype file_list_path: any + :ivar use_binary_transfer: Specify whether to use binary transfer mode for FTP stores. Type: + boolean (or Expression with resultType boolean). + :vartype use_binary_transfer: any + :ivar disable_chunking: If true, disable parallel reading within each file. Default is false. + Type: boolean (or Expression with resultType boolean). + :vartype disable_chunking: any + :ivar type: The read setting type. Required. Default value is "FtpReadSettings". + :vartype type: str + """ + + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files under the folder path will be read recursively. Default is true. Type: boolean + (or Expression with resultType boolean).""" + wildcard_folder_path: Optional[Any] = rest_field( + name="wildcardFolderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Ftp wildcardFolderPath. Type: string (or Expression with resultType string).""" + wildcard_file_name: Optional[Any] = rest_field( + name="wildcardFileName", visibility=["read", "create", "update", "delete", "query"] + ) + """Ftp wildcardFileName. Type: string (or Expression with resultType string).""" + enable_partition_discovery: Optional[Any] = rest_field( + name="enablePartitionDiscovery", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType + boolean).""" + partition_root_path: Optional[Any] = rest_field( + name="partitionRootPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the root path where partition discovery starts from. Type: string (or Expression with + resultType string).""" + delete_files_after_completion: Optional[Any] = rest_field( + name="deleteFilesAfterCompletion", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the source files need to be deleted after copy completion. Default is false. + Type: boolean (or Expression with resultType boolean).""" + file_list_path: Optional[Any] = rest_field( + name="fileListPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Point to a text file that lists each file (relative path to the path configured in the dataset) + that you want to copy. Type: string (or Expression with resultType string).""" + use_binary_transfer: Optional[Any] = rest_field( + name="useBinaryTransfer", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify whether to use binary transfer mode for FTP stores. Type: boolean (or Expression with + resultType boolean).""" + disable_chunking: Optional[Any] = rest_field( + name="disableChunking", visibility=["read", "create", "update", "delete", "query"] + ) + """If true, disable parallel reading within each file. Default is false. Type: boolean (or + Expression with resultType boolean).""" + type: Literal["FtpReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"FtpReadSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + recursive: Optional[Any] = None, + wildcard_folder_path: Optional[Any] = None, + wildcard_file_name: Optional[Any] = None, + enable_partition_discovery: Optional[Any] = None, + partition_root_path: Optional[Any] = None, + delete_files_after_completion: Optional[Any] = None, + file_list_path: Optional[Any] = None, + use_binary_transfer: Optional[Any] = None, + disable_chunking: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "FtpReadSettings" # type: ignore + + +class FtpServerLinkedService(LinkedService, discriminator="FtpServer"): + """A FTP server Linked Service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Properties specific to this linked service type. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.FtpServerLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "FtpServer". + :vartype type: str + """ + + type_properties: "_models.FtpServerLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this linked service type. Required.""" + type: Literal["FtpServer"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"FtpServer\".""" + + __flattened_items = [ + "host", + "port", + "authentication_type", + "user_name", + "password", + "encrypted_credential", + "enable_ssl", + "enable_server_certificate_validation", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.FtpServerLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class FtpServerLinkedServiceTypeProperties(_Model): + """Properties specific to this linked service type. + + :ivar host: Host name of the FTP server. Type: string (or Expression with resultType string). + Required. + :vartype host: any + :ivar port: The TCP port number that the FTP server uses to listen for client connections. + Default value is 21. Type: integer (or Expression with resultType integer), minimum: 0. + :vartype port: any + :ivar authentication_type: The authentication type to be used to connect to the FTP server. + Known values are: "Basic" and "Anonymous". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.FtpAuthenticationType + :ivar user_name: Username to logon the FTP server. Type: string (or Expression with resultType + string). + :vartype user_name: any + :ivar password: Password to logon the FTP server. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar enable_ssl: If true, connect to the FTP server over SSL/TLS channel. Default value is + true. Type: boolean (or Expression with resultType boolean). + :vartype enable_ssl: any + :ivar enable_server_certificate_validation: If true, validate the FTP server SSL certificate + when connect over SSL/TLS channel. Default value is true. Type: boolean (or Expression with + resultType boolean). + :vartype enable_server_certificate_validation: any + """ + + host: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Host name of the FTP server. Type: string (or Expression with resultType string). Required.""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The TCP port number that the FTP server uses to listen for client connections. Default value is + 21. Type: integer (or Expression with resultType integer), minimum: 0.""" + authentication_type: Optional[Union[str, "_models.FtpAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to be used to connect to the FTP server. Known values are: \"Basic\" + and \"Anonymous\".""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """Username to logon the FTP server. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password to logon the FTP server.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + enable_ssl: Optional[Any] = rest_field(name="enableSsl", visibility=["read", "create", "update", "delete", "query"]) + """If true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: boolean + (or Expression with resultType boolean).""" + enable_server_certificate_validation: Optional[Any] = rest_field( + name="enableServerCertificateValidation", visibility=["read", "create", "update", "delete", "query"] + ) + """If true, validate the FTP server SSL certificate when connect over SSL/TLS channel. Default + value is true. Type: boolean (or Expression with resultType boolean).""" + + @overload + def __init__( + self, + *, + host: Any, + port: Optional[Any] = None, + authentication_type: Optional[Union[str, "_models.FtpAuthenticationType"]] = None, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + enable_ssl: Optional[Any] = None, + enable_server_certificate_validation: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class FtpServerLocation(DatasetLocation, discriminator="FtpServerLocation"): + """The location of ftp server dataset. + + :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with + resultType string). + :vartype folder_path: any + :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType + string). + :vartype file_name: any + :ivar type: Type of dataset storage location. Required. Default value is "FtpServerLocation". + :vartype type: str + """ + + type: Literal["FtpServerLocation"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage location. Required. Default value is \"FtpServerLocation\".""" + + @overload + def __init__( + self, + *, + folder_path: Optional[Any] = None, + file_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "FtpServerLocation" # type: ignore + + +class GenericDatasetTypeProperties(_Model): + """Properties specific to this dataset type. + + :ivar table_name: The table name. Type: string (or Expression with resultType string). + :vartype table_name: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """The table name. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GetMetadataActivity(ExecutionActivity, discriminator="GetMetadata"): + """Activity to get metadata of dataset. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: GetMetadata activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.GetMetadataActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "GetMetadata". + :vartype type: str + """ + + type_properties: "_models.GetMetadataActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """GetMetadata activity properties. Required.""" + type: Literal["GetMetadata"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"GetMetadata\".""" + + __flattened_items = ["dataset", "field_list", "store_settings", "format_settings"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.GetMetadataActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class GetMetadataActivityTypeProperties(_Model): + """GetMetadata activity properties. + + :ivar dataset: GetMetadata activity dataset reference. Required. + :vartype dataset: ~azure.mgmt.datafactory.models.DatasetReference + :ivar field_list: Fields of metadata to get from dataset. + :vartype field_list: list[any] + :ivar store_settings: GetMetadata activity store settings. + :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings + :ivar format_settings: GetMetadata activity format settings. + :vartype format_settings: ~azure.mgmt.datafactory.models.FormatReadSettings + """ + + dataset: "_models.DatasetReference" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """GetMetadata activity dataset reference. Required.""" + field_list: Optional[list[Any]] = rest_field( + name="fieldList", visibility=["read", "create", "update", "delete", "query"] + ) + """Fields of metadata to get from dataset.""" + store_settings: Optional["_models.StoreReadSettings"] = rest_field( + name="storeSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """GetMetadata activity store settings.""" + format_settings: Optional["_models.FormatReadSettings"] = rest_field( + name="formatSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """GetMetadata activity format settings.""" + + @overload + def __init__( + self, + *, + dataset: "_models.DatasetReference", + field_list: Optional[list[Any]] = None, + store_settings: Optional["_models.StoreReadSettings"] = None, + format_settings: Optional["_models.FormatReadSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GetSsisObjectMetadataRequest(_Model): + """The request payload of get SSIS object metadata. + + :ivar metadata_path: Metadata path. + :vartype metadata_path: str + """ + + metadata_path: Optional[str] = rest_field( + name="metadataPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Metadata path.""" + + @overload + def __init__( + self, + *, + metadata_path: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GitHubAccessTokenRequest(_Model): + """Get GitHub access token request definition. + + :ivar git_hub_access_code: GitHub access code. Required. + :vartype git_hub_access_code: str + :ivar git_hub_client_id: GitHub application client ID. + :vartype git_hub_client_id: str + :ivar git_hub_client_secret: GitHub bring your own app client secret information. + :vartype git_hub_client_secret: ~azure.mgmt.datafactory.models.GitHubClientSecret + :ivar git_hub_access_token_base_url: GitHub access token base URL. Required. + :vartype git_hub_access_token_base_url: str + """ + + git_hub_access_code: str = rest_field( + name="gitHubAccessCode", visibility=["read", "create", "update", "delete", "query"] + ) + """GitHub access code. Required.""" + git_hub_client_id: Optional[str] = rest_field( + name="gitHubClientId", visibility=["read", "create", "update", "delete", "query"] + ) + """GitHub application client ID.""" + git_hub_client_secret: Optional["_models.GitHubClientSecret"] = rest_field( + name="gitHubClientSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """GitHub bring your own app client secret information.""" + git_hub_access_token_base_url: str = rest_field( + name="gitHubAccessTokenBaseUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """GitHub access token base URL. Required.""" + + @overload + def __init__( + self, + *, + git_hub_access_code: str, + git_hub_access_token_base_url: str, + git_hub_client_id: Optional[str] = None, + git_hub_client_secret: Optional["_models.GitHubClientSecret"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GitHubAccessTokenResponse(_Model): + """Get GitHub access token response definition. + + :ivar git_hub_access_token: GitHub access token. + :vartype git_hub_access_token: str + """ + + git_hub_access_token: Optional[str] = rest_field( + name="gitHubAccessToken", visibility=["read", "create", "update", "delete", "query"] + ) + """GitHub access token.""" + + @overload + def __init__( + self, + *, + git_hub_access_token: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GitHubClientSecret(_Model): + """Client secret information for factory's bring your own app repository configuration. + + :ivar byoa_secret_akv_url: Bring your own app client secret AKV URL. + :vartype byoa_secret_akv_url: str + :ivar byoa_secret_name: Bring your own app client secret name in AKV. + :vartype byoa_secret_name: str + """ + + byoa_secret_akv_url: Optional[str] = rest_field( + name="byoaSecretAkvUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """Bring your own app client secret AKV URL.""" + byoa_secret_name: Optional[str] = rest_field( + name="byoaSecretName", visibility=["read", "create", "update", "delete", "query"] + ) + """Bring your own app client secret name in AKV.""" + + @overload + def __init__( + self, + *, + byoa_secret_akv_url: Optional[str] = None, + byoa_secret_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GlobalParameterResource(ProxyResource): + """Global parameters resource type. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datafactory.models.SystemData + :ivar properties: Properties of the global parameter. Required. + :vartype properties: dict[str, ~azure.mgmt.datafactory.models.GlobalParameterSpecification] + :ivar etag: "If etag is provided in the response body, it may also be provided as a header per + the normal etag convention. Entity tags are used for comparing two or more entities from the + same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match + (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). + :vartype etag: str + """ + + properties: dict[str, "_models.GlobalParameterSpecification"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Properties of the global parameter. Required.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """\"If etag is provided in the response body, it may also be provided as a header per the normal + etag convention. Entity tags are used for comparing two or more entities from the same + requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section + 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.\").""" + + @overload + def __init__( + self, + *, + properties: dict[str, "_models.GlobalParameterSpecification"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GlobalParameterSpecification(_Model): + """Definition of a single parameter for an entity. + + :ivar type: Global Parameter type. Required. Known values are: "Object", "String", "Int", + "Float", "Bool", and "Array". + :vartype type: str or ~azure.mgmt.datafactory.models.GlobalParameterType + :ivar value: Value of parameter. Required. + :vartype value: any + """ + + type: Union[str, "_models.GlobalParameterType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Global Parameter type. Required. Known values are: \"Object\", \"String\", \"Int\", \"Float\", + \"Bool\", and \"Array\".""" + value: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Value of parameter. Required.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.GlobalParameterType"], + value: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GoogleAdWordsLinkedService(LinkedService, discriminator="GoogleAdWords"): + """Google AdWords service linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Google AdWords service linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.GoogleAdWordsLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "GoogleAdWords". + :vartype type: str + """ + + type_properties: "_models.GoogleAdWordsLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Google AdWords service linked service properties. Required.""" + type: Literal["GoogleAdWords"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"GoogleAdWords\".""" + + __flattened_items = [ + "connection_properties", + "client_customer_id", + "developer_token", + "authentication_type", + "refresh_token", + "client_id", + "client_secret", + "email", + "key_file_path", + "trusted_cert_path", + "use_system_trust_store", + "private_key", + "login_customer_id", + "google_ads_api_version", + "support_legacy_data_types", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.GoogleAdWordsLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class GoogleAdWordsLinkedServiceTypeProperties(_Model): + """Google AdWords service linked service properties. + + :ivar connection_properties: (Deprecated) Properties used to connect to GoogleAds. It is + mutually exclusive with any other properties in the linked service. Type: object. + :vartype connection_properties: any + :ivar client_customer_id: The Client customer ID of the AdWords account that you want to fetch + report data for. Type: string (or Expression with resultType string). + :vartype client_customer_id: any + :ivar developer_token: The developer token associated with the manager account that you use to + grant access to the AdWords API. + :vartype developer_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar authentication_type: The OAuth 2.0 authentication mechanism used for authentication. + ServiceAuthentication can only be used on self-hosted IR. Known values are: + "ServiceAuthentication" and "UserAuthentication". + :vartype authentication_type: str or + ~azure.mgmt.datafactory.models.GoogleAdWordsAuthenticationType + :ivar refresh_token: The refresh token obtained from Google for authorizing access to AdWords + for UserAuthentication. + :vartype refresh_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar client_id: The client id of the google application used to acquire the refresh token. + Type: string (or Expression with resultType string). + :vartype client_id: any + :ivar client_secret: The client secret of the google application used to acquire the refresh + token. + :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase + :ivar email: The service account email ID that is used for ServiceAuthentication and can only + be used on self-hosted IR. Type: string (or Expression with resultType string). + :vartype email: any + :ivar key_file_path: (Deprecated) The full path to the .p12 key file that is used to + authenticate the service account email address and can only be used on self-hosted IR. Type: + string (or Expression with resultType string). + :vartype key_file_path: any + :ivar trusted_cert_path: (Deprecated) The full path of the .pem file containing trusted CA + certificates for verifying the server when connecting over SSL. This property can only be set + when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the + IR. Type: string (or Expression with resultType string). + :vartype trusted_cert_path: any + :ivar use_system_trust_store: (Deprecated) Specifies whether to use a CA certificate from the + system trust store or from a specified PEM file. The default value is false. Type: boolean (or + Expression with resultType boolean). + :vartype use_system_trust_store: any + :ivar private_key: The private key that is used to authenticate the service account email + address and can only be used on self-hosted IR. + :vartype private_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar login_customer_id: The customer ID of the Google Ads Manager account through which you + want to fetch report data of specific Customer. Type: string (or Expression with resultType + string). + :vartype login_customer_id: any + :ivar google_ads_api_version: The Google Ads API major version such as v14. The supported major + versions could be found on `https://developers.google.com/google-ads/api/docs/release-notes + `_. Type: string (or + Expression with resultType string). + :vartype google_ads_api_version: any + :ivar support_legacy_data_types: Specifies whether to use the legacy data type mappings, which + maps float, int32 and int64 from Google to string. Do not set this to true unless you want to + keep backward compatibility with legacy driver's data type mappings. Type: boolean (or + Expression with resultType boolean). + :vartype support_legacy_data_types: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_properties: Optional[Any] = rest_field( + name="connectionProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """(Deprecated) Properties used to connect to GoogleAds. It is mutually exclusive with any other + properties in the linked service. Type: object.""" + client_customer_id: Optional[Any] = rest_field( + name="clientCustomerID", visibility=["read", "create", "update", "delete", "query"] + ) + """The Client customer ID of the AdWords account that you want to fetch report data for. Type: + string (or Expression with resultType string).""" + developer_token: Optional["_models.SecretBase"] = rest_field( + name="developerToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The developer token associated with the manager account that you use to grant access to the + AdWords API.""" + authentication_type: Optional[Union[str, "_models.GoogleAdWordsAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only + be used on self-hosted IR. Known values are: \"ServiceAuthentication\" and + \"UserAuthentication\".""" + refresh_token: Optional["_models.SecretBase"] = rest_field( + name="refreshToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The refresh token obtained from Google for authorizing access to AdWords for + UserAuthentication.""" + client_id: Optional[Any] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The client id of the google application used to acquire the refresh token. Type: string (or + Expression with resultType string).""" + client_secret: Optional["_models.SecretBase"] = rest_field( + name="clientSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """The client secret of the google application used to acquire the refresh token.""" + email: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The service account email ID that is used for ServiceAuthentication and can only be used on + self-hosted IR. Type: string (or Expression with resultType string).""" + key_file_path: Optional[Any] = rest_field( + name="keyFilePath", visibility=["read", "create", "update", "delete", "query"] + ) + """(Deprecated) The full path to the .p12 key file that is used to authenticate the service + account email address and can only be used on self-hosted IR. Type: string (or Expression with + resultType string).""" + trusted_cert_path: Optional[Any] = rest_field( + name="trustedCertPath", visibility=["read", "create", "update", "delete", "query"] + ) + """(Deprecated) The full path of the .pem file containing trusted CA certificates for verifying + the server when connecting over SSL. This property can only be set when using SSL on + self-hosted IR. The default value is the cacerts.pem file installed with the IR. Type: string + (or Expression with resultType string).""" + use_system_trust_store: Optional[Any] = rest_field( + name="useSystemTrustStore", visibility=["read", "create", "update", "delete", "query"] + ) + """(Deprecated) Specifies whether to use a CA certificate from the system trust store or from a + specified PEM file. The default value is false. Type: boolean (or Expression with resultType + boolean).""" + private_key: Optional["_models.SecretBase"] = rest_field( + name="privateKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The private key that is used to authenticate the service account email address and can only be + used on self-hosted IR.""" + login_customer_id: Optional[Any] = rest_field( + name="loginCustomerID", visibility=["read", "create", "update", "delete", "query"] + ) + """The customer ID of the Google Ads Manager account through which you want to fetch report data + of specific Customer. Type: string (or Expression with resultType string).""" + google_ads_api_version: Optional[Any] = rest_field( + name="googleAdsApiVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The Google Ads API major version such as v14. The supported major versions could be found on + `https://developers.google.com/google-ads/api/docs/release-notes + `_. Type: string (or + Expression with resultType string).""" + support_legacy_data_types: Optional[Any] = rest_field( + name="supportLegacyDataTypes", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to use the legacy data type mappings, which maps float, int32 and int64 from + Google to string. Do not set this to true unless you want to keep backward compatibility with + legacy driver's data type mappings. Type: boolean (or Expression with resultType boolean).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_properties: Optional[Any] = None, + client_customer_id: Optional[Any] = None, + developer_token: Optional["_models.SecretBase"] = None, + authentication_type: Optional[Union[str, "_models.GoogleAdWordsAuthenticationType"]] = None, + refresh_token: Optional["_models.SecretBase"] = None, + client_id: Optional[Any] = None, + client_secret: Optional["_models.SecretBase"] = None, + email: Optional[Any] = None, + key_file_path: Optional[Any] = None, + trusted_cert_path: Optional[Any] = None, + use_system_trust_store: Optional[Any] = None, + private_key: Optional["_models.SecretBase"] = None, + login_customer_id: Optional[Any] = None, + google_ads_api_version: Optional[Any] = None, + support_legacy_data_types: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GoogleAdWordsObjectDataset(Dataset, discriminator="GoogleAdWordsObject"): + """Google AdWords service dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "GoogleAdWordsObject". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["GoogleAdWordsObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"GoogleAdWordsObject\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class GoogleAdWordsSource(TabularSource, discriminator="GoogleAdWordsSource"): + """A copy activity Google AdWords service source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "GoogleAdWordsSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["GoogleAdWordsSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"GoogleAdWordsSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "GoogleAdWordsSource" # type: ignore + + +class GoogleBigQueryDatasetTypeProperties(_Model): + """Google BigQuery Dataset Properties. + + :ivar table_name: This property will be retired. Please consider using database + table + properties instead. + :vartype table_name: any + :ivar table: The table name of the Google BigQuery. Type: string (or Expression with resultType + string). + :vartype table: any + :ivar dataset: The database name of the Google BigQuery. Type: string (or Expression with + resultType string). + :vartype dataset: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property will be retired. Please consider using database + table properties instead.""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Google BigQuery. Type: string (or Expression with resultType string).""" + dataset: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The database name of the Google BigQuery. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + table: Optional[Any] = None, + dataset: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GoogleBigQueryLinkedService(LinkedService, discriminator="GoogleBigQuery"): + """Google BigQuery service linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Google BigQuery service linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.GoogleBigQueryLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "GoogleBigQuery". + :vartype type: str + """ + + type_properties: "_models.GoogleBigQueryLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Google BigQuery service linked service properties. Required.""" + type: Literal["GoogleBigQuery"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"GoogleBigQuery\".""" + + __flattened_items = [ + "project", + "additional_projects", + "request_google_drive_scope", + "authentication_type", + "refresh_token", + "client_id", + "client_secret", + "email", + "key_file_path", + "trusted_cert_path", + "use_system_trust_store", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.GoogleBigQueryLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class GoogleBigQueryLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Google BigQuery service linked service properties. + + :ivar project: The default BigQuery project to query against. Type: string (or Expression with + resultType string). Required. + :vartype project: any + :ivar additional_projects: A comma-separated list of public BigQuery projects to access. Type: + string (or Expression with resultType string). + :vartype additional_projects: any + :ivar request_google_drive_scope: Whether to request access to Google Drive. Allowing Google + Drive access enables support for federated tables that combine BigQuery data with data from + Google Drive. The default value is false. Type: string (or Expression with resultType string). + :vartype request_google_drive_scope: any + :ivar authentication_type: The OAuth 2.0 authentication mechanism used for authentication. + ServiceAuthentication can only be used on self-hosted IR. Required. Known values are: + "ServiceAuthentication" and "UserAuthentication". + :vartype authentication_type: str or + ~azure.mgmt.datafactory.models.GoogleBigQueryAuthenticationType + :ivar refresh_token: The refresh token obtained from Google for authorizing access to BigQuery + for UserAuthentication. + :vartype refresh_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar client_id: The client id of the google application used to acquire the refresh token. + Type: string (or Expression with resultType string). + :vartype client_id: any + :ivar client_secret: The client secret of the google application used to acquire the refresh + token. + :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase + :ivar email: The service account email ID that is used for ServiceAuthentication and can only + be used on self-hosted IR. Type: string (or Expression with resultType string). + :vartype email: any + :ivar key_file_path: The full path to the .p12 key file that is used to authenticate the + service account email address and can only be used on self-hosted IR. Type: string (or + Expression with resultType string). + :vartype key_file_path: any + :ivar trusted_cert_path: The full path of the .pem file containing trusted CA certificates for + verifying the server when connecting over SSL. This property can only be set when using SSL on + self-hosted IR. The default value is the cacerts.pem file installed with the IR. Type: string + (or Expression with resultType string). + :vartype trusted_cert_path: any + :ivar use_system_trust_store: Specifies whether to use a CA certificate from the system trust + store or from a specified PEM file. The default value is false.Type: boolean (or Expression + with resultType boolean). + :vartype use_system_trust_store: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + project: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The default BigQuery project to query against. Type: string (or Expression with resultType + string). Required.""" + additional_projects: Optional[Any] = rest_field( + name="additionalProjects", visibility=["read", "create", "update", "delete", "query"] + ) + """A comma-separated list of public BigQuery projects to access. Type: string (or Expression with + resultType string).""" + request_google_drive_scope: Optional[Any] = rest_field( + name="requestGoogleDriveScope", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to request access to Google Drive. Allowing Google Drive access enables support for + federated tables that combine BigQuery data with data from Google Drive. The default value is + false. Type: string (or Expression with resultType string).""" + authentication_type: Union[str, "_models.GoogleBigQueryAuthenticationType"] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only + be used on self-hosted IR. Required. Known values are: \"ServiceAuthentication\" and + \"UserAuthentication\".""" + refresh_token: Optional["_models.SecretBase"] = rest_field( + name="refreshToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The refresh token obtained from Google for authorizing access to BigQuery for + UserAuthentication.""" + client_id: Optional[Any] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The client id of the google application used to acquire the refresh token. Type: string (or + Expression with resultType string).""" + client_secret: Optional["_models.SecretBase"] = rest_field( + name="clientSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """The client secret of the google application used to acquire the refresh token.""" + email: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The service account email ID that is used for ServiceAuthentication and can only be used on + self-hosted IR. Type: string (or Expression with resultType string).""" + key_file_path: Optional[Any] = rest_field( + name="keyFilePath", visibility=["read", "create", "update", "delete", "query"] + ) + """The full path to the .p12 key file that is used to authenticate the service account email + address and can only be used on self-hosted IR. Type: string (or Expression with resultType + string).""" + trusted_cert_path: Optional[Any] = rest_field( + name="trustedCertPath", visibility=["read", "create", "update", "delete", "query"] + ) + """The full path of the .pem file containing trusted CA certificates for verifying the server when + connecting over SSL. This property can only be set when using SSL on self-hosted IR. The + default value is the cacerts.pem file installed with the IR. Type: string (or Expression with + resultType string).""" + use_system_trust_store: Optional[Any] = rest_field( + name="useSystemTrustStore", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to use a CA certificate from the system trust store or from a specified PEM + file. The default value is false.Type: boolean (or Expression with resultType boolean).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + project: Any, + authentication_type: Union[str, "_models.GoogleBigQueryAuthenticationType"], + additional_projects: Optional[Any] = None, + request_google_drive_scope: Optional[Any] = None, + refresh_token: Optional["_models.SecretBase"] = None, + client_id: Optional[Any] = None, + client_secret: Optional["_models.SecretBase"] = None, + email: Optional[Any] = None, + key_file_path: Optional[Any] = None, + trusted_cert_path: Optional[Any] = None, + use_system_trust_store: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GoogleBigQueryObjectDataset(Dataset, discriminator="GoogleBigQueryObject"): + """Google BigQuery service dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GoogleBigQueryDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "GoogleBigQueryObject". + :vartype type: str + """ + + type_properties: Optional["_models.GoogleBigQueryDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["GoogleBigQueryObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"GoogleBigQueryObject\".""" + + __flattened_items = ["table_name", "table", "dataset"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GoogleBigQueryDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class GoogleBigQuerySource(TabularSource, discriminator="GoogleBigQuerySource"): + """A copy activity Google BigQuery service source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "GoogleBigQuerySource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["GoogleBigQuerySource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"GoogleBigQuerySource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "GoogleBigQuerySource" # type: ignore + + +class GoogleBigQueryV2DatasetTypeProperties(_Model): + """Google BigQuery Dataset Properties. + + :ivar table: The table name of the Google BigQuery. Type: string (or Expression with resultType + string). + :vartype table: any + :ivar dataset: The database name of the Google BigQuery. Type: string (or Expression with + resultType string). + :vartype dataset: any + """ + + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Google BigQuery. Type: string (or Expression with resultType string).""" + dataset: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The database name of the Google BigQuery. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table: Optional[Any] = None, + dataset: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GoogleBigQueryV2LinkedService(LinkedService, discriminator="GoogleBigQueryV2"): + """Google BigQuery service linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Google BigQuery service linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.GoogleBigQueryV2LinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "GoogleBigQueryV2". + :vartype type: str + """ + + type_properties: "_models.GoogleBigQueryV2LinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Google BigQuery service linked service properties. Required.""" + type: Literal["GoogleBigQueryV2"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"GoogleBigQueryV2\".""" + + __flattened_items = [ + "project_id", + "authentication_type", + "client_id", + "client_secret", + "refresh_token", + "key_file_content", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.GoogleBigQueryV2LinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class GoogleBigQueryV2LinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Google BigQuery service linked service properties. + + :ivar project_id: The default BigQuery project id to query against. Type: string (or Expression + with resultType string). Required. + :vartype project_id: any + :ivar authentication_type: The OAuth 2.0 authentication mechanism used for authentication. + Required. Known values are: "ServiceAuthentication" and "UserAuthentication". + :vartype authentication_type: str or + ~azure.mgmt.datafactory.models.GoogleBigQueryV2AuthenticationType + :ivar client_id: The client id of the google application used to acquire the refresh token. + Type: string (or Expression with resultType string). + :vartype client_id: any + :ivar client_secret: The client secret of the google application used to acquire the refresh + token. + :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase + :ivar refresh_token: The refresh token obtained from Google for authorizing access to BigQuery + for UserAuthentication. + :vartype refresh_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar key_file_content: The content of the .json key file that is used to authenticate the + service account. Type: string (or Expression with resultType string). + :vartype key_file_content: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + project_id: Any = rest_field(name="projectId", visibility=["read", "create", "update", "delete", "query"]) + """The default BigQuery project id to query against. Type: string (or Expression with resultType + string). Required.""" + authentication_type: Union[str, "_models.GoogleBigQueryV2AuthenticationType"] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The OAuth 2.0 authentication mechanism used for authentication. Required. Known values are: + \"ServiceAuthentication\" and \"UserAuthentication\".""" + client_id: Optional[Any] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The client id of the google application used to acquire the refresh token. Type: string (or + Expression with resultType string).""" + client_secret: Optional["_models.SecretBase"] = rest_field( + name="clientSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """The client secret of the google application used to acquire the refresh token.""" + refresh_token: Optional["_models.SecretBase"] = rest_field( + name="refreshToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The refresh token obtained from Google for authorizing access to BigQuery for + UserAuthentication.""" + key_file_content: Optional["_models.SecretBase"] = rest_field( + name="keyFileContent", visibility=["read", "create", "update", "delete", "query"] + ) + """The content of the .json key file that is used to authenticate the service account. Type: + string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + project_id: Any, + authentication_type: Union[str, "_models.GoogleBigQueryV2AuthenticationType"], + client_id: Optional[Any] = None, + client_secret: Optional["_models.SecretBase"] = None, + refresh_token: Optional["_models.SecretBase"] = None, + key_file_content: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GoogleBigQueryV2ObjectDataset(Dataset, discriminator="GoogleBigQueryV2Object"): + """Google BigQuery service dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GoogleBigQueryV2DatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "GoogleBigQueryV2Object". + :vartype type: str + """ + + type_properties: Optional["_models.GoogleBigQueryV2DatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["GoogleBigQueryV2Object"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"GoogleBigQueryV2Object\".""" + + __flattened_items = ["table", "dataset"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GoogleBigQueryV2DatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class GoogleBigQueryV2Source(TabularSource, discriminator="GoogleBigQueryV2Source"): + """A copy activity Google BigQuery service source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "GoogleBigQueryV2Source". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["GoogleBigQueryV2Source"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"GoogleBigQueryV2Source\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "GoogleBigQueryV2Source" # type: ignore + + +class GoogleCloudStorageLinkedService(LinkedService, discriminator="GoogleCloudStorage"): + """Linked service for Google Cloud Storage. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Google Cloud Storage linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.GoogleCloudStorageLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "GoogleCloudStorage". + :vartype type: str + """ + + type_properties: "_models.GoogleCloudStorageLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Google Cloud Storage linked service properties. Required.""" + type: Literal["GoogleCloudStorage"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"GoogleCloudStorage\".""" + + __flattened_items = ["access_key_id", "secret_access_key", "service_url", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.GoogleCloudStorageLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class GoogleCloudStorageLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Google Cloud Storage linked service properties. + + :ivar access_key_id: The access key identifier of the Google Cloud Storage Identity and Access + Management (IAM) user. Type: string (or Expression with resultType string). + :vartype access_key_id: any + :ivar secret_access_key: The secret access key of the Google Cloud Storage Identity and Access + Management (IAM) user. + :vartype secret_access_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_url: This value specifies the endpoint to access with the Google Cloud Storage + Connector. This is an optional property; change it only if you want to try a different service + endpoint or want to switch between https and http. Type: string (or Expression with resultType + string). + :vartype service_url: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + access_key_id: Optional[Any] = rest_field( + name="accessKeyId", visibility=["read", "create", "update", "delete", "query"] + ) + """The access key identifier of the Google Cloud Storage Identity and Access Management (IAM) + user. Type: string (or Expression with resultType string).""" + secret_access_key: Optional["_models.SecretBase"] = rest_field( + name="secretAccessKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The secret access key of the Google Cloud Storage Identity and Access Management (IAM) user.""" + service_url: Optional[Any] = rest_field( + name="serviceUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """This value specifies the endpoint to access with the Google Cloud Storage Connector. This is an + optional property; change it only if you want to try a different service endpoint or want to + switch between https and http. Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + access_key_id: Optional[Any] = None, + secret_access_key: Optional["_models.SecretBase"] = None, + service_url: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GoogleCloudStorageLocation(DatasetLocation, discriminator="GoogleCloudStorageLocation"): + """The location of Google Cloud Storage dataset. + + :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with + resultType string). + :vartype folder_path: any + :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType + string). + :vartype file_name: any + :ivar bucket_name: Specify the bucketName of Google Cloud Storage. Type: string (or Expression + with resultType string). + :vartype bucket_name: any + :ivar version: Specify the version of Google Cloud Storage. Type: string (or Expression with + resultType string). + :vartype version: any + :ivar type: Type of dataset storage location. Required. Default value is + "GoogleCloudStorageLocation". + :vartype type: str + """ + + bucket_name: Optional[Any] = rest_field( + name="bucketName", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the bucketName of Google Cloud Storage. Type: string (or Expression with resultType + string).""" + version: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specify the version of Google Cloud Storage. Type: string (or Expression with resultType + string).""" + type: Literal["GoogleCloudStorageLocation"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage location. Required. Default value is \"GoogleCloudStorageLocation\".""" + + @overload + def __init__( + self, + *, + folder_path: Optional[Any] = None, + file_name: Optional[Any] = None, + bucket_name: Optional[Any] = None, + version: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "GoogleCloudStorageLocation" # type: ignore + + +class GoogleCloudStorageReadSettings(StoreReadSettings, discriminator="GoogleCloudStorageReadSettings"): + """Google Cloud Storage read settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar recursive: If true, files under the folder path will be read recursively. Default is + true. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar wildcard_folder_path: Google Cloud Storage wildcardFolderPath. Type: string (or + Expression with resultType string). + :vartype wildcard_folder_path: any + :ivar wildcard_file_name: Google Cloud Storage wildcardFileName. Type: string (or Expression + with resultType string). + :vartype wildcard_file_name: any + :ivar prefix: The prefix filter for the Google Cloud Storage object name. Type: string (or + Expression with resultType string). + :vartype prefix: any + :ivar file_list_path: Point to a text file that lists each file (relative path to the path + configured in the dataset) that you want to copy. Type: string (or Expression with resultType + string). + :vartype file_list_path: any + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: any + :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: + string (or Expression with resultType string). + :vartype partition_root_path: any + :ivar delete_files_after_completion: Indicates whether the source files need to be deleted + after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + :vartype delete_files_after_completion: any + :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or + Expression with resultType string). + :vartype modified_datetime_start: any + :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression + with resultType string). + :vartype modified_datetime_end: any + :ivar type: The read setting type. Required. Default value is "GoogleCloudStorageReadSettings". + :vartype type: str + """ + + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files under the folder path will be read recursively. Default is true. Type: boolean + (or Expression with resultType boolean).""" + wildcard_folder_path: Optional[Any] = rest_field( + name="wildcardFolderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Google Cloud Storage wildcardFolderPath. Type: string (or Expression with resultType string).""" + wildcard_file_name: Optional[Any] = rest_field( + name="wildcardFileName", visibility=["read", "create", "update", "delete", "query"] + ) + """Google Cloud Storage wildcardFileName. Type: string (or Expression with resultType string).""" + prefix: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The prefix filter for the Google Cloud Storage object name. Type: string (or Expression with + resultType string).""" + file_list_path: Optional[Any] = rest_field( + name="fileListPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Point to a text file that lists each file (relative path to the path configured in the dataset) + that you want to copy. Type: string (or Expression with resultType string).""" + enable_partition_discovery: Optional[Any] = rest_field( + name="enablePartitionDiscovery", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType + boolean).""" + partition_root_path: Optional[Any] = rest_field( + name="partitionRootPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the root path where partition discovery starts from. Type: string (or Expression with + resultType string).""" + delete_files_after_completion: Optional[Any] = rest_field( + name="deleteFilesAfterCompletion", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the source files need to be deleted after copy completion. Default is false. + Type: boolean (or Expression with resultType boolean).""" + modified_datetime_start: Optional[Any] = rest_field( + name="modifiedDatetimeStart", visibility=["read", "create", "update", "delete", "query"] + ) + """The start of file's modified datetime. Type: string (or Expression with resultType string).""" + modified_datetime_end: Optional[Any] = rest_field( + name="modifiedDatetimeEnd", visibility=["read", "create", "update", "delete", "query"] + ) + """The end of file's modified datetime. Type: string (or Expression with resultType string).""" + type: Literal["GoogleCloudStorageReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"GoogleCloudStorageReadSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + recursive: Optional[Any] = None, + wildcard_folder_path: Optional[Any] = None, + wildcard_file_name: Optional[Any] = None, + prefix: Optional[Any] = None, + file_list_path: Optional[Any] = None, + enable_partition_discovery: Optional[Any] = None, + partition_root_path: Optional[Any] = None, + delete_files_after_completion: Optional[Any] = None, + modified_datetime_start: Optional[Any] = None, + modified_datetime_end: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "GoogleCloudStorageReadSettings" # type: ignore + + +class GoogleSheetsLinkedService(LinkedService, discriminator="GoogleSheets"): + """Linked service for GoogleSheets. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: GoogleSheets linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.GoogleSheetsLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "GoogleSheets". + :vartype type: str + """ + + type_properties: "_models.GoogleSheetsLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """GoogleSheets linked service properties. Required.""" + type: Literal["GoogleSheets"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"GoogleSheets\".""" + + __flattened_items = ["api_token", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.GoogleSheetsLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class GoogleSheetsLinkedServiceTypeProperties(_Model): + """GoogleSheets linked service type properties. + + :ivar api_token: The api token for the GoogleSheets source. Required. + :vartype api_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + api_token: "_models.SecretBase" = rest_field( + name="apiToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The api token for the GoogleSheets source. Required.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + api_token: "_models.SecretBase", + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GreenplumDatasetTypeProperties(_Model): + """Greenplum Dataset Properties. + + :ivar table_name: This property will be retired. Please consider using schema + table + properties instead. + :vartype table_name: any + :ivar table: The table name of Greenplum. Type: string (or Expression with resultType string). + :vartype table: any + :ivar schema: The schema name of Greenplum. Type: string (or Expression with resultType + string). + :vartype schema: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property will be retired. Please consider using schema + table properties instead.""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of Greenplum. Type: string (or Expression with resultType string).""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of Greenplum. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + table: Optional[Any] = None, + schema: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GreenplumLinkedService(LinkedService, discriminator="Greenplum"): + """Greenplum Database linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Greenplum Database linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.GreenplumLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Greenplum". + :vartype type: str + """ + + type_properties: "_models.GreenplumLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Greenplum Database linked service properties. Required.""" + type: Literal["Greenplum"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Greenplum\".""" + + __flattened_items = [ + "connection_string", + "pwd", + "encrypted_credential", + "authentication_type", + "host", + "port", + "username", + "database", + "ssl_mode", + "connection_timeout", + "command_timeout", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.GreenplumLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class GreenplumLinkedServiceTypeProperties(_Model): + """Greenplum Database linked service properties. + + :ivar connection_string: An ODBC connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar pwd: The Azure key vault secret reference of password in connection string. + :vartype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar authentication_type: The authentication type to use. Type: string. Only used for V2. + "Basic" + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.GreenplumAuthenticationType + :ivar host: Host name for connection. Type: string. Only used for V2. + :vartype host: any + :ivar port: The port for the connection. Type: integer. Only used for V2. + :vartype port: any + :ivar username: Username for authentication. Type: string. Only used for V2. + :vartype username: any + :ivar database: Database name for connection. Type: string. Only used for V2. + :vartype database: any + :ivar ssl_mode: SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: + require, 4: verify-ca, 5: verify-full. Type: integer. Only used for V2. + :vartype ssl_mode: any + :ivar connection_timeout: The time to wait (in seconds) while trying to establish a connection + before terminating the attempt and generating an error. Type: integer. Only used for V2. + :vartype connection_timeout: any + :ivar command_timeout: The time to wait (in seconds) while trying to execute a command before + terminating the attempt and generating an error. Set to zero for infinity. Type: integer. Only + used for V2. + :vartype command_timeout: any + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference.""" + pwd: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of password in connection string.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + authentication_type: Optional[Union[str, "_models.GreenplumAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to use. Type: string. Only used for V2. \"Basic\"""" + host: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Host name for connection. Type: string. Only used for V2.""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The port for the connection. Type: integer. Only used for V2.""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Username for authentication. Type: string. Only used for V2.""" + database: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database name for connection. Type: string. Only used for V2.""" + ssl_mode: Optional[Any] = rest_field(name="sslMode", visibility=["read", "create", "update", "delete", "query"]) + """SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: + verify-ca, 5: verify-full. Type: integer. Only used for V2.""" + connection_timeout: Optional[Any] = rest_field( + name="connectionTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """The time to wait (in seconds) while trying to establish a connection before terminating the + attempt and generating an error. Type: integer. Only used for V2.""" + command_timeout: Optional[Any] = rest_field( + name="commandTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """The time to wait (in seconds) while trying to execute a command before terminating the attempt + and generating an error. Set to zero for infinity. Type: integer. Only used for V2.""" + + @overload + def __init__( + self, + *, + connection_string: Optional[Any] = None, + pwd: Optional["_models.AzureKeyVaultSecretReference"] = None, + encrypted_credential: Optional[str] = None, + authentication_type: Optional[Union[str, "_models.GreenplumAuthenticationType"]] = None, + host: Optional[Any] = None, + port: Optional[Any] = None, + username: Optional[Any] = None, + database: Optional[Any] = None, + ssl_mode: Optional[Any] = None, + connection_timeout: Optional[Any] = None, + command_timeout: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GreenplumSource(TabularSource, discriminator="GreenplumSource"): + """A copy activity Greenplum Database source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "GreenplumSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["GreenplumSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"GreenplumSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "GreenplumSource" # type: ignore + + +class GreenplumTableDataset(Dataset, discriminator="GreenplumTable"): + """Greenplum Database dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GreenplumDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "GreenplumTable". + :vartype type: str + """ + + type_properties: Optional["_models.GreenplumDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["GreenplumTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"GreenplumTable\".""" + + __flattened_items = ["table_name", "table", "schema"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GreenplumDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class HBaseLinkedService(LinkedService, discriminator="HBase"): + """HBase server linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: HBase server linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.HBaseLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "HBase". + :vartype type: str + """ + + type_properties: "_models.HBaseLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """HBase server linked service properties. Required.""" + type: Literal["HBase"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"HBase\".""" + + __flattened_items = [ + "host", + "port", + "http_path", + "authentication_type", + "username", + "password", + "enable_ssl", + "trusted_cert_path", + "allow_host_name_cn_mismatch", + "allow_self_signed_server_cert", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.HBaseLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class HBaseLinkedServiceTypeProperties(_Model): + """HBase server linked service properties. + + :ivar host: The IP address or host name of the HBase server. (i.e. 192.168.222.160). Required. + :vartype host: any + :ivar port: The TCP port that the HBase instance uses to listen for client connections. The + default value is 9090. + :vartype port: any + :ivar http_path: The partial URL corresponding to the HBase server. (i.e. + /gateway/sandbox/hbase/version). + :vartype http_path: any + :ivar authentication_type: The authentication mechanism to use to connect to the HBase server. + Required. Known values are: "Anonymous" and "Basic". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.HBaseAuthenticationType + :ivar username: The user name used to connect to the HBase instance. + :vartype username: any + :ivar password: The password corresponding to the user name. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar enable_ssl: Specifies whether the connections to the server are encrypted using SSL. The + default value is false. + :vartype enable_ssl: any + :ivar trusted_cert_path: The full path of the .pem file containing trusted CA certificates for + verifying the server when connecting over SSL. This property can only be set when using SSL on + self-hosted IR. The default value is the cacerts.pem file installed with the IR. + :vartype trusted_cert_path: any + :ivar allow_host_name_cn_mismatch: Specifies whether to require a CA-issued SSL certificate + name to match the host name of the server when connecting over SSL. The default value is false. + :vartype allow_host_name_cn_mismatch: any + :ivar allow_self_signed_server_cert: Specifies whether to allow self-signed certificates from + the server. The default value is false. + :vartype allow_self_signed_server_cert: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + host: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The IP address or host name of the HBase server. (i.e. 192.168.222.160). Required.""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The TCP port that the HBase instance uses to listen for client connections. The default value + is 9090.""" + http_path: Optional[Any] = rest_field(name="httpPath", visibility=["read", "create", "update", "delete", "query"]) + """The partial URL corresponding to the HBase server. (i.e. /gateway/sandbox/hbase/version).""" + authentication_type: Union[str, "_models.HBaseAuthenticationType"] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication mechanism to use to connect to the HBase server. Required. Known values are: + \"Anonymous\" and \"Basic\".""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The user name used to connect to the HBase instance.""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password corresponding to the user name.""" + enable_ssl: Optional[Any] = rest_field(name="enableSsl", visibility=["read", "create", "update", "delete", "query"]) + """Specifies whether the connections to the server are encrypted using SSL. The default value is + false.""" + trusted_cert_path: Optional[Any] = rest_field( + name="trustedCertPath", visibility=["read", "create", "update", "delete", "query"] + ) + """The full path of the .pem file containing trusted CA certificates for verifying the server when + connecting over SSL. This property can only be set when using SSL on self-hosted IR. The + default value is the cacerts.pem file installed with the IR.""" + allow_host_name_cn_mismatch: Optional[Any] = rest_field( + name="allowHostNameCNMismatch", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require a CA-issued SSL certificate name to match the host name of the + server when connecting over SSL. The default value is false.""" + allow_self_signed_server_cert: Optional[Any] = rest_field( + name="allowSelfSignedServerCert", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to allow self-signed certificates from the server. The default value is + false.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + host: Any, + authentication_type: Union[str, "_models.HBaseAuthenticationType"], + port: Optional[Any] = None, + http_path: Optional[Any] = None, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + enable_ssl: Optional[Any] = None, + trusted_cert_path: Optional[Any] = None, + allow_host_name_cn_mismatch: Optional[Any] = None, + allow_self_signed_server_cert: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HBaseObjectDataset(Dataset, discriminator="HBaseObject"): + """HBase server dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "HBaseObject". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["HBaseObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"HBaseObject\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class HBaseSource(TabularSource, discriminator="HBaseSource"): + """A copy activity HBase server source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "HBaseSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["HBaseSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"HBaseSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "HBaseSource" # type: ignore + + +class HdfsLinkedService(LinkedService, discriminator="Hdfs"): + """Hadoop Distributed File System (HDFS) linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: HDFS linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.HdfsLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Hdfs". + :vartype type: str + """ + + type_properties: "_models.HdfsLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """HDFS linked service properties. Required.""" + type: Literal["Hdfs"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Hdfs\".""" + + __flattened_items = ["url", "authentication_type", "encrypted_credential", "user_name", "password"] + + @overload + def __init__( + self, + *, + type_properties: "_models.HdfsLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class HdfsLinkedServiceTypeProperties(_Model): + """HDFS linked service properties. + + :ivar url: The URL of the HDFS service endpoint, e.g. `http://myhostname:50070/webhdfs/v1 + `_ . Type: string (or Expression with resultType string). + Required. + :vartype url: any + :ivar authentication_type: Type of authentication used to connect to the HDFS. Possible values + are: Anonymous and Windows. Type: string (or Expression with resultType string). + :vartype authentication_type: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar user_name: User name for Windows authentication. Type: string (or Expression with + resultType string). + :vartype user_name: any + :ivar password: Password for Windows authentication. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + """ + + url: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The URL of the HDFS service endpoint, e.g. `http://myhostname:50070/webhdfs/v1 + `_ . Type: string (or Expression with resultType string). + Required.""" + authentication_type: Optional[Any] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """Type of authentication used to connect to the HDFS. Possible values are: Anonymous and Windows. + Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """User name for Windows authentication. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password for Windows authentication.""" + + @overload + def __init__( + self, + *, + url: Any, + authentication_type: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HdfsLocation(DatasetLocation, discriminator="HdfsLocation"): + """The location of HDFS. + + :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with + resultType string). + :vartype folder_path: any + :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType + string). + :vartype file_name: any + :ivar type: Type of dataset storage location. Required. Default value is "HdfsLocation". + :vartype type: str + """ + + type: Literal["HdfsLocation"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage location. Required. Default value is \"HdfsLocation\".""" + + @overload + def __init__( + self, + *, + folder_path: Optional[Any] = None, + file_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "HdfsLocation" # type: ignore + + +class HdfsReadSettings(StoreReadSettings, discriminator="HdfsReadSettings"): + """HDFS read settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar recursive: If true, files under the folder path will be read recursively. Default is + true. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar wildcard_folder_path: HDFS wildcardFolderPath. Type: string (or Expression with + resultType string). + :vartype wildcard_folder_path: any + :ivar wildcard_file_name: HDFS wildcardFileName. Type: string (or Expression with resultType + string). + :vartype wildcard_file_name: any + :ivar file_list_path: Point to a text file that lists each file (relative path to the path + configured in the dataset) that you want to copy. Type: string (or Expression with resultType + string). + :vartype file_list_path: any + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: any + :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: + string (or Expression with resultType string). + :vartype partition_root_path: any + :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or + Expression with resultType string). + :vartype modified_datetime_start: any + :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression + with resultType string). + :vartype modified_datetime_end: any + :ivar distcp_settings: Specifies Distcp-related settings. + :vartype distcp_settings: ~azure.mgmt.datafactory.models.DistcpSettings + :ivar delete_files_after_completion: Indicates whether the source files need to be deleted + after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + :vartype delete_files_after_completion: any + :ivar type: The read setting type. Required. Default value is "HdfsReadSettings". + :vartype type: str + """ + + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files under the folder path will be read recursively. Default is true. Type: boolean + (or Expression with resultType boolean).""" + wildcard_folder_path: Optional[Any] = rest_field( + name="wildcardFolderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """HDFS wildcardFolderPath. Type: string (or Expression with resultType string).""" + wildcard_file_name: Optional[Any] = rest_field( + name="wildcardFileName", visibility=["read", "create", "update", "delete", "query"] + ) + """HDFS wildcardFileName. Type: string (or Expression with resultType string).""" + file_list_path: Optional[Any] = rest_field( + name="fileListPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Point to a text file that lists each file (relative path to the path configured in the dataset) + that you want to copy. Type: string (or Expression with resultType string).""" + enable_partition_discovery: Optional[Any] = rest_field( + name="enablePartitionDiscovery", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType + boolean).""" + partition_root_path: Optional[Any] = rest_field( + name="partitionRootPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the root path where partition discovery starts from. Type: string (or Expression with + resultType string).""" + modified_datetime_start: Optional[Any] = rest_field( + name="modifiedDatetimeStart", visibility=["read", "create", "update", "delete", "query"] + ) + """The start of file's modified datetime. Type: string (or Expression with resultType string).""" + modified_datetime_end: Optional[Any] = rest_field( + name="modifiedDatetimeEnd", visibility=["read", "create", "update", "delete", "query"] + ) + """The end of file's modified datetime. Type: string (or Expression with resultType string).""" + distcp_settings: Optional["_models.DistcpSettings"] = rest_field( + name="distcpSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies Distcp-related settings.""" + delete_files_after_completion: Optional[Any] = rest_field( + name="deleteFilesAfterCompletion", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the source files need to be deleted after copy completion. Default is false. + Type: boolean (or Expression with resultType boolean).""" + type: Literal["HdfsReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"HdfsReadSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + recursive: Optional[Any] = None, + wildcard_folder_path: Optional[Any] = None, + wildcard_file_name: Optional[Any] = None, + file_list_path: Optional[Any] = None, + enable_partition_discovery: Optional[Any] = None, + partition_root_path: Optional[Any] = None, + modified_datetime_start: Optional[Any] = None, + modified_datetime_end: Optional[Any] = None, + distcp_settings: Optional["_models.DistcpSettings"] = None, + delete_files_after_completion: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "HdfsReadSettings" # type: ignore + + +class HdfsSource(CopySource, discriminator="HdfsSource"): + """A copy activity HDFS source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar recursive: If true, files under the folder path will be read recursively. Default is + true. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar distcp_settings: Specifies Distcp-related settings. + :vartype distcp_settings: ~azure.mgmt.datafactory.models.DistcpSettings + :ivar type: Copy source type. Required. Default value is "HdfsSource". + :vartype type: str + """ + + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files under the folder path will be read recursively. Default is true. Type: boolean + (or Expression with resultType boolean).""" + distcp_settings: Optional["_models.DistcpSettings"] = rest_field( + name="distcpSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies Distcp-related settings.""" + type: Literal["HdfsSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"HdfsSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + recursive: Optional[Any] = None, + distcp_settings: Optional["_models.DistcpSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "HdfsSource" # type: ignore + + +class HDInsightHiveActivity(ExecutionActivity, discriminator="HDInsightHive"): + """HDInsight Hive activity type. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: HDInsight Hive activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.HDInsightHiveActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "HDInsightHive". + :vartype type: str + """ + + type_properties: "_models.HDInsightHiveActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """HDInsight Hive activity properties. Required.""" + type: Literal["HDInsightHive"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"HDInsightHive\".""" + + __flattened_items = [ + "storage_linked_services", + "arguments", + "get_debug_info", + "script_path", + "script_linked_service", + "defines", + "variables", + "query_timeout", + ] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.HDInsightHiveActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class HDInsightHiveActivityTypeProperties(_Model): + """HDInsight Hive activity properties. + + :ivar storage_linked_services: Storage linked service references. + :vartype storage_linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceReference] + :ivar arguments: User specified arguments to HDInsightActivity. + :vartype arguments: list[any] + :ivar get_debug_info: Debug info option. Known values are: "None", "Always", and "Failure". + :vartype get_debug_info: str or ~azure.mgmt.datafactory.models.HDInsightActivityDebugInfoOption + :ivar script_path: Script path. Type: string (or Expression with resultType string). + :vartype script_path: any + :ivar script_linked_service: Script linked service reference. + :vartype script_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar defines: Allows user to specify defines for Hive job request. + :vartype defines: dict[str, any] + :ivar variables: User specified arguments under hivevar namespace. + :vartype variables: dict[str, any] + :ivar query_timeout: Query timeout value (in minutes). Effective when the HDInsight cluster is + with ESP (Enterprise Security Package). + :vartype query_timeout: int + """ + + storage_linked_services: Optional[list["_models.LinkedServiceReference"]] = rest_field( + name="storageLinkedServices", visibility=["read", "create", "update", "delete", "query"] + ) + """Storage linked service references.""" + arguments: Optional[list[Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """User specified arguments to HDInsightActivity.""" + get_debug_info: Optional[Union[str, "_models.HDInsightActivityDebugInfoOption"]] = rest_field( + name="getDebugInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Debug info option. Known values are: \"None\", \"Always\", and \"Failure\".""" + script_path: Optional[Any] = rest_field( + name="scriptPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Script path. Type: string (or Expression with resultType string).""" + script_linked_service: Optional["_models.LinkedServiceReference"] = rest_field( + name="scriptLinkedService", visibility=["read", "create", "update", "delete", "query"] + ) + """Script linked service reference.""" + defines: Optional[dict[str, Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Allows user to specify defines for Hive job request.""" + variables: Optional[dict[str, Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """User specified arguments under hivevar namespace.""" + query_timeout: Optional[int] = rest_field( + name="queryTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """Query timeout value (in minutes). Effective when the HDInsight cluster is with ESP (Enterprise + Security Package).""" + + @overload + def __init__( + self, + *, + storage_linked_services: Optional[list["_models.LinkedServiceReference"]] = None, + arguments: Optional[list[Any]] = None, + get_debug_info: Optional[Union[str, "_models.HDInsightActivityDebugInfoOption"]] = None, + script_path: Optional[Any] = None, + script_linked_service: Optional["_models.LinkedServiceReference"] = None, + defines: Optional[dict[str, Any]] = None, + variables: Optional[dict[str, Any]] = None, + query_timeout: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HDInsightLinkedService(LinkedService, discriminator="HDInsight"): + """HDInsight linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: HDInsight linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.HDInsightLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "HDInsight". + :vartype type: str + """ + + type_properties: "_models.HDInsightLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """HDInsight linked service properties. Required.""" + type: Literal["HDInsight"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"HDInsight\".""" + + __flattened_items = [ + "cluster_uri", + "cluster_auth_type", + "user_name", + "password", + "linked_service_name", + "hcatalog_linked_service_name", + "encrypted_credential", + "is_esp_enabled", + "file_system", + "credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.HDInsightLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class HDInsightLinkedServiceTypeProperties(_Model): + """HDInsight linked service properties. + + :ivar cluster_uri: HDInsight cluster URI. Type: string (or Expression with resultType string). + Required. + :vartype cluster_uri: any + :ivar cluster_auth_type: HDInsight cluster authentication type. Known values are: "BasicAuth", + "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". + :vartype cluster_auth_type: str or + ~azure.mgmt.datafactory.models.HDInsightClusterAuthenticationType + :ivar user_name: HDInsight cluster user name. Type: string (or Expression with resultType + string). + :vartype user_name: any + :ivar password: HDInsight cluster password. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar linked_service_name: The Azure Storage linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar hcatalog_linked_service_name: A reference to the Azure SQL linked service that points to + the HCatalog database. + :vartype hcatalog_linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar is_esp_enabled: Specify if the HDInsight is created with ESP (Enterprise Security + Package). Type: Boolean. + :vartype is_esp_enabled: any + :ivar file_system: Specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. + Type: string (or Expression with resultType string). + :vartype file_system: any + :ivar credential: The credential reference containing MI authentication information for the + HDInsight cluster. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + cluster_uri: Any = rest_field(name="clusterUri", visibility=["read", "create", "update", "delete", "query"]) + """HDInsight cluster URI. Type: string (or Expression with resultType string). Required.""" + cluster_auth_type: Optional[Union[str, "_models.HDInsightClusterAuthenticationType"]] = rest_field( + name="clusterAuthType", visibility=["read", "create", "update", "delete", "query"] + ) + """HDInsight cluster authentication type. Known values are: \"BasicAuth\", + \"SystemAssignedManagedIdentity\", and \"UserAssignedManagedIdentity\".""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """HDInsight cluster user name. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """HDInsight cluster password.""" + linked_service_name: Optional["_models.LinkedServiceReference"] = rest_field( + name="linkedServiceName", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure Storage linked service reference.""" + hcatalog_linked_service_name: Optional["_models.LinkedServiceReference"] = rest_field( + name="hcatalogLinkedServiceName", visibility=["read", "create", "update", "delete", "query"] + ) + """A reference to the Azure SQL linked service that points to the HCatalog database.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + is_esp_enabled: Optional[Any] = rest_field( + name="isEspEnabled", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify if the HDInsight is created with ESP (Enterprise Security Package). Type: Boolean.""" + file_system: Optional[Any] = rest_field( + name="fileSystem", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. Type: string (or + Expression with resultType string).""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing MI authentication information for the HDInsight cluster.""" + + @overload + def __init__( + self, + *, + cluster_uri: Any, + cluster_auth_type: Optional[Union[str, "_models.HDInsightClusterAuthenticationType"]] = None, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + hcatalog_linked_service_name: Optional["_models.LinkedServiceReference"] = None, + encrypted_credential: Optional[str] = None, + is_esp_enabled: Optional[Any] = None, + file_system: Optional[Any] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HDInsightMapReduceActivity(ExecutionActivity, discriminator="HDInsightMapReduce"): + """HDInsight MapReduce activity type. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: HDInsight MapReduce activity properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.HDInsightMapReduceActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "HDInsightMapReduce". + :vartype type: str + """ + + type_properties: "_models.HDInsightMapReduceActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """HDInsight MapReduce activity properties. Required.""" + type: Literal["HDInsightMapReduce"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"HDInsightMapReduce\".""" + + __flattened_items = [ + "storage_linked_services", + "arguments", + "get_debug_info", + "class_name", + "jar_file_path", + "jar_linked_service", + "jar_libs", + "defines", + ] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.HDInsightMapReduceActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class HDInsightMapReduceActivityTypeProperties(_Model): + """HDInsight MapReduce activity properties. + + :ivar storage_linked_services: Storage linked service references. + :vartype storage_linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceReference] + :ivar arguments: User specified arguments to HDInsightActivity. + :vartype arguments: list[any] + :ivar get_debug_info: Debug info option. Known values are: "None", "Always", and "Failure". + :vartype get_debug_info: str or ~azure.mgmt.datafactory.models.HDInsightActivityDebugInfoOption + :ivar class_name: Class name. Type: string (or Expression with resultType string). Required. + :vartype class_name: any + :ivar jar_file_path: Jar path. Type: string (or Expression with resultType string). Required. + :vartype jar_file_path: any + :ivar jar_linked_service: Jar linked service reference. + :vartype jar_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar jar_libs: Jar libs. + :vartype jar_libs: list[any] + :ivar defines: Allows user to specify defines for the MapReduce job request. + :vartype defines: dict[str, any] + """ + + storage_linked_services: Optional[list["_models.LinkedServiceReference"]] = rest_field( + name="storageLinkedServices", visibility=["read", "create", "update", "delete", "query"] + ) + """Storage linked service references.""" + arguments: Optional[list[Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """User specified arguments to HDInsightActivity.""" + get_debug_info: Optional[Union[str, "_models.HDInsightActivityDebugInfoOption"]] = rest_field( + name="getDebugInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Debug info option. Known values are: \"None\", \"Always\", and \"Failure\".""" + class_name: Any = rest_field(name="className", visibility=["read", "create", "update", "delete", "query"]) + """Class name. Type: string (or Expression with resultType string). Required.""" + jar_file_path: Any = rest_field(name="jarFilePath", visibility=["read", "create", "update", "delete", "query"]) + """Jar path. Type: string (or Expression with resultType string). Required.""" + jar_linked_service: Optional["_models.LinkedServiceReference"] = rest_field( + name="jarLinkedService", visibility=["read", "create", "update", "delete", "query"] + ) + """Jar linked service reference.""" + jar_libs: Optional[list[Any]] = rest_field( + name="jarLibs", visibility=["read", "create", "update", "delete", "query"] + ) + """Jar libs.""" + defines: Optional[dict[str, Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Allows user to specify defines for the MapReduce job request.""" + + @overload + def __init__( + self, + *, + class_name: Any, + jar_file_path: Any, + storage_linked_services: Optional[list["_models.LinkedServiceReference"]] = None, + arguments: Optional[list[Any]] = None, + get_debug_info: Optional[Union[str, "_models.HDInsightActivityDebugInfoOption"]] = None, + jar_linked_service: Optional["_models.LinkedServiceReference"] = None, + jar_libs: Optional[list[Any]] = None, + defines: Optional[dict[str, Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HDInsightOnDemandLinkedService(LinkedService, discriminator="HDInsightOnDemand"): + """HDInsight ondemand linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: HDInsight ondemand linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.HDInsightOnDemandLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "HDInsightOnDemand". + :vartype type: str + """ + + type_properties: "_models.HDInsightOnDemandLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """HDInsight ondemand linked service properties. Required.""" + type: Literal["HDInsightOnDemand"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"HDInsightOnDemand\".""" + + __flattened_items = [ + "cluster_size", + "time_to_live", + "version", + "linked_service_name", + "host_subscription_id", + "service_principal_id", + "service_principal_key", + "tenant", + "cluster_resource_group", + "cluster_resource_group_auth_type", + "cluster_name_prefix", + "cluster_user_name", + "cluster_password", + "cluster_ssh_user_name", + "cluster_ssh_password", + "additional_linked_service_names", + "hcatalog_linked_service_name", + "cluster_type", + "spark_version", + "core_configuration", + "h_base_configuration", + "hdfs_configuration", + "hive_configuration", + "map_reduce_configuration", + "oozie_configuration", + "storm_configuration", + "yarn_configuration", + "encrypted_credential", + "head_node_size", + "data_node_size", + "zookeeper_node_size", + "script_actions", + "virtual_network_id", + "subnet_name", + "credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.HDInsightOnDemandLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class HDInsightOnDemandLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """HDInsight ondemand linked service properties. + + :ivar cluster_size: Number of worker/data nodes in the cluster. Suggestion value: 4. Type: int + (or Expression with resultType int). Required. + :vartype cluster_size: any + :ivar time_to_live: The allowed idle time for the on-demand HDInsight cluster. Specifies how + long the on-demand HDInsight cluster stays alive after completion of an activity run if there + are no other active jobs in the cluster. The minimum value is 5 mins. Type: string (or + Expression with resultType string). Required. + :vartype time_to_live: any + :ivar version: Version of the HDInsight cluster.  Type: string (or Expression with resultType + string). Required. + :vartype version: any + :ivar linked_service_name: Azure Storage linked service to be used by the on-demand cluster for + storing and processing data. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar host_subscription_id: The customer’s subscription to host the cluster. Type: string (or + Expression with resultType string). Required. + :vartype host_subscription_id: any + :ivar service_principal_id: The service principal id for the hostSubscriptionId. Type: string + (or Expression with resultType string). + :vartype service_principal_id: any + :ivar service_principal_key: The key for the service principal id. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar tenant: The Tenant id/name to which the service principal belongs. Type: string (or + Expression with resultType string). Required. + :vartype tenant: any + :ivar cluster_resource_group: The resource group where the cluster belongs. Type: string (or + Expression with resultType string). Required. + :vartype cluster_resource_group: any + :ivar cluster_resource_group_auth_type: HDInsight On-demand cluster resource group + authentication type. Known values are: "ServicePrincipalKey", "SystemAssignedManagedIdentity", + and "UserAssignedManagedIdentity". + :vartype cluster_resource_group_auth_type: str or + ~azure.mgmt.datafactory.models.HDInsightOndemandClusterResourceGroupAuthenticationType + :ivar cluster_name_prefix: The prefix of cluster name, postfix will be distinct with timestamp. + Type: string (or Expression with resultType string). + :vartype cluster_name_prefix: any + :ivar cluster_user_name: The username to access the cluster. Type: string (or Expression with + resultType string). + :vartype cluster_user_name: any + :ivar cluster_password: The password to access the cluster. + :vartype cluster_password: ~azure.mgmt.datafactory.models.SecretBase + :ivar cluster_ssh_user_name: The username to SSH remotely connect to cluster’s node (for + Linux). Type: string (or Expression with resultType string). + :vartype cluster_ssh_user_name: any + :ivar cluster_ssh_password: The password to SSH remotely connect cluster’s node (for Linux). + :vartype cluster_ssh_password: ~azure.mgmt.datafactory.models.SecretBase + :ivar additional_linked_service_names: Specifies additional storage accounts for the HDInsight + linked service so that the Data Factory service can register them on your behalf. + :vartype additional_linked_service_names: + list[~azure.mgmt.datafactory.models.LinkedServiceReference] + :ivar hcatalog_linked_service_name: The name of Azure SQL linked service that point to the + HCatalog database. The on-demand HDInsight cluster is created by using the Azure SQL database + as the metastore. + :vartype hcatalog_linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar cluster_type: The cluster type. Type: string (or Expression with resultType string). + :vartype cluster_type: any + :ivar spark_version: The version of spark if the cluster type is 'spark'. Type: string (or + Expression with resultType string). + :vartype spark_version: any + :ivar core_configuration: Specifies the core configuration parameters (as in core-site.xml) for + the HDInsight cluster to be created. + :vartype core_configuration: any + :ivar h_base_configuration: Specifies the HBase configuration parameters (hbase-site.xml) for + the HDInsight cluster. + :vartype h_base_configuration: any + :ivar hdfs_configuration: Specifies the HDFS configuration parameters (hdfs-site.xml) for the + HDInsight cluster. + :vartype hdfs_configuration: any + :ivar hive_configuration: Specifies the hive configuration parameters (hive-site.xml) for the + HDInsight cluster. + :vartype hive_configuration: any + :ivar map_reduce_configuration: Specifies the MapReduce configuration parameters + (mapred-site.xml) for the HDInsight cluster. + :vartype map_reduce_configuration: any + :ivar oozie_configuration: Specifies the Oozie configuration parameters (oozie-site.xml) for + the HDInsight cluster. + :vartype oozie_configuration: any + :ivar storm_configuration: Specifies the Storm configuration parameters (storm-site.xml) for + the HDInsight cluster. + :vartype storm_configuration: any + :ivar yarn_configuration: Specifies the Yarn configuration parameters (yarn-site.xml) for the + HDInsight cluster. + :vartype yarn_configuration: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar head_node_size: Specifies the size of the head node for the HDInsight cluster. + :vartype head_node_size: any + :ivar data_node_size: Specifies the size of the data node for the HDInsight cluster. + :vartype data_node_size: any + :ivar zookeeper_node_size: Specifies the size of the Zoo Keeper node for the HDInsight cluster. + :vartype zookeeper_node_size: any + :ivar script_actions: Custom script actions to run on HDI ondemand cluster once it's up. Please + refer to + `https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions + `_. + :vartype script_actions: list[~azure.mgmt.datafactory.models.ScriptAction] + :ivar virtual_network_id: The ARM resource ID for the vNet to which the cluster should be + joined after creation. Type: string (or Expression with resultType string). + :vartype virtual_network_id: any + :ivar subnet_name: The ARM resource ID for the subnet in the vNet. If virtualNetworkId was + specified, then this property is required. Type: string (or Expression with resultType string). + :vartype subnet_name: any + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + cluster_size: Any = rest_field(name="clusterSize", visibility=["read", "create", "update", "delete", "query"]) + """Number of worker/data nodes in the cluster. Suggestion value: 4. Type: int (or Expression with + resultType int). Required.""" + time_to_live: Any = rest_field(name="timeToLive", visibility=["read", "create", "update", "delete", "query"]) + """The allowed idle time for the on-demand HDInsight cluster. Specifies how long the on-demand + HDInsight cluster stays alive after completion of an activity run if there are no other active + jobs in the cluster. The minimum value is 5 mins. Type: string (or Expression with resultType + string). Required.""" + version: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Version of the HDInsight cluster.  Type: string (or Expression with resultType string). + Required.""" + linked_service_name: "_models.LinkedServiceReference" = rest_field( + name="linkedServiceName", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Storage linked service to be used by the on-demand cluster for storing and processing + data. Required.""" + host_subscription_id: Any = rest_field( + name="hostSubscriptionId", visibility=["read", "create", "update", "delete", "query"] + ) + """The customer’s subscription to host the cluster. Type: string (or Expression with resultType + string). Required.""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The service principal id for the hostSubscriptionId. Type: string (or Expression with + resultType string).""" + service_principal_key: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The key for the service principal id.""" + tenant: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Tenant id/name to which the service principal belongs. Type: string (or Expression with + resultType string). Required.""" + cluster_resource_group: Any = rest_field( + name="clusterResourceGroup", visibility=["read", "create", "update", "delete", "query"] + ) + """The resource group where the cluster belongs. Type: string (or Expression with resultType + string). Required.""" + cluster_resource_group_auth_type: Optional[ + Union[str, "_models.HDInsightOndemandClusterResourceGroupAuthenticationType"] + ] = rest_field(name="clusterResourceGroupAuthType", visibility=["read", "create", "update", "delete", "query"]) + """HDInsight On-demand cluster resource group authentication type. Known values are: + \"ServicePrincipalKey\", \"SystemAssignedManagedIdentity\", and + \"UserAssignedManagedIdentity\".""" + cluster_name_prefix: Optional[Any] = rest_field( + name="clusterNamePrefix", visibility=["read", "create", "update", "delete", "query"] + ) + """The prefix of cluster name, postfix will be distinct with timestamp. Type: string (or + Expression with resultType string).""" + cluster_user_name: Optional[Any] = rest_field( + name="clusterUserName", visibility=["read", "create", "update", "delete", "query"] + ) + """The username to access the cluster. Type: string (or Expression with resultType string).""" + cluster_password: Optional["_models.SecretBase"] = rest_field( + name="clusterPassword", visibility=["read", "create", "update", "delete", "query"] + ) + """The password to access the cluster.""" + cluster_ssh_user_name: Optional[Any] = rest_field( + name="clusterSshUserName", visibility=["read", "create", "update", "delete", "query"] + ) + """The username to SSH remotely connect to cluster’s node (for Linux). Type: string (or Expression + with resultType string).""" + cluster_ssh_password: Optional["_models.SecretBase"] = rest_field( + name="clusterSshPassword", visibility=["read", "create", "update", "delete", "query"] + ) + """The password to SSH remotely connect cluster’s node (for Linux).""" + additional_linked_service_names: Optional[list["_models.LinkedServiceReference"]] = rest_field( + name="additionalLinkedServiceNames", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies additional storage accounts for the HDInsight linked service so that the Data Factory + service can register them on your behalf.""" + hcatalog_linked_service_name: Optional["_models.LinkedServiceReference"] = rest_field( + name="hcatalogLinkedServiceName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of Azure SQL linked service that point to the HCatalog database. The on-demand + HDInsight cluster is created by using the Azure SQL database as the metastore.""" + cluster_type: Optional[Any] = rest_field( + name="clusterType", visibility=["read", "create", "update", "delete", "query"] + ) + """The cluster type. Type: string (or Expression with resultType string).""" + spark_version: Optional[Any] = rest_field( + name="sparkVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The version of spark if the cluster type is 'spark'. Type: string (or Expression with + resultType string).""" + core_configuration: Optional[Any] = rest_field( + name="coreConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the core configuration parameters (as in core-site.xml) for the HDInsight cluster to + be created.""" + h_base_configuration: Optional[Any] = rest_field( + name="hBaseConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the HBase configuration parameters (hbase-site.xml) for the HDInsight cluster.""" + hdfs_configuration: Optional[Any] = rest_field( + name="hdfsConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the HDFS configuration parameters (hdfs-site.xml) for the HDInsight cluster.""" + hive_configuration: Optional[Any] = rest_field( + name="hiveConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the hive configuration parameters (hive-site.xml) for the HDInsight cluster.""" + map_reduce_configuration: Optional[Any] = rest_field( + name="mapReduceConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the MapReduce configuration parameters (mapred-site.xml) for the HDInsight cluster.""" + oozie_configuration: Optional[Any] = rest_field( + name="oozieConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the Oozie configuration parameters (oozie-site.xml) for the HDInsight cluster.""" + storm_configuration: Optional[Any] = rest_field( + name="stormConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the Storm configuration parameters (storm-site.xml) for the HDInsight cluster.""" + yarn_configuration: Optional[Any] = rest_field( + name="yarnConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the Yarn configuration parameters (yarn-site.xml) for the HDInsight cluster.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + head_node_size: Optional[Any] = rest_field( + name="headNodeSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the size of the head node for the HDInsight cluster.""" + data_node_size: Optional[Any] = rest_field( + name="dataNodeSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the size of the data node for the HDInsight cluster.""" + zookeeper_node_size: Optional[Any] = rest_field( + name="zookeeperNodeSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the size of the Zoo Keeper node for the HDInsight cluster.""" + script_actions: Optional[list["_models.ScriptAction"]] = rest_field( + name="scriptActions", visibility=["read", "create", "update", "delete", "query"] + ) + """Custom script actions to run on HDI ondemand cluster once it's up. Please refer to + `https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions + `_.""" + virtual_network_id: Optional[Any] = rest_field( + name="virtualNetworkId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ARM resource ID for the vNet to which the cluster should be joined after creation. Type: + string (or Expression with resultType string).""" + subnet_name: Optional[Any] = rest_field( + name="subnetName", visibility=["read", "create", "update", "delete", "query"] + ) + """The ARM resource ID for the subnet in the vNet. If virtualNetworkId was specified, then this + property is required. Type: string (or Expression with resultType string).""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( # pylint: disable=too-many-locals + self, + *, + cluster_size: Any, + time_to_live: Any, + version: Any, + linked_service_name: "_models.LinkedServiceReference", + host_subscription_id: Any, + tenant: Any, + cluster_resource_group: Any, + service_principal_id: Optional[Any] = None, + service_principal_key: Optional["_models.SecretBase"] = None, + cluster_resource_group_auth_type: Optional[ + Union[str, "_models.HDInsightOndemandClusterResourceGroupAuthenticationType"] + ] = None, + cluster_name_prefix: Optional[Any] = None, + cluster_user_name: Optional[Any] = None, + cluster_password: Optional["_models.SecretBase"] = None, + cluster_ssh_user_name: Optional[Any] = None, + cluster_ssh_password: Optional["_models.SecretBase"] = None, + additional_linked_service_names: Optional[list["_models.LinkedServiceReference"]] = None, + hcatalog_linked_service_name: Optional["_models.LinkedServiceReference"] = None, + cluster_type: Optional[Any] = None, + spark_version: Optional[Any] = None, + core_configuration: Optional[Any] = None, + h_base_configuration: Optional[Any] = None, + hdfs_configuration: Optional[Any] = None, + hive_configuration: Optional[Any] = None, + map_reduce_configuration: Optional[Any] = None, + oozie_configuration: Optional[Any] = None, + storm_configuration: Optional[Any] = None, + yarn_configuration: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + head_node_size: Optional[Any] = None, + data_node_size: Optional[Any] = None, + zookeeper_node_size: Optional[Any] = None, + script_actions: Optional[list["_models.ScriptAction"]] = None, + virtual_network_id: Optional[Any] = None, + subnet_name: Optional[Any] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HDInsightPigActivity(ExecutionActivity, discriminator="HDInsightPig"): + """HDInsight Pig activity type. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: HDInsight Pig activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.HDInsightPigActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "HDInsightPig". + :vartype type: str + """ + + type_properties: "_models.HDInsightPigActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """HDInsight Pig activity properties. Required.""" + type: Literal["HDInsightPig"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"HDInsightPig\".""" + + __flattened_items = [ + "storage_linked_services", + "arguments", + "get_debug_info", + "script_path", + "script_linked_service", + "defines", + ] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.HDInsightPigActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class HDInsightPigActivityTypeProperties(_Model): + """HDInsight Pig activity properties. + + :ivar storage_linked_services: Storage linked service references. + :vartype storage_linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceReference] + :ivar arguments: User specified arguments to HDInsightActivity. Type: array (or Expression with + resultType array). + :vartype arguments: any + :ivar get_debug_info: Debug info option. Known values are: "None", "Always", and "Failure". + :vartype get_debug_info: str or ~azure.mgmt.datafactory.models.HDInsightActivityDebugInfoOption + :ivar script_path: Script path. Type: string (or Expression with resultType string). + :vartype script_path: any + :ivar script_linked_service: Script linked service reference. + :vartype script_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar defines: Allows user to specify defines for Pig job request. + :vartype defines: dict[str, any] + """ + + storage_linked_services: Optional[list["_models.LinkedServiceReference"]] = rest_field( + name="storageLinkedServices", visibility=["read", "create", "update", "delete", "query"] + ) + """Storage linked service references.""" + arguments: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """User specified arguments to HDInsightActivity. Type: array (or Expression with resultType + array).""" + get_debug_info: Optional[Union[str, "_models.HDInsightActivityDebugInfoOption"]] = rest_field( + name="getDebugInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Debug info option. Known values are: \"None\", \"Always\", and \"Failure\".""" + script_path: Optional[Any] = rest_field( + name="scriptPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Script path. Type: string (or Expression with resultType string).""" + script_linked_service: Optional["_models.LinkedServiceReference"] = rest_field( + name="scriptLinkedService", visibility=["read", "create", "update", "delete", "query"] + ) + """Script linked service reference.""" + defines: Optional[dict[str, Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Allows user to specify defines for Pig job request.""" + + @overload + def __init__( + self, + *, + storage_linked_services: Optional[list["_models.LinkedServiceReference"]] = None, + arguments: Optional[Any] = None, + get_debug_info: Optional[Union[str, "_models.HDInsightActivityDebugInfoOption"]] = None, + script_path: Optional[Any] = None, + script_linked_service: Optional["_models.LinkedServiceReference"] = None, + defines: Optional[dict[str, Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HDInsightSparkActivity(ExecutionActivity, discriminator="HDInsightSpark"): + """HDInsight Spark activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: HDInsight spark activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.HDInsightSparkActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "HDInsightSpark". + :vartype type: str + """ + + type_properties: "_models.HDInsightSparkActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """HDInsight spark activity properties. Required.""" + type: Literal["HDInsightSpark"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"HDInsightSpark\".""" + + __flattened_items = [ + "root_path", + "entry_file_path", + "arguments", + "get_debug_info", + "spark_job_linked_service", + "class_name", + "proxy_user", + "spark_config", + ] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.HDInsightSparkActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class HDInsightSparkActivityTypeProperties(_Model): + """HDInsight spark activity properties. + + :ivar root_path: The root path in 'sparkJobLinkedService' for all the job’s files. Type: string + (or Expression with resultType string). Required. + :vartype root_path: any + :ivar entry_file_path: The relative path to the root folder of the code/package to be executed. + Type: string (or Expression with resultType string). Required. + :vartype entry_file_path: any + :ivar arguments: The user-specified arguments to HDInsightSparkActivity. + :vartype arguments: list[any] + :ivar get_debug_info: Debug info option. Known values are: "None", "Always", and "Failure". + :vartype get_debug_info: str or ~azure.mgmt.datafactory.models.HDInsightActivityDebugInfoOption + :ivar spark_job_linked_service: The storage linked service for uploading the entry file and + dependencies, and for receiving logs. + :vartype spark_job_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar class_name: The application's Java/Spark main class. + :vartype class_name: str + :ivar proxy_user: The user to impersonate that will execute the job. Type: string (or + Expression with resultType string). + :vartype proxy_user: any + :ivar spark_config: Spark configuration property. + :vartype spark_config: dict[str, any] + """ + + root_path: Any = rest_field(name="rootPath", visibility=["read", "create", "update", "delete", "query"]) + """The root path in 'sparkJobLinkedService' for all the job’s files. Type: string (or Expression + with resultType string). Required.""" + entry_file_path: Any = rest_field(name="entryFilePath", visibility=["read", "create", "update", "delete", "query"]) + """The relative path to the root folder of the code/package to be executed. Type: string (or + Expression with resultType string). Required.""" + arguments: Optional[list[Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The user-specified arguments to HDInsightSparkActivity.""" + get_debug_info: Optional[Union[str, "_models.HDInsightActivityDebugInfoOption"]] = rest_field( + name="getDebugInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Debug info option. Known values are: \"None\", \"Always\", and \"Failure\".""" + spark_job_linked_service: Optional["_models.LinkedServiceReference"] = rest_field( + name="sparkJobLinkedService", visibility=["read", "create", "update", "delete", "query"] + ) + """The storage linked service for uploading the entry file and dependencies, and for receiving + logs.""" + class_name: Optional[str] = rest_field(name="className", visibility=["read", "create", "update", "delete", "query"]) + """The application's Java/Spark main class.""" + proxy_user: Optional[Any] = rest_field(name="proxyUser", visibility=["read", "create", "update", "delete", "query"]) + """The user to impersonate that will execute the job. Type: string (or Expression with resultType + string).""" + spark_config: Optional[dict[str, Any]] = rest_field( + name="sparkConfig", visibility=["read", "create", "update", "delete", "query"] + ) + """Spark configuration property.""" + + @overload + def __init__( + self, + *, + root_path: Any, + entry_file_path: Any, + arguments: Optional[list[Any]] = None, + get_debug_info: Optional[Union[str, "_models.HDInsightActivityDebugInfoOption"]] = None, + spark_job_linked_service: Optional["_models.LinkedServiceReference"] = None, + class_name: Optional[str] = None, + proxy_user: Optional[Any] = None, + spark_config: Optional[dict[str, Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HDInsightStreamingActivity(ExecutionActivity, discriminator="HDInsightStreaming"): + """HDInsight streaming activity type. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: HDInsight streaming activity properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.HDInsightStreamingActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "HDInsightStreaming". + :vartype type: str + """ + + type_properties: "_models.HDInsightStreamingActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """HDInsight streaming activity properties. Required.""" + type: Literal["HDInsightStreaming"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"HDInsightStreaming\".""" + + __flattened_items = [ + "storage_linked_services", + "arguments", + "get_debug_info", + "mapper", + "reducer", + "input", + "output", + "file_paths", + "file_linked_service", + "combiner", + "command_environment", + "defines", + ] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.HDInsightStreamingActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class HDInsightStreamingActivityTypeProperties(_Model): + """HDInsight streaming activity properties. + + :ivar storage_linked_services: Storage linked service references. + :vartype storage_linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceReference] + :ivar arguments: User specified arguments to HDInsightActivity. + :vartype arguments: list[any] + :ivar get_debug_info: Debug info option. Known values are: "None", "Always", and "Failure". + :vartype get_debug_info: str or ~azure.mgmt.datafactory.models.HDInsightActivityDebugInfoOption + :ivar mapper: Mapper executable name. Type: string (or Expression with resultType string). + Required. + :vartype mapper: any + :ivar reducer: Reducer executable name. Type: string (or Expression with resultType string). + Required. + :vartype reducer: any + :ivar input: Input blob path. Type: string (or Expression with resultType string). Required. + :vartype input: any + :ivar output: Output blob path. Type: string (or Expression with resultType string). Required. + :vartype output: any + :ivar file_paths: Paths to streaming job files. Can be directories. Required. + :vartype file_paths: list[any] + :ivar file_linked_service: Linked service reference where the files are located. + :vartype file_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar combiner: Combiner executable name. Type: string (or Expression with resultType string). + :vartype combiner: any + :ivar command_environment: Command line environment values. + :vartype command_environment: list[any] + :ivar defines: Allows user to specify defines for streaming job request. + :vartype defines: dict[str, any] + """ + + storage_linked_services: Optional[list["_models.LinkedServiceReference"]] = rest_field( + name="storageLinkedServices", visibility=["read", "create", "update", "delete", "query"] + ) + """Storage linked service references.""" + arguments: Optional[list[Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """User specified arguments to HDInsightActivity.""" + get_debug_info: Optional[Union[str, "_models.HDInsightActivityDebugInfoOption"]] = rest_field( + name="getDebugInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Debug info option. Known values are: \"None\", \"Always\", and \"Failure\".""" + mapper: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Mapper executable name. Type: string (or Expression with resultType string). Required.""" + reducer: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Reducer executable name. Type: string (or Expression with resultType string). Required.""" + input: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Input blob path. Type: string (or Expression with resultType string). Required.""" + output: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Output blob path. Type: string (or Expression with resultType string). Required.""" + file_paths: list[Any] = rest_field(name="filePaths", visibility=["read", "create", "update", "delete", "query"]) + """Paths to streaming job files. Can be directories. Required.""" + file_linked_service: Optional["_models.LinkedServiceReference"] = rest_field( + name="fileLinkedService", visibility=["read", "create", "update", "delete", "query"] + ) + """Linked service reference where the files are located.""" + combiner: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Combiner executable name. Type: string (or Expression with resultType string).""" + command_environment: Optional[list[Any]] = rest_field( + name="commandEnvironment", visibility=["read", "create", "update", "delete", "query"] + ) + """Command line environment values.""" + defines: Optional[dict[str, Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Allows user to specify defines for streaming job request.""" + + @overload + def __init__( + self, + *, + mapper: Any, + reducer: Any, + input: Any, + output: Any, + file_paths: list[Any], + storage_linked_services: Optional[list["_models.LinkedServiceReference"]] = None, + arguments: Optional[list[Any]] = None, + get_debug_info: Optional[Union[str, "_models.HDInsightActivityDebugInfoOption"]] = None, + file_linked_service: Optional["_models.LinkedServiceReference"] = None, + combiner: Optional[Any] = None, + command_environment: Optional[list[Any]] = None, + defines: Optional[dict[str, Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HiveDatasetTypeProperties(_Model): + """Hive Properties. + + :ivar table_name: This property will be retired. Please consider using schema + table + properties instead. + :vartype table_name: any + :ivar table: The table name of the Hive. Type: string (or Expression with resultType string). + :vartype table: any + :ivar schema: The schema name of the Hive. Type: string (or Expression with resultType string). + :vartype schema: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property will be retired. Please consider using schema + table properties instead.""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Hive. Type: string (or Expression with resultType string).""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the Hive. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + table: Optional[Any] = None, + schema: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HiveLinkedService(LinkedService, discriminator="Hive"): + """Hive Server linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Hive Server linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.HiveLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Hive". + :vartype type: str + """ + + type_properties: "_models.HiveLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Hive Server linked service properties. Required.""" + type: Literal["Hive"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Hive\".""" + + __flattened_items = [ + "host", + "port", + "server_type", + "thrift_transport_protocol", + "authentication_type", + "service_discovery_mode", + "zoo_keeper_name_space", + "use_native_query", + "username", + "password", + "http_path", + "enable_ssl", + "enable_server_certificate_validation", + "trusted_cert_path", + "use_system_trust_store", + "allow_host_name_cn_mismatch", + "allow_self_signed_server_cert", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.HiveLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class HiveLinkedServiceTypeProperties(_Model): + """Hive Server linked service properties. + + :ivar host: IP address or host name of the Hive server, separated by ';' for multiple hosts + (only when serviceDiscoveryMode is enable). Required. + :vartype host: any + :ivar port: The TCP port that the Hive server uses to listen for client connections. + :vartype port: any + :ivar server_type: The type of Hive server. Known values are: "HiveServer1", "HiveServer2", and + "HiveThriftServer". + :vartype server_type: str or ~azure.mgmt.datafactory.models.HiveServerType + :ivar thrift_transport_protocol: The transport protocol to use in the Thrift layer. Known + values are: "Binary", "SASL", and "HTTP ". + :vartype thrift_transport_protocol: str or + ~azure.mgmt.datafactory.models.HiveThriftTransportProtocol + :ivar authentication_type: The authentication method used to access the Hive server. Required. + Known values are: "Anonymous", "Username", "UsernameAndPassword", and + "WindowsAzureHDInsightService". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.HiveAuthenticationType + :ivar service_discovery_mode: true to indicate using the ZooKeeper service, false not. + :vartype service_discovery_mode: any + :ivar zoo_keeper_name_space: The namespace on ZooKeeper under which Hive Server 2 nodes are + added. + :vartype zoo_keeper_name_space: any + :ivar use_native_query: Specifies whether the driver uses native HiveQL queries,or converts + them into an equivalent form in HiveQL. + :vartype use_native_query: any + :ivar username: The user name that you use to access Hive Server. + :vartype username: any + :ivar password: The password corresponding to the user name that you provided in the Username + field. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar http_path: The partial URL corresponding to the Hive server. + :vartype http_path: any + :ivar enable_ssl: Specifies whether the connections to the server are encrypted using SSL. The + default value is false. + :vartype enable_ssl: any + :ivar enable_server_certificate_validation: Specifies whether the connections to the server + will validate server certificate, the default value is True. Only used for Version 2.0. + :vartype enable_server_certificate_validation: any + :ivar trusted_cert_path: The full path of the .pem file containing trusted CA certificates for + verifying the server when connecting over SSL. This property can only be set when using SSL on + self-hosted IR. The default value is the cacerts.pem file installed with the IR. + :vartype trusted_cert_path: any + :ivar use_system_trust_store: Specifies whether to use a CA certificate from the system trust + store or from a specified PEM file. The default value is false. + :vartype use_system_trust_store: any + :ivar allow_host_name_cn_mismatch: Specifies whether to require a CA-issued SSL certificate + name to match the host name of the server when connecting over SSL. The default value is false. + :vartype allow_host_name_cn_mismatch: any + :ivar allow_self_signed_server_cert: Specifies whether to allow self-signed certificates from + the server. The default value is false. + :vartype allow_self_signed_server_cert: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + host: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """IP address or host name of the Hive server, separated by ';' for multiple hosts (only when + serviceDiscoveryMode is enable). Required.""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The TCP port that the Hive server uses to listen for client connections.""" + server_type: Optional[Union[str, "_models.HiveServerType"]] = rest_field( + name="serverType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of Hive server. Known values are: \"HiveServer1\", \"HiveServer2\", and + \"HiveThriftServer\".""" + thrift_transport_protocol: Optional[Union[str, "_models.HiveThriftTransportProtocol"]] = rest_field( + name="thriftTransportProtocol", visibility=["read", "create", "update", "delete", "query"] + ) + """The transport protocol to use in the Thrift layer. Known values are: \"Binary\", \"SASL\", and + \"HTTP \".""" + authentication_type: Union[str, "_models.HiveAuthenticationType"] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication method used to access the Hive server. Required. Known values are: + \"Anonymous\", \"Username\", \"UsernameAndPassword\", and \"WindowsAzureHDInsightService\".""" + service_discovery_mode: Optional[Any] = rest_field( + name="serviceDiscoveryMode", visibility=["read", "create", "update", "delete", "query"] + ) + """true to indicate using the ZooKeeper service, false not.""" + zoo_keeper_name_space: Optional[Any] = rest_field( + name="zooKeeperNameSpace", visibility=["read", "create", "update", "delete", "query"] + ) + """The namespace on ZooKeeper under which Hive Server 2 nodes are added.""" + use_native_query: Optional[Any] = rest_field( + name="useNativeQuery", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the driver uses native HiveQL queries,or converts them into an equivalent + form in HiveQL.""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The user name that you use to access Hive Server.""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password corresponding to the user name that you provided in the Username field.""" + http_path: Optional[Any] = rest_field(name="httpPath", visibility=["read", "create", "update", "delete", "query"]) + """The partial URL corresponding to the Hive server.""" + enable_ssl: Optional[Any] = rest_field(name="enableSsl", visibility=["read", "create", "update", "delete", "query"]) + """Specifies whether the connections to the server are encrypted using SSL. The default value is + false.""" + enable_server_certificate_validation: Optional[Any] = rest_field( + name="enableServerCertificateValidation", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the connections to the server will validate server certificate, the default + value is True. Only used for Version 2.0.""" + trusted_cert_path: Optional[Any] = rest_field( + name="trustedCertPath", visibility=["read", "create", "update", "delete", "query"] + ) + """The full path of the .pem file containing trusted CA certificates for verifying the server when + connecting over SSL. This property can only be set when using SSL on self-hosted IR. The + default value is the cacerts.pem file installed with the IR.""" + use_system_trust_store: Optional[Any] = rest_field( + name="useSystemTrustStore", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to use a CA certificate from the system trust store or from a specified PEM + file. The default value is false.""" + allow_host_name_cn_mismatch: Optional[Any] = rest_field( + name="allowHostNameCNMismatch", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require a CA-issued SSL certificate name to match the host name of the + server when connecting over SSL. The default value is false.""" + allow_self_signed_server_cert: Optional[Any] = rest_field( + name="allowSelfSignedServerCert", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to allow self-signed certificates from the server. The default value is + false.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + host: Any, + authentication_type: Union[str, "_models.HiveAuthenticationType"], + port: Optional[Any] = None, + server_type: Optional[Union[str, "_models.HiveServerType"]] = None, + thrift_transport_protocol: Optional[Union[str, "_models.HiveThriftTransportProtocol"]] = None, + service_discovery_mode: Optional[Any] = None, + zoo_keeper_name_space: Optional[Any] = None, + use_native_query: Optional[Any] = None, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + http_path: Optional[Any] = None, + enable_ssl: Optional[Any] = None, + enable_server_certificate_validation: Optional[Any] = None, + trusted_cert_path: Optional[Any] = None, + use_system_trust_store: Optional[Any] = None, + allow_host_name_cn_mismatch: Optional[Any] = None, + allow_self_signed_server_cert: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HiveObjectDataset(Dataset, discriminator="HiveObject"): + """Hive Server dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.HiveDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "HiveObject". + :vartype type: str + """ + + type_properties: Optional["_models.HiveDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["HiveObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"HiveObject\".""" + + __flattened_items = ["table_name", "table", "schema"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.HiveDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class HiveSource(TabularSource, discriminator="HiveSource"): + """A copy activity Hive Server source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "HiveSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["HiveSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"HiveSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "HiveSource" # type: ignore + + +class HttpDataset(Dataset, discriminator="HttpFile"): + """A file in an HTTP web server. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.HttpDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "HttpFile". + :vartype type: str + """ + + type_properties: Optional["_models.HttpDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["HttpFile"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"HttpFile\".""" + + __flattened_items = [ + "relative_url", + "request_method", + "request_body", + "additional_headers", + "format", + "compression", + ] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.HttpDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class HttpDatasetTypeProperties(_Model): + """Properties specific to this dataset type. + + :ivar relative_url: The relative URL based on the URL in the HttpLinkedService refers to an + HTTP file Type: string (or Expression with resultType string). + :vartype relative_url: any + :ivar request_method: The HTTP method for the HTTP request. Type: string (or Expression with + resultType string). + :vartype request_method: any + :ivar request_body: The body for the HTTP request. Type: string (or Expression with resultType + string). + :vartype request_body: any + :ivar additional_headers: The headers for the HTTP Request. e.g. + request-header-name-1:request-header-value-1 ... request-header-name-n:request-header-value-n + Type: string (or Expression with resultType string). + :vartype additional_headers: any + :ivar format: The format of files. + :vartype format: ~azure.mgmt.datafactory.models.DatasetStorageFormat + :ivar compression: The data compression method used on files. + :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression + """ + + relative_url: Optional[Any] = rest_field( + name="relativeUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """The relative URL based on the URL in the HttpLinkedService refers to an HTTP file Type: string + (or Expression with resultType string).""" + request_method: Optional[Any] = rest_field( + name="requestMethod", visibility=["read", "create", "update", "delete", "query"] + ) + """The HTTP method for the HTTP request. Type: string (or Expression with resultType string).""" + request_body: Optional[Any] = rest_field( + name="requestBody", visibility=["read", "create", "update", "delete", "query"] + ) + """The body for the HTTP request. Type: string (or Expression with resultType string).""" + additional_headers: Optional[Any] = rest_field( + name="additionalHeaders", visibility=["read", "create", "update", "delete", "query"] + ) + """The headers for the HTTP Request. e.g. request-header-name-1:request-header-value-1 ... + request-header-name-n:request-header-value-n Type: string (or Expression with resultType + string).""" + format: Optional["_models.DatasetStorageFormat"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The format of files.""" + compression: Optional["_models.DatasetCompression"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The data compression method used on files.""" + + @overload + def __init__( + self, + *, + relative_url: Optional[Any] = None, + request_method: Optional[Any] = None, + request_body: Optional[Any] = None, + additional_headers: Optional[Any] = None, + format: Optional["_models.DatasetStorageFormat"] = None, + compression: Optional["_models.DatasetCompression"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HttpLinkedService(LinkedService, discriminator="HttpServer"): + """Linked service for an HTTP source. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Properties specific to this linked service type. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.HttpLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "HttpServer". + :vartype type: str + """ + + type_properties: "_models.HttpLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this linked service type. Required.""" + type: Literal["HttpServer"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"HttpServer\".""" + + __flattened_items = [ + "url", + "authentication_type", + "user_name", + "password", + "auth_headers", + "embedded_cert_data", + "cert_thumbprint", + "encrypted_credential", + "enable_server_certificate_validation", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.HttpLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class HttpLinkedServiceTypeProperties(_Model): + """Properties specific to this linked service type. + + :ivar url: The base URL of the HTTP endpoint, e.g. `https://www.microsoft.com + `_. Type: string (or Expression with resultType string). Required. + :vartype url: any + :ivar authentication_type: The authentication type to be used to connect to the HTTP server. + Known values are: "Basic", "Anonymous", "Digest", "Windows", and "ClientCertificate". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.HttpAuthenticationType + :ivar user_name: User name for Basic, Digest, or Windows authentication. Type: string (or + Expression with resultType string). + :vartype user_name: any + :ivar password: Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData + authentication. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar auth_headers: The additional HTTP headers in the request to RESTful API used for + authorization. Type: key value pairs (value should be string type). + :vartype auth_headers: any + :ivar embedded_cert_data: Base64 encoded certificate data for ClientCertificate authentication. + For on-premises copy with ClientCertificate authentication, either CertThumbprint or + EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType + string). + :vartype embedded_cert_data: any + :ivar cert_thumbprint: Thumbprint of certificate for ClientCertificate authentication. Only + valid for on-premises copy. For on-premises copy with ClientCertificate authentication, either + CertThumbprint or EmbeddedCertData/Password should be specified. Type: string (or Expression + with resultType string). + :vartype cert_thumbprint: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar enable_server_certificate_validation: If true, validate the HTTPS server SSL certificate. + Default value is true. Type: boolean (or Expression with resultType boolean). + :vartype enable_server_certificate_validation: any + """ + + url: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The base URL of the HTTP endpoint, e.g. `https://www.microsoft.com + `_. Type: string (or Expression with resultType string). Required.""" + authentication_type: Optional[Union[str, "_models.HttpAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to be used to connect to the HTTP server. Known values are: \"Basic\", + \"Anonymous\", \"Digest\", \"Windows\", and \"ClientCertificate\".""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """User name for Basic, Digest, or Windows authentication. Type: string (or Expression with + resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication.""" + auth_headers: Optional[Any] = rest_field( + name="authHeaders", visibility=["read", "create", "update", "delete", "query"] + ) + """The additional HTTP headers in the request to RESTful API used for authorization. Type: key + value pairs (value should be string type).""" + embedded_cert_data: Optional[Any] = rest_field( + name="embeddedCertData", visibility=["read", "create", "update", "delete", "query"] + ) + """Base64 encoded certificate data for ClientCertificate authentication. For on-premises copy with + ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should be + specified. Type: string (or Expression with resultType string).""" + cert_thumbprint: Optional[Any] = rest_field( + name="certThumbprint", visibility=["read", "create", "update", "delete", "query"] + ) + """Thumbprint of certificate for ClientCertificate authentication. Only valid for on-premises + copy. For on-premises copy with ClientCertificate authentication, either CertThumbprint or + EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType + string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + enable_server_certificate_validation: Optional[Any] = rest_field( + name="enableServerCertificateValidation", visibility=["read", "create", "update", "delete", "query"] + ) + """If true, validate the HTTPS server SSL certificate. Default value is true. Type: boolean (or + Expression with resultType boolean).""" + + @overload + def __init__( + self, + *, + url: Any, + authentication_type: Optional[Union[str, "_models.HttpAuthenticationType"]] = None, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + auth_headers: Optional[Any] = None, + embedded_cert_data: Optional[Any] = None, + cert_thumbprint: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + enable_server_certificate_validation: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HttpReadSettings(StoreReadSettings, discriminator="HttpReadSettings"): + """Http read settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar request_method: The HTTP method used to call the RESTful API. The default is GET. Type: + string (or Expression with resultType string). + :vartype request_method: any + :ivar request_body: The HTTP request body to the RESTful API if requestMethod is POST. Type: + string (or Expression with resultType string). + :vartype request_body: any + :ivar additional_headers: The additional HTTP headers in the request to the RESTful API. Type: + string (or Expression with resultType string). + :vartype additional_headers: any + :ivar request_timeout: Specifies the timeout for a HTTP client to get HTTP response from HTTP + server. Type: string (or Expression with resultType string). + :vartype request_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: The read setting type. Required. Default value is "HttpReadSettings". + :vartype type: str + """ + + request_method: Optional[Any] = rest_field( + name="requestMethod", visibility=["read", "create", "update", "delete", "query"] + ) + """The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression + with resultType string).""" + request_body: Optional[Any] = rest_field( + name="requestBody", visibility=["read", "create", "update", "delete", "query"] + ) + """The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression + with resultType string).""" + additional_headers: Optional[Any] = rest_field( + name="additionalHeaders", visibility=["read", "create", "update", "delete", "query"] + ) + """The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with + resultType string).""" + request_timeout: Optional[Any] = rest_field( + name="requestTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the timeout for a HTTP client to get HTTP response from HTTP server. Type: string (or + Expression with resultType string).""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["HttpReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"HttpReadSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + request_method: Optional[Any] = None, + request_body: Optional[Any] = None, + additional_headers: Optional[Any] = None, + request_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "HttpReadSettings" # type: ignore + + +class HttpServerLocation(DatasetLocation, discriminator="HttpServerLocation"): + """The location of http server. + + :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with + resultType string). + :vartype folder_path: any + :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType + string). + :vartype file_name: any + :ivar relative_url: Specify the relativeUrl of http server. Type: string (or Expression with + resultType string). + :vartype relative_url: any + :ivar type: Type of dataset storage location. Required. Default value is "HttpServerLocation". + :vartype type: str + """ + + relative_url: Optional[Any] = rest_field( + name="relativeUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the relativeUrl of http server. Type: string (or Expression with resultType string).""" + type: Literal["HttpServerLocation"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage location. Required. Default value is \"HttpServerLocation\".""" + + @overload + def __init__( + self, + *, + folder_path: Optional[Any] = None, + file_name: Optional[Any] = None, + relative_url: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "HttpServerLocation" # type: ignore + + +class HttpSource(CopySource, discriminator="HttpSource"): + """A copy activity source for an HTTP file. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar http_request_timeout: Specifies the timeout for a HTTP client to get HTTP response from + HTTP server. The default value is equivalent to System.Net.HttpWebRequest.Timeout. Type: string + (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype http_request_timeout: any + :ivar type: Copy source type. Required. Default value is "HttpSource". + :vartype type: str + """ + + http_request_timeout: Optional[Any] = rest_field( + name="httpRequestTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the timeout for a HTTP client to get HTTP response from HTTP server. The default + value is equivalent to System.Net.HttpWebRequest.Timeout. Type: string (or Expression with + resultType string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + type: Literal["HttpSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"HttpSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + http_request_timeout: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "HttpSource" # type: ignore + + +class HubspotLinkedService(LinkedService, discriminator="Hubspot"): + """Hubspot Service linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Hubspot Service linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.HubspotLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Hubspot". + :vartype type: str + """ + + type_properties: "_models.HubspotLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Hubspot Service linked service properties. Required.""" + type: Literal["Hubspot"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Hubspot\".""" + + __flattened_items = [ + "client_id", + "client_secret", + "access_token", + "refresh_token", + "use_encrypted_endpoints", + "use_host_verification", + "use_peer_verification", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.HubspotLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class HubspotLinkedServiceTypeProperties(_Model): + """Hubspot Service linked service properties. + + :ivar client_id: The client ID associated with your Hubspot application. Required. + :vartype client_id: any + :ivar client_secret: The client secret associated with your Hubspot application. + :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase + :ivar access_token: The access token obtained when initially authenticating your OAuth + integration. + :vartype access_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar refresh_token: The refresh token obtained when initially authenticating your OAuth + integration. + :vartype refresh_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using + HTTPS. The default value is true. + :vartype use_encrypted_endpoints: any + :ivar use_host_verification: Specifies whether to require the host name in the server's + certificate to match the host name of the server when connecting over SSL. The default value is + true. + :vartype use_host_verification: any + :ivar use_peer_verification: Specifies whether to verify the identity of the server when + connecting over SSL. The default value is true. + :vartype use_peer_verification: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + client_id: Any = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The client ID associated with your Hubspot application. Required.""" + client_secret: Optional["_models.SecretBase"] = rest_field( + name="clientSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """The client secret associated with your Hubspot application.""" + access_token: Optional["_models.SecretBase"] = rest_field( + name="accessToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The access token obtained when initially authenticating your OAuth integration.""" + refresh_token: Optional["_models.SecretBase"] = rest_field( + name="refreshToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The refresh token obtained when initially authenticating your OAuth integration.""" + use_encrypted_endpoints: Optional[Any] = rest_field( + name="useEncryptedEndpoints", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the data source endpoints are encrypted using HTTPS. The default value is + true.""" + use_host_verification: Optional[Any] = rest_field( + name="useHostVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require the host name in the server's certificate to match the host name + of the server when connecting over SSL. The default value is true.""" + use_peer_verification: Optional[Any] = rest_field( + name="usePeerVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to verify the identity of the server when connecting over SSL. The default + value is true.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + client_id: Any, + client_secret: Optional["_models.SecretBase"] = None, + access_token: Optional["_models.SecretBase"] = None, + refresh_token: Optional["_models.SecretBase"] = None, + use_encrypted_endpoints: Optional[Any] = None, + use_host_verification: Optional[Any] = None, + use_peer_verification: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HubspotObjectDataset(Dataset, discriminator="HubspotObject"): + """Hubspot Service dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "HubspotObject". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["HubspotObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"HubspotObject\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class HubspotSource(TabularSource, discriminator="HubspotSource"): + """A copy activity Hubspot Service source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "HubspotSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["HubspotSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"HubspotSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "HubspotSource" # type: ignore + + +class IcebergDataset(Dataset, discriminator="Iceberg"): + """Iceberg dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Iceberg dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.IcebergDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "Iceberg". + :vartype type: str + """ + + type_properties: Optional["_models.IcebergDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Iceberg dataset properties.""" + type: Literal["Iceberg"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"Iceberg\".""" + + __flattened_items = ["location"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.IcebergDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class IcebergDatasetTypeProperties(_Model): + """Iceberg dataset properties. + + :ivar location: The location of the iceberg storage. Setting a file name is not allowed for + iceberg format. Required. + :vartype location: ~azure.mgmt.datafactory.models.DatasetLocation + """ + + location: "_models.DatasetLocation" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The location of the iceberg storage. Setting a file name is not allowed for iceberg format. + Required.""" + + @overload + def __init__( + self, + *, + location: "_models.DatasetLocation", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IcebergSink(CopySink, discriminator="IcebergSink"): + """A copy activity Iceberg sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar store_settings: Iceberg store settings. + :vartype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings + :ivar format_settings: Iceberg format settings. + :vartype format_settings: ~azure.mgmt.datafactory.models.IcebergWriteSettings + :ivar type: Copy sink type. Required. Default value is "IcebergSink". + :vartype type: str + """ + + store_settings: Optional["_models.StoreWriteSettings"] = rest_field( + name="storeSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Iceberg store settings.""" + format_settings: Optional["_models.IcebergWriteSettings"] = rest_field( + name="formatSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Iceberg format settings.""" + type: Literal["IcebergSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"IcebergSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + store_settings: Optional["_models.StoreWriteSettings"] = None, + format_settings: Optional["_models.IcebergWriteSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "IcebergSink" # type: ignore + + +class IcebergWriteSettings(FormatWriteSettings, discriminator="IcebergWriteSettings"): + """Iceberg write settings. + + :ivar type: The write setting type. Required. Default value is "IcebergWriteSettings". + :vartype type: str + """ + + type: Literal["IcebergWriteSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The write setting type. Required. Default value is \"IcebergWriteSettings\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "IcebergWriteSettings" # type: ignore + + +class IfConditionActivity(ControlActivity, discriminator="IfCondition"): + """This activity evaluates a boolean expression and executes either the activities under the + ifTrueActivities property or the ifFalseActivities property depending on the result of the + expression. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar type_properties: IfCondition activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.IfConditionActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "IfCondition". + :vartype type: str + """ + + type_properties: "_models.IfConditionActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """IfCondition activity properties. Required.""" + type: Literal["IfCondition"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"IfCondition\".""" + + __flattened_items = ["expression", "if_true_activities", "if_false_activities"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.IfConditionActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class IfConditionActivityTypeProperties(_Model): + """IfCondition activity properties. + + :ivar expression: An expression that would evaluate to Boolean. This is used to determine the + block of activities (ifTrueActivities or ifFalseActivities) that will be executed. Required. + :vartype expression: ~azure.mgmt.datafactory.models.Expression + :ivar if_true_activities: List of activities to execute if expression is evaluated to true. + This is an optional property and if not provided, the activity will exit without any action. + :vartype if_true_activities: list[~azure.mgmt.datafactory.models.Activity] + :ivar if_false_activities: List of activities to execute if expression is evaluated to false. + This is an optional property and if not provided, the activity will exit without any action. + :vartype if_false_activities: list[~azure.mgmt.datafactory.models.Activity] + """ + + expression: "_models.Expression" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """An expression that would evaluate to Boolean. This is used to determine the block of activities + (ifTrueActivities or ifFalseActivities) that will be executed. Required.""" + if_true_activities: Optional[list["_models.Activity"]] = rest_field( + name="ifTrueActivities", visibility=["read", "create", "update", "delete", "query"] + ) + """List of activities to execute if expression is evaluated to true. This is an optional property + and if not provided, the activity will exit without any action.""" + if_false_activities: Optional[list["_models.Activity"]] = rest_field( + name="ifFalseActivities", visibility=["read", "create", "update", "delete", "query"] + ) + """List of activities to execute if expression is evaluated to false. This is an optional property + and if not provided, the activity will exit without any action.""" + + @overload + def __init__( + self, + *, + expression: "_models.Expression", + if_true_activities: Optional[list["_models.Activity"]] = None, + if_false_activities: Optional[list["_models.Activity"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ImpalaDatasetTypeProperties(_Model): + """Impala Dataset Properties. + + :ivar table_name: This property will be retired. Please consider using schema + table + properties instead. + :vartype table_name: any + :ivar table: The table name of the Impala. Type: string (or Expression with resultType string). + :vartype table: any + :ivar schema: The schema name of the Impala. Type: string (or Expression with resultType + string). + :vartype schema: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property will be retired. Please consider using schema + table properties instead.""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Impala. Type: string (or Expression with resultType string).""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the Impala. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + table: Optional[Any] = None, + schema: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ImpalaLinkedService(LinkedService, discriminator="Impala"): + """Impala server linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Impala server linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.ImpalaLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Impala". + :vartype type: str + """ + + type_properties: "_models.ImpalaLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Impala server linked service properties. Required.""" + type: Literal["Impala"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Impala\".""" + + __flattened_items = [ + "host", + "port", + "authentication_type", + "username", + "password", + "thrift_transport_protocol", + "enable_ssl", + "enable_server_certificate_validation", + "trusted_cert_path", + "use_system_trust_store", + "allow_host_name_cn_mismatch", + "allow_self_signed_server_cert", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.ImpalaLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ImpalaLinkedServiceTypeProperties(_Model): + """Impala server linked service properties. + + :ivar host: The IP address or host name of the Impala server. (i.e. 192.168.222.160). Required. + :vartype host: any + :ivar port: The TCP port that the Impala server uses to listen for client connections. The + default value is 21050. + :vartype port: any + :ivar authentication_type: The authentication type to use. Required. Known values are: + "Anonymous", "SASLUsername", and "UsernameAndPassword". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.ImpalaAuthenticationType + :ivar username: The user name used to access the Impala server. The default value is anonymous + when using SASLUsername. + :vartype username: any + :ivar password: The password corresponding to the user name when using UsernameAndPassword. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar thrift_transport_protocol: The transport protocol to use in the Thrift layer (for V2 + only). Default value is Binary. Known values are: "Binary" and "HTTP". + :vartype thrift_transport_protocol: str or + ~azure.mgmt.datafactory.models.ImpalaThriftTransportProtocol + :ivar enable_ssl: Specifies whether the connections to the server are encrypted using SSL. The + default value is false. + :vartype enable_ssl: any + :ivar enable_server_certificate_validation: Specify whether to enable server SSL certificate + validation when you connect.Always use System Trust Store (for V2 only). The default value is + true. + :vartype enable_server_certificate_validation: any + :ivar trusted_cert_path: The full path of the .pem file containing trusted CA certificates for + verifying the server when connecting over SSL. This property can only be set when using SSL on + self-hosted IR. The default value is the cacerts.pem file installed with the IR. + :vartype trusted_cert_path: any + :ivar use_system_trust_store: Specifies whether to use a CA certificate from the system trust + store or from a specified PEM file. The default value is false. + :vartype use_system_trust_store: any + :ivar allow_host_name_cn_mismatch: Specifies whether to require a CA-issued SSL certificate + name to match the host name of the server when connecting over SSL. The default value is false. + :vartype allow_host_name_cn_mismatch: any + :ivar allow_self_signed_server_cert: Specifies whether to allow self-signed certificates from + the server. The default value is false. + :vartype allow_self_signed_server_cert: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + host: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The IP address or host name of the Impala server. (i.e. 192.168.222.160). Required.""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The TCP port that the Impala server uses to listen for client connections. The default value is + 21050.""" + authentication_type: Union[str, "_models.ImpalaAuthenticationType"] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to use. Required. Known values are: \"Anonymous\", \"SASLUsername\", + and \"UsernameAndPassword\".""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The user name used to access the Impala server. The default value is anonymous when using + SASLUsername.""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password corresponding to the user name when using UsernameAndPassword.""" + thrift_transport_protocol: Optional[Union[str, "_models.ImpalaThriftTransportProtocol"]] = rest_field( + name="thriftTransportProtocol", visibility=["read", "create", "update", "delete", "query"] + ) + """The transport protocol to use in the Thrift layer (for V2 only). Default value is Binary. Known + values are: \"Binary\" and \"HTTP\".""" + enable_ssl: Optional[Any] = rest_field(name="enableSsl", visibility=["read", "create", "update", "delete", "query"]) + """Specifies whether the connections to the server are encrypted using SSL. The default value is + false.""" + enable_server_certificate_validation: Optional[Any] = rest_field( + name="enableServerCertificateValidation", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify whether to enable server SSL certificate validation when you connect.Always use System + Trust Store (for V2 only). The default value is true.""" + trusted_cert_path: Optional[Any] = rest_field( + name="trustedCertPath", visibility=["read", "create", "update", "delete", "query"] + ) + """The full path of the .pem file containing trusted CA certificates for verifying the server when + connecting over SSL. This property can only be set when using SSL on self-hosted IR. The + default value is the cacerts.pem file installed with the IR.""" + use_system_trust_store: Optional[Any] = rest_field( + name="useSystemTrustStore", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to use a CA certificate from the system trust store or from a specified PEM + file. The default value is false.""" + allow_host_name_cn_mismatch: Optional[Any] = rest_field( + name="allowHostNameCNMismatch", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require a CA-issued SSL certificate name to match the host name of the + server when connecting over SSL. The default value is false.""" + allow_self_signed_server_cert: Optional[Any] = rest_field( + name="allowSelfSignedServerCert", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to allow self-signed certificates from the server. The default value is + false.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + host: Any, + authentication_type: Union[str, "_models.ImpalaAuthenticationType"], + port: Optional[Any] = None, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + thrift_transport_protocol: Optional[Union[str, "_models.ImpalaThriftTransportProtocol"]] = None, + enable_ssl: Optional[Any] = None, + enable_server_certificate_validation: Optional[Any] = None, + trusted_cert_path: Optional[Any] = None, + use_system_trust_store: Optional[Any] = None, + allow_host_name_cn_mismatch: Optional[Any] = None, + allow_self_signed_server_cert: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ImpalaObjectDataset(Dataset, discriminator="ImpalaObject"): + """Impala server dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.ImpalaDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "ImpalaObject". + :vartype type: str + """ + + type_properties: Optional["_models.ImpalaDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["ImpalaObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"ImpalaObject\".""" + + __flattened_items = ["table_name", "table", "schema"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.ImpalaDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ImpalaSource(TabularSource, discriminator="ImpalaSource"): + """A copy activity Impala server source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "ImpalaSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["ImpalaSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"ImpalaSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "ImpalaSource" # type: ignore + + +class InformixLinkedService(LinkedService, discriminator="Informix"): + """Informix linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Informix linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.InformixLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Informix". + :vartype type: str + """ + + type_properties: "_models.InformixLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Informix linked service properties. Required.""" + type: Literal["Informix"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Informix\".""" + + __flattened_items = [ + "connection_string", + "authentication_type", + "credential", + "user_name", + "password", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.InformixLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class InformixLinkedServiceTypeProperties(_Model): + """Informix linked service properties. + + :ivar connection_string: The non-access credential portion of the connection string as well as + an optional encrypted credential. Type: string, or SecureString, or + AzureKeyVaultSecretReference, or Expression with resultType string. Required. + :vartype connection_string: any + :ivar authentication_type: Type of authentication used to connect to the Informix as ODBC data + store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType + string). + :vartype authentication_type: any + :ivar credential: The access credential portion of the connection string specified in + driver-specific property-value format. + :vartype credential: ~azure.mgmt.datafactory.models.SecretBase + :ivar user_name: User name for Basic authentication. Type: string (or Expression with + resultType string). + :vartype user_name: any + :ivar password: Password for Basic authentication. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_string: Any = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The non-access credential portion of the connection string as well as an optional encrypted + credential. Type: string, or SecureString, or AzureKeyVaultSecretReference, or Expression with + resultType string. Required.""" + authentication_type: Optional[Any] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """Type of authentication used to connect to the Informix as ODBC data store. Possible values are: + Anonymous and Basic. Type: string (or Expression with resultType string).""" + credential: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The access credential portion of the connection string specified in driver-specific + property-value format.""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """User name for Basic authentication. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password for Basic authentication.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_string: Any, + authentication_type: Optional[Any] = None, + credential: Optional["_models.SecretBase"] = None, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class InformixSink(CopySink, discriminator="InformixSink"): + """A copy activity Informix sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar pre_copy_script: A query to execute before starting the copy. Type: string (or Expression + with resultType string). + :vartype pre_copy_script: any + :ivar type: Copy sink type. Required. Default value is "InformixSink". + :vartype type: str + """ + + pre_copy_script: Optional[Any] = rest_field( + name="preCopyScript", visibility=["read", "create", "update", "delete", "query"] + ) + """A query to execute before starting the copy. Type: string (or Expression with resultType + string).""" + type: Literal["InformixSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"InformixSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + pre_copy_script: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "InformixSink" # type: ignore + + +class InformixSource(TabularSource, discriminator="InformixSource"): + """A copy activity source for Informix. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: Database query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "InformixSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database query. Type: string (or Expression with resultType string).""" + type: Literal["InformixSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"InformixSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "InformixSource" # type: ignore + + +class InformixTableDataset(Dataset, discriminator="InformixTable"): + """The Informix table dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Informix table dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.InformixTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "InformixTable". + :vartype type: str + """ + + type_properties: Optional["_models.InformixTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Informix table dataset properties.""" + type: Literal["InformixTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"InformixTable\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.InformixTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class InformixTableDatasetTypeProperties(_Model): + """Informix table dataset properties. + + :ivar table_name: The Informix table name. Type: string (or Expression with resultType string). + :vartype table_name: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """The Informix table name. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntime(_Model): + """Azure Data Factory nested object which serves as a compute resource for activities. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + ManagedIntegrationRuntime, SelfHostedIntegrationRuntime + + :ivar type: Type of integration runtime. Required. Known values are: "Managed" and + "SelfHosted". + :vartype type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType + :ivar description: Integration runtime description. + :vartype description: str + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """Type of integration runtime. Required. Known values are: \"Managed\" and \"SelfHosted\".""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Integration runtime description.""" + + @overload + def __init__( + self, + *, + type: str, + description: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeAuthKeys(_Model): + """The integration runtime authentication keys. + + :ivar auth_key1: The primary integration runtime authentication key. + :vartype auth_key1: str + :ivar auth_key2: The secondary integration runtime authentication key. + :vartype auth_key2: str + """ + + auth_key1: Optional[str] = rest_field(name="authKey1", visibility=["read", "create", "update", "delete", "query"]) + """The primary integration runtime authentication key.""" + auth_key2: Optional[str] = rest_field(name="authKey2", visibility=["read", "create", "update", "delete", "query"]) + """The secondary integration runtime authentication key.""" + + @overload + def __init__( + self, + *, + auth_key1: Optional[str] = None, + auth_key2: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeComputeProperties(_Model): + """The compute resource properties for managed integration runtime. + + :ivar location: The location for managed integration runtime. The supported regions could be + found on + `https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities + `_. + :vartype location: str + :ivar node_size: The node size requirement to managed integration runtime. + :vartype node_size: str + :ivar number_of_nodes: The required number of nodes for managed integration runtime. + :vartype number_of_nodes: int + :ivar max_parallel_executions_per_node: Maximum parallel executions count per node for managed + integration runtime. + :vartype max_parallel_executions_per_node: int + :ivar data_flow_properties: Data flow properties for managed integration runtime. + :vartype data_flow_properties: + ~azure.mgmt.datafactory.models.IntegrationRuntimeDataFlowProperties + :ivar v_net_properties: VNet properties for managed integration runtime. + :vartype v_net_properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeVNetProperties + :ivar copy_compute_scale_properties: CopyComputeScale properties for managed integration + runtime. + :vartype copy_compute_scale_properties: + ~azure.mgmt.datafactory.models.CopyComputeScaleProperties + :ivar pipeline_external_compute_scale_properties: PipelineExternalComputeScale properties for + managed integration runtime. + :vartype pipeline_external_compute_scale_properties: + ~azure.mgmt.datafactory.models.PipelineExternalComputeScaleProperties + """ + + location: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The location for managed integration runtime. The supported regions could be found on + `https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities + `_.""" + node_size: Optional[str] = rest_field(name="nodeSize", visibility=["read", "create", "update", "delete", "query"]) + """The node size requirement to managed integration runtime.""" + number_of_nodes: Optional[int] = rest_field( + name="numberOfNodes", visibility=["read", "create", "update", "delete", "query"] + ) + """The required number of nodes for managed integration runtime.""" + max_parallel_executions_per_node: Optional[int] = rest_field( + name="maxParallelExecutionsPerNode", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum parallel executions count per node for managed integration runtime.""" + data_flow_properties: Optional["_models.IntegrationRuntimeDataFlowProperties"] = rest_field( + name="dataFlowProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Data flow properties for managed integration runtime.""" + v_net_properties: Optional["_models.IntegrationRuntimeVNetProperties"] = rest_field( + name="vNetProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """VNet properties for managed integration runtime.""" + copy_compute_scale_properties: Optional["_models.CopyComputeScaleProperties"] = rest_field( + name="copyComputeScaleProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """CopyComputeScale properties for managed integration runtime.""" + pipeline_external_compute_scale_properties: Optional["_models.PipelineExternalComputeScaleProperties"] = rest_field( + name="pipelineExternalComputeScaleProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """PipelineExternalComputeScale properties for managed integration runtime.""" + + @overload + def __init__( + self, + *, + location: Optional[str] = None, + node_size: Optional[str] = None, + number_of_nodes: Optional[int] = None, + max_parallel_executions_per_node: Optional[int] = None, + data_flow_properties: Optional["_models.IntegrationRuntimeDataFlowProperties"] = None, + v_net_properties: Optional["_models.IntegrationRuntimeVNetProperties"] = None, + copy_compute_scale_properties: Optional["_models.CopyComputeScaleProperties"] = None, + pipeline_external_compute_scale_properties: Optional["_models.PipelineExternalComputeScaleProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeConnectionInfo(_Model): + """Connection information for encrypting the on-premises data source credentials. + + :ivar service_token: The token generated in service. Callers use this token to authenticate to + integration runtime. + :vartype service_token: str + :ivar identity_cert_thumbprint: The integration runtime SSL certificate thumbprint. Click-Once + application uses it to do server validation. + :vartype identity_cert_thumbprint: str + :ivar host_service_uri: The on-premises integration runtime host URL. + :vartype host_service_uri: str + :ivar version: The integration runtime version. + :vartype version: str + :ivar public_key: The public key for encrypting a credential when transferring the credential + to the integration runtime. + :vartype public_key: str + :ivar is_identity_cert_exprired: Whether the identity certificate is expired. + :vartype is_identity_cert_exprired: bool + """ + + service_token: Optional[str] = rest_field(name="serviceToken", visibility=["read"]) + """The token generated in service. Callers use this token to authenticate to integration runtime.""" + identity_cert_thumbprint: Optional[str] = rest_field(name="identityCertThumbprint", visibility=["read"]) + """The integration runtime SSL certificate thumbprint. Click-Once application uses it to do server + validation.""" + host_service_uri: Optional[str] = rest_field(name="hostServiceUri", visibility=["read"]) + """The on-premises integration runtime host URL.""" + version: Optional[str] = rest_field(visibility=["read"]) + """The integration runtime version.""" + public_key: Optional[str] = rest_field(name="publicKey", visibility=["read"]) + """The public key for encrypting a credential when transferring the credential to the integration + runtime.""" + is_identity_cert_exprired: Optional[bool] = rest_field(name="isIdentityCertExprired", visibility=["read"]) + """Whether the identity certificate is expired.""" + + +class IntegrationRuntimeCustomerVirtualNetwork(_Model): + """The definition and properties of virtual network to which Azure-SSIS integration runtime will + join. + + :ivar subnet_id: The ID of subnet to which Azure-SSIS integration runtime will join. + :vartype subnet_id: str + """ + + subnet_id: Optional[str] = rest_field(name="subnetId", visibility=["read", "create", "update", "delete", "query"]) + """The ID of subnet to which Azure-SSIS integration runtime will join.""" + + @overload + def __init__( + self, + *, + subnet_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeCustomSetupScriptProperties(_Model): # pylint: disable=name-too-long + """Custom setup script properties for a managed dedicated integration runtime. + + :ivar blob_container_uri: The URI of the Azure blob container that contains the custom setup + script. + :vartype blob_container_uri: str + :ivar sas_token: The SAS token of the Azure blob container. + :vartype sas_token: ~azure.mgmt.datafactory.models.SecureString + """ + + blob_container_uri: Optional[str] = rest_field( + name="blobContainerUri", visibility=["read", "create", "update", "delete", "query"] + ) + """The URI of the Azure blob container that contains the custom setup script.""" + sas_token: Optional["_models.SecureString"] = rest_field( + name="sasToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The SAS token of the Azure blob container.""" + + @overload + def __init__( + self, + *, + blob_container_uri: Optional[str] = None, + sas_token: Optional["_models.SecureString"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeDataFlowProperties(_Model): + """Data flow properties for managed integration runtime. + + :ivar compute_type: Compute type of the cluster which will execute data flow job. Known values + are: "General", "MemoryOptimized", and "ComputeOptimized". + :vartype compute_type: str or ~azure.mgmt.datafactory.models.DataFlowComputeType + :ivar core_count: Core count of the cluster which will execute data flow job. Supported values + are: 8, 16, 32, 48, 80, 144 and 272. + :vartype core_count: int + :ivar time_to_live: Time to live (in minutes) setting of the cluster which will execute data + flow job. + :vartype time_to_live: int + :ivar cleanup: Cluster will not be recycled and it will be used in next data flow activity run + until TTL (time to live) is reached if this is set as false. Default is true. + :vartype cleanup: bool + :ivar custom_properties: Custom properties are used to tune the data flow runtime performance. + :vartype custom_properties: + list[~azure.mgmt.datafactory.models.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem] + """ + + compute_type: Optional[Union[str, "_models.DataFlowComputeType"]] = rest_field( + name="computeType", visibility=["read", "create", "update", "delete", "query"] + ) + """Compute type of the cluster which will execute data flow job. Known values are: \"General\", + \"MemoryOptimized\", and \"ComputeOptimized\".""" + core_count: Optional[int] = rest_field(name="coreCount", visibility=["read", "create", "update", "delete", "query"]) + """Core count of the cluster which will execute data flow job. Supported values are: 8, 16, 32, + 48, 80, 144 and 272.""" + time_to_live: Optional[int] = rest_field( + name="timeToLive", visibility=["read", "create", "update", "delete", "query"] + ) + """Time to live (in minutes) setting of the cluster which will execute data flow job.""" + cleanup: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Cluster will not be recycled and it will be used in next data flow activity run until TTL (time + to live) is reached if this is set as false. Default is true.""" + custom_properties: Optional[list["_models.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem"]] = rest_field( + name="customProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Custom properties are used to tune the data flow runtime performance.""" + + @overload + def __init__( + self, + *, + compute_type: Optional[Union[str, "_models.DataFlowComputeType"]] = None, + core_count: Optional[int] = None, + time_to_live: Optional[int] = None, + cleanup: Optional[bool] = None, + custom_properties: Optional[list["_models.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem(_Model): # pylint: disable=name-too-long + """IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem. + + :ivar name: Name of custom property. + :vartype name: str + :ivar value: Value of custom property. + :vartype value: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of custom property.""" + value: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Value of custom property.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + value: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeDataProxyProperties(_Model): + """Data proxy properties for a managed dedicated integration runtime. + + :ivar connect_via: The self-hosted integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.EntityReference + :ivar staging_linked_service: The staging linked service reference. + :vartype staging_linked_service: ~azure.mgmt.datafactory.models.EntityReference + :ivar path: The path to contain the staged data in the Blob storage. + :vartype path: str + """ + + connect_via: Optional["_models.EntityReference"] = rest_field( + name="connectVia", visibility=["read", "create", "update", "delete", "query"] + ) + """The self-hosted integration runtime reference.""" + staging_linked_service: Optional["_models.EntityReference"] = rest_field( + name="stagingLinkedService", visibility=["read", "create", "update", "delete", "query"] + ) + """The staging linked service reference.""" + path: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The path to contain the staged data in the Blob storage.""" + + @overload + def __init__( + self, + *, + connect_via: Optional["_models.EntityReference"] = None, + staging_linked_service: Optional["_models.EntityReference"] = None, + path: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeDebugResource(SubResourceDebugResource): + """Integration runtime debug resource. + + :ivar name: The resource name. + :vartype name: str + :ivar properties: Integration runtime properties. Required. + :vartype properties: ~azure.mgmt.datafactory.models.IntegrationRuntime + """ + + properties: "_models.IntegrationRuntime" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Integration runtime properties. Required.""" + + @overload + def __init__( + self, + *, + properties: "_models.IntegrationRuntime", + name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeMonitoringData(_Model): + """Get monitoring data response. + + :ivar name: Integration runtime name. + :vartype name: str + :ivar nodes: Integration runtime node monitoring data. + :vartype nodes: list[~azure.mgmt.datafactory.models.IntegrationRuntimeNodeMonitoringData] + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Integration runtime name.""" + nodes: Optional[list["_models.IntegrationRuntimeNodeMonitoringData"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Integration runtime node monitoring data.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + nodes: Optional[list["_models.IntegrationRuntimeNodeMonitoringData"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeNodeIpAddress(_Model): + """The IP address of self-hosted integration runtime node. + + :ivar ip_address: The IP address of self-hosted integration runtime node. + :vartype ip_address: str + """ + + ip_address: Optional[str] = rest_field(name="ipAddress", visibility=["read"]) + """The IP address of self-hosted integration runtime node.""" + + +class IntegrationRuntimeNodeMonitoringData(_Model): + """Monitoring data for integration runtime node. + + :ivar node_name: Name of the integration runtime node. + :vartype node_name: str + :ivar available_memory_in_mb: Available memory (MB) on the integration runtime node. + :vartype available_memory_in_mb: int + :ivar cpu_utilization: CPU percentage on the integration runtime node. + :vartype cpu_utilization: int + :ivar concurrent_jobs_limit: Maximum concurrent jobs on the integration runtime node. + :vartype concurrent_jobs_limit: int + :ivar concurrent_jobs_running: The number of jobs currently running on the integration runtime + node. + :vartype concurrent_jobs_running: int + :ivar max_concurrent_jobs: The maximum concurrent jobs in this integration runtime. + :vartype max_concurrent_jobs: int + :ivar sent_bytes: Sent bytes on the integration runtime node. + :vartype sent_bytes: float + :ivar received_bytes: Received bytes on the integration runtime node. + :vartype received_bytes: float + """ + + node_name: Optional[str] = rest_field(name="nodeName", visibility=["read"]) + """Name of the integration runtime node.""" + available_memory_in_mb: Optional[int] = rest_field(name="availableMemoryInMB", visibility=["read"]) + """Available memory (MB) on the integration runtime node.""" + cpu_utilization: Optional[int] = rest_field(name="cpuUtilization", visibility=["read"]) + """CPU percentage on the integration runtime node.""" + concurrent_jobs_limit: Optional[int] = rest_field(name="concurrentJobsLimit", visibility=["read"]) + """Maximum concurrent jobs on the integration runtime node.""" + concurrent_jobs_running: Optional[int] = rest_field(name="concurrentJobsRunning", visibility=["read"]) + """The number of jobs currently running on the integration runtime node.""" + max_concurrent_jobs: Optional[int] = rest_field(name="maxConcurrentJobs", visibility=["read"]) + """The maximum concurrent jobs in this integration runtime.""" + sent_bytes: Optional[float] = rest_field(name="sentBytes", visibility=["read"]) + """Sent bytes on the integration runtime node.""" + received_bytes: Optional[float] = rest_field(name="receivedBytes", visibility=["read"]) + """Received bytes on the integration runtime node.""" + + +class IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint(_Model): # pylint: disable=name-too-long + """Azure-SSIS integration runtime outbound network dependency endpoints for one category. + + :ivar category: The category of outbound network dependency. + :vartype category: str + :ivar endpoints: The endpoints for outbound network dependency. + :vartype endpoints: + list[~azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint] + """ + + category: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The category of outbound network dependency.""" + endpoints: Optional[list["_models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The endpoints for outbound network dependency.""" + + @overload + def __init__( + self, + *, + category: Optional[str] = None, + endpoints: Optional[list["_models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeOutboundNetworkDependenciesEndpoint(_Model): # pylint: disable=name-too-long + """The endpoint for Azure-SSIS integration runtime outbound network dependency. + + :ivar domain_name: The domain name of endpoint. + :vartype domain_name: str + :ivar endpoint_details: The details of endpoint. + :vartype endpoint_details: + list[~azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails] + """ + + domain_name: Optional[str] = rest_field( + name="domainName", visibility=["read", "create", "update", "delete", "query"] + ) + """The domain name of endpoint.""" + endpoint_details: Optional[list["_models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails"]] = ( + rest_field(name="endpointDetails", visibility=["read", "create", "update", "delete", "query"]) + ) + """The details of endpoint.""" + + @overload + def __init__( + self, + *, + domain_name: Optional[str] = None, + endpoint_details: Optional[list["_models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(_Model): # pylint: disable=name-too-long + """The details of Azure-SSIS integration runtime outbound network dependency endpoint. + + :ivar port: The port of endpoint. + :vartype port: int + """ + + port: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The port of endpoint.""" + + @overload + def __init__( + self, + *, + port: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse(_Model): # pylint: disable=name-too-long + """Azure-SSIS integration runtime outbound network dependency endpoints. + + :ivar value: The list of outbound network dependency endpoints. + :vartype value: + list[~azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint] + """ + + value: Optional[list["_models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The list of outbound network dependency endpoints.""" + + @overload + def __init__( + self, + *, + value: Optional[list["_models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeReference(_Model): + """Integration runtime reference type. + + :ivar type: Type of integration runtime. Required. "IntegrationRuntimeReference" + :vartype type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeReferenceType + :ivar reference_name: Reference integration runtime name. Required. + :vartype reference_name: str + :ivar parameters: Arguments for integration runtime. + :vartype parameters: dict[str, any] + """ + + type: Union[str, "_models.IntegrationRuntimeReferenceType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Type of integration runtime. Required. \"IntegrationRuntimeReference\"""" + reference_name: str = rest_field(name="referenceName", visibility=["read", "create", "update", "delete", "query"]) + """Reference integration runtime name. Required.""" + parameters: Optional[dict[str, Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Arguments for integration runtime.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.IntegrationRuntimeReferenceType"], + reference_name: str, + parameters: Optional[dict[str, Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeRegenerateKeyParameters(_Model): # pylint: disable=name-too-long + """Parameters to regenerate the authentication key. + + :ivar key_name: The name of the authentication key to regenerate. Known values are: "authKey1" + and "authKey2". + :vartype key_name: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeyName + """ + + key_name: Optional[Union[str, "_models.IntegrationRuntimeAuthKeyName"]] = rest_field( + name="keyName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the authentication key to regenerate. Known values are: \"authKey1\" and + \"authKey2\".""" + + @overload + def __init__( + self, + *, + key_name: Optional[Union[str, "_models.IntegrationRuntimeAuthKeyName"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeResource(ProxyResource): + """Integration runtime resource type. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datafactory.models.SystemData + :ivar properties: Integration runtime properties. Required. + :vartype properties: ~azure.mgmt.datafactory.models.IntegrationRuntime + :ivar etag: "If etag is provided in the response body, it may also be provided as a header per + the normal etag convention. Entity tags are used for comparing two or more entities from the + same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match + (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). + :vartype etag: str + """ + + properties: "_models.IntegrationRuntime" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Integration runtime properties. Required.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """\"If etag is provided in the response body, it may also be provided as a header per the normal + etag convention. Entity tags are used for comparing two or more entities from the same + requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section + 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.\").""" + + @overload + def __init__( + self, + *, + properties: "_models.IntegrationRuntime", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeSsisCatalogInfo(_Model): + """Catalog information for managed dedicated integration runtime. + + :ivar catalog_server_endpoint: The catalog database server URL. + :vartype catalog_server_endpoint: str + :ivar catalog_admin_user_name: The administrator user name of catalog database. + :vartype catalog_admin_user_name: str + :ivar catalog_admin_password: The password of the administrator user account of the catalog + database. + :vartype catalog_admin_password: ~azure.mgmt.datafactory.models.SecureString + :ivar catalog_pricing_tier: The pricing tier for the catalog database. The valid values could + be found in `https://azure.microsoft.com/en-us/pricing/details/sql-database/ + `_. Known values are: "Basic", + "Standard", "Premium", and "PremiumRS". + :vartype catalog_pricing_tier: str or + ~azure.mgmt.datafactory.models.IntegrationRuntimeSsisCatalogPricingTier + :ivar dual_standby_pair_name: The dual standby pair name of Azure-SSIS Integration Runtimes to + support SSISDB failover. + :vartype dual_standby_pair_name: str + """ + + catalog_server_endpoint: Optional[str] = rest_field( + name="catalogServerEndpoint", visibility=["read", "create", "update", "delete", "query"] + ) + """The catalog database server URL.""" + catalog_admin_user_name: Optional[str] = rest_field( + name="catalogAdminUserName", visibility=["read", "create", "update", "delete", "query"] + ) + """The administrator user name of catalog database.""" + catalog_admin_password: Optional["_models.SecureString"] = rest_field( + name="catalogAdminPassword", visibility=["read", "create", "update", "delete", "query"] + ) + """The password of the administrator user account of the catalog database.""" + catalog_pricing_tier: Optional[Union[str, "_models.IntegrationRuntimeSsisCatalogPricingTier"]] = rest_field( + name="catalogPricingTier", visibility=["read", "create", "update", "delete", "query"] + ) + """The pricing tier for the catalog database. The valid values could be found in + `https://azure.microsoft.com/en-us/pricing/details/sql-database/ + `_. Known values are: + \"Basic\", \"Standard\", \"Premium\", and \"PremiumRS\".""" + dual_standby_pair_name: Optional[str] = rest_field( + name="dualStandbyPairName", visibility=["read", "create", "update", "delete", "query"] + ) + """The dual standby pair name of Azure-SSIS Integration Runtimes to support SSISDB failover.""" + + @overload + def __init__( + self, + *, + catalog_server_endpoint: Optional[str] = None, + catalog_admin_user_name: Optional[str] = None, + catalog_admin_password: Optional["_models.SecureString"] = None, + catalog_pricing_tier: Optional[Union[str, "_models.IntegrationRuntimeSsisCatalogPricingTier"]] = None, + dual_standby_pair_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeSsisProperties(_Model): + """SSIS properties for managed integration runtime. + + :ivar catalog_info: Catalog information for managed dedicated integration runtime. + :vartype catalog_info: ~azure.mgmt.datafactory.models.IntegrationRuntimeSsisCatalogInfo + :ivar license_type: License type for bringing your own license scenario. Known values are: + "BasePrice" and "LicenseIncluded". + :vartype license_type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeLicenseType + :ivar custom_setup_script_properties: Custom setup script properties for a managed dedicated + integration runtime. + :vartype custom_setup_script_properties: + ~azure.mgmt.datafactory.models.IntegrationRuntimeCustomSetupScriptProperties + :ivar data_proxy_properties: Data proxy properties for a managed dedicated integration runtime. + :vartype data_proxy_properties: + ~azure.mgmt.datafactory.models.IntegrationRuntimeDataProxyProperties + :ivar edition: The edition for the SSIS Integration Runtime. Known values are: "Standard" and + "Enterprise". + :vartype edition: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeEdition + :ivar express_custom_setup_properties: Custom setup without script properties for a SSIS + integration runtime. + :vartype express_custom_setup_properties: list[~azure.mgmt.datafactory.models.CustomSetupBase] + :ivar package_stores: Package stores for the SSIS Integration Runtime. + :vartype package_stores: list[~azure.mgmt.datafactory.models.PackageStore] + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + catalog_info: Optional["_models.IntegrationRuntimeSsisCatalogInfo"] = rest_field( + name="catalogInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Catalog information for managed dedicated integration runtime.""" + license_type: Optional[Union[str, "_models.IntegrationRuntimeLicenseType"]] = rest_field( + name="licenseType", visibility=["read", "create", "update", "delete", "query"] + ) + """License type for bringing your own license scenario. Known values are: \"BasePrice\" and + \"LicenseIncluded\".""" + custom_setup_script_properties: Optional["_models.IntegrationRuntimeCustomSetupScriptProperties"] = rest_field( + name="customSetupScriptProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Custom setup script properties for a managed dedicated integration runtime.""" + data_proxy_properties: Optional["_models.IntegrationRuntimeDataProxyProperties"] = rest_field( + name="dataProxyProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Data proxy properties for a managed dedicated integration runtime.""" + edition: Optional[Union[str, "_models.IntegrationRuntimeEdition"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The edition for the SSIS Integration Runtime. Known values are: \"Standard\" and + \"Enterprise\".""" + express_custom_setup_properties: Optional[list["_models.CustomSetupBase"]] = rest_field( + name="expressCustomSetupProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Custom setup without script properties for a SSIS integration runtime.""" + package_stores: Optional[list["_models.PackageStore"]] = rest_field( + name="packageStores", visibility=["read", "create", "update", "delete", "query"] + ) + """Package stores for the SSIS Integration Runtime.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( + self, + *, + catalog_info: Optional["_models.IntegrationRuntimeSsisCatalogInfo"] = None, + license_type: Optional[Union[str, "_models.IntegrationRuntimeLicenseType"]] = None, + custom_setup_script_properties: Optional["_models.IntegrationRuntimeCustomSetupScriptProperties"] = None, + data_proxy_properties: Optional["_models.IntegrationRuntimeDataProxyProperties"] = None, + edition: Optional[Union[str, "_models.IntegrationRuntimeEdition"]] = None, + express_custom_setup_properties: Optional[list["_models.CustomSetupBase"]] = None, + package_stores: Optional[list["_models.PackageStore"]] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeStatus(_Model): + """Integration runtime status. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + ManagedIntegrationRuntimeStatus, SelfHostedIntegrationRuntimeStatus + + :ivar type: Type of integration runtime. Required. Known values are: "Managed" and + "SelfHosted". + :vartype type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType + :ivar data_factory_name: The data factory name which the integration runtime belong to. + :vartype data_factory_name: str + :ivar state: The state of integration runtime. Known values are: "Initial", "Stopped", + "Started", "Starting", "Stopping", "NeedRegistration", "Online", "Limited", "Offline", and + "AccessDenied". + :vartype state: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeState + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """Type of integration runtime. Required. Known values are: \"Managed\" and \"SelfHosted\".""" + data_factory_name: Optional[str] = rest_field(name="dataFactoryName", visibility=["read"]) + """The data factory name which the integration runtime belong to.""" + state: Optional[Union[str, "_models.IntegrationRuntimeState"]] = rest_field(visibility=["read"]) + """The state of integration runtime. Known values are: \"Initial\", \"Stopped\", \"Started\", + \"Starting\", \"Stopping\", \"NeedRegistration\", \"Online\", \"Limited\", \"Offline\", and + \"AccessDenied\".""" + + @overload + def __init__( + self, + *, + type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeStatusResponse(_Model): + """Integration runtime status response. + + :ivar name: The integration runtime name. + :vartype name: str + :ivar properties: Integration runtime properties. Required. + :vartype properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatus + """ + + name: Optional[str] = rest_field(visibility=["read"]) + """The integration runtime name.""" + properties: "_models.IntegrationRuntimeStatus" = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Integration runtime properties. Required.""" + + @overload + def __init__( + self, + *, + properties: "_models.IntegrationRuntimeStatus", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IntegrationRuntimeVNetProperties(_Model): + """VNet properties for managed integration runtime. + + :ivar v_net_id: The ID of the VNet that this integration runtime will join. + :vartype v_net_id: str + :ivar subnet: The name of the subnet this integration runtime will join. + :vartype subnet: str + :ivar public_i_ps: Resource IDs of the public IP addresses that this integration runtime will + use. + :vartype public_i_ps: list[str] + :ivar subnet_id: The ID of subnet, to which this Azure-SSIS integration runtime will be joined. + :vartype subnet_id: str + """ + + v_net_id: Optional[str] = rest_field(name="vNetId", visibility=["read", "create", "update", "delete", "query"]) + """The ID of the VNet that this integration runtime will join.""" + subnet: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the subnet this integration runtime will join.""" + public_i_ps: Optional[list[str]] = rest_field( + name="publicIPs", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource IDs of the public IP addresses that this integration runtime will use.""" + subnet_id: Optional[str] = rest_field(name="subnetId", visibility=["read", "create", "update", "delete", "query"]) + """The ID of subnet, to which this Azure-SSIS integration runtime will be joined.""" + + @overload + def __init__( + self, + *, + v_net_id: Optional[str] = None, + subnet: Optional[str] = None, + public_i_ps: Optional[list[str]] = None, + subnet_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class InteractiveQueryProperties(_Model): + """Interactive authoring capability type properties. + + :ivar status: The interactive authoring capability status. Must be one of + InteractiveCapabilityStatus. The default value is 'Enabling'. Known values are: "Enabling", + "Enabled", "Disabling", and "Disabled". + :vartype status: str or ~azure.mgmt.datafactory.models.InteractiveCapabilityStatus + :ivar auto_termination_minutes: The allowed idle time for interactive authoring. + :vartype auto_termination_minutes: int + """ + + status: Optional[Union[str, "_models.InteractiveCapabilityStatus"]] = rest_field(visibility=["read"]) + """The interactive authoring capability status. Must be one of InteractiveCapabilityStatus. The + default value is 'Enabling'. Known values are: \"Enabling\", \"Enabled\", \"Disabling\", and + \"Disabled\".""" + auto_termination_minutes: Optional[int] = rest_field(name="autoTerminationMinutes", visibility=["read"]) + """The allowed idle time for interactive authoring.""" + + +class JiraLinkedService(LinkedService, discriminator="Jira"): + """Jira Service linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Jira Service linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.JiraLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Jira". + :vartype type: str + """ + + type_properties: "_models.JiraLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Jira Service linked service properties. Required.""" + type: Literal["Jira"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Jira\".""" + + __flattened_items = [ + "host", + "port", + "username", + "password", + "use_encrypted_endpoints", + "use_host_verification", + "use_peer_verification", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.JiraLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class JiraLinkedServiceTypeProperties(_Model): + """Jira Service linked service properties. + + :ivar host: The IP address or host name of the Jira service. (e.g. jira.example.com). Required. + :vartype host: any + :ivar port: The TCP port that the Jira server uses to listen for client connections. The + default value is 443 if connecting through HTTPS, or 8080 if connecting through HTTP. + :vartype port: any + :ivar username: The user name that you use to access Jira Service. Required. + :vartype username: any + :ivar password: The password corresponding to the user name that you provided in the username + field. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using + HTTPS. The default value is true. + :vartype use_encrypted_endpoints: any + :ivar use_host_verification: Specifies whether to require the host name in the server's + certificate to match the host name of the server when connecting over SSL. The default value is + true. + :vartype use_host_verification: any + :ivar use_peer_verification: Specifies whether to verify the identity of the server when + connecting over SSL. The default value is true. + :vartype use_peer_verification: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + host: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The IP address or host name of the Jira service. (e.g. jira.example.com). Required.""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The TCP port that the Jira server uses to listen for client connections. The default value is + 443 if connecting through HTTPS, or 8080 if connecting through HTTP.""" + username: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The user name that you use to access Jira Service. Required.""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password corresponding to the user name that you provided in the username field.""" + use_encrypted_endpoints: Optional[Any] = rest_field( + name="useEncryptedEndpoints", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the data source endpoints are encrypted using HTTPS. The default value is + true.""" + use_host_verification: Optional[Any] = rest_field( + name="useHostVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require the host name in the server's certificate to match the host name + of the server when connecting over SSL. The default value is true.""" + use_peer_verification: Optional[Any] = rest_field( + name="usePeerVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to verify the identity of the server when connecting over SSL. The default + value is true.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + host: Any, + username: Any, + port: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + use_encrypted_endpoints: Optional[Any] = None, + use_host_verification: Optional[Any] = None, + use_peer_verification: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JiraObjectDataset(Dataset, discriminator="JiraObject"): + """Jira Service dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.JiraTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "JiraObject". + :vartype type: str + """ + + type_properties: Optional["_models.JiraTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["JiraObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"JiraObject\".""" + + __flattened_items = ["table_name", "schema", "table"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.JiraTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class JiraSource(TabularSource, discriminator="JiraSource"): + """A copy activity Jira Service source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "JiraSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["JiraSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"JiraSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "JiraSource" # type: ignore + + +class JiraTableDatasetTypeProperties(_Model): + """Jira dataset properties. + + :ivar table_name: This property is only supported in Jira V1 Dataset, please consider upgrading + to V2 dataset. + :vartype table_name: any + :ivar schema: The schema name of the Jira, applies only for Jira V2 dataset. Type: string (or + Expression with resultType string). + :vartype schema: any + :ivar table: The table name of the Jira, applies only for Jira V2 dataset. Type: string (or + Expression with resultType string). + :vartype table: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property is only supported in Jira V1 Dataset, please consider upgrading to V2 dataset.""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the Jira, applies only for Jira V2 dataset. Type: string (or Expression with + resultType string).""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Jira, applies only for Jira V2 dataset. Type: string (or Expression with + resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + schema: Optional[Any] = None, + table: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JsonDataset(Dataset, discriminator="Json"): + """Json dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Json dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.JsonDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "Json". + :vartype type: str + """ + + type_properties: Optional["_models.JsonDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Json dataset properties.""" + type: Literal["Json"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"Json\".""" + + __flattened_items = ["location", "encoding_name", "compression"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.JsonDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class JsonDatasetTypeProperties(_Model): + """Json dataset properties. + + :ivar location: The location of the json data storage. Required. + :vartype location: ~azure.mgmt.datafactory.models.DatasetLocation + :ivar encoding_name: The code page name of the preferred encoding. If not specified, the + default value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column + of the table in the following link to set supported values: + `https://msdn.microsoft.com/library/system.text.encoding.aspx + `_. Type: string (or Expression + with resultType string). + :vartype encoding_name: any + :ivar compression: The data compression method used for the json dataset. + :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression + """ + + location: "_models.DatasetLocation" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The location of the json data storage. Required.""" + encoding_name: Optional[Any] = rest_field( + name="encodingName", visibility=["read", "create", "update", "delete", "query"] + ) + """The code page name of the preferred encoding. If not specified, the default value is UTF-8, + unless BOM denotes another Unicode encoding. Refer to the name column of the table in the + following link to set supported values: + `https://msdn.microsoft.com/library/system.text.encoding.aspx + `_. Type: string (or Expression + with resultType string).""" + compression: Optional["_models.DatasetCompression"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The data compression method used for the json dataset.""" + + @overload + def __init__( + self, + *, + location: "_models.DatasetLocation", + encoding_name: Optional[Any] = None, + compression: Optional["_models.DatasetCompression"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JsonFormat(DatasetStorageFormat, discriminator="JsonFormat"): + """The data stored in JSON format. + + :ivar serializer: Serializer. Type: string (or Expression with resultType string). + :vartype serializer: any + :ivar deserializer: Deserializer. Type: string (or Expression with resultType string). + :vartype deserializer: any + :ivar file_pattern: File pattern of JSON. To be more specific, the way of separating a + collection of JSON objects. The default value is 'setOfObjects'. It is case-sensitive. + :vartype file_pattern: any + :ivar nesting_separator: The character used to separate nesting levels. Default value is '.' + (dot). Type: string (or Expression with resultType string). + :vartype nesting_separator: any + :ivar encoding_name: The code page name of the preferred encoding. If not provided, the default + value is 'utf-8', unless the byte order mark (BOM) denotes another Unicode encoding. The full + list of supported values can be found in the 'Name' column of the table of encodings in the + following reference: `https://go.microsoft.com/fwlink/?linkid=861078 + `_. Type: string (or Expression with resultType + string). + :vartype encoding_name: any + :ivar json_node_reference: The JSONPath of the JSON array element to be flattened. Example: + "$.ArrayPath". Type: string (or Expression with resultType string). + :vartype json_node_reference: any + :ivar json_path_definition: The JSONPath definition for each column mapping with a customized + column name to extract data from JSON file. For fields under root object, start with "$"; for + fields inside the array chosen by jsonNodeReference property, start from the array element. + Example: {"Column1": "$.Column1Path", "Column2": "Column2PathInArray"}. Type: object (or + Expression with resultType object). + :vartype json_path_definition: any + :ivar type: Type of dataset storage format. Required. Default value is "JsonFormat". + :vartype type: str + """ + + file_pattern: Optional[Any] = rest_field( + name="filePattern", visibility=["read", "create", "update", "delete", "query"] + ) + """File pattern of JSON. To be more specific, the way of separating a collection of JSON objects. + The default value is 'setOfObjects'. It is case-sensitive.""" + nesting_separator: Optional[Any] = rest_field( + name="nestingSeparator", visibility=["read", "create", "update", "delete", "query"] + ) + """The character used to separate nesting levels. Default value is '.' (dot). Type: string (or + Expression with resultType string).""" + encoding_name: Optional[Any] = rest_field( + name="encodingName", visibility=["read", "create", "update", "delete", "query"] + ) + """The code page name of the preferred encoding. If not provided, the default value is 'utf-8', + unless the byte order mark (BOM) denotes another Unicode encoding. The full list of supported + values can be found in the 'Name' column of the table of encodings in the following reference: + `https://go.microsoft.com/fwlink/?linkid=861078 + `_. Type: string (or Expression with resultType + string).""" + json_node_reference: Optional[Any] = rest_field( + name="jsonNodeReference", visibility=["read", "create", "update", "delete", "query"] + ) + """The JSONPath of the JSON array element to be flattened. Example: \"$.ArrayPath\". Type: string + (or Expression with resultType string).""" + json_path_definition: Optional[Any] = rest_field( + name="jsonPathDefinition", visibility=["read", "create", "update", "delete", "query"] + ) + """The JSONPath definition for each column mapping with a customized column name to extract data + from JSON file. For fields under root object, start with \"$\"; for fields inside the array + chosen by jsonNodeReference property, start from the array element. Example: {\"Column1\": + \"$.Column1Path\", \"Column2\": \"Column2PathInArray\"}. Type: object (or Expression with + resultType object).""" + type: Literal["JsonFormat"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage format. Required. Default value is \"JsonFormat\".""" + + @overload + def __init__( + self, + *, + serializer: Optional[Any] = None, + deserializer: Optional[Any] = None, + file_pattern: Optional[Any] = None, + nesting_separator: Optional[Any] = None, + encoding_name: Optional[Any] = None, + json_node_reference: Optional[Any] = None, + json_path_definition: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "JsonFormat" # type: ignore + + +class JsonReadSettings(FormatReadSettings, discriminator="JsonReadSettings"): + """Json read settings. + + :ivar compression_properties: Compression settings. + :vartype compression_properties: ~azure.mgmt.datafactory.models.CompressionReadSettings + :ivar type: The read setting type. Required. Default value is "JsonReadSettings". + :vartype type: str + """ + + compression_properties: Optional["_models.CompressionReadSettings"] = rest_field( + name="compressionProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Compression settings.""" + type: Literal["JsonReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"JsonReadSettings\".""" + + @overload + def __init__( + self, + *, + compression_properties: Optional["_models.CompressionReadSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "JsonReadSettings" # type: ignore + + +class JsonSink(CopySink, discriminator="JsonSink"): + """A copy activity Json sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar store_settings: Json store settings. + :vartype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings + :ivar format_settings: Json format settings. + :vartype format_settings: ~azure.mgmt.datafactory.models.JsonWriteSettings + :ivar type: Copy sink type. Required. Default value is "JsonSink". + :vartype type: str + """ + + store_settings: Optional["_models.StoreWriteSettings"] = rest_field( + name="storeSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Json store settings.""" + format_settings: Optional["_models.JsonWriteSettings"] = rest_field( + name="formatSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Json format settings.""" + type: Literal["JsonSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"JsonSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + store_settings: Optional["_models.StoreWriteSettings"] = None, + format_settings: Optional["_models.JsonWriteSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "JsonSink" # type: ignore + + +class JsonSource(CopySource, discriminator="JsonSource"): + """A copy activity Json source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar store_settings: Json store settings. + :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings + :ivar format_settings: Json format settings. + :vartype format_settings: ~azure.mgmt.datafactory.models.JsonReadSettings + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "JsonSource". + :vartype type: str + """ + + store_settings: Optional["_models.StoreReadSettings"] = rest_field( + name="storeSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Json store settings.""" + format_settings: Optional["_models.JsonReadSettings"] = rest_field( + name="formatSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Json format settings.""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["JsonSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"JsonSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + store_settings: Optional["_models.StoreReadSettings"] = None, + format_settings: Optional["_models.JsonReadSettings"] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "JsonSource" # type: ignore + + +class JsonWriteSettings(FormatWriteSettings, discriminator="JsonWriteSettings"): + """Json write settings. + + :ivar file_pattern: File pattern of JSON. This setting controls the way a collection of JSON + objects will be treated. The default value is 'setOfObjects'. It is case-sensitive. + :vartype file_pattern: any + :ivar type: The write setting type. Required. Default value is "JsonWriteSettings". + :vartype type: str + """ + + file_pattern: Optional[Any] = rest_field( + name="filePattern", visibility=["read", "create", "update", "delete", "query"] + ) + """File pattern of JSON. This setting controls the way a collection of JSON objects will be + treated. The default value is 'setOfObjects'. It is case-sensitive.""" + type: Literal["JsonWriteSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The write setting type. Required. Default value is \"JsonWriteSettings\".""" + + @overload + def __init__( + self, + *, + file_pattern: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "JsonWriteSettings" # type: ignore + + +class LakeHouseLinkedService(LinkedService, discriminator="Lakehouse"): + """Microsoft Fabric Lakehouse linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Microsoft Fabric Lakehouse linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.LakeHouseLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Lakehouse". + :vartype type: str + """ + + type_properties: "_models.LakeHouseLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Microsoft Fabric Lakehouse linked service properties. Required.""" + type: Literal["Lakehouse"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Lakehouse\".""" + + __flattened_items = [ + "workspace_id", + "artifact_id", + "authentication_type", + "service_principal_id", + "service_principal_key", + "tenant", + "encrypted_credential", + "service_principal_credential_type", + "service_principal_credential", + "credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.LakeHouseLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class LakeHouseLinkedServiceTypeProperties(_Model): + """Microsoft Fabric Lakehouse linked service properties. + + :ivar workspace_id: The ID of Microsoft Fabric workspace. Type: string (or Expression with + resultType string). + :vartype workspace_id: any + :ivar artifact_id: The ID of Microsoft Fabric Lakehouse artifact. Type: string (or Expression + with resultType string). + :vartype artifact_id: any + :ivar authentication_type: The authentication type to use. Known values are: + "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.LakehouseAuthenticationType + :ivar service_principal_id: The ID of the application used to authenticate against Microsoft + Fabric Lakehouse. Type: string (or Expression with resultType string). + :vartype service_principal_id: any + :ivar service_principal_key: The Key of the application used to authenticate against Microsoft + Fabric Lakehouse. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string + (or Expression with resultType string). + :vartype tenant: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar service_principal_credential_type: The service principal credential type to use in + Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' + for certificate. Type: string (or Expression with resultType string). + :vartype service_principal_credential_type: any + :ivar service_principal_credential: The credential of the service principal object in Azure + Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', + servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If + servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only + be AzureKeyVaultSecretReference. + :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + workspace_id: Optional[Any] = rest_field( + name="workspaceId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of Microsoft Fabric workspace. Type: string (or Expression with resultType string).""" + artifact_id: Optional[Any] = rest_field( + name="artifactId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of Microsoft Fabric Lakehouse artifact. Type: string (or Expression with resultType + string).""" + authentication_type: Optional[Union[str, "_models.LakehouseAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to use. Known values are: \"ServicePrincipal\", + \"SystemAssignedManagedIdentity\", and \"UserAssignedManagedIdentity\".""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of the application used to authenticate against Microsoft Fabric Lakehouse. Type: string + (or Expression with resultType string).""" + service_principal_key: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The Key of the application used to authenticate against Microsoft Fabric Lakehouse.""" + tenant: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name or ID of the tenant to which the service principal belongs. Type: string (or + Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + service_principal_credential_type: Optional[Any] = rest_field( + name="servicePrincipalCredentialType", visibility=["read", "create", "update", "delete", "query"] + ) + """The service principal credential type to use in Server-To-Server authentication. + 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + Expression with resultType string).""" + service_principal_credential: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The credential of the service principal object in Azure Active Directory. If + servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be + SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is + 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( + self, + *, + workspace_id: Optional[Any] = None, + artifact_id: Optional[Any] = None, + authentication_type: Optional[Union[str, "_models.LakehouseAuthenticationType"]] = None, + service_principal_id: Optional[Any] = None, + service_principal_key: Optional["_models.SecretBase"] = None, + tenant: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + service_principal_credential_type: Optional[Any] = None, + service_principal_credential: Optional["_models.SecretBase"] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LakeHouseLocation(DatasetLocation, discriminator="LakeHouseLocation"): + """The location of Microsoft Fabric Lakehouse Files dataset. + + :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with + resultType string). + :vartype folder_path: any + :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType + string). + :vartype file_name: any + :ivar type: Type of dataset storage location. Required. Default value is "LakeHouseLocation". + :vartype type: str + """ + + type: Literal["LakeHouseLocation"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage location. Required. Default value is \"LakeHouseLocation\".""" + + @overload + def __init__( + self, + *, + folder_path: Optional[Any] = None, + file_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "LakeHouseLocation" # type: ignore + + +class LakeHouseReadSettings(StoreReadSettings, discriminator="LakeHouseReadSettings"): + """Microsoft Fabric Lakehouse Files read settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar recursive: If true, files under the folder path will be read recursively. Default is + true. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar wildcard_folder_path: Microsoft Fabric Lakehouse Files wildcardFolderPath. Type: string + (or Expression with resultType string). + :vartype wildcard_folder_path: any + :ivar wildcard_file_name: Microsoft Fabric Lakehouse Files wildcardFileName. Type: string (or + Expression with resultType string). + :vartype wildcard_file_name: any + :ivar file_list_path: Point to a text file that lists each file (relative path to the path + configured in the dataset) that you want to copy. Type: string (or Expression with resultType + string). + :vartype file_list_path: any + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: any + :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: + string (or Expression with resultType string). + :vartype partition_root_path: any + :ivar delete_files_after_completion: Indicates whether the source files need to be deleted + after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + :vartype delete_files_after_completion: any + :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or + Expression with resultType string). + :vartype modified_datetime_start: any + :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression + with resultType string). + :vartype modified_datetime_end: any + :ivar type: The read setting type. Required. Default value is "LakeHouseReadSettings". + :vartype type: str + """ + + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files under the folder path will be read recursively. Default is true. Type: boolean + (or Expression with resultType boolean).""" + wildcard_folder_path: Optional[Any] = rest_field( + name="wildcardFolderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Microsoft Fabric Lakehouse Files wildcardFolderPath. Type: string (or Expression with + resultType string).""" + wildcard_file_name: Optional[Any] = rest_field( + name="wildcardFileName", visibility=["read", "create", "update", "delete", "query"] + ) + """Microsoft Fabric Lakehouse Files wildcardFileName. Type: string (or Expression with resultType + string).""" + file_list_path: Optional[Any] = rest_field( + name="fileListPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Point to a text file that lists each file (relative path to the path configured in the dataset) + that you want to copy. Type: string (or Expression with resultType string).""" + enable_partition_discovery: Optional[Any] = rest_field( + name="enablePartitionDiscovery", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType + boolean).""" + partition_root_path: Optional[Any] = rest_field( + name="partitionRootPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the root path where partition discovery starts from. Type: string (or Expression with + resultType string).""" + delete_files_after_completion: Optional[Any] = rest_field( + name="deleteFilesAfterCompletion", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the source files need to be deleted after copy completion. Default is false. + Type: boolean (or Expression with resultType boolean).""" + modified_datetime_start: Optional[Any] = rest_field( + name="modifiedDatetimeStart", visibility=["read", "create", "update", "delete", "query"] + ) + """The start of file's modified datetime. Type: string (or Expression with resultType string).""" + modified_datetime_end: Optional[Any] = rest_field( + name="modifiedDatetimeEnd", visibility=["read", "create", "update", "delete", "query"] + ) + """The end of file's modified datetime. Type: string (or Expression with resultType string).""" + type: Literal["LakeHouseReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"LakeHouseReadSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + recursive: Optional[Any] = None, + wildcard_folder_path: Optional[Any] = None, + wildcard_file_name: Optional[Any] = None, + file_list_path: Optional[Any] = None, + enable_partition_discovery: Optional[Any] = None, + partition_root_path: Optional[Any] = None, + delete_files_after_completion: Optional[Any] = None, + modified_datetime_start: Optional[Any] = None, + modified_datetime_end: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "LakeHouseReadSettings" # type: ignore + + +class LakeHouseTableDataset(Dataset, discriminator="LakehouseTable"): + """Microsoft Fabric Lakehouse Table. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Microsoft Fabric Lakehouse Table dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.LakeHouseTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "LakehouseTable". + :vartype type: str + """ + + type_properties: Optional["_models.LakeHouseTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Microsoft Fabric Lakehouse Table dataset properties.""" + type: Literal["LakehouseTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"LakehouseTable\".""" + + __flattened_items = ["schema", "table"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.LakeHouseTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class LakeHouseTableDatasetTypeProperties(_Model): + """Microsoft Fabric Lakehouse Table dataset properties. + + :ivar schema: The schema name of Microsoft Fabric Lakehouse Table. Type: string (or Expression + with resultType string). + :vartype schema: any + :ivar table: The name of Microsoft Fabric Lakehouse Table. Type: string (or Expression with + resultType string). + :vartype table: any + """ + + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of Microsoft Fabric Lakehouse Table. Type: string (or Expression with + resultType string).""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of Microsoft Fabric Lakehouse Table. Type: string (or Expression with resultType + string).""" + + @overload + def __init__( + self, + *, + schema: Optional[Any] = None, + table: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LakeHouseTableSink(CopySink, discriminator="LakeHouseTableSink"): + """A copy activity for Microsoft Fabric Lakehouse Table sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar table_action_option: The type of table action for Lakehouse Table sink. Possible values + include: "None", "Append", "Overwrite". + :vartype table_action_option: any + :ivar partition_option: Create partitions in folder structure based on one or multiple columns. + Each distinct column value (pair) will be a new partition. Possible values include: "None", + "PartitionByKey". + :vartype partition_option: any + :ivar partition_name_list: Specify the partition column names from sink columns. Type: array of + objects (or Expression with resultType array of objects). + :vartype partition_name_list: any + :ivar type: Copy sink type. Required. Default value is "LakeHouseTableSink". + :vartype type: str + """ + + table_action_option: Optional[Any] = rest_field( + name="tableActionOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of table action for Lakehouse Table sink. Possible values include: \"None\", + \"Append\", \"Overwrite\".""" + partition_option: Optional[Any] = rest_field( + name="partitionOption", visibility=["read", "create", "update", "delete", "query"] + ) + """Create partitions in folder structure based on one or multiple columns. Each distinct column + value (pair) will be a new partition. Possible values include: \"None\", \"PartitionByKey\".""" + partition_name_list: Optional[Any] = rest_field( + name="partitionNameList", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the partition column names from sink columns. Type: array of objects (or Expression + with resultType array of objects).""" + type: Literal["LakeHouseTableSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"LakeHouseTableSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + table_action_option: Optional[Any] = None, + partition_option: Optional[Any] = None, + partition_name_list: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "LakeHouseTableSink" # type: ignore + + +class LakeHouseTableSource(CopySource, discriminator="LakeHouseTableSource"): + """A copy activity source for Microsoft Fabric Lakehouse Table. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar timestamp_as_of: Query an older snapshot by timestamp. Type: string (or Expression with + resultType string). + :vartype timestamp_as_of: any + :ivar version_as_of: Query an older snapshot by version. Type: integer (or Expression with + resultType integer). + :vartype version_as_of: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "LakeHouseTableSource". + :vartype type: str + """ + + timestamp_as_of: Optional[Any] = rest_field( + name="timestampAsOf", visibility=["read", "create", "update", "delete", "query"] + ) + """Query an older snapshot by timestamp. Type: string (or Expression with resultType string).""" + version_as_of: Optional[Any] = rest_field( + name="versionAsOf", visibility=["read", "create", "update", "delete", "query"] + ) + """Query an older snapshot by version. Type: integer (or Expression with resultType integer).""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["LakeHouseTableSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"LakeHouseTableSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + timestamp_as_of: Optional[Any] = None, + version_as_of: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "LakeHouseTableSource" # type: ignore + + +class LakeHouseWriteSettings(StoreWriteSettings, discriminator="LakeHouseWriteSettings"): + """Microsoft Fabric Lakehouse Files write settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar copy_behavior: The type of copy behavior for copy sink. + :vartype copy_behavior: any + :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects + (or Expression with resultType array of objects). + :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] + :ivar type: The write setting type. Required. Default value is "LakeHouseWriteSettings". + :vartype type: str + """ + + type: Literal["LakeHouseWriteSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The write setting type. Required. Default value is \"LakeHouseWriteSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + copy_behavior: Optional[Any] = None, + metadata: Optional[list["_models.MetadataItem"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "LakeHouseWriteSettings" # type: ignore + + +class LicensedComponentSetupTypeProperties(_Model): + """Installation of licensed component setup type properties. + + :ivar component_name: The name of the 3rd party component. Required. + :vartype component_name: str + :ivar license_key: The license key to activate the component. + :vartype license_key: ~azure.mgmt.datafactory.models.SecretBase + """ + + component_name: str = rest_field(name="componentName", visibility=["read", "create", "update", "delete", "query"]) + """The name of the 3rd party component. Required.""" + license_key: Optional["_models.SecretBase"] = rest_field( + name="licenseKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The license key to activate the component.""" + + @overload + def __init__( + self, + *, + component_name: str, + license_key: Optional["_models.SecretBase"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LinkedIntegrationRuntime(_Model): + """The linked integration runtime information. + + :ivar name: The name of the linked integration runtime. + :vartype name: str + :ivar subscription_id: The subscription ID for which the linked integration runtime belong to. + :vartype subscription_id: str + :ivar data_factory_name: The name of the data factory for which the linked integration runtime + belong to. + :vartype data_factory_name: str + :ivar data_factory_location: The location of the data factory for which the linked integration + runtime belong to. + :vartype data_factory_location: str + :ivar create_time: The creating time of the linked integration runtime. + :vartype create_time: ~datetime.datetime + """ + + name: Optional[str] = rest_field(visibility=["read"]) + """The name of the linked integration runtime.""" + subscription_id: Optional[str] = rest_field(name="subscriptionId", visibility=["read"]) + """The subscription ID for which the linked integration runtime belong to.""" + data_factory_name: Optional[str] = rest_field(name="dataFactoryName", visibility=["read"]) + """The name of the data factory for which the linked integration runtime belong to.""" + data_factory_location: Optional[str] = rest_field(name="dataFactoryLocation", visibility=["read"]) + """The location of the data factory for which the linked integration runtime belong to.""" + create_time: Optional[datetime.datetime] = rest_field(name="createTime", visibility=["read"], format="rfc3339") + """The creating time of the linked integration runtime.""" + + +class LinkedIntegrationRuntimeType(_Model): + """The base definition of a linked integration runtime. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization + + :ivar authorization_type: The authorization type for integration runtime sharing. Required. + Default value is None. + :vartype authorization_type: str + """ + + __mapping__: dict[str, _Model] = {} + authorization_type: str = rest_discriminator( + name="authorizationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authorization type for integration runtime sharing. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + authorization_type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LinkedIntegrationRuntimeKeyAuthorization(LinkedIntegrationRuntimeType, discriminator="Key"): + """The key authorization type integration runtime. + + :ivar key: The key used for authorization. Required. + :vartype key: ~azure.mgmt.datafactory.models.SecureString + :ivar authorization_type: The authorization type for integration runtime sharing. Required. + Default value is "Key". + :vartype authorization_type: str + """ + + key: "_models.SecureString" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The key used for authorization. Required.""" + authorization_type: Literal["Key"] = rest_discriminator(name="authorizationType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The authorization type for integration runtime sharing. Required. Default value is \"Key\".""" + + @overload + def __init__( + self, + *, + key: "_models.SecureString", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.authorization_type = "Key" # type: ignore + + +class LinkedIntegrationRuntimeRbacAuthorization( + LinkedIntegrationRuntimeType, discriminator="RBAC" +): # pylint: disable=name-too-long + """The role based access control (RBAC) authorization type integration runtime. + + :ivar resource_id: The resource identifier of the integration runtime to be shared. Required. + :vartype resource_id: str + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + :ivar authorization_type: The authorization type for integration runtime sharing. Required. + Default value is "RBAC". + :vartype authorization_type: str + """ + + resource_id: str = rest_field(name="resourceId", visibility=["read", "create", "update", "delete", "query"]) + """The resource identifier of the integration runtime to be shared. Required.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + authorization_type: Literal["RBAC"] = rest_discriminator(name="authorizationType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The authorization type for integration runtime sharing. Required. Default value is \"RBAC\".""" + + @overload + def __init__( + self, + *, + resource_id: str, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.authorization_type = "RBAC" # type: ignore + + +class LinkedIntegrationRuntimeRequest(_Model): + """Data factory name for linked integration runtime request. + + :ivar linked_factory_name: The data factory name for linked integration runtime. Required. + :vartype linked_factory_name: str + """ + + linked_factory_name: str = rest_field( + name="factoryName", visibility=["read", "create", "update", "delete", "query"] + ) + """The data factory name for linked integration runtime. Required.""" + + @overload + def __init__( + self, + *, + linked_factory_name: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LinkedServiceDebugResource(SubResourceDebugResource): + """Linked service debug resource. + + :ivar name: The resource name. + :vartype name: str + :ivar properties: Properties of linked service. Required. + :vartype properties: ~azure.mgmt.datafactory.models.LinkedService + """ + + properties: "_models.LinkedService" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Properties of linked service. Required.""" + + @overload + def __init__( + self, + *, + properties: "_models.LinkedService", + name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LinkedServiceReference(_Model): + """Linked service reference type. + + :ivar type: Linked service reference type. Required. "LinkedServiceReference" + :vartype type: str or ~azure.mgmt.datafactory.models.Type + :ivar reference_name: Reference LinkedService name. Required. + :vartype reference_name: str + :ivar parameters: Arguments for LinkedService. + :vartype parameters: dict[str, any] + """ + + type: Union[str, "_models.Type"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Linked service reference type. Required. \"LinkedServiceReference\"""" + reference_name: str = rest_field(name="referenceName", visibility=["read", "create", "update", "delete", "query"]) + """Reference LinkedService name. Required.""" + parameters: Optional[dict[str, Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Arguments for LinkedService.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.Type"], + reference_name: str, + parameters: Optional[dict[str, Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LinkedServiceResource(ProxyResource): + """Linked service resource type. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datafactory.models.SystemData + :ivar properties: Properties of linked service. Required. + :vartype properties: ~azure.mgmt.datafactory.models.LinkedService + :ivar etag: "If etag is provided in the response body, it may also be provided as a header per + the normal etag convention. Entity tags are used for comparing two or more entities from the + same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match + (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). + :vartype etag: str + """ + + properties: "_models.LinkedService" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Properties of linked service. Required.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """\"If etag is provided in the response body, it may also be provided as a header per the normal + etag convention. Entity tags are used for comparing two or more entities from the same + requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section + 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.\").""" + + @overload + def __init__( + self, + *, + properties: "_models.LinkedService", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LogLocationSettings(_Model): + """Log location settings. + + :ivar linked_service_name: Log storage linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar path: The path to storage for storing detailed logs of activity execution. Type: string + (or Expression with resultType string). + :vartype path: any + """ + + linked_service_name: "_models.LinkedServiceReference" = rest_field( + name="linkedServiceName", visibility=["read", "create", "update", "delete", "query"] + ) + """Log storage linked service reference. Required.""" + path: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The path to storage for storing detailed logs of activity execution. Type: string (or + Expression with resultType string).""" + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + path: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LogSettings(_Model): + """Log settings. + + :ivar enable_copy_activity_log: Specifies whether to enable copy activity log. Type: boolean + (or Expression with resultType boolean). + :vartype enable_copy_activity_log: any + :ivar copy_activity_log_settings: Specifies settings for copy activity log. + :vartype copy_activity_log_settings: ~azure.mgmt.datafactory.models.CopyActivityLogSettings + :ivar log_location_settings: Log location settings customer needs to provide when enabling log. + Required. + :vartype log_location_settings: ~azure.mgmt.datafactory.models.LogLocationSettings + """ + + enable_copy_activity_log: Optional[Any] = rest_field( + name="enableCopyActivityLog", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to enable copy activity log. Type: boolean (or Expression with resultType + boolean).""" + copy_activity_log_settings: Optional["_models.CopyActivityLogSettings"] = rest_field( + name="copyActivityLogSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies settings for copy activity log.""" + log_location_settings: "_models.LogLocationSettings" = rest_field( + name="logLocationSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Log location settings customer needs to provide when enabling log. Required.""" + + @overload + def __init__( + self, + *, + log_location_settings: "_models.LogLocationSettings", + enable_copy_activity_log: Optional[Any] = None, + copy_activity_log_settings: Optional["_models.CopyActivityLogSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LogStorageSettings(_Model): + """(Deprecated. Please use LogSettings) Log storage settings. + + :ivar linked_service_name: Log storage linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar path: The path to storage for storing detailed logs of activity execution. Type: string + (or Expression with resultType string). + :vartype path: any + :ivar log_level: Gets or sets the log level, support: Info, Warning. Type: string (or + Expression with resultType string). + :vartype log_level: any + :ivar enable_reliable_logging: Specifies whether to enable reliable logging. Type: boolean (or + Expression with resultType boolean). + :vartype enable_reliable_logging: any + """ + + linked_service_name: "_models.LinkedServiceReference" = rest_field( + name="linkedServiceName", visibility=["read", "create", "update", "delete", "query"] + ) + """Log storage linked service reference. Required.""" + path: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The path to storage for storing detailed logs of activity execution. Type: string (or + Expression with resultType string).""" + log_level: Optional[Any] = rest_field(name="logLevel", visibility=["read", "create", "update", "delete", "query"]) + """Gets or sets the log level, support: Info, Warning. Type: string (or Expression with resultType + string).""" + enable_reliable_logging: Optional[Any] = rest_field( + name="enableReliableLogging", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to enable reliable logging. Type: boolean (or Expression with resultType + boolean).""" + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + path: Optional[Any] = None, + log_level: Optional[Any] = None, + enable_reliable_logging: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LookupActivity(ExecutionActivity, discriminator="Lookup"): + """Lookup activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Lookup activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.LookupActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "Lookup". + :vartype type: str + """ + + type_properties: "_models.LookupActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Lookup activity properties. Required.""" + type: Literal["Lookup"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"Lookup\".""" + + __flattened_items = ["source", "dataset", "first_row_only", "treat_decimal_as_string"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.LookupActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class LookupActivityTypeProperties(_Model): + """Lookup activity properties. + + :ivar source: Dataset-specific source properties, same as copy activity source. Required. + :vartype source: ~azure.mgmt.datafactory.models.CopySource + :ivar dataset: Lookup activity dataset reference. Required. + :vartype dataset: ~azure.mgmt.datafactory.models.DatasetReference + :ivar first_row_only: Whether to return first row or all rows. Default value is true. Type: + boolean (or Expression with resultType boolean). + :vartype first_row_only: any + :ivar treat_decimal_as_string: Indicates whether to treat decimal values as strings to avoid + value overflow issue. This option is enabled for SnowflakeV2 connector only. Type: boolean (or + Expression with resultType boolean). + :vartype treat_decimal_as_string: any + """ + + source: "_models.CopySource" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Dataset-specific source properties, same as copy activity source. Required.""" + dataset: "_models.DatasetReference" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Lookup activity dataset reference. Required.""" + first_row_only: Optional[Any] = rest_field( + name="firstRowOnly", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to return first row or all rows. Default value is true. Type: boolean (or Expression + with resultType boolean).""" + treat_decimal_as_string: Optional[Any] = rest_field( + name="treatDecimalAsString", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether to treat decimal values as strings to avoid value overflow issue. This option + is enabled for SnowflakeV2 connector only. Type: boolean (or Expression with resultType + boolean).""" + + @overload + def __init__( + self, + *, + source: "_models.CopySource", + dataset: "_models.DatasetReference", + first_row_only: Optional[Any] = None, + treat_decimal_as_string: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MagentoLinkedService(LinkedService, discriminator="Magento"): + """Magento server linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Magento server linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.MagentoLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Magento". + :vartype type: str + """ + + type_properties: "_models.MagentoLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Magento server linked service properties. Required.""" + type: Literal["Magento"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Magento\".""" + + __flattened_items = [ + "host", + "access_token", + "use_encrypted_endpoints", + "use_host_verification", + "use_peer_verification", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.MagentoLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class MagentoLinkedServiceTypeProperties(_Model): + """Magento server linked service properties. + + :ivar host: The URL of the Magento instance. (i.e. 192.168.222.110/magento3). Required. + :vartype host: any + :ivar access_token: The access token from Magento. + :vartype access_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using + HTTPS. The default value is true. + :vartype use_encrypted_endpoints: any + :ivar use_host_verification: Specifies whether to require the host name in the server's + certificate to match the host name of the server when connecting over SSL. The default value is + true. + :vartype use_host_verification: any + :ivar use_peer_verification: Specifies whether to verify the identity of the server when + connecting over SSL. The default value is true. + :vartype use_peer_verification: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + host: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The URL of the Magento instance. (i.e. 192.168.222.110/magento3). Required.""" + access_token: Optional["_models.SecretBase"] = rest_field( + name="accessToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The access token from Magento.""" + use_encrypted_endpoints: Optional[Any] = rest_field( + name="useEncryptedEndpoints", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the data source endpoints are encrypted using HTTPS. The default value is + true.""" + use_host_verification: Optional[Any] = rest_field( + name="useHostVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require the host name in the server's certificate to match the host name + of the server when connecting over SSL. The default value is true.""" + use_peer_verification: Optional[Any] = rest_field( + name="usePeerVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to verify the identity of the server when connecting over SSL. The default + value is true.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + host: Any, + access_token: Optional["_models.SecretBase"] = None, + use_encrypted_endpoints: Optional[Any] = None, + use_host_verification: Optional[Any] = None, + use_peer_verification: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MagentoObjectDataset(Dataset, discriminator="MagentoObject"): + """Magento server dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "MagentoObject". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["MagentoObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"MagentoObject\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class MagentoSource(TabularSource, discriminator="MagentoSource"): + """A copy activity Magento server source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "MagentoSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["MagentoSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"MagentoSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "MagentoSource" # type: ignore + + +class ManagedIdentityCredential(Credential, discriminator="ManagedIdentity"): + """Managed identity credential. + + :ivar description: Credential description. + :vartype description: str + :ivar annotations: List of tags that can be used for describing the Credential. + :vartype annotations: list[any] + :ivar type_properties: Managed identity credential properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.ManagedIdentityTypeProperties + :ivar type: Type of credential. Required. Default value is "ManagedIdentity". + :vartype type: str + """ + + type_properties: Optional["_models.ManagedIdentityTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Managed identity credential properties.""" + type: Literal["ManagedIdentity"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of credential. Required. Default value is \"ManagedIdentity\".""" + + __flattened_items = ["resource_id"] + + @overload + def __init__( + self, + *, + description: Optional[str] = None, + annotations: Optional[list[Any]] = None, + type_properties: Optional["_models.ManagedIdentityTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ManagedIdentityTypeProperties(_Model): + """Managed identity type properties. + + :ivar resource_id: The resource id of user assigned managed identity. + :vartype resource_id: str + """ + + resource_id: Optional[str] = rest_field( + name="resourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """The resource id of user assigned managed identity.""" + + @overload + def __init__( + self, + *, + resource_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ManagedIntegrationRuntime(IntegrationRuntime, discriminator="Managed"): + """Managed integration runtime, including managed elastic and managed dedicated integration + runtimes. + + :ivar description: Integration runtime description. + :vartype description: str + :ivar state: Integration runtime state, only valid for managed dedicated integration runtime. + Known values are: "Initial", "Stopped", "Started", "Starting", "Stopping", "NeedRegistration", + "Online", "Limited", "Offline", and "AccessDenied". + :vartype state: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeState + :ivar type_properties: Managed integration runtime properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeTypeProperties + :ivar managed_virtual_network: Managed Virtual Network reference. + :vartype managed_virtual_network: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkReference + :ivar type: Type of integration runtime. Required. Managed. + :vartype type: str or ~azure.mgmt.datafactory.models.MANAGED + """ + + state: Optional[Union[str, "_models.IntegrationRuntimeState"]] = rest_field(visibility=["read"]) + """Integration runtime state, only valid for managed dedicated integration runtime. Known values + are: \"Initial\", \"Stopped\", \"Started\", \"Starting\", \"Stopping\", \"NeedRegistration\", + \"Online\", \"Limited\", \"Offline\", and \"AccessDenied\".""" + type_properties: "_models.ManagedIntegrationRuntimeTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Managed integration runtime properties. Required.""" + managed_virtual_network: Optional["_models.ManagedVirtualNetworkReference"] = rest_field( + name="managedVirtualNetwork", visibility=["read", "create", "update", "delete", "query"] + ) + """Managed Virtual Network reference.""" + type: Literal[IntegrationRuntimeType.MANAGED] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of integration runtime. Required. Managed.""" + + __flattened_items = ["compute_properties", "ssis_properties", "customer_virtual_network", "interactive_query"] + + @overload + def __init__( + self, + *, + type_properties: "_models.ManagedIntegrationRuntimeTypeProperties", + description: Optional[str] = None, + managed_virtual_network: Optional["_models.ManagedVirtualNetworkReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ManagedIntegrationRuntimeError(_Model): + """Error definition for managed integration runtime. + + :ivar time: The time when the error occurred. + :vartype time: ~datetime.datetime + :ivar code: Error code. + :vartype code: str + :ivar parameters: Managed integration runtime error parameters. + :vartype parameters: list[str] + :ivar message: Error message. + :vartype message: str + """ + + time: Optional[datetime.datetime] = rest_field(visibility=["read"], format="rfc3339") + """The time when the error occurred.""" + code: Optional[str] = rest_field(visibility=["read"]) + """Error code.""" + parameters: Optional[list[str]] = rest_field(visibility=["read"]) + """Managed integration runtime error parameters.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Error message.""" + + +class ManagedIntegrationRuntimeNode(_Model): + """Properties of integration runtime node. + + :ivar node_id: The managed integration runtime node id. + :vartype node_id: str + :ivar status: The managed integration runtime node status. Known values are: "Starting", + "Available", "Recycling", and "Unavailable". + :vartype status: str or ~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeNodeStatus + :ivar errors: The errors that occurred on this integration runtime node. + :vartype errors: list[~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeError] + """ + + node_id: Optional[str] = rest_field(name="nodeId", visibility=["read"]) + """The managed integration runtime node id.""" + status: Optional[Union[str, "_models.ManagedIntegrationRuntimeNodeStatus"]] = rest_field(visibility=["read"]) + """The managed integration runtime node status. Known values are: \"Starting\", \"Available\", + \"Recycling\", and \"Unavailable\".""" + errors: Optional[list["_models.ManagedIntegrationRuntimeError"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The errors that occurred on this integration runtime node.""" + + @overload + def __init__( + self, + *, + errors: Optional[list["_models.ManagedIntegrationRuntimeError"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ManagedIntegrationRuntimeOperationResult(_Model): + """Properties of managed integration runtime operation result. + + :ivar type: The operation type. Could be start or stop. + :vartype type: str + :ivar start_time: The start time of the operation. + :vartype start_time: ~datetime.datetime + :ivar result: The operation result. + :vartype result: str + :ivar error_code: The error code. + :vartype error_code: str + :ivar parameters: Managed integration runtime error parameters. + :vartype parameters: list[str] + :ivar activity_id: The activity id for the operation request. + :vartype activity_id: str + """ + + type: Optional[str] = rest_field(visibility=["read"]) + """The operation type. Could be start or stop.""" + start_time: Optional[datetime.datetime] = rest_field(name="startTime", visibility=["read"], format="rfc3339") + """The start time of the operation.""" + result: Optional[str] = rest_field(visibility=["read"]) + """The operation result.""" + error_code: Optional[str] = rest_field(name="errorCode", visibility=["read"]) + """The error code.""" + parameters: Optional[list[str]] = rest_field(visibility=["read"]) + """Managed integration runtime error parameters.""" + activity_id: Optional[str] = rest_field(name="activityId", visibility=["read"]) + """The activity id for the operation request.""" + + +class ManagedIntegrationRuntimeStatus(IntegrationRuntimeStatus, discriminator="Managed"): + """Managed integration runtime status. + + :ivar data_factory_name: The data factory name which the integration runtime belong to. + :vartype data_factory_name: str + :ivar state: The state of integration runtime. Known values are: "Initial", "Stopped", + "Started", "Starting", "Stopping", "NeedRegistration", "Online", "Limited", "Offline", and + "AccessDenied". + :vartype state: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeState + :ivar type_properties: Managed integration runtime status type properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeStatusTypeProperties + :ivar type: Type of integration runtime. Required. Managed. + :vartype type: str or ~azure.mgmt.datafactory.models.MANAGED + """ + + type_properties: "_models.ManagedIntegrationRuntimeStatusTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Managed integration runtime status type properties. Required.""" + type: Literal[IntegrationRuntimeType.MANAGED] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of integration runtime. Required. Managed.""" + + __flattened_items = ["create_time", "nodes", "other_errors", "last_operation"] + + @overload + def __init__( + self, + *, + type_properties: "_models.ManagedIntegrationRuntimeStatusTypeProperties", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ManagedIntegrationRuntimeStatusTypeProperties(_Model): # pylint: disable=name-too-long + """Managed integration runtime status type properties. + + :ivar create_time: The time at which the integration runtime was created, in ISO8601 format. + :vartype create_time: ~datetime.datetime + :ivar nodes: The list of nodes for managed integration runtime. + :vartype nodes: list[~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeNode] + :ivar other_errors: The errors that occurred on this integration runtime. + :vartype other_errors: list[~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeError] + :ivar last_operation: The last operation result that occurred on this integration runtime. + :vartype last_operation: + ~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeOperationResult + """ + + create_time: Optional[datetime.datetime] = rest_field(name="createTime", visibility=["read"], format="rfc3339") + """The time at which the integration runtime was created, in ISO8601 format.""" + nodes: Optional[list["_models.ManagedIntegrationRuntimeNode"]] = rest_field(visibility=["read"]) + """The list of nodes for managed integration runtime.""" + other_errors: Optional[list["_models.ManagedIntegrationRuntimeError"]] = rest_field( + name="otherErrors", visibility=["read"] + ) + """The errors that occurred on this integration runtime.""" + last_operation: Optional["_models.ManagedIntegrationRuntimeOperationResult"] = rest_field( + name="lastOperation", visibility=["read"] + ) + """The last operation result that occurred on this integration runtime.""" + + +class ManagedIntegrationRuntimeTypeProperties(_Model): + """Managed integration runtime type properties. + + :ivar compute_properties: The compute resource for managed integration runtime. + :vartype compute_properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeComputeProperties + :ivar ssis_properties: SSIS properties for managed integration runtime. + :vartype ssis_properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeSsisProperties + :ivar customer_virtual_network: The name of virtual network to which Azure-SSIS integration + runtime will join. + :vartype customer_virtual_network: + ~azure.mgmt.datafactory.models.IntegrationRuntimeCustomerVirtualNetwork + :ivar interactive_query: Interactive authoring capability reference. + :vartype interactive_query: ~azure.mgmt.datafactory.models.InteractiveQueryProperties + """ + + compute_properties: Optional["_models.IntegrationRuntimeComputeProperties"] = rest_field( + name="computeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """The compute resource for managed integration runtime.""" + ssis_properties: Optional["_models.IntegrationRuntimeSsisProperties"] = rest_field( + name="ssisProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """SSIS properties for managed integration runtime.""" + customer_virtual_network: Optional["_models.IntegrationRuntimeCustomerVirtualNetwork"] = rest_field( + name="customerVirtualNetwork", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of virtual network to which Azure-SSIS integration runtime will join.""" + interactive_query: Optional["_models.InteractiveQueryProperties"] = rest_field( + name="interactiveQuery", visibility=["read", "create", "update", "delete", "query"] + ) + """Interactive authoring capability reference.""" + + @overload + def __init__( + self, + *, + compute_properties: Optional["_models.IntegrationRuntimeComputeProperties"] = None, + ssis_properties: Optional["_models.IntegrationRuntimeSsisProperties"] = None, + customer_virtual_network: Optional["_models.IntegrationRuntimeCustomerVirtualNetwork"] = None, + interactive_query: Optional["_models.InteractiveQueryProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ManagedPrivateEndpoint(_Model): + """Properties of a managed private endpoint. + + :ivar connection_state: The managed private endpoint connection state. + :vartype connection_state: ~azure.mgmt.datafactory.models.ConnectionStateProperties + :ivar fqdns: Fully qualified domain names. + :vartype fqdns: list[str] + :ivar group_id: The groupId to which the managed private endpoint is created. + :vartype group_id: str + :ivar is_reserved: Denotes whether the managed private endpoint is reserved. + :vartype is_reserved: bool + :ivar private_link_resource_id: The ARM resource ID of the resource to which the managed + private endpoint is created. + :vartype private_link_resource_id: str + :ivar provisioning_state: The managed private endpoint provisioning state. + :vartype provisioning_state: str + """ + + connection_state: Optional["_models.ConnectionStateProperties"] = rest_field( + name="connectionState", visibility=["read", "create", "update", "delete", "query"] + ) + """The managed private endpoint connection state.""" + fqdns: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Fully qualified domain names.""" + group_id: Optional[str] = rest_field(name="groupId", visibility=["read", "create", "update", "delete", "query"]) + """The groupId to which the managed private endpoint is created.""" + is_reserved: Optional[bool] = rest_field(name="isReserved", visibility=["read"]) + """Denotes whether the managed private endpoint is reserved.""" + private_link_resource_id: Optional[str] = rest_field( + name="privateLinkResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ARM resource ID of the resource to which the managed private endpoint is created.""" + provisioning_state: Optional[str] = rest_field(name="provisioningState", visibility=["read"]) + """The managed private endpoint provisioning state.""" + + @overload + def __init__( + self, + *, + connection_state: Optional["_models.ConnectionStateProperties"] = None, + fqdns: Optional[list[str]] = None, + group_id: Optional[str] = None, + private_link_resource_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ManagedPrivateEndpointResource(ProxyResource): + """Managed private endpoint resource type. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datafactory.models.SystemData + :ivar properties: Managed private endpoint properties. Required. + :vartype properties: ~azure.mgmt.datafactory.models.ManagedPrivateEndpoint + :ivar etag: "If etag is provided in the response body, it may also be provided as a header per + the normal etag convention. Entity tags are used for comparing two or more entities from the + same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match + (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). + :vartype etag: str + """ + + properties: "_models.ManagedPrivateEndpoint" = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Managed private endpoint properties. Required.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """\"If etag is provided in the response body, it may also be provided as a header per the normal + etag convention. Entity tags are used for comparing two or more entities from the same + requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section + 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.\").""" + + @overload + def __init__( + self, + *, + properties: "_models.ManagedPrivateEndpoint", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ManagedVirtualNetwork(_Model): + """A managed Virtual Network associated with the Azure Data Factory. + + :ivar v_net_id: Managed Virtual Network ID. + :vartype v_net_id: str + :ivar alias: Managed Virtual Network alias. + :vartype alias: str + """ + + v_net_id: Optional[str] = rest_field(name="vNetId", visibility=["read"]) + """Managed Virtual Network ID.""" + alias: Optional[str] = rest_field(visibility=["read"]) + """Managed Virtual Network alias.""" + + +class ManagedVirtualNetworkReference(_Model): + """Managed Virtual Network reference type. + + :ivar type: Managed Virtual Network reference type. Required. "ManagedVirtualNetworkReference" + :vartype type: str or ~azure.mgmt.datafactory.models.ManagedVirtualNetworkReferenceType + :ivar reference_name: Reference ManagedVirtualNetwork name. Required. + :vartype reference_name: str + """ + + type: Union[str, "_models.ManagedVirtualNetworkReferenceType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Managed Virtual Network reference type. Required. \"ManagedVirtualNetworkReference\"""" + reference_name: str = rest_field(name="referenceName", visibility=["read", "create", "update", "delete", "query"]) + """Reference ManagedVirtualNetwork name. Required.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.ManagedVirtualNetworkReferenceType"], + reference_name: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ManagedVirtualNetworkResource(ProxyResource): + """Managed Virtual Network resource type. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datafactory.models.SystemData + :ivar properties: Managed Virtual Network properties. Required. + :vartype properties: ~azure.mgmt.datafactory.models.ManagedVirtualNetwork + :ivar etag: "If etag is provided in the response body, it may also be provided as a header per + the normal etag convention. Entity tags are used for comparing two or more entities from the + same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match + (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). + :vartype etag: str + """ + + properties: "_models.ManagedVirtualNetwork" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Managed Virtual Network properties. Required.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """\"If etag is provided in the response body, it may also be provided as a header per the normal + etag convention. Entity tags are used for comparing two or more entities from the same + requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section + 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.\").""" + + @overload + def __init__( + self, + *, + properties: "_models.ManagedVirtualNetwork", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MapperAttributeMapping(_Model): + """Source and target column mapping details. + + :ivar name: Name of the target column. + :vartype name: str + :ivar type: Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as + 'Derived'. Known values are: "Direct", "Derived", and "Aggregate". + :vartype type: str or ~azure.mgmt.datafactory.models.MappingType + :ivar function_name: Name of the function used for 'Aggregate' and 'Derived' (except + 'Advanced') type mapping. + :vartype function_name: str + :ivar expression: Expression used for 'Aggregate' and 'Derived' type mapping. + :vartype expression: str + :ivar attribute_reference: Reference of the source column used in the mapping. It is used for + 'Direct' mapping type only. + :vartype attribute_reference: ~azure.mgmt.datafactory.models.MapperAttributeReference + :ivar attribute_references: List of references for source columns. It is used for 'Derived' and + 'Aggregate' type mappings only. + :vartype attribute_references: list[~azure.mgmt.datafactory.models.MapperAttributeReference] + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the target column.""" + type: Optional[Union[str, "_models.MappingType"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as 'Derived'. + Known values are: \"Direct\", \"Derived\", and \"Aggregate\".""" + function_name: Optional[str] = rest_field( + name="functionName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the function used for 'Aggregate' and 'Derived' (except 'Advanced') type mapping.""" + expression: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Expression used for 'Aggregate' and 'Derived' type mapping.""" + attribute_reference: Optional["_models.MapperAttributeReference"] = rest_field( + name="attributeReference", visibility=["read", "create", "update", "delete", "query"] + ) + """Reference of the source column used in the mapping. It is used for 'Direct' mapping type only.""" + attribute_references: Optional[list["_models.MapperAttributeReference"]] = rest_field( + name="attributeReferences", visibility=["read", "create", "update", "delete", "query"] + ) + """List of references for source columns. It is used for 'Derived' and 'Aggregate' type mappings + only.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + type: Optional[Union[str, "_models.MappingType"]] = None, + function_name: Optional[str] = None, + expression: Optional[str] = None, + attribute_reference: Optional["_models.MapperAttributeReference"] = None, + attribute_references: Optional[list["_models.MapperAttributeReference"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MapperAttributeMappings(_Model): + """Attribute mapping details. + + :ivar attribute_mappings: List of attribute mappings. + :vartype attribute_mappings: list[~azure.mgmt.datafactory.models.MapperAttributeMapping] + """ + + attribute_mappings: Optional[list["_models.MapperAttributeMapping"]] = rest_field( + name="attributeMappings", visibility=["read", "create", "update", "delete", "query"] + ) + """List of attribute mappings.""" + + @overload + def __init__( + self, + *, + attribute_mappings: Optional[list["_models.MapperAttributeMapping"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MapperAttributeReference(_Model): + """Attribute reference details for the referred column. + + :ivar name: Name of the column. + :vartype name: str + :ivar entity: Name of the table. + :vartype entity: str + :ivar entity_connection_reference: The connection reference for the connection. + :vartype entity_connection_reference: ~azure.mgmt.datafactory.models.MapperConnectionReference + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the column.""" + entity: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the table.""" + entity_connection_reference: Optional["_models.MapperConnectionReference"] = rest_field( + name="entityConnectionReference", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection reference for the connection.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + entity: Optional[str] = None, + entity_connection_reference: Optional["_models.MapperConnectionReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MapperConnection(_Model): + """Source connection details. + + :ivar linked_service: Linked service reference. + :vartype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar linked_service_type: Type of the linked service e.g.: AzureBlobFS. + :vartype linked_service_type: str + :ivar type: Type of connection via linked service or dataset. Required. "linkedservicetype" + :vartype type: str or ~azure.mgmt.datafactory.models.ConnectionType + :ivar is_inline_dataset: A boolean indicating whether linked service is of type inline dataset. + Currently only inline datasets are supported. + :vartype is_inline_dataset: bool + :ivar common_dsl_connector_properties: List of name/value pairs for connection properties. + :vartype common_dsl_connector_properties: + list[~azure.mgmt.datafactory.models.MapperDslConnectorProperties] + """ + + linked_service: Optional["_models.LinkedServiceReference"] = rest_field( + name="linkedService", visibility=["read", "create", "update", "delete", "query"] + ) + """Linked service reference.""" + linked_service_type: Optional[str] = rest_field( + name="linkedServiceType", visibility=["read", "create", "update", "delete", "query"] + ) + """Type of the linked service e.g.: AzureBlobFS.""" + type: Union[str, "_models.ConnectionType"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Type of connection via linked service or dataset. Required. \"linkedservicetype\"""" + is_inline_dataset: Optional[bool] = rest_field( + name="isInlineDataset", visibility=["read", "create", "update", "delete", "query"] + ) + """A boolean indicating whether linked service is of type inline dataset. Currently only inline + datasets are supported.""" + common_dsl_connector_properties: Optional[list["_models.MapperDslConnectorProperties"]] = rest_field( + name="commonDslConnectorProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """List of name/value pairs for connection properties.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.ConnectionType"], + linked_service: Optional["_models.LinkedServiceReference"] = None, + linked_service_type: Optional[str] = None, + is_inline_dataset: Optional[bool] = None, + common_dsl_connector_properties: Optional[list["_models.MapperDslConnectorProperties"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MapperConnectionReference(_Model): + """Source or target connection reference details. + + :ivar connection_name: Name of the connection. + :vartype connection_name: str + :ivar type: Type of connection via linked service or dataset. "linkedservicetype" + :vartype type: str or ~azure.mgmt.datafactory.models.ConnectionType + """ + + connection_name: Optional[str] = rest_field( + name="connectionName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the connection.""" + type: Optional[Union[str, "_models.ConnectionType"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Type of connection via linked service or dataset. \"linkedservicetype\"""" + + @overload + def __init__( + self, + *, + connection_name: Optional[str] = None, + type: Optional[Union[str, "_models.ConnectionType"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MapperDslConnectorProperties(_Model): + """Connector properties of a CDC table in terms of name / value pairs. + + :ivar name: Name of the property. + :vartype name: str + :ivar value: Value of the property. + :vartype value: any + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the property.""" + value: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Value of the property.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + value: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MapperPolicy(_Model): + """CDC Policy. + + :ivar mode: Mode of running the CDC: batch vs continuous. + :vartype mode: str + :ivar recurrence: Defines the frequency and interval for running the CDC for batch mode. + :vartype recurrence: ~azure.mgmt.datafactory.models.MapperPolicyRecurrence + """ + + mode: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Mode of running the CDC: batch vs continuous.""" + recurrence: Optional["_models.MapperPolicyRecurrence"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Defines the frequency and interval for running the CDC for batch mode.""" + + @overload + def __init__( + self, + *, + mode: Optional[str] = None, + recurrence: Optional["_models.MapperPolicyRecurrence"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MapperPolicyRecurrence(_Model): + """CDC policy recurrence details. + + :ivar frequency: Frequency of period in terms of 'Hour', 'Minute' or 'Second'. Known values + are: "Hour", "Minute", and "Second". + :vartype frequency: str or ~azure.mgmt.datafactory.models.FrequencyType + :ivar interval: Actual interval value as per chosen frequency. + :vartype interval: int + """ + + frequency: Optional[Union[str, "_models.FrequencyType"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Frequency of period in terms of 'Hour', 'Minute' or 'Second'. Known values are: \"Hour\", + \"Minute\", and \"Second\".""" + interval: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Actual interval value as per chosen frequency.""" + + @overload + def __init__( + self, + *, + frequency: Optional[Union[str, "_models.FrequencyType"]] = None, + interval: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MapperSourceConnectionsInfo(_Model): + """A object which contains list of tables and connection details for a source connection. + + :ivar source_entities: List of source tables for a source connection. + :vartype source_entities: list[~azure.mgmt.datafactory.models.MapperTable] + :ivar connection: Source connection details. + :vartype connection: ~azure.mgmt.datafactory.models.MapperConnection + """ + + source_entities: Optional[list["_models.MapperTable"]] = rest_field( + name="sourceEntities", visibility=["read", "create", "update", "delete", "query"] + ) + """List of source tables for a source connection.""" + connection: Optional["_models.MapperConnection"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Source connection details.""" + + @overload + def __init__( + self, + *, + source_entities: Optional[list["_models.MapperTable"]] = None, + connection: Optional["_models.MapperConnection"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MapperTable(_Model): + """CDC table details. + + :ivar name: Name of the table. + :vartype name: str + :ivar properties: Table properties. + :vartype properties: ~azure.mgmt.datafactory.models.MapperTableProperties + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the table.""" + properties: Optional["_models.MapperTableProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Table properties.""" + + __flattened_items = ["schema", "dsl_connector_properties"] + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + properties: Optional["_models.MapperTableProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class MapperTableProperties(_Model): + """Properties for a CDC table. + + :ivar schema: List of columns for the source table. + :vartype schema: list[~azure.mgmt.datafactory.models.MapperTableSchema] + :ivar dsl_connector_properties: List of name/value pairs for connection properties. + :vartype dsl_connector_properties: + list[~azure.mgmt.datafactory.models.MapperDslConnectorProperties] + """ + + schema: Optional[list["_models.MapperTableSchema"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of columns for the source table.""" + dsl_connector_properties: Optional[list["_models.MapperDslConnectorProperties"]] = rest_field( + name="dslConnectorProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """List of name/value pairs for connection properties.""" + + @overload + def __init__( + self, + *, + schema: Optional[list["_models.MapperTableSchema"]] = None, + dsl_connector_properties: Optional[list["_models.MapperDslConnectorProperties"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MapperTableSchema(_Model): + """Schema of a CDC table in terms of column names and their corresponding data types. + + :ivar name: Name of the column. + :vartype name: str + :ivar data_type: Data type of the column. + :vartype data_type: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the column.""" + data_type: Optional[str] = rest_field(name="dataType", visibility=["read", "create", "update", "delete", "query"]) + """Data type of the column.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + data_type: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MapperTargetConnectionsInfo(_Model): + """A object which contains list of tables and connection details for a target connection. + + :ivar target_entities: List of source tables for a target connection. + :vartype target_entities: list[~azure.mgmt.datafactory.models.MapperTable] + :ivar connection: Source connection details. + :vartype connection: ~azure.mgmt.datafactory.models.MapperConnection + :ivar data_mapper_mappings: List of table mappings. + :vartype data_mapper_mappings: list[~azure.mgmt.datafactory.models.DataMapperMapping] + :ivar relationships: List of relationship info among the tables. + :vartype relationships: list[any] + """ + + target_entities: Optional[list["_models.MapperTable"]] = rest_field( + name="targetEntities", visibility=["read", "create", "update", "delete", "query"] + ) + """List of source tables for a target connection.""" + connection: Optional["_models.MapperConnection"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Source connection details.""" + data_mapper_mappings: Optional[list["_models.DataMapperMapping"]] = rest_field( + name="dataMapperMappings", visibility=["read", "create", "update", "delete", "query"] + ) + """List of table mappings.""" + relationships: Optional[list[Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of relationship info among the tables.""" + + @overload + def __init__( + self, + *, + target_entities: Optional[list["_models.MapperTable"]] = None, + connection: Optional["_models.MapperConnection"] = None, + data_mapper_mappings: Optional[list["_models.DataMapperMapping"]] = None, + relationships: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MappingDataFlow(DataFlow, discriminator="MappingDataFlow"): + """Mapping data flow. + + :ivar description: The description of the data flow. + :vartype description: str + :ivar annotations: List of tags that can be used for describing the data flow. + :vartype annotations: list[any] + :ivar folder: The folder that this data flow is in. If not specified, Data flow will appear at + the root level. + :vartype folder: ~azure.mgmt.datafactory.models.DataFlowFolder + :ivar type_properties: Mapping data flow type properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.MappingDataFlowTypeProperties + :ivar type: Type of data flow. Required. Default value is "MappingDataFlow". + :vartype type: str + """ + + type_properties: Optional["_models.MappingDataFlowTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Mapping data flow type properties.""" + type: Literal["MappingDataFlow"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of data flow. Required. Default value is \"MappingDataFlow\".""" + + __flattened_items = ["sources", "sinks", "transformations", "script", "script_lines"] + + @overload + def __init__( + self, + *, + description: Optional[str] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DataFlowFolder"] = None, + type_properties: Optional["_models.MappingDataFlowTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class MappingDataFlowTypeProperties(_Model): + """Mapping data flow type properties. + + :ivar sources: List of sources in data flow. + :vartype sources: list[~azure.mgmt.datafactory.models.DataFlowSource] + :ivar sinks: List of sinks in data flow. + :vartype sinks: list[~azure.mgmt.datafactory.models.DataFlowSink] + :ivar transformations: List of transformations in data flow. + :vartype transformations: list[~azure.mgmt.datafactory.models.Transformation] + :ivar script: DataFlow script. + :vartype script: str + :ivar script_lines: Data flow script lines. + :vartype script_lines: list[str] + """ + + sources: Optional[list["_models.DataFlowSource"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of sources in data flow.""" + sinks: Optional[list["_models.DataFlowSink"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of sinks in data flow.""" + transformations: Optional[list["_models.Transformation"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of transformations in data flow.""" + script: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """DataFlow script.""" + script_lines: Optional[list[str]] = rest_field( + name="scriptLines", visibility=["read", "create", "update", "delete", "query"] + ) + """Data flow script lines.""" + + @overload + def __init__( + self, + *, + sources: Optional[list["_models.DataFlowSource"]] = None, + sinks: Optional[list["_models.DataFlowSink"]] = None, + transformations: Optional[list["_models.Transformation"]] = None, + script: Optional[str] = None, + script_lines: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MariaDBLinkedService(LinkedService, discriminator="MariaDB"): + """MariaDB server linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: MariaDB server linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.MariaDBLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "MariaDB". + :vartype type: str + """ + + type_properties: "_models.MariaDBLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """MariaDB server linked service properties. Required.""" + type: Literal["MariaDB"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"MariaDB\".""" + + __flattened_items = [ + "driver_version", + "connection_string", + "server", + "port", + "username", + "database", + "ssl_mode", + "use_system_trust_store", + "password", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.MariaDBLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class MariaDBLinkedServiceTypeProperties(_Model): + """MariaDB server linked service properties. + + :ivar driver_version: The version of the MariaDB driver. Type: string. V1 or empty for legacy + driver, V2 for new driver. V1 can support connection string and property bag, V2 can only + support connection string. The legacy driver is scheduled for deprecation by October 2024. + :vartype driver_version: any + :ivar connection_string: An ODBC connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar server: Server name for connection. Type: string. + :vartype server: any + :ivar port: The port for the connection. Type: integer. + :vartype port: any + :ivar username: Username for authentication. Type: string. + :vartype username: any + :ivar database: Database name for connection. Type: string. + :vartype database: any + :ivar ssl_mode: This option specifies whether the driver uses TLS encryption and verification + when connecting to MariaDB. E.g., SSLMode=<0/1/2/3/4>. Options: DISABLED (0) / PREFERRED (1) + (Default) / REQUIRED (2) / VERIFY_CA (3) / VERIFY_IDENTITY (4), REQUIRED (2) is recommended to + only allow connections encrypted with SSL/TLS. + :vartype ssl_mode: any + :ivar use_system_trust_store: This option specifies whether to use a CA certificate from the + system trust store, or from a specified PEM file. E.g. UseSystemTrustStore=<0/1>; Options: + Enabled (1) / Disabled (0) (Default). + :vartype use_system_trust_store: any + :ivar password: The Azure key vault secret reference of password in connection string. + :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + driver_version: Optional[Any] = rest_field( + name="driverVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The version of the MariaDB driver. Type: string. V1 or empty for legacy driver, V2 for new + driver. V1 can support connection string and property bag, V2 can only support connection + string. The legacy driver is scheduled for deprecation by October 2024.""" + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference.""" + server: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Server name for connection. Type: string.""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The port for the connection. Type: integer.""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Username for authentication. Type: string.""" + database: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database name for connection. Type: string.""" + ssl_mode: Optional[Any] = rest_field(name="sslMode", visibility=["read", "create", "update", "delete", "query"]) + """This option specifies whether the driver uses TLS encryption and verification when connecting + to MariaDB. E.g., SSLMode=<0/1/2/3/4>. Options: DISABLED (0) / PREFERRED (1) (Default) / + REQUIRED (2) / VERIFY_CA (3) / VERIFY_IDENTITY (4), REQUIRED (2) is recommended to only allow + connections encrypted with SSL/TLS.""" + use_system_trust_store: Optional[Any] = rest_field( + name="useSystemTrustStore", visibility=["read", "create", "update", "delete", "query"] + ) + """This option specifies whether to use a CA certificate from the system trust store, or from a + specified PEM file. E.g. UseSystemTrustStore=<0/1>; Options: Enabled (1) / Disabled (0) + (Default).""" + password: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of password in connection string.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + driver_version: Optional[Any] = None, + connection_string: Optional[Any] = None, + server: Optional[Any] = None, + port: Optional[Any] = None, + username: Optional[Any] = None, + database: Optional[Any] = None, + ssl_mode: Optional[Any] = None, + use_system_trust_store: Optional[Any] = None, + password: Optional["_models.AzureKeyVaultSecretReference"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MariaDBSource(TabularSource, discriminator="MariaDBSource"): + """A copy activity MariaDB server source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "MariaDBSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["MariaDBSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"MariaDBSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "MariaDBSource" # type: ignore + + +class MariaDBTableDataset(Dataset, discriminator="MariaDBTable"): + """MariaDB server dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "MariaDBTable". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["MariaDBTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"MariaDBTable\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class MarketoLinkedService(LinkedService, discriminator="Marketo"): + """Marketo server linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Marketo server linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.MarketoLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Marketo". + :vartype type: str + """ + + type_properties: "_models.MarketoLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Marketo server linked service properties. Required.""" + type: Literal["Marketo"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Marketo\".""" + + __flattened_items = [ + "endpoint", + "client_id", + "client_secret", + "use_encrypted_endpoints", + "use_host_verification", + "use_peer_verification", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.MarketoLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class MarketoLinkedServiceTypeProperties(_Model): + """Marketo server linked service properties. + + :ivar endpoint: The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com). Required. + :vartype endpoint: any + :ivar client_id: The client Id of your Marketo service. Required. + :vartype client_id: any + :ivar client_secret: The client secret of your Marketo service. + :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase + :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using + HTTPS. The default value is true. + :vartype use_encrypted_endpoints: any + :ivar use_host_verification: Specifies whether to require the host name in the server's + certificate to match the host name of the server when connecting over SSL. The default value is + true. + :vartype use_host_verification: any + :ivar use_peer_verification: Specifies whether to verify the identity of the server when + connecting over SSL. The default value is true. + :vartype use_peer_verification: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + endpoint: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com). Required.""" + client_id: Any = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The client Id of your Marketo service. Required.""" + client_secret: Optional["_models.SecretBase"] = rest_field( + name="clientSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """The client secret of your Marketo service.""" + use_encrypted_endpoints: Optional[Any] = rest_field( + name="useEncryptedEndpoints", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the data source endpoints are encrypted using HTTPS. The default value is + true.""" + use_host_verification: Optional[Any] = rest_field( + name="useHostVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require the host name in the server's certificate to match the host name + of the server when connecting over SSL. The default value is true.""" + use_peer_verification: Optional[Any] = rest_field( + name="usePeerVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to verify the identity of the server when connecting over SSL. The default + value is true.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + endpoint: Any, + client_id: Any, + client_secret: Optional["_models.SecretBase"] = None, + use_encrypted_endpoints: Optional[Any] = None, + use_host_verification: Optional[Any] = None, + use_peer_verification: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MarketoObjectDataset(Dataset, discriminator="MarketoObject"): + """Marketo server dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "MarketoObject". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["MarketoObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"MarketoObject\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class MarketoSource(TabularSource, discriminator="MarketoSource"): + """A copy activity Marketo server source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "MarketoSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["MarketoSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"MarketoSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "MarketoSource" # type: ignore + + +class MetadataItem(_Model): + """Specify the name and value of custom metadata item. + + :ivar name: Metadata item key name. Type: string (or Expression with resultType string). + :vartype name: any + :ivar value: Metadata item value. Type: string (or Expression with resultType string). + :vartype value: any + """ + + name: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Metadata item key name. Type: string (or Expression with resultType string).""" + value: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Metadata item value. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + name: Optional[Any] = None, + value: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MicrosoftAccessLinkedService(LinkedService, discriminator="MicrosoftAccess"): + """Microsoft Access linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Microsoft Access linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.MicrosoftAccessLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "MicrosoftAccess". + :vartype type: str + """ + + type_properties: "_models.MicrosoftAccessLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Microsoft Access linked service properties. Required.""" + type: Literal["MicrosoftAccess"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"MicrosoftAccess\".""" + + __flattened_items = [ + "connection_string", + "authentication_type", + "credential", + "user_name", + "password", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.MicrosoftAccessLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class MicrosoftAccessLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Microsoft Access linked service properties. + + :ivar connection_string: The non-access credential portion of the connection string as well as + an optional encrypted credential. Type: string, or SecureString, or + AzureKeyVaultSecretReference, or Expression with resultType string. Required. + :vartype connection_string: any + :ivar authentication_type: Type of authentication used to connect to the Microsoft Access as + ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with + resultType string). + :vartype authentication_type: any + :ivar credential: The access credential portion of the connection string specified in + driver-specific property-value format. + :vartype credential: ~azure.mgmt.datafactory.models.SecretBase + :ivar user_name: User name for Basic authentication. Type: string (or Expression with + resultType string). + :vartype user_name: any + :ivar password: Password for Basic authentication. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_string: Any = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The non-access credential portion of the connection string as well as an optional encrypted + credential. Type: string, or SecureString, or AzureKeyVaultSecretReference, or Expression with + resultType string. Required.""" + authentication_type: Optional[Any] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """Type of authentication used to connect to the Microsoft Access as ODBC data store. Possible + values are: Anonymous and Basic. Type: string (or Expression with resultType string).""" + credential: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The access credential portion of the connection string specified in driver-specific + property-value format.""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """User name for Basic authentication. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password for Basic authentication.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_string: Any, + authentication_type: Optional[Any] = None, + credential: Optional["_models.SecretBase"] = None, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MicrosoftAccessSink(CopySink, discriminator="MicrosoftAccessSink"): + """A copy activity Microsoft Access sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar pre_copy_script: A query to execute before starting the copy. Type: string (or Expression + with resultType string). + :vartype pre_copy_script: any + :ivar type: Copy sink type. Required. Default value is "MicrosoftAccessSink". + :vartype type: str + """ + + pre_copy_script: Optional[Any] = rest_field( + name="preCopyScript", visibility=["read", "create", "update", "delete", "query"] + ) + """A query to execute before starting the copy. Type: string (or Expression with resultType + string).""" + type: Literal["MicrosoftAccessSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"MicrosoftAccessSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + pre_copy_script: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "MicrosoftAccessSink" # type: ignore + + +class MicrosoftAccessSource(CopySource, discriminator="MicrosoftAccessSource"): + """A copy activity source for Microsoft Access. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query: Database query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "MicrosoftAccessSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database query. Type: string (or Expression with resultType string).""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["MicrosoftAccessSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"MicrosoftAccessSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "MicrosoftAccessSource" # type: ignore + + +class MicrosoftAccessTableDataset(Dataset, discriminator="MicrosoftAccessTable"): + """The Microsoft Access table dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Microsoft Access table dataset properties. + :vartype type_properties: + ~azure.mgmt.datafactory.models.MicrosoftAccessTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "MicrosoftAccessTable". + :vartype type: str + """ + + type_properties: Optional["_models.MicrosoftAccessTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Microsoft Access table dataset properties.""" + type: Literal["MicrosoftAccessTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"MicrosoftAccessTable\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.MicrosoftAccessTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class MicrosoftAccessTableDatasetTypeProperties(_Model): # pylint: disable=name-too-long + """Microsoft Access table dataset properties. + + :ivar table_name: The Microsoft Access table name. Type: string (or Expression with resultType + string). + :vartype table_name: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """The Microsoft Access table name. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbAtlasCollectionDataset(Dataset, discriminator="MongoDbAtlasCollection"): + """The MongoDB Atlas database dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: MongoDB Atlas database dataset properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.MongoDbAtlasCollectionDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "MongoDbAtlasCollection". + :vartype type: str + """ + + type_properties: "_models.MongoDbAtlasCollectionDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """MongoDB Atlas database dataset properties. Required.""" + type: Literal["MongoDbAtlasCollection"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"MongoDbAtlasCollection\".""" + + __flattened_items = ["collection"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.MongoDbAtlasCollectionDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class MongoDbAtlasCollectionDatasetTypeProperties(_Model): # pylint: disable=name-too-long + """MongoDB Atlas database dataset properties. + + :ivar collection: The collection name of the MongoDB Atlas database. Type: string (or + Expression with resultType string). Required. + :vartype collection: any + """ + + collection: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The collection name of the MongoDB Atlas database. Type: string (or Expression with resultType + string). Required.""" + + @overload + def __init__( + self, + *, + collection: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbAtlasLinkedService(LinkedService, discriminator="MongoDbAtlas"): + """Linked service for MongoDB Atlas data source. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: MongoDB Atlas linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.MongoDbAtlasLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "MongoDbAtlas". + :vartype type: str + """ + + type_properties: "_models.MongoDbAtlasLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """MongoDB Atlas linked service properties. Required.""" + type: Literal["MongoDbAtlas"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"MongoDbAtlas\".""" + + __flattened_items = ["connection_string", "database", "driver_version"] + + @overload + def __init__( + self, + *, + type_properties: "_models.MongoDbAtlasLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class MongoDbAtlasLinkedServiceTypeProperties(_Model): + """MongoDB Atlas linked service properties. + + :ivar connection_string: The MongoDB Atlas connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. + Required. + :vartype connection_string: any + :ivar database: The name of the MongoDB Atlas database that you want to access. Type: string + (or Expression with resultType string). Required. + :vartype database: any + :ivar driver_version: The driver version that you want to choose. Allowed value are v1 and v2. + Type: string (or Expression with resultType string). + :vartype driver_version: any + """ + + connection_string: Any = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The MongoDB Atlas connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. + Required.""" + database: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the MongoDB Atlas database that you want to access. Type: string (or Expression + with resultType string). Required.""" + driver_version: Optional[Any] = rest_field( + name="driverVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The driver version that you want to choose. Allowed value are v1 and v2. Type: string (or + Expression with resultType string).""" + + @overload + def __init__( + self, + *, + connection_string: Any, + database: Any, + driver_version: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbAtlasSink(CopySink, discriminator="MongoDbAtlasSink"): + """A copy activity MongoDB Atlas sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar write_behavior: Specifies whether the document with same key to be overwritten (upsert) + rather than throw exception (insert). The default value is "insert". Type: string (or + Expression with resultType string). Type: string (or Expression with resultType string). + :vartype write_behavior: any + :ivar type: Copy sink type. Required. Default value is "MongoDbAtlasSink". + :vartype type: str + """ + + write_behavior: Optional[Any] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the document with same key to be overwritten (upsert) rather than throw + exception (insert). The default value is \"insert\". Type: string (or Expression with + resultType string). Type: string (or Expression with resultType string).""" + type: Literal["MongoDbAtlasSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"MongoDbAtlasSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + write_behavior: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "MongoDbAtlasSink" # type: ignore + + +class MongoDbAtlasSource(CopySource, discriminator="MongoDbAtlasSource"): + """A copy activity source for a MongoDB Atlas database. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar filter: Specifies selection filter using query operators. To return all documents in a + collection, omit this parameter or pass an empty document ({}). Type: string (or Expression + with resultType string). + :vartype filter: any + :ivar cursor_methods: Cursor methods for Mongodb query. + :vartype cursor_methods: ~azure.mgmt.datafactory.models.MongoDbCursorMethodsProperties + :ivar batch_size: Specifies the number of documents to return in each batch of the response + from MongoDB Atlas instance. In most cases, modifying the batch size will not affect the user + or the application. This property's main purpose is to avoid hit the limitation of response + size. Type: integer (or Expression with resultType integer). + :vartype batch_size: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "MongoDbAtlasSource". + :vartype type: str + """ + + filter: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specifies selection filter using query operators. To return all documents in a collection, omit + this parameter or pass an empty document ({}). Type: string (or Expression with resultType + string).""" + cursor_methods: Optional["_models.MongoDbCursorMethodsProperties"] = rest_field( + name="cursorMethods", visibility=["read", "create", "update", "delete", "query"] + ) + """Cursor methods for Mongodb query.""" + batch_size: Optional[Any] = rest_field(name="batchSize", visibility=["read", "create", "update", "delete", "query"]) + """Specifies the number of documents to return in each batch of the response from MongoDB Atlas + instance. In most cases, modifying the batch size will not affect the user or the application. + This property's main purpose is to avoid hit the limitation of response size. Type: integer (or + Expression with resultType integer).""" + query_timeout: Optional[Any] = rest_field( + name="queryTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """Query timeout. Type: string (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["MongoDbAtlasSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"MongoDbAtlasSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + filter: Optional[Any] = None, # pylint: disable=redefined-builtin + cursor_methods: Optional["_models.MongoDbCursorMethodsProperties"] = None, + batch_size: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "MongoDbAtlasSource" # type: ignore + + +class MongoDbCollectionDataset(Dataset, discriminator="MongoDbCollection"): + """The MongoDB database dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: MongoDB database dataset properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.MongoDbCollectionDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "MongoDbCollection". + :vartype type: str + """ + + type_properties: "_models.MongoDbCollectionDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """MongoDB database dataset properties. Required.""" + type: Literal["MongoDbCollection"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"MongoDbCollection\".""" + + __flattened_items = ["collection_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.MongoDbCollectionDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class MongoDbCollectionDatasetTypeProperties(_Model): + """MongoDB database dataset properties. + + :ivar collection_name: The table name of the MongoDB database. Type: string (or Expression with + resultType string). Required. + :vartype collection_name: any + """ + + collection_name: Any = rest_field(name="collectionName", visibility=["read", "create", "update", "delete", "query"]) + """The table name of the MongoDB database. Type: string (or Expression with resultType string). + Required.""" + + @overload + def __init__( + self, + *, + collection_name: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbCursorMethodsProperties(_Model): + """Cursor methods for Mongodb query. + + :ivar project: Specifies the fields to return in the documents that match the query filter. To + return all fields in the matching documents, omit this parameter. Type: string (or Expression + with resultType string). + :vartype project: any + :ivar sort: Specifies the order in which the query returns matching documents. Type: string (or + Expression with resultType string). Type: string (or Expression with resultType string). + :vartype sort: any + :ivar skip: Specifies the how many documents skipped and where MongoDB begins returning + results. This approach may be useful in implementing paginated results. Type: integer (or + Expression with resultType integer). + :vartype skip: any + :ivar limit: Specifies the maximum number of documents the server returns. limit() is analogous + to the LIMIT statement in a SQL database. Type: integer (or Expression with resultType + integer). + :vartype limit: any + """ + + project: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specifies the fields to return in the documents that match the query filter. To return all + fields in the matching documents, omit this parameter. Type: string (or Expression with + resultType string).""" + sort: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specifies the order in which the query returns matching documents. Type: string (or Expression + with resultType string). Type: string (or Expression with resultType string).""" + skip: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specifies the how many documents skipped and where MongoDB begins returning results. This + approach may be useful in implementing paginated results. Type: integer (or Expression with + resultType integer).""" + limit: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specifies the maximum number of documents the server returns. limit() is analogous to the LIMIT + statement in a SQL database. Type: integer (or Expression with resultType integer).""" + + @overload + def __init__( + self, + *, + project: Optional[Any] = None, + sort: Optional[Any] = None, + skip: Optional[Any] = None, + limit: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbLinkedService(LinkedService, discriminator="MongoDb"): + """Linked service for MongoDb data source. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: MongoDB linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.MongoDbLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "MongoDb". + :vartype type: str + """ + + type_properties: "_models.MongoDbLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """MongoDB linked service properties. Required.""" + type: Literal["MongoDb"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"MongoDb\".""" + + __flattened_items = [ + "server", + "authentication_type", + "database_name", + "username", + "password", + "auth_source", + "port", + "enable_ssl", + "allow_self_signed_server_cert", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.MongoDbLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class MongoDbLinkedServiceTypeProperties(_Model): + """MongoDB linked service properties. + + :ivar server: The IP address or server name of the MongoDB server. Type: string (or Expression + with resultType string). Required. + :vartype server: any + :ivar authentication_type: The authentication type to be used to connect to the MongoDB + database. Known values are: "Basic" and "Anonymous". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.MongoDbAuthenticationType + :ivar database_name: The name of the MongoDB database that you want to access. Type: string (or + Expression with resultType string). Required. + :vartype database_name: any + :ivar username: Username for authentication. Type: string (or Expression with resultType + string). + :vartype username: any + :ivar password: Password for authentication. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar auth_source: Database to verify the username and password. Type: string (or Expression + with resultType string). + :vartype auth_source: any + :ivar port: The TCP port number that the MongoDB server uses to listen for client connections. + The default value is 27017. Type: integer (or Expression with resultType integer), minimum: 0. + :vartype port: any + :ivar enable_ssl: Specifies whether the connections to the server are encrypted using SSL. The + default value is false. Type: boolean (or Expression with resultType boolean). + :vartype enable_ssl: any + :ivar allow_self_signed_server_cert: Specifies whether to allow self-signed certificates from + the server. The default value is false. Type: boolean (or Expression with resultType boolean). + :vartype allow_self_signed_server_cert: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + server: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The IP address or server name of the MongoDB server. Type: string (or Expression with + resultType string). Required.""" + authentication_type: Optional[Union[str, "_models.MongoDbAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to be used to connect to the MongoDB database. Known values are: + \"Basic\" and \"Anonymous\".""" + database_name: Any = rest_field(name="databaseName", visibility=["read", "create", "update", "delete", "query"]) + """The name of the MongoDB database that you want to access. Type: string (or Expression with + resultType string). Required.""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Username for authentication. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password for authentication.""" + auth_source: Optional[Any] = rest_field( + name="authSource", visibility=["read", "create", "update", "delete", "query"] + ) + """Database to verify the username and password. Type: string (or Expression with resultType + string).""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The TCP port number that the MongoDB server uses to listen for client connections. The default + value is 27017. Type: integer (or Expression with resultType integer), minimum: 0.""" + enable_ssl: Optional[Any] = rest_field(name="enableSsl", visibility=["read", "create", "update", "delete", "query"]) + """Specifies whether the connections to the server are encrypted using SSL. The default value is + false. Type: boolean (or Expression with resultType boolean).""" + allow_self_signed_server_cert: Optional[Any] = rest_field( + name="allowSelfSignedServerCert", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to allow self-signed certificates from the server. The default value is + false. Type: boolean (or Expression with resultType boolean).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + server: Any, + database_name: Any, + authentication_type: Optional[Union[str, "_models.MongoDbAuthenticationType"]] = None, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + auth_source: Optional[Any] = None, + port: Optional[Any] = None, + enable_ssl: Optional[Any] = None, + allow_self_signed_server_cert: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbSource(CopySource, discriminator="MongoDbSource"): + """A copy activity source for a MongoDB database. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query: Database query. Should be a SQL-92 query expression. Type: string (or Expression + with resultType string). + :vartype query: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "MongoDbSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database query. Should be a SQL-92 query expression. Type: string (or Expression with + resultType string).""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["MongoDbSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"MongoDbSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "MongoDbSource" # type: ignore + + +class MongoDbV2CollectionDataset(Dataset, discriminator="MongoDbV2Collection"): + """The MongoDB database dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: MongoDB database dataset properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.MongoDbV2CollectionDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "MongoDbV2Collection". + :vartype type: str + """ + + type_properties: "_models.MongoDbV2CollectionDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """MongoDB database dataset properties. Required.""" + type: Literal["MongoDbV2Collection"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"MongoDbV2Collection\".""" + + __flattened_items = ["collection"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.MongoDbV2CollectionDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class MongoDbV2CollectionDatasetTypeProperties(_Model): + """MongoDB database dataset properties. + + :ivar collection: The collection name of the MongoDB database. Type: string (or Expression with + resultType string). Required. + :vartype collection: any + """ + + collection: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The collection name of the MongoDB database. Type: string (or Expression with resultType + string). Required.""" + + @overload + def __init__( + self, + *, + collection: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbV2LinkedService(LinkedService, discriminator="MongoDbV2"): + """Linked service for MongoDB data source. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: MongoDB linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.MongoDbV2LinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "MongoDbV2". + :vartype type: str + """ + + type_properties: "_models.MongoDbV2LinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """MongoDB linked service properties. Required.""" + type: Literal["MongoDbV2"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"MongoDbV2\".""" + + __flattened_items = ["connection_string", "database"] + + @overload + def __init__( + self, + *, + type_properties: "_models.MongoDbV2LinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class MongoDbV2LinkedServiceTypeProperties(_Model): + """MongoDB linked service properties. + + :ivar connection_string: The MongoDB connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. + Required. + :vartype connection_string: any + :ivar database: The name of the MongoDB database that you want to access. Type: string (or + Expression with resultType string). Required. + :vartype database: any + """ + + connection_string: Any = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The MongoDB connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + Type: string, SecureString or AzureKeyVaultSecretReference. Required.""" + database: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the MongoDB database that you want to access. Type: string (or Expression with + resultType string). Required.""" + + @overload + def __init__( + self, + *, + connection_string: Any, + database: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbV2Sink(CopySink, discriminator="MongoDbV2Sink"): + """A copy activity MongoDB sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar write_behavior: Specifies whether the document with same key to be overwritten (upsert) + rather than throw exception (insert). The default value is "insert". Type: string (or + Expression with resultType string). Type: string (or Expression with resultType string). + :vartype write_behavior: any + :ivar type: Copy sink type. Required. Default value is "MongoDbV2Sink". + :vartype type: str + """ + + write_behavior: Optional[Any] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the document with same key to be overwritten (upsert) rather than throw + exception (insert). The default value is \"insert\". Type: string (or Expression with + resultType string). Type: string (or Expression with resultType string).""" + type: Literal["MongoDbV2Sink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"MongoDbV2Sink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + write_behavior: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "MongoDbV2Sink" # type: ignore + + +class MongoDbV2Source(CopySource, discriminator="MongoDbV2Source"): + """A copy activity source for a MongoDB database. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar filter: Specifies selection filter using query operators. To return all documents in a + collection, omit this parameter or pass an empty document ({}). Type: string (or Expression + with resultType string). + :vartype filter: any + :ivar cursor_methods: Cursor methods for Mongodb query. + :vartype cursor_methods: ~azure.mgmt.datafactory.models.MongoDbCursorMethodsProperties + :ivar batch_size: Specifies the number of documents to return in each batch of the response + from MongoDB instance. In most cases, modifying the batch size will not affect the user or the + application. This property's main purpose is to avoid hit the limitation of response size. + Type: integer (or Expression with resultType integer). + :vartype batch_size: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "MongoDbV2Source". + :vartype type: str + """ + + filter: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specifies selection filter using query operators. To return all documents in a collection, omit + this parameter or pass an empty document ({}). Type: string (or Expression with resultType + string).""" + cursor_methods: Optional["_models.MongoDbCursorMethodsProperties"] = rest_field( + name="cursorMethods", visibility=["read", "create", "update", "delete", "query"] + ) + """Cursor methods for Mongodb query.""" + batch_size: Optional[Any] = rest_field(name="batchSize", visibility=["read", "create", "update", "delete", "query"]) + """Specifies the number of documents to return in each batch of the response from MongoDB + instance. In most cases, modifying the batch size will not affect the user or the application. + This property's main purpose is to avoid hit the limitation of response size. Type: integer (or + Expression with resultType integer).""" + query_timeout: Optional[Any] = rest_field( + name="queryTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """Query timeout. Type: string (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["MongoDbV2Source"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"MongoDbV2Source\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + filter: Optional[Any] = None, # pylint: disable=redefined-builtin + cursor_methods: Optional["_models.MongoDbCursorMethodsProperties"] = None, + batch_size: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "MongoDbV2Source" # type: ignore + + +class MySqlLinkedService(LinkedService, discriminator="MySql"): + """Linked service for MySQL data source. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: MySQL linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.MySqlLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "MySql". + :vartype type: str + """ + + type_properties: "_models.MySqlLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """MySQL linked service properties. Required.""" + type: Literal["MySql"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"MySql\".""" + + __flattened_items = [ + "driver_version", + "connection_string", + "server", + "port", + "username", + "database", + "ssl_mode", + "use_system_trust_store", + "password", + "encrypted_credential", + "allow_zero_date_time", + "connection_timeout", + "convert_zero_date_time", + "guid_format", + "ssl_cert", + "ssl_key", + "treat_tiny_as_boolean", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.MySqlLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class MySqlLinkedServiceTypeProperties(_Model): + """MySQL linked service properties. + + :ivar driver_version: The version of the MySQL driver. Type: string. V1 or empty for legacy + driver, V2 for new driver. V1 can support connection string and property bag, V2 can only + support connection string. + :vartype driver_version: any + :ivar connection_string: The connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar server: Server name for connection. Type: string. + :vartype server: any + :ivar port: The port for the connection. Type: integer. + :vartype port: any + :ivar username: Username for authentication. Type: string. + :vartype username: any + :ivar database: Database name for connection. Type: string. + :vartype database: any + :ivar ssl_mode: SSL mode for connection. Type: integer. 0: disable, 1: prefer, 2: require, 3: + verify-ca, 4: verify-full. + :vartype ssl_mode: any + :ivar use_system_trust_store: Use system trust store for connection. Type: integer. 0: enable, + 1: disable. + :vartype use_system_trust_store: any + :ivar password: The Azure key vault secret reference of password in connection string. + :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar allow_zero_date_time: This allows the special “zero” date value 0000-00-00 to be + retrieved from the database. Type: boolean. + :vartype allow_zero_date_time: any + :ivar connection_timeout: The length of time (in seconds) to wait for a connection to the + server before terminating the attempt and generating an error. Type: integer. + :vartype connection_timeout: any + :ivar convert_zero_date_time: True to return DateTime.MinValue for date or datetime columns + that have disallowed values. Type: boolean. + :vartype convert_zero_date_time: any + :ivar guid_format: Determines which column type (if any) should be read as a GUID. Type: + string. None: No column types are automatically read as a Guid; Char36: All CHAR(36) columns + are read/written as a Guid using lowercase hex with hyphens, which matches UUID. + :vartype guid_format: any + :ivar ssl_cert: The path to the client’s SSL certificate file in PEM format. SslKey must also + be specified. Type: string. + :vartype ssl_cert: any + :ivar ssl_key: The path to the client’s SSL private key in PEM format. SslCert must also be + specified. Type: string. + :vartype ssl_key: any + :ivar treat_tiny_as_boolean: When set to true, TINYINT(1) values are returned as booleans. + Type: bool. + :vartype treat_tiny_as_boolean: any + """ + + driver_version: Optional[Any] = rest_field( + name="driverVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The version of the MySQL driver. Type: string. V1 or empty for legacy driver, V2 for new + driver. V1 can support connection string and property bag, V2 can only support connection + string.""" + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.""" + server: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Server name for connection. Type: string.""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The port for the connection. Type: integer.""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Username for authentication. Type: string.""" + database: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database name for connection. Type: string.""" + ssl_mode: Optional[Any] = rest_field(name="sslMode", visibility=["read", "create", "update", "delete", "query"]) + """SSL mode for connection. Type: integer. 0: disable, 1: prefer, 2: require, 3: verify-ca, 4: + verify-full.""" + use_system_trust_store: Optional[Any] = rest_field( + name="useSystemTrustStore", visibility=["read", "create", "update", "delete", "query"] + ) + """Use system trust store for connection. Type: integer. 0: enable, 1: disable.""" + password: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of password in connection string.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + allow_zero_date_time: Optional[Any] = rest_field( + name="allowZeroDateTime", visibility=["read", "create", "update", "delete", "query"] + ) + """This allows the special “zero” date value 0000-00-00 to be retrieved from the database. Type: + boolean.""" + connection_timeout: Optional[Any] = rest_field( + name="connectionTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """The length of time (in seconds) to wait for a connection to the server before terminating the + attempt and generating an error. Type: integer.""" + convert_zero_date_time: Optional[Any] = rest_field( + name="convertZeroDateTime", visibility=["read", "create", "update", "delete", "query"] + ) + """True to return DateTime.MinValue for date or datetime columns that have disallowed values. + Type: boolean.""" + guid_format: Optional[Any] = rest_field( + name="guidFormat", visibility=["read", "create", "update", "delete", "query"] + ) + """Determines which column type (if any) should be read as a GUID. Type: string. None: No column + types are automatically read as a Guid; Char36: All CHAR(36) columns are read/written as a Guid + using lowercase hex with hyphens, which matches UUID.""" + ssl_cert: Optional[Any] = rest_field(name="sslCert", visibility=["read", "create", "update", "delete", "query"]) + """The path to the client’s SSL certificate file in PEM format. SslKey must also be specified. + Type: string.""" + ssl_key: Optional[Any] = rest_field(name="sslKey", visibility=["read", "create", "update", "delete", "query"]) + """The path to the client’s SSL private key in PEM format. SslCert must also be specified. Type: + string.""" + treat_tiny_as_boolean: Optional[Any] = rest_field( + name="treatTinyAsBoolean", visibility=["read", "create", "update", "delete", "query"] + ) + """When set to true, TINYINT(1) values are returned as booleans. Type: bool.""" + + @overload + def __init__( + self, + *, + driver_version: Optional[Any] = None, + connection_string: Optional[Any] = None, + server: Optional[Any] = None, + port: Optional[Any] = None, + username: Optional[Any] = None, + database: Optional[Any] = None, + ssl_mode: Optional[Any] = None, + use_system_trust_store: Optional[Any] = None, + password: Optional["_models.AzureKeyVaultSecretReference"] = None, + encrypted_credential: Optional[str] = None, + allow_zero_date_time: Optional[Any] = None, + connection_timeout: Optional[Any] = None, + convert_zero_date_time: Optional[Any] = None, + guid_format: Optional[Any] = None, + ssl_cert: Optional[Any] = None, + ssl_key: Optional[Any] = None, + treat_tiny_as_boolean: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MySqlSource(TabularSource, discriminator="MySqlSource"): + """A copy activity source for MySQL databases. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: Database query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "MySqlSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database query. Type: string (or Expression with resultType string).""" + type: Literal["MySqlSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"MySqlSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "MySqlSource" # type: ignore + + +class MySqlTableDataset(Dataset, discriminator="MySqlTable"): + """The MySQL table dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: MySQL table dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.MySqlTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "MySqlTable". + :vartype type: str + """ + + type_properties: Optional["_models.MySqlTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """MySQL table dataset properties.""" + type: Literal["MySqlTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"MySqlTable\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.MySqlTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class MySqlTableDatasetTypeProperties(_Model): + """MySql table dataset properties. + + :ivar table_name: The MySQL table name. Type: string (or Expression with resultType string). + :vartype table_name: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """The MySQL table name. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NetezzaLinkedService(LinkedService, discriminator="Netezza"): + """Netezza linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Netezza linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.NetezzaLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Netezza". + :vartype type: str + """ + + type_properties: "_models.NetezzaLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Netezza linked service properties. Required.""" + type: Literal["Netezza"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Netezza\".""" + + __flattened_items = [ + "connection_string", + "server", + "port", + "uid", + "database", + "security_level", + "pwd", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.NetezzaLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class NetezzaLinkedServiceTypeProperties(_Model): + """Netezza linked service properties. + + :ivar connection_string: An ODBC connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar server: Server name for connection. Type: string. + :vartype server: any + :ivar port: The port for the connection. Type: integer. + :vartype port: any + :ivar uid: Username for authentication. Type: string. + :vartype uid: any + :ivar database: Database name for connection. Type: string. + :vartype database: any + :ivar security_level: Specifies the security level for the driver connection to the data store. + PreferredUnSecured : prefer unsecured, allow fallback to secured connection if required. + OnlyUnSecured : strictly unsecured, no fallback. Known values are: "PreferredUnSecured" and + "OnlyUnSecured". + :vartype security_level: str or ~azure.mgmt.datafactory.models.NetezzaSecurityLevelType + :ivar pwd: The Azure key vault secret reference of password in connection string. + :vartype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference.""" + server: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Server name for connection. Type: string.""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The port for the connection. Type: integer.""" + uid: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Username for authentication. Type: string.""" + database: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database name for connection. Type: string.""" + security_level: Optional[Union[str, "_models.NetezzaSecurityLevelType"]] = rest_field( + name="securityLevel", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the security level for the driver connection to the data store. PreferredUnSecured : + prefer unsecured, allow fallback to secured connection if required. OnlyUnSecured : strictly + unsecured, no fallback. Known values are: \"PreferredUnSecured\" and \"OnlyUnSecured\".""" + pwd: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of password in connection string.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_string: Optional[Any] = None, + server: Optional[Any] = None, + port: Optional[Any] = None, + uid: Optional[Any] = None, + database: Optional[Any] = None, + security_level: Optional[Union[str, "_models.NetezzaSecurityLevelType"]] = None, + pwd: Optional["_models.AzureKeyVaultSecretReference"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NetezzaPartitionSettings(_Model): + """The settings that will be leveraged for Netezza source partitioning. + + :ivar partition_column_name: The name of the column in integer type that will be used for + proceeding range partitioning. Type: string (or Expression with resultType string). + :vartype partition_column_name: any + :ivar partition_upper_bound: The maximum value of column specified in partitionColumnName that + will be used for proceeding range partitioning. Type: string (or Expression with resultType + string). + :vartype partition_upper_bound: any + :ivar partition_lower_bound: The minimum value of column specified in partitionColumnName that + will be used for proceeding range partitioning. Type: string (or Expression with resultType + string). + :vartype partition_lower_bound: any + """ + + partition_column_name: Optional[Any] = rest_field( + name="partitionColumnName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the column in integer type that will be used for proceeding range partitioning. + Type: string (or Expression with resultType string).""" + partition_upper_bound: Optional[Any] = rest_field( + name="partitionUpperBound", visibility=["read", "create", "update", "delete", "query"] + ) + """The maximum value of column specified in partitionColumnName that will be used for proceeding + range partitioning. Type: string (or Expression with resultType string).""" + partition_lower_bound: Optional[Any] = rest_field( + name="partitionLowerBound", visibility=["read", "create", "update", "delete", "query"] + ) + """The minimum value of column specified in partitionColumnName that will be used for proceeding + range partitioning. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + partition_column_name: Optional[Any] = None, + partition_upper_bound: Optional[Any] = None, + partition_lower_bound: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NetezzaSource(TabularSource, discriminator="NetezzaSource"): + """A copy activity Netezza source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar partition_option: The partition mechanism that will be used for Netezza read in parallel. + Possible values include: "None", "DataSlice", "DynamicRange". + :vartype partition_option: any + :ivar partition_settings: The settings that will be leveraged for Netezza source partitioning. + :vartype partition_settings: ~azure.mgmt.datafactory.models.NetezzaPartitionSettings + :ivar type: Copy source type. Required. Default value is "NetezzaSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + partition_option: Optional[Any] = rest_field( + name="partitionOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The partition mechanism that will be used for Netezza read in parallel. Possible values + include: \"None\", \"DataSlice\", \"DynamicRange\".""" + partition_settings: Optional["_models.NetezzaPartitionSettings"] = rest_field( + name="partitionSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The settings that will be leveraged for Netezza source partitioning.""" + type: Literal["NetezzaSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"NetezzaSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + partition_option: Optional[Any] = None, + partition_settings: Optional["_models.NetezzaPartitionSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "NetezzaSource" # type: ignore + + +class NetezzaTableDataset(Dataset, discriminator="NetezzaTable"): + """Netezza dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.NetezzaTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "NetezzaTable". + :vartype type: str + """ + + type_properties: Optional["_models.NetezzaTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["NetezzaTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"NetezzaTable\".""" + + __flattened_items = ["table_name", "table", "schema"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.NetezzaTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class NetezzaTableDatasetTypeProperties(_Model): + """Netezza dataset properties. + + :ivar table_name: This property will be retired. Please consider using schema + table + properties instead. + :vartype table_name: any + :ivar table: The table name of the Netezza. Type: string (or Expression with resultType + string). + :vartype table: any + :ivar schema: The schema name of the Netezza. Type: string (or Expression with resultType + string). + :vartype schema: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property will be retired. Please consider using schema + table properties instead.""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Netezza. Type: string (or Expression with resultType string).""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the Netezza. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + table: Optional[Any] = None, + schema: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NotebookParameter(_Model): + """Notebook parameter. + + :ivar value: Notebook parameter value. Type: string (or Expression with resultType string). + :vartype value: any + :ivar type: Notebook parameter type. Known values are: "string", "int", "float", and "bool". + :vartype type: str or ~azure.mgmt.datafactory.models.NotebookParameterType + """ + + value: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Notebook parameter value. Type: string (or Expression with resultType string).""" + type: Optional[Union[str, "_models.NotebookParameterType"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Notebook parameter type. Known values are: \"string\", \"int\", \"float\", and \"bool\".""" + + @overload + def __init__( + self, + *, + value: Optional[Any] = None, + type: Optional[Union[str, "_models.NotebookParameterType"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ODataLinkedService(LinkedService, discriminator="OData"): + """Open Data Protocol (OData) linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: OData linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.ODataLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "OData". + :vartype type: str + """ + + type_properties: "_models.ODataLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """OData linked service properties. Required.""" + type: Literal["OData"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"OData\".""" + + __flattened_items = [ + "url", + "authentication_type", + "user_name", + "password", + "auth_headers", + "tenant", + "service_principal_id", + "azure_cloud_type", + "aad_resource_id", + "aad_service_principal_credential_type", + "service_principal_key", + "service_principal_embedded_cert", + "service_principal_embedded_cert_password", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.ODataLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ODataLinkedServiceTypeProperties(_Model): + """OData linked service properties. + + :ivar url: The URL of the OData service endpoint. Type: string (or Expression with resultType + string). Required. + :vartype url: any + :ivar authentication_type: Type of authentication used to connect to the OData service. Known + values are: "Basic", "Anonymous", "Windows", "AadServicePrincipal", and + "ManagedServiceIdentity". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.ODataAuthenticationType + :ivar user_name: User name of the OData service. Type: string (or Expression with resultType + string). + :vartype user_name: any + :ivar password: Password of the OData service. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar auth_headers: The additional HTTP headers in the request to RESTful API used for + authorization. Type: key value pairs (value should be string type). + :vartype auth_headers: any + :ivar tenant: Specify the tenant information (domain name or tenant ID) under which your + application resides. Type: string (or Expression with resultType string). + :vartype tenant: any + :ivar service_principal_id: Specify the application id of your application registered in Azure + Active Directory. Type: string (or Expression with resultType string). + :vartype service_principal_id: any + :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed + values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data + factory regions’ cloud type. Type: string (or Expression with resultType string). + :vartype azure_cloud_type: any + :ivar aad_resource_id: Specify the resource you are requesting authorization to use Directory. + Type: string (or Expression with resultType string). + :vartype aad_resource_id: any + :ivar aad_service_principal_credential_type: Specify the credential type (key or cert) is used + for service principal. Known values are: "ServicePrincipalKey" and "ServicePrincipalCert". + :vartype aad_service_principal_credential_type: str or + ~azure.mgmt.datafactory.models.ODataAadServicePrincipalCredentialType + :ivar service_principal_key: Specify the secret of your application registered in Azure Active + Directory. Type: string (or Expression with resultType string). + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_principal_embedded_cert: Specify the base64 encoded certificate of your + application registered in Azure Active Directory. Type: string (or Expression with resultType + string). + :vartype service_principal_embedded_cert: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_principal_embedded_cert_password: Specify the password of your certificate if + your certificate has a password and you are using AadServicePrincipal authentication. Type: + string (or Expression with resultType string). + :vartype service_principal_embedded_cert_password: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + url: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The URL of the OData service endpoint. Type: string (or Expression with resultType string). + Required.""" + authentication_type: Optional[Union[str, "_models.ODataAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """Type of authentication used to connect to the OData service. Known values are: \"Basic\", + \"Anonymous\", \"Windows\", \"AadServicePrincipal\", and \"ManagedServiceIdentity\".""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """User name of the OData service. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password of the OData service.""" + auth_headers: Optional[Any] = rest_field( + name="authHeaders", visibility=["read", "create", "update", "delete", "query"] + ) + """The additional HTTP headers in the request to RESTful API used for authorization. Type: key + value pairs (value should be string type).""" + tenant: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specify the tenant information (domain name or tenant ID) under which your application resides. + Type: string (or Expression with resultType string).""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the application id of your application registered in Azure Active Directory. Type: + string (or Expression with resultType string).""" + azure_cloud_type: Optional[Any] = rest_field( + name="azureCloudType", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, + AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud + type. Type: string (or Expression with resultType string).""" + aad_resource_id: Optional[Any] = rest_field( + name="aadResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the resource you are requesting authorization to use Directory. Type: string (or + Expression with resultType string).""" + aad_service_principal_credential_type: Optional[Union[str, "_models.ODataAadServicePrincipalCredentialType"]] = ( + rest_field(name="aadServicePrincipalCredentialType", visibility=["read", "create", "update", "delete", "query"]) + ) + """Specify the credential type (key or cert) is used for service principal. Known values are: + \"ServicePrincipalKey\" and \"ServicePrincipalCert\".""" + service_principal_key: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the secret of your application registered in Azure Active Directory. Type: string (or + Expression with resultType string).""" + service_principal_embedded_cert: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalEmbeddedCert", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the base64 encoded certificate of your application registered in Azure Active + Directory. Type: string (or Expression with resultType string).""" + service_principal_embedded_cert_password: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalEmbeddedCertPassword", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the password of your certificate if your certificate has a password and you are using + AadServicePrincipal authentication. Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + url: Any, + authentication_type: Optional[Union[str, "_models.ODataAuthenticationType"]] = None, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + auth_headers: Optional[Any] = None, + tenant: Optional[Any] = None, + service_principal_id: Optional[Any] = None, + azure_cloud_type: Optional[Any] = None, + aad_resource_id: Optional[Any] = None, + aad_service_principal_credential_type: Optional[ + Union[str, "_models.ODataAadServicePrincipalCredentialType"] + ] = None, + service_principal_key: Optional["_models.SecretBase"] = None, + service_principal_embedded_cert: Optional["_models.SecretBase"] = None, + service_principal_embedded_cert_password: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ODataResourceDataset(Dataset, discriminator="ODataResource"): + """The Open Data Protocol (OData) resource dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: OData dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.ODataResourceDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "ODataResource". + :vartype type: str + """ + + type_properties: Optional["_models.ODataResourceDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """OData dataset properties.""" + type: Literal["ODataResource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"ODataResource\".""" + + __flattened_items = ["path"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.ODataResourceDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ODataResourceDatasetTypeProperties(_Model): + """OData dataset properties. + + :ivar path: The OData resource path. Type: string (or Expression with resultType string). + :vartype path: any + """ + + path: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The OData resource path. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + path: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ODataSource(CopySource, discriminator="ODataSource"): + """A copy activity source for OData source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query: OData query. For example, "$top=1". Type: string (or Expression with resultType + string). + :vartype query: any + :ivar http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the timeout + to get a response, not the timeout to read response data. Default value: 00:05:00. Type: string + (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype http_request_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "ODataSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """OData query. For example, \"$top=1\". Type: string (or Expression with resultType string).""" + http_request_timeout: Optional[Any] = rest_field( + name="httpRequestTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the + timeout to read response data. Default value: 00:05:00. Type: string (or Expression with + resultType string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["ODataSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"ODataSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query: Optional[Any] = None, + http_request_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "ODataSource" # type: ignore + + +class OdbcLinkedService(LinkedService, discriminator="Odbc"): + """Open Database Connectivity (ODBC) linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: ODBC linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.OdbcLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Odbc". + :vartype type: str + """ + + type_properties: "_models.OdbcLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """ODBC linked service properties. Required.""" + type: Literal["Odbc"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Odbc\".""" + + __flattened_items = [ + "connection_string", + "authentication_type", + "credential", + "user_name", + "password", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.OdbcLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class OdbcLinkedServiceTypeProperties(_Model): + """ODBC linked service properties. + + :ivar connection_string: The non-access credential portion of the connection string as well as + an optional encrypted credential. Type: string, or SecureString, or + AzureKeyVaultSecretReference, or Expression with resultType string. Required. + :vartype connection_string: any + :ivar authentication_type: Type of authentication used to connect to the ODBC data store. + Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). + :vartype authentication_type: any + :ivar credential: The access credential portion of the connection string specified in + driver-specific property-value format. + :vartype credential: ~azure.mgmt.datafactory.models.SecretBase + :ivar user_name: User name for Basic authentication. Type: string (or Expression with + resultType string). + :vartype user_name: any + :ivar password: Password for Basic authentication. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_string: Any = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The non-access credential portion of the connection string as well as an optional encrypted + credential. Type: string, or SecureString, or AzureKeyVaultSecretReference, or Expression with + resultType string. Required.""" + authentication_type: Optional[Any] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """Type of authentication used to connect to the ODBC data store. Possible values are: Anonymous + and Basic. Type: string (or Expression with resultType string).""" + credential: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The access credential portion of the connection string specified in driver-specific + property-value format.""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """User name for Basic authentication. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password for Basic authentication.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_string: Any, + authentication_type: Optional[Any] = None, + credential: Optional["_models.SecretBase"] = None, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OdbcSink(CopySink, discriminator="OdbcSink"): + """A copy activity ODBC sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar pre_copy_script: A query to execute before starting the copy. Type: string (or Expression + with resultType string). + :vartype pre_copy_script: any + :ivar type: Copy sink type. Required. Default value is "OdbcSink". + :vartype type: str + """ + + pre_copy_script: Optional[Any] = rest_field( + name="preCopyScript", visibility=["read", "create", "update", "delete", "query"] + ) + """A query to execute before starting the copy. Type: string (or Expression with resultType + string).""" + type: Literal["OdbcSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"OdbcSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + pre_copy_script: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "OdbcSink" # type: ignore + + +class OdbcSource(TabularSource, discriminator="OdbcSource"): + """A copy activity source for ODBC databases. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: Database query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "OdbcSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database query. Type: string (or Expression with resultType string).""" + type: Literal["OdbcSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"OdbcSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "OdbcSource" # type: ignore + + +class OdbcTableDataset(Dataset, discriminator="OdbcTable"): + """The ODBC table dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: ODBC table dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.OdbcTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "OdbcTable". + :vartype type: str + """ + + type_properties: Optional["_models.OdbcTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """ODBC table dataset properties.""" + type: Literal["OdbcTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"OdbcTable\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.OdbcTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class OdbcTableDatasetTypeProperties(_Model): + """ODBC table dataset properties. + + :ivar table_name: The ODBC table name. Type: string (or Expression with resultType string). + :vartype table_name: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """The ODBC table name. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Office365Dataset(Dataset, discriminator="Office365Table"): + """The Office365 account. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Office365 dataset properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.Office365DatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "Office365Table". + :vartype type: str + """ + + type_properties: "_models.Office365DatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Office365 dataset properties. Required.""" + type: Literal["Office365Table"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"Office365Table\".""" + + __flattened_items = ["table_name", "predicate"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.Office365DatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class Office365DatasetTypeProperties(_Model): + """Office365 dataset properties. + + :ivar table_name: Name of the dataset to extract from Office 365. Type: string (or Expression + with resultType string). Required. + :vartype table_name: any + :ivar predicate: A predicate expression that can be used to filter the specific rows to extract + from Office 365. Type: string (or Expression with resultType string). + :vartype predicate: any + """ + + table_name: Any = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """Name of the dataset to extract from Office 365. Type: string (or Expression with resultType + string). Required.""" + predicate: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A predicate expression that can be used to filter the specific rows to extract from Office 365. + Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Any, + predicate: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Office365LinkedService(LinkedService, discriminator="Office365"): + """Office365 linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Office365 linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.Office365LinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Office365". + :vartype type: str + """ + + type_properties: "_models.Office365LinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Office365 linked service properties. Required.""" + type: Literal["Office365"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Office365\".""" + + __flattened_items = [ + "office365_tenant_id", + "service_principal_tenant_id", + "service_principal_id", + "service_principal_key", + "service_principal_credential_type", + "service_principal_embedded_cert", + "service_principal_embedded_cert_password", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.Office365LinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class Office365LinkedServiceTypeProperties(_Model): + """Office365 linked service properties. + + :ivar office365_tenant_id: Azure tenant ID to which the Office 365 account belongs. Type: + string (or Expression with resultType string). Required. + :vartype office365_tenant_id: any + :ivar service_principal_tenant_id: Specify the tenant information under which your Azure AD web + application resides. Type: string (or Expression with resultType string). Required. + :vartype service_principal_tenant_id: any + :ivar service_principal_id: Specify the application's client ID. Type: string (or Expression + with resultType string). Required. + :vartype service_principal_id: any + :ivar service_principal_key: Specify the application's key. Required. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_principal_credential_type: The service principal credential type for + authentication.'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. If + not specified, 'ServicePrincipalKey' is in use. Type: string (or Expression with resultType + string). + :vartype service_principal_credential_type: any + :ivar service_principal_embedded_cert: Specify the base64 encoded certificate of your + application registered in Azure Active Directory. Type: string (or Expression with resultType + string). + :vartype service_principal_embedded_cert: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_principal_embedded_cert_password: Specify the password of your certificate if + your certificate has a password and you are using AadServicePrincipal authentication. Type: + string (or Expression with resultType string). + :vartype service_principal_embedded_cert_password: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + office365_tenant_id: Any = rest_field( + name="office365TenantId", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure tenant ID to which the Office 365 account belongs. Type: string (or Expression with + resultType string). Required.""" + service_principal_tenant_id: Any = rest_field( + name="servicePrincipalTenantId", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the tenant information under which your Azure AD web application resides. Type: string + (or Expression with resultType string). Required.""" + service_principal_id: Any = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the application's client ID. Type: string (or Expression with resultType string). + Required.""" + service_principal_key: "_models.SecretBase" = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the application's key. Required.""" + service_principal_credential_type: Optional[Any] = rest_field( + name="servicePrincipalCredentialType", visibility=["read", "create", "update", "delete", "query"] + ) + """The service principal credential type for authentication.'ServicePrincipalKey' for key/secret, + 'ServicePrincipalCert' for certificate. If not specified, 'ServicePrincipalKey' is in use. + Type: string (or Expression with resultType string).""" + service_principal_embedded_cert: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalEmbeddedCert", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the base64 encoded certificate of your application registered in Azure Active + Directory. Type: string (or Expression with resultType string).""" + service_principal_embedded_cert_password: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalEmbeddedCertPassword", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the password of your certificate if your certificate has a password and you are using + AadServicePrincipal authentication. Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + office365_tenant_id: Any, + service_principal_tenant_id: Any, + service_principal_id: Any, + service_principal_key: "_models.SecretBase", + service_principal_credential_type: Optional[Any] = None, + service_principal_embedded_cert: Optional["_models.SecretBase"] = None, + service_principal_embedded_cert_password: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Office365Source(CopySource, discriminator="Office365Source"): + """A copy activity source for an Office 365 service. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar allowed_groups: The groups containing all the users. Type: array of strings (or + Expression with resultType array of strings). + :vartype allowed_groups: any + :ivar user_scope_filter_uri: The user scope uri. Type: string (or Expression with resultType + string). + :vartype user_scope_filter_uri: any + :ivar date_filter_column: The Column to apply the and . Type: string (or Expression with resultType string). + :vartype date_filter_column: any + :ivar start_time: Start time of the requested range for this dataset. Type: string (or + Expression with resultType string). + :vartype start_time: any + :ivar end_time: End time of the requested range for this dataset. Type: string (or Expression + with resultType string). + :vartype end_time: any + :ivar output_columns: The columns to be read out from the Office 365 table. Type: array of + objects (or Expression with resultType array of objects). itemType: OutputColumn. Example: [ { + "name": "Id" }, { "name": "CreatedDateTime" } ]. + :vartype output_columns: any + :ivar type: Copy source type. Required. Default value is "Office365Source". + :vartype type: str + """ + + allowed_groups: Optional[Any] = rest_field( + name="allowedGroups", visibility=["read", "create", "update", "delete", "query"] + ) + """The groups containing all the users. Type: array of strings (or Expression with resultType + array of strings).""" + user_scope_filter_uri: Optional[Any] = rest_field( + name="userScopeFilterUri", visibility=["read", "create", "update", "delete", "query"] + ) + """The user scope uri. Type: string (or Expression with resultType string).""" + date_filter_column: Optional[Any] = rest_field( + name="dateFilterColumn", visibility=["read", "create", "update", "delete", "query"] + ) + """The Column to apply the and . Type: + string (or Expression with resultType string).""" + start_time: Optional[Any] = rest_field(name="startTime", visibility=["read", "create", "update", "delete", "query"]) + """Start time of the requested range for this dataset. Type: string (or Expression with resultType + string).""" + end_time: Optional[Any] = rest_field(name="endTime", visibility=["read", "create", "update", "delete", "query"]) + """End time of the requested range for this dataset. Type: string (or Expression with resultType + string).""" + output_columns: Optional[Any] = rest_field( + name="outputColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """The columns to be read out from the Office 365 table. Type: array of objects (or Expression + with resultType array of objects). itemType: OutputColumn. Example: [ { \"name\": \"Id\" }, { + \"name\": \"CreatedDateTime\" } ].""" + type: Literal["Office365Source"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"Office365Source\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + allowed_groups: Optional[Any] = None, + user_scope_filter_uri: Optional[Any] = None, + date_filter_column: Optional[Any] = None, + start_time: Optional[Any] = None, + end_time: Optional[Any] = None, + output_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "Office365Source" # type: ignore + + +class Operation(_Model): + """Azure Data Factory API operation definition. + + :ivar name: Operation name: {provider}/{resource}/{operation}. + :vartype name: str + :ivar origin: The intended executor of the operation. + :vartype origin: str + :ivar display: Metadata associated with the operation. + :vartype display: ~azure.mgmt.datafactory.models.OperationDisplay + :ivar properties: Additional details about the operation. + :vartype properties: ~azure.mgmt.datafactory.models.OperationProperties + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Operation name: {provider}/{resource}/{operation}.""" + origin: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The intended executor of the operation.""" + display: Optional["_models.OperationDisplay"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Metadata associated with the operation.""" + properties: Optional["_models.OperationProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Additional details about the operation.""" + + __flattened_items = ["service_specification"] + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + origin: Optional[str] = None, + display: Optional["_models.OperationDisplay"] = None, + properties: Optional["_models.OperationProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class OperationDisplay(_Model): + """Metadata associated with the operation. + + :ivar description: The description of the operation. + :vartype description: str + :ivar provider: The name of the provider. + :vartype provider: str + :ivar resource: The name of the resource type on which the operation is performed. + :vartype resource: str + :ivar operation: The type of operation: get, read, delete, etc. + :vartype operation: str + """ + + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The description of the operation.""" + provider: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the provider.""" + resource: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the resource type on which the operation is performed.""" + operation: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The type of operation: get, read, delete, etc.""" + + @overload + def __init__( + self, + *, + description: Optional[str] = None, + provider: Optional[str] = None, + resource: Optional[str] = None, + operation: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OperationLogSpecification(_Model): + """Details about an operation related to logs. + + :ivar name: The name of the log category. + :vartype name: str + :ivar display_name: Localized display name. + :vartype display_name: str + :ivar blob_duration: Blobs created in the customer storage account, per hour. + :vartype blob_duration: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the log category.""" + display_name: Optional[str] = rest_field( + name="displayName", visibility=["read", "create", "update", "delete", "query"] + ) + """Localized display name.""" + blob_duration: Optional[str] = rest_field( + name="blobDuration", visibility=["read", "create", "update", "delete", "query"] + ) + """Blobs created in the customer storage account, per hour.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + display_name: Optional[str] = None, + blob_duration: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OperationMetricAvailability(_Model): + """Defines how often data for a metric becomes available. + + :ivar time_grain: The granularity for the metric. + :vartype time_grain: str + :ivar blob_duration: Blob created in the customer storage account, per hour. + :vartype blob_duration: str + """ + + time_grain: Optional[str] = rest_field(name="timeGrain", visibility=["read", "create", "update", "delete", "query"]) + """The granularity for the metric.""" + blob_duration: Optional[str] = rest_field( + name="blobDuration", visibility=["read", "create", "update", "delete", "query"] + ) + """Blob created in the customer storage account, per hour.""" + + @overload + def __init__( + self, + *, + time_grain: Optional[str] = None, + blob_duration: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OperationMetricDimension(_Model): + """Defines the metric dimension. + + :ivar name: The name of the dimension for the metric. + :vartype name: str + :ivar display_name: The display name of the metric dimension. + :vartype display_name: str + :ivar to_be_exported_for_shoebox: Whether the dimension should be exported to Azure Monitor. + :vartype to_be_exported_for_shoebox: bool + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the dimension for the metric.""" + display_name: Optional[str] = rest_field( + name="displayName", visibility=["read", "create", "update", "delete", "query"] + ) + """The display name of the metric dimension.""" + to_be_exported_for_shoebox: Optional[bool] = rest_field( + name="toBeExportedForShoebox", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether the dimension should be exported to Azure Monitor.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + display_name: Optional[str] = None, + to_be_exported_for_shoebox: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OperationMetricSpecification(_Model): + """Details about an operation related to metrics. + + :ivar name: The name of the metric. + :vartype name: str + :ivar display_name: Localized display name of the metric. + :vartype display_name: str + :ivar display_description: The description of the metric. + :vartype display_description: str + :ivar unit: The unit that the metric is measured in. + :vartype unit: str + :ivar aggregation_type: The type of metric aggregation. + :vartype aggregation_type: str + :ivar enable_regional_mdm_account: Whether or not the service is using regional MDM accounts. + :vartype enable_regional_mdm_account: str + :ivar source_mdm_account: The name of the MDM account. + :vartype source_mdm_account: str + :ivar source_mdm_namespace: The name of the MDM namespace. + :vartype source_mdm_namespace: str + :ivar availabilities: Defines how often data for metrics becomes available. + :vartype availabilities: list[~azure.mgmt.datafactory.models.OperationMetricAvailability] + :ivar dimensions: Defines the metric dimension. + :vartype dimensions: list[~azure.mgmt.datafactory.models.OperationMetricDimension] + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the metric.""" + display_name: Optional[str] = rest_field( + name="displayName", visibility=["read", "create", "update", "delete", "query"] + ) + """Localized display name of the metric.""" + display_description: Optional[str] = rest_field( + name="displayDescription", visibility=["read", "create", "update", "delete", "query"] + ) + """The description of the metric.""" + unit: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The unit that the metric is measured in.""" + aggregation_type: Optional[str] = rest_field( + name="aggregationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of metric aggregation.""" + enable_regional_mdm_account: Optional[str] = rest_field( + name="enableRegionalMdmAccount", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether or not the service is using regional MDM accounts.""" + source_mdm_account: Optional[str] = rest_field( + name="sourceMdmAccount", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the MDM account.""" + source_mdm_namespace: Optional[str] = rest_field( + name="sourceMdmNamespace", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the MDM namespace.""" + availabilities: Optional[list["_models.OperationMetricAvailability"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Defines how often data for metrics becomes available.""" + dimensions: Optional[list["_models.OperationMetricDimension"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Defines the metric dimension.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + display_name: Optional[str] = None, + display_description: Optional[str] = None, + unit: Optional[str] = None, + aggregation_type: Optional[str] = None, + enable_regional_mdm_account: Optional[str] = None, + source_mdm_account: Optional[str] = None, + source_mdm_namespace: Optional[str] = None, + availabilities: Optional[list["_models.OperationMetricAvailability"]] = None, + dimensions: Optional[list["_models.OperationMetricDimension"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OperationProperties(_Model): + """Additional details about an operation. + + :ivar service_specification: Details about a service operation. + :vartype service_specification: ~azure.mgmt.datafactory.models.OperationServiceSpecification + """ + + service_specification: Optional["_models.OperationServiceSpecification"] = rest_field( + name="serviceSpecification", visibility=["read", "create", "update", "delete", "query"] + ) + """Details about a service operation.""" + + @overload + def __init__( + self, + *, + service_specification: Optional["_models.OperationServiceSpecification"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OperationServiceSpecification(_Model): + """Details about a service operation. + + :ivar log_specifications: Details about operations related to logs. + :vartype log_specifications: list[~azure.mgmt.datafactory.models.OperationLogSpecification] + :ivar metric_specifications: Details about operations related to metrics. + :vartype metric_specifications: + list[~azure.mgmt.datafactory.models.OperationMetricSpecification] + """ + + log_specifications: Optional[list["_models.OperationLogSpecification"]] = rest_field( + name="logSpecifications", visibility=["read", "create", "update", "delete", "query"] + ) + """Details about operations related to logs.""" + metric_specifications: Optional[list["_models.OperationMetricSpecification"]] = rest_field( + name="metricSpecifications", visibility=["read", "create", "update", "delete", "query"] + ) + """Details about operations related to metrics.""" + + @overload + def __init__( + self, + *, + log_specifications: Optional[list["_models.OperationLogSpecification"]] = None, + metric_specifications: Optional[list["_models.OperationMetricSpecification"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OracleCloudStorageLinkedService(LinkedService, discriminator="OracleCloudStorage"): + """Linked service for Oracle Cloud Storage. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Oracle Cloud Storage linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.OracleCloudStorageLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "OracleCloudStorage". + :vartype type: str + """ + + type_properties: "_models.OracleCloudStorageLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Oracle Cloud Storage linked service properties. Required.""" + type: Literal["OracleCloudStorage"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"OracleCloudStorage\".""" + + __flattened_items = ["access_key_id", "secret_access_key", "service_url", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.OracleCloudStorageLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class OracleCloudStorageLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Oracle Cloud Storage linked service properties. + + :ivar access_key_id: The access key identifier of the Oracle Cloud Storage Identity and Access + Management (IAM) user. Type: string (or Expression with resultType string). + :vartype access_key_id: any + :ivar secret_access_key: The secret access key of the Oracle Cloud Storage Identity and Access + Management (IAM) user. + :vartype secret_access_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_url: This value specifies the endpoint to access with the Oracle Cloud Storage + Connector. This is an optional property; change it only if you want to try a different service + endpoint or want to switch between https and http. Type: string (or Expression with resultType + string). + :vartype service_url: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + access_key_id: Optional[Any] = rest_field( + name="accessKeyId", visibility=["read", "create", "update", "delete", "query"] + ) + """The access key identifier of the Oracle Cloud Storage Identity and Access Management (IAM) + user. Type: string (or Expression with resultType string).""" + secret_access_key: Optional["_models.SecretBase"] = rest_field( + name="secretAccessKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The secret access key of the Oracle Cloud Storage Identity and Access Management (IAM) user.""" + service_url: Optional[Any] = rest_field( + name="serviceUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """This value specifies the endpoint to access with the Oracle Cloud Storage Connector. This is an + optional property; change it only if you want to try a different service endpoint or want to + switch between https and http. Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + access_key_id: Optional[Any] = None, + secret_access_key: Optional["_models.SecretBase"] = None, + service_url: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OracleCloudStorageLocation(DatasetLocation, discriminator="OracleCloudStorageLocation"): + """The location of Oracle Cloud Storage dataset. + + :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with + resultType string). + :vartype folder_path: any + :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType + string). + :vartype file_name: any + :ivar bucket_name: Specify the bucketName of Oracle Cloud Storage. Type: string (or Expression + with resultType string). + :vartype bucket_name: any + :ivar version: Specify the version of Oracle Cloud Storage. Type: string (or Expression with + resultType string). + :vartype version: any + :ivar type: Type of dataset storage location. Required. Default value is + "OracleCloudStorageLocation". + :vartype type: str + """ + + bucket_name: Optional[Any] = rest_field( + name="bucketName", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the bucketName of Oracle Cloud Storage. Type: string (or Expression with resultType + string).""" + version: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specify the version of Oracle Cloud Storage. Type: string (or Expression with resultType + string).""" + type: Literal["OracleCloudStorageLocation"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage location. Required. Default value is \"OracleCloudStorageLocation\".""" + + @overload + def __init__( + self, + *, + folder_path: Optional[Any] = None, + file_name: Optional[Any] = None, + bucket_name: Optional[Any] = None, + version: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "OracleCloudStorageLocation" # type: ignore + + +class OracleCloudStorageReadSettings(StoreReadSettings, discriminator="OracleCloudStorageReadSettings"): + """Oracle Cloud Storage read settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar recursive: If true, files under the folder path will be read recursively. Default is + true. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar wildcard_folder_path: Oracle Cloud Storage wildcardFolderPath. Type: string (or + Expression with resultType string). + :vartype wildcard_folder_path: any + :ivar wildcard_file_name: Oracle Cloud Storage wildcardFileName. Type: string (or Expression + with resultType string). + :vartype wildcard_file_name: any + :ivar prefix: The prefix filter for the Oracle Cloud Storage object name. Type: string (or + Expression with resultType string). + :vartype prefix: any + :ivar file_list_path: Point to a text file that lists each file (relative path to the path + configured in the dataset) that you want to copy. Type: string (or Expression with resultType + string). + :vartype file_list_path: any + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: any + :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: + string (or Expression with resultType string). + :vartype partition_root_path: any + :ivar delete_files_after_completion: Indicates whether the source files need to be deleted + after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + :vartype delete_files_after_completion: any + :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or + Expression with resultType string). + :vartype modified_datetime_start: any + :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression + with resultType string). + :vartype modified_datetime_end: any + :ivar type: The read setting type. Required. Default value is "OracleCloudStorageReadSettings". + :vartype type: str + """ + + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files under the folder path will be read recursively. Default is true. Type: boolean + (or Expression with resultType boolean).""" + wildcard_folder_path: Optional[Any] = rest_field( + name="wildcardFolderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Oracle Cloud Storage wildcardFolderPath. Type: string (or Expression with resultType string).""" + wildcard_file_name: Optional[Any] = rest_field( + name="wildcardFileName", visibility=["read", "create", "update", "delete", "query"] + ) + """Oracle Cloud Storage wildcardFileName. Type: string (or Expression with resultType string).""" + prefix: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The prefix filter for the Oracle Cloud Storage object name. Type: string (or Expression with + resultType string).""" + file_list_path: Optional[Any] = rest_field( + name="fileListPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Point to a text file that lists each file (relative path to the path configured in the dataset) + that you want to copy. Type: string (or Expression with resultType string).""" + enable_partition_discovery: Optional[Any] = rest_field( + name="enablePartitionDiscovery", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType + boolean).""" + partition_root_path: Optional[Any] = rest_field( + name="partitionRootPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the root path where partition discovery starts from. Type: string (or Expression with + resultType string).""" + delete_files_after_completion: Optional[Any] = rest_field( + name="deleteFilesAfterCompletion", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the source files need to be deleted after copy completion. Default is false. + Type: boolean (or Expression with resultType boolean).""" + modified_datetime_start: Optional[Any] = rest_field( + name="modifiedDatetimeStart", visibility=["read", "create", "update", "delete", "query"] + ) + """The start of file's modified datetime. Type: string (or Expression with resultType string).""" + modified_datetime_end: Optional[Any] = rest_field( + name="modifiedDatetimeEnd", visibility=["read", "create", "update", "delete", "query"] + ) + """The end of file's modified datetime. Type: string (or Expression with resultType string).""" + type: Literal["OracleCloudStorageReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"OracleCloudStorageReadSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + recursive: Optional[Any] = None, + wildcard_folder_path: Optional[Any] = None, + wildcard_file_name: Optional[Any] = None, + prefix: Optional[Any] = None, + file_list_path: Optional[Any] = None, + enable_partition_discovery: Optional[Any] = None, + partition_root_path: Optional[Any] = None, + delete_files_after_completion: Optional[Any] = None, + modified_datetime_start: Optional[Any] = None, + modified_datetime_end: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "OracleCloudStorageReadSettings" # type: ignore + + +class OracleLinkedService(LinkedService, discriminator="Oracle"): + """Oracle database. This linked service has supported version property. The Version 1.0 is + scheduled for deprecation while your pipeline will continue to run after EOL but without any + bug fix or new features. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Oracle database linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.OracleLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Oracle". + :vartype type: str + """ + + type_properties: "_models.OracleLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Oracle database linked service properties. Required.""" + type: Literal["Oracle"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Oracle\".""" + + __flattened_items = [ + "connection_string", + "server", + "authentication_type", + "username", + "password", + "encryption_client", + "encryption_types_client", + "crypto_checksum_client", + "crypto_checksum_types_client", + "initial_lob_fetch_size", + "fetch_size", + "statement_cache_size", + "initialization_string", + "enable_bulk_load", + "support_v1_data_types", + "fetch_tswtz_as_timestamp", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.OracleLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class OracleLinkedServiceTypeProperties(_Model): + """Oracle database linked service properties. + + :ivar connection_string: The connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. Only used for Version 1.0. + :vartype connection_string: any + :ivar server: The location of Oracle database you want to connect to, the supported forms + include connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only + self-hosted IR). Type: string. Only used for Version 2.0. + :vartype server: any + :ivar authentication_type: Authentication type for connecting to the Oracle database. Only used + for Version 2.0. "Basic" + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.OracleAuthenticationType + :ivar username: The Oracle database username. Type: string. Only used for Version 2.0. + :vartype username: any + :ivar password: The Azure key vault secret reference of password in connection string. + :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar encryption_client: Specifies the encryption client behavior. Supported values are + accepted, rejected, requested or required, default value is required. Type: string. Only used + for Version 2.0. + :vartype encryption_client: any + :ivar encryption_types_client: Specifies the encryption algorithms that client can use. + Supported values are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: + string. Only used for Version 2.0. + :vartype encryption_types_client: any + :ivar crypto_checksum_client: Specifies the desired data integrity behavior when this client + connects to a server. Supported values are accepted, rejected, requested or required, default + value is required. Type: string. Only used for Version 2.0. + :vartype crypto_checksum_client: any + :ivar crypto_checksum_types_client: Specifies the crypto-checksum algorithms that client can + use. Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: + string. Only used for Version 2.0. + :vartype crypto_checksum_types_client: any + :ivar initial_lob_fetch_size: Specifies the amount that the source initially fetches for LOB + columns, default value is 0. Type: integer. Only used for Version 2.0. + :vartype initial_lob_fetch_size: any + :ivar fetch_size: Specifies the number of bytes that the driver allocates to fetch the data in + one database round-trip, default value is 10485760. Type: integer. Only used for Version 2.0. + :vartype fetch_size: any + :ivar statement_cache_size: Specifies the number of cursors or statements to be cached for each + database connection, default value is 0. Type: integer. Only used for Version 2.0. + :vartype statement_cache_size: any + :ivar initialization_string: Specifies a command that is issued immediately after connecting to + the database to manage session settings. Type: string. Only used for Version 2.0. + :vartype initialization_string: any + :ivar enable_bulk_load: Specifies whether to use bulk copy or batch insert when loading data + into the database, default value is true. Type: boolean. Only used for Version 2.0. + :vartype enable_bulk_load: any + :ivar support_v1_data_types: Specifies whether to use the Version 1.0 data type mappings. Do + not set this to true unless you want to keep backward compatibility with Version 1.0's data + type mappings, default value is false. Type: boolean. Only used for Version 2.0. + :vartype support_v1_data_types: any + :ivar fetch_tswtz_as_timestamp: Specifies whether the driver returns column value with the + TIMESTAMP WITH TIME ZONE data type as DateTime or string. This setting is ignored if + supportV1DataTypes is not true, default value is true. Type: boolean. Only used for Version + 2.0. + :vartype fetch_tswtz_as_timestamp: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Only used + for Version 1.0.""" + server: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The location of Oracle database you want to connect to, the supported forms include connector + descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted IR). + Type: string. Only used for Version 2.0.""" + authentication_type: Optional[Union[str, "_models.OracleAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """Authentication type for connecting to the Oracle database. Only used for Version 2.0. \"Basic\"""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Oracle database username. Type: string. Only used for Version 2.0.""" + password: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of password in connection string.""" + encryption_client: Optional[Any] = rest_field( + name="encryptionClient", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the encryption client behavior. Supported values are accepted, rejected, requested or + required, default value is required. Type: string. Only used for Version 2.0.""" + encryption_types_client: Optional[Any] = rest_field( + name="encryptionTypesClient", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the encryption algorithms that client can use. Supported values are AES128, AES192, + AES256, 3DES112, 3DES168, default value is (AES256). Type: string. Only used for Version 2.0.""" + crypto_checksum_client: Optional[Any] = rest_field( + name="cryptoChecksumClient", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the desired data integrity behavior when this client connects to a server. Supported + values are accepted, rejected, requested or required, default value is required. Type: string. + Only used for Version 2.0.""" + crypto_checksum_types_client: Optional[Any] = rest_field( + name="cryptoChecksumTypesClient", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the crypto-checksum algorithms that client can use. Supported values are SHA1, + SHA256, SHA384, SHA512, default value is (SHA512). Type: string. Only used for Version 2.0.""" + initial_lob_fetch_size: Optional[Any] = rest_field( + name="initialLobFetchSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the amount that the source initially fetches for LOB columns, default value is 0. + Type: integer. Only used for Version 2.0.""" + fetch_size: Optional[Any] = rest_field(name="fetchSize", visibility=["read", "create", "update", "delete", "query"]) + """Specifies the number of bytes that the driver allocates to fetch the data in one database + round-trip, default value is 10485760. Type: integer. Only used for Version 2.0.""" + statement_cache_size: Optional[Any] = rest_field( + name="statementCacheSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the number of cursors or statements to be cached for each database connection, + default value is 0. Type: integer. Only used for Version 2.0.""" + initialization_string: Optional[Any] = rest_field( + name="initializationString", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies a command that is issued immediately after connecting to the database to manage + session settings. Type: string. Only used for Version 2.0.""" + enable_bulk_load: Optional[Any] = rest_field( + name="enableBulkLoad", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to use bulk copy or batch insert when loading data into the database, default + value is true. Type: boolean. Only used for Version 2.0.""" + support_v1_data_types: Optional[Any] = rest_field( + name="supportV1DataTypes", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to use the Version 1.0 data type mappings. Do not set this to true unless you + want to keep backward compatibility with Version 1.0's data type mappings, default value is + false. Type: boolean. Only used for Version 2.0.""" + fetch_tswtz_as_timestamp: Optional[Any] = rest_field( + name="fetchTswtzAsTimestamp", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the driver returns column value with the TIMESTAMP WITH TIME ZONE data type + as DateTime or string. This setting is ignored if supportV1DataTypes is not true, default value + is true. Type: boolean. Only used for Version 2.0.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_string: Optional[Any] = None, + server: Optional[Any] = None, + authentication_type: Optional[Union[str, "_models.OracleAuthenticationType"]] = None, + username: Optional[Any] = None, + password: Optional["_models.AzureKeyVaultSecretReference"] = None, + encryption_client: Optional[Any] = None, + encryption_types_client: Optional[Any] = None, + crypto_checksum_client: Optional[Any] = None, + crypto_checksum_types_client: Optional[Any] = None, + initial_lob_fetch_size: Optional[Any] = None, + fetch_size: Optional[Any] = None, + statement_cache_size: Optional[Any] = None, + initialization_string: Optional[Any] = None, + enable_bulk_load: Optional[Any] = None, + support_v1_data_types: Optional[Any] = None, + fetch_tswtz_as_timestamp: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OraclePartitionSettings(_Model): + """The settings that will be leveraged for Oracle source partitioning. + + :ivar partition_names: Names of the physical partitions of Oracle table. + :vartype partition_names: any + :ivar partition_column_name: The name of the column in integer type that will be used for + proceeding range partitioning. Type: string (or Expression with resultType string). + :vartype partition_column_name: any + :ivar partition_upper_bound: The maximum value of column specified in partitionColumnName that + will be used for proceeding range partitioning. Type: string (or Expression with resultType + string). + :vartype partition_upper_bound: any + :ivar partition_lower_bound: The minimum value of column specified in partitionColumnName that + will be used for proceeding range partitioning. Type: string (or Expression with resultType + string). + :vartype partition_lower_bound: any + """ + + partition_names: Optional[Any] = rest_field( + name="partitionNames", visibility=["read", "create", "update", "delete", "query"] + ) + """Names of the physical partitions of Oracle table.""" + partition_column_name: Optional[Any] = rest_field( + name="partitionColumnName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the column in integer type that will be used for proceeding range partitioning. + Type: string (or Expression with resultType string).""" + partition_upper_bound: Optional[Any] = rest_field( + name="partitionUpperBound", visibility=["read", "create", "update", "delete", "query"] + ) + """The maximum value of column specified in partitionColumnName that will be used for proceeding + range partitioning. Type: string (or Expression with resultType string).""" + partition_lower_bound: Optional[Any] = rest_field( + name="partitionLowerBound", visibility=["read", "create", "update", "delete", "query"] + ) + """The minimum value of column specified in partitionColumnName that will be used for proceeding + range partitioning. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + partition_names: Optional[Any] = None, + partition_column_name: Optional[Any] = None, + partition_upper_bound: Optional[Any] = None, + partition_lower_bound: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OracleServiceCloudLinkedService(LinkedService, discriminator="OracleServiceCloud"): + """Oracle Service Cloud linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Oracle Service Cloud linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.OracleServiceCloudLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "OracleServiceCloud". + :vartype type: str + """ + + type_properties: "_models.OracleServiceCloudLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Oracle Service Cloud linked service properties. Required.""" + type: Literal["OracleServiceCloud"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"OracleServiceCloud\".""" + + __flattened_items = [ + "host", + "username", + "password", + "use_encrypted_endpoints", + "use_host_verification", + "use_peer_verification", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.OracleServiceCloudLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class OracleServiceCloudLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Oracle Service Cloud linked service properties. + + :ivar host: The URL of the Oracle Service Cloud instance. Required. + :vartype host: any + :ivar username: The user name that you use to access Oracle Service Cloud server. Required. + :vartype username: any + :ivar password: The password corresponding to the user name that you provided in the username + key. Required. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using + HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). + :vartype use_encrypted_endpoints: any + :ivar use_host_verification: Specifies whether to require the host name in the server's + certificate to match the host name of the server when connecting over SSL. The default value is + true. Type: boolean (or Expression with resultType boolean). + :vartype use_host_verification: any + :ivar use_peer_verification: Specifies whether to verify the identity of the server when + connecting over SSL. The default value is true. Type: boolean (or Expression with resultType + boolean). + :vartype use_peer_verification: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + host: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The URL of the Oracle Service Cloud instance. Required.""" + username: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The user name that you use to access Oracle Service Cloud server. Required.""" + password: "_models.SecretBase" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password corresponding to the user name that you provided in the username key. Required.""" + use_encrypted_endpoints: Optional[Any] = rest_field( + name="useEncryptedEndpoints", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the data source endpoints are encrypted using HTTPS. The default value is + true. Type: boolean (or Expression with resultType boolean).""" + use_host_verification: Optional[Any] = rest_field( + name="useHostVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require the host name in the server's certificate to match the host name + of the server when connecting over SSL. The default value is true. Type: boolean (or Expression + with resultType boolean).""" + use_peer_verification: Optional[Any] = rest_field( + name="usePeerVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to verify the identity of the server when connecting over SSL. The default + value is true. Type: boolean (or Expression with resultType boolean).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + host: Any, + username: Any, + password: "_models.SecretBase", + use_encrypted_endpoints: Optional[Any] = None, + use_host_verification: Optional[Any] = None, + use_peer_verification: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OracleServiceCloudObjectDataset(Dataset, discriminator="OracleServiceCloudObject"): + """Oracle Service Cloud dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "OracleServiceCloudObject". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["OracleServiceCloudObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"OracleServiceCloudObject\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class OracleServiceCloudSource(TabularSource, discriminator="OracleServiceCloudSource"): + """A copy activity Oracle Service Cloud source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "OracleServiceCloudSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["OracleServiceCloudSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"OracleServiceCloudSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "OracleServiceCloudSource" # type: ignore + + +class OracleSink(CopySink, discriminator="OracleSink"): + """A copy activity Oracle sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType + string). + :vartype pre_copy_script: any + :ivar type: Copy sink type. Required. Default value is "OracleSink". + :vartype type: str + """ + + pre_copy_script: Optional[Any] = rest_field( + name="preCopyScript", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL pre-copy script. Type: string (or Expression with resultType string).""" + type: Literal["OracleSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"OracleSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + pre_copy_script: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "OracleSink" # type: ignore + + +class OracleSource(CopySource, discriminator="OracleSource"): + """A copy activity Oracle source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar oracle_reader_query: Oracle reader query. Type: string (or Expression with resultType + string). + :vartype oracle_reader_query: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar partition_option: The partition mechanism that will be used for Oracle read in parallel. + Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". + :vartype partition_option: any + :ivar partition_settings: The settings that will be leveraged for Oracle source partitioning. + :vartype partition_settings: ~azure.mgmt.datafactory.models.OraclePartitionSettings + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar number_precision: The decimal precision used to represent Oracle NUMBER type without + precision and scale. The range is 1 to 256 and default value is 256 if not specified. Type: + integer (or Expression with resultType integer). Only used for Version 2.0. + :vartype number_precision: any + :ivar number_scale: The decimal scale used to represent Oracle NUMBER type without precision + and scale. The range is 0 to 130 and default value is 130 if not specified. Type: integer (or + Expression with resultType integer). Only used for Version 2.0. + :vartype number_scale: any + :ivar type: Copy source type. Required. Default value is "OracleSource". + :vartype type: str + """ + + oracle_reader_query: Optional[Any] = rest_field( + name="oracleReaderQuery", visibility=["read", "create", "update", "delete", "query"] + ) + """Oracle reader query. Type: string (or Expression with resultType string).""" + query_timeout: Optional[Any] = rest_field( + name="queryTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """Query timeout. Type: string (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + partition_option: Optional[Any] = rest_field( + name="partitionOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The partition mechanism that will be used for Oracle read in parallel. Possible values include: + \"None\", \"PhysicalPartitionsOfTable\", \"DynamicRange\".""" + partition_settings: Optional["_models.OraclePartitionSettings"] = rest_field( + name="partitionSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The settings that will be leveraged for Oracle source partitioning.""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + number_precision: Optional[Any] = rest_field( + name="numberPrecision", visibility=["read", "create", "update", "delete", "query"] + ) + """The decimal precision used to represent Oracle NUMBER type without precision and scale. The + range is 1 to 256 and default value is 256 if not specified. Type: integer (or Expression with + resultType integer). Only used for Version 2.0.""" + number_scale: Optional[Any] = rest_field( + name="numberScale", visibility=["read", "create", "update", "delete", "query"] + ) + """The decimal scale used to represent Oracle NUMBER type without precision and scale. The range + is 0 to 130 and default value is 130 if not specified. Type: integer (or Expression with + resultType integer). Only used for Version 2.0.""" + type: Literal["OracleSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"OracleSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + oracle_reader_query: Optional[Any] = None, + query_timeout: Optional[Any] = None, + partition_option: Optional[Any] = None, + partition_settings: Optional["_models.OraclePartitionSettings"] = None, + additional_columns: Optional[Any] = None, + number_precision: Optional[Any] = None, + number_scale: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "OracleSource" # type: ignore + + +class OracleTableDataset(Dataset, discriminator="OracleTable"): + """The on-premises Oracle database dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: On-premises Oracle dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.OracleTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "OracleTable". + :vartype type: str + """ + + type_properties: Optional["_models.OracleTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """On-premises Oracle dataset properties.""" + type: Literal["OracleTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"OracleTable\".""" + + __flattened_items = ["table_name", "schema", "table"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.OracleTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class OracleTableDatasetTypeProperties(_Model): + """On-premises Oracle dataset properties. + + :ivar table_name: This property will be retired. Please consider using schema + table + properties instead. + :vartype table_name: any + :ivar schema: The schema name of the on-premises Oracle database. Type: string (or Expression + with resultType string). + :vartype schema: any + :ivar table: The table name of the on-premises Oracle database. Type: string (or Expression + with resultType string). + :vartype table: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property will be retired. Please consider using schema + table properties instead.""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the on-premises Oracle database. Type: string (or Expression with resultType + string).""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the on-premises Oracle database. Type: string (or Expression with resultType + string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + schema: Optional[Any] = None, + table: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OrcDataset(Dataset, discriminator="Orc"): + """ORC dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: ORC dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.OrcDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "Orc". + :vartype type: str + """ + + type_properties: Optional["_models.OrcDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """ORC dataset properties.""" + type: Literal["Orc"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"Orc\".""" + + __flattened_items = ["location", "orc_compression_codec"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.OrcDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class OrcDatasetTypeProperties(_Model): + """ORC dataset properties. + + :ivar location: The location of the ORC data storage. Required. + :vartype location: ~azure.mgmt.datafactory.models.DatasetLocation + :ivar orc_compression_codec: The data orcCompressionCodec. Type: string (or Expression with + resultType string). + :vartype orc_compression_codec: any + """ + + location: "_models.DatasetLocation" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The location of the ORC data storage. Required.""" + orc_compression_codec: Optional[Any] = rest_field( + name="orcCompressionCodec", visibility=["read", "create", "update", "delete", "query"] + ) + """The data orcCompressionCodec. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + location: "_models.DatasetLocation", + orc_compression_codec: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OrcFormat(DatasetStorageFormat, discriminator="OrcFormat"): + """The data stored in Optimized Row Columnar (ORC) format. + + :ivar serializer: Serializer. Type: string (or Expression with resultType string). + :vartype serializer: any + :ivar deserializer: Deserializer. Type: string (or Expression with resultType string). + :vartype deserializer: any + :ivar type: Type of dataset storage format. Required. Default value is "OrcFormat". + :vartype type: str + """ + + type: Literal["OrcFormat"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage format. Required. Default value is \"OrcFormat\".""" + + @overload + def __init__( + self, + *, + serializer: Optional[Any] = None, + deserializer: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "OrcFormat" # type: ignore + + +class OrcSink(CopySink, discriminator="OrcSink"): + """A copy activity ORC sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar store_settings: ORC store settings. + :vartype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings + :ivar format_settings: ORC format settings. + :vartype format_settings: ~azure.mgmt.datafactory.models.OrcWriteSettings + :ivar type: Copy sink type. Required. Default value is "OrcSink". + :vartype type: str + """ + + store_settings: Optional["_models.StoreWriteSettings"] = rest_field( + name="storeSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """ORC store settings.""" + format_settings: Optional["_models.OrcWriteSettings"] = rest_field( + name="formatSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """ORC format settings.""" + type: Literal["OrcSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"OrcSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + store_settings: Optional["_models.StoreWriteSettings"] = None, + format_settings: Optional["_models.OrcWriteSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "OrcSink" # type: ignore + + +class OrcSource(CopySource, discriminator="OrcSource"): + """A copy activity ORC source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar store_settings: ORC store settings. + :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "OrcSource". + :vartype type: str + """ + + store_settings: Optional["_models.StoreReadSettings"] = rest_field( + name="storeSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """ORC store settings.""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["OrcSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"OrcSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + store_settings: Optional["_models.StoreReadSettings"] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "OrcSource" # type: ignore + + +class OrcWriteSettings(FormatWriteSettings, discriminator="OrcWriteSettings"): + """Orc write settings. + + :ivar max_rows_per_file: Limit the written file's row count to be smaller than or equal to the + specified count. Type: integer (or Expression with resultType integer). + :vartype max_rows_per_file: any + :ivar file_name_prefix: Specifies the file name pattern + _. when copy from non-file based store without + partitionOptions. Type: string (or Expression with resultType string). + :vartype file_name_prefix: any + :ivar type: The write setting type. Required. Default value is "OrcWriteSettings". + :vartype type: str + """ + + max_rows_per_file: Optional[Any] = rest_field( + name="maxRowsPerFile", visibility=["read", "create", "update", "delete", "query"] + ) + """Limit the written file's row count to be smaller than or equal to the specified count. Type: + integer (or Expression with resultType integer).""" + file_name_prefix: Optional[Any] = rest_field( + name="fileNamePrefix", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the file name pattern _. when copy from + non-file based store without partitionOptions. Type: string (or Expression with resultType + string).""" + type: Literal["OrcWriteSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The write setting type. Required. Default value is \"OrcWriteSettings\".""" + + @overload + def __init__( + self, + *, + max_rows_per_file: Optional[Any] = None, + file_name_prefix: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "OrcWriteSettings" # type: ignore + + +class PackageStore(_Model): + """Package store for the SSIS integration runtime. + + :ivar name: The name of the package store. Required. + :vartype name: str + :ivar package_store_linked_service: The package store linked service reference. Required. + :vartype package_store_linked_service: ~azure.mgmt.datafactory.models.EntityReference + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the package store. Required.""" + package_store_linked_service: "_models.EntityReference" = rest_field( + name="packageStoreLinkedService", visibility=["read", "create", "update", "delete", "query"] + ) + """The package store linked service reference. Required.""" + + @overload + def __init__( + self, + *, + name: str, + package_store_linked_service: "_models.EntityReference", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ParameterSpecification(_Model): + """Definition of a single parameter for an entity. + + :ivar type: Parameter type. Required. Known values are: "Object", "String", "Int", "Float", + "Bool", "Array", and "SecureString". + :vartype type: str or ~azure.mgmt.datafactory.models.ParameterType + :ivar default_value: Default value of parameter. + :vartype default_value: any + """ + + type: Union[str, "_models.ParameterType"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Parameter type. Required. Known values are: \"Object\", \"String\", \"Int\", \"Float\", + \"Bool\", \"Array\", and \"SecureString\".""" + default_value: Optional[Any] = rest_field( + name="defaultValue", visibility=["read", "create", "update", "delete", "query"] + ) + """Default value of parameter.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.ParameterType"], + default_value: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ParquetDataset(Dataset, discriminator="Parquet"): + """Parquet dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Parquet dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.ParquetDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "Parquet". + :vartype type: str + """ + + type_properties: Optional["_models.ParquetDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Parquet dataset properties.""" + type: Literal["Parquet"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"Parquet\".""" + + __flattened_items = ["location", "compression_codec"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.ParquetDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ParquetDatasetTypeProperties(_Model): + """Parquet dataset properties. + + :ivar location: The location of the parquet storage. Required. + :vartype location: ~azure.mgmt.datafactory.models.DatasetLocation + :ivar compression_codec: The data compressionCodec. Type: string (or Expression with resultType + string). + :vartype compression_codec: any + """ + + location: "_models.DatasetLocation" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The location of the parquet storage. Required.""" + compression_codec: Optional[Any] = rest_field( + name="compressionCodec", visibility=["read", "create", "update", "delete", "query"] + ) + """The data compressionCodec. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + location: "_models.DatasetLocation", + compression_codec: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ParquetFormat(DatasetStorageFormat, discriminator="ParquetFormat"): + """The data stored in Parquet format. + + :ivar serializer: Serializer. Type: string (or Expression with resultType string). + :vartype serializer: any + :ivar deserializer: Deserializer. Type: string (or Expression with resultType string). + :vartype deserializer: any + :ivar type: Type of dataset storage format. Required. Default value is "ParquetFormat". + :vartype type: str + """ + + type: Literal["ParquetFormat"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage format. Required. Default value is \"ParquetFormat\".""" + + @overload + def __init__( + self, + *, + serializer: Optional[Any] = None, + deserializer: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "ParquetFormat" # type: ignore + + +class ParquetReadSettings(FormatReadSettings, discriminator="ParquetReadSettings"): + """Parquet read settings. + + :ivar compression_properties: Compression settings. + :vartype compression_properties: ~azure.mgmt.datafactory.models.CompressionReadSettings + :ivar type: The read setting type. Required. Default value is "ParquetReadSettings". + :vartype type: str + """ + + compression_properties: Optional["_models.CompressionReadSettings"] = rest_field( + name="compressionProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Compression settings.""" + type: Literal["ParquetReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"ParquetReadSettings\".""" + + @overload + def __init__( + self, + *, + compression_properties: Optional["_models.CompressionReadSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "ParquetReadSettings" # type: ignore + + +class ParquetSink(CopySink, discriminator="ParquetSink"): + """A copy activity Parquet sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar store_settings: Parquet store settings. + :vartype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings + :ivar format_settings: Parquet format settings. + :vartype format_settings: ~azure.mgmt.datafactory.models.ParquetWriteSettings + :ivar type: Copy sink type. Required. Default value is "ParquetSink". + :vartype type: str + """ + + store_settings: Optional["_models.StoreWriteSettings"] = rest_field( + name="storeSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Parquet store settings.""" + format_settings: Optional["_models.ParquetWriteSettings"] = rest_field( + name="formatSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Parquet format settings.""" + type: Literal["ParquetSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"ParquetSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + store_settings: Optional["_models.StoreWriteSettings"] = None, + format_settings: Optional["_models.ParquetWriteSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "ParquetSink" # type: ignore + + +class ParquetSource(CopySource, discriminator="ParquetSource"): + """A copy activity Parquet source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar store_settings: Parquet store settings. + :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings + :ivar format_settings: Parquet format settings. + :vartype format_settings: ~azure.mgmt.datafactory.models.ParquetReadSettings + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "ParquetSource". + :vartype type: str + """ + + store_settings: Optional["_models.StoreReadSettings"] = rest_field( + name="storeSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Parquet store settings.""" + format_settings: Optional["_models.ParquetReadSettings"] = rest_field( + name="formatSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Parquet format settings.""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["ParquetSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"ParquetSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + store_settings: Optional["_models.StoreReadSettings"] = None, + format_settings: Optional["_models.ParquetReadSettings"] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "ParquetSource" # type: ignore + + +class ParquetWriteSettings(FormatWriteSettings, discriminator="ParquetWriteSettings"): + """Parquet write settings. + + :ivar max_rows_per_file: Limit the written file's row count to be smaller than or equal to the + specified count. Type: integer (or Expression with resultType integer). + :vartype max_rows_per_file: any + :ivar file_name_prefix: Specifies the file name pattern + _. when copy from non-file based store without + partitionOptions. Type: string (or Expression with resultType string). + :vartype file_name_prefix: any + :ivar type: The write setting type. Required. Default value is "ParquetWriteSettings". + :vartype type: str + """ + + max_rows_per_file: Optional[Any] = rest_field( + name="maxRowsPerFile", visibility=["read", "create", "update", "delete", "query"] + ) + """Limit the written file's row count to be smaller than or equal to the specified count. Type: + integer (or Expression with resultType integer).""" + file_name_prefix: Optional[Any] = rest_field( + name="fileNamePrefix", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the file name pattern _. when copy from + non-file based store without partitionOptions. Type: string (or Expression with resultType + string).""" + type: Literal["ParquetWriteSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The write setting type. Required. Default value is \"ParquetWriteSettings\".""" + + @overload + def __init__( + self, + *, + max_rows_per_file: Optional[Any] = None, + file_name_prefix: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "ParquetWriteSettings" # type: ignore + + +class PaypalLinkedService(LinkedService, discriminator="Paypal"): + """Paypal Service linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Paypal Service linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.PaypalLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Paypal". + :vartype type: str + """ + + type_properties: "_models.PaypalLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Paypal Service linked service properties. Required.""" + type: Literal["Paypal"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Paypal\".""" + + __flattened_items = [ + "host", + "client_id", + "client_secret", + "use_encrypted_endpoints", + "use_host_verification", + "use_peer_verification", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.PaypalLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class PaypalLinkedServiceTypeProperties(_Model): + """Paypal Service linked service properties. + + :ivar host: The URL of the PayPal instance. (i.e. api.sandbox.paypal.com). Required. + :vartype host: any + :ivar client_id: The client ID associated with your PayPal application. Required. + :vartype client_id: any + :ivar client_secret: The client secret associated with your PayPal application. + :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase + :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using + HTTPS. The default value is true. + :vartype use_encrypted_endpoints: any + :ivar use_host_verification: Specifies whether to require the host name in the server's + certificate to match the host name of the server when connecting over SSL. The default value is + true. + :vartype use_host_verification: any + :ivar use_peer_verification: Specifies whether to verify the identity of the server when + connecting over SSL. The default value is true. + :vartype use_peer_verification: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + host: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The URL of the PayPal instance. (i.e. api.sandbox.paypal.com). Required.""" + client_id: Any = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The client ID associated with your PayPal application. Required.""" + client_secret: Optional["_models.SecretBase"] = rest_field( + name="clientSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """The client secret associated with your PayPal application.""" + use_encrypted_endpoints: Optional[Any] = rest_field( + name="useEncryptedEndpoints", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the data source endpoints are encrypted using HTTPS. The default value is + true.""" + use_host_verification: Optional[Any] = rest_field( + name="useHostVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require the host name in the server's certificate to match the host name + of the server when connecting over SSL. The default value is true.""" + use_peer_verification: Optional[Any] = rest_field( + name="usePeerVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to verify the identity of the server when connecting over SSL. The default + value is true.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + host: Any, + client_id: Any, + client_secret: Optional["_models.SecretBase"] = None, + use_encrypted_endpoints: Optional[Any] = None, + use_host_verification: Optional[Any] = None, + use_peer_verification: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PaypalObjectDataset(Dataset, discriminator="PaypalObject"): + """Paypal Service dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "PaypalObject". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["PaypalObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"PaypalObject\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class PaypalSource(TabularSource, discriminator="PaypalSource"): + """A copy activity Paypal Service source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "PaypalSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["PaypalSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"PaypalSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "PaypalSource" # type: ignore + + +class PhoenixDatasetTypeProperties(_Model): + """Phoenix Dataset Properties. + + :ivar table_name: This property will be retired. Please consider using schema + table + properties instead. + :vartype table_name: any + :ivar table: The table name of the Phoenix. Type: string (or Expression with resultType + string). + :vartype table: any + :ivar schema: The schema name of the Phoenix. Type: string (or Expression with resultType + string). + :vartype schema: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property will be retired. Please consider using schema + table properties instead.""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Phoenix. Type: string (or Expression with resultType string).""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the Phoenix. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + table: Optional[Any] = None, + schema: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PhoenixLinkedService(LinkedService, discriminator="Phoenix"): + """Phoenix server linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Phoenix server linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.PhoenixLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Phoenix". + :vartype type: str + """ + + type_properties: "_models.PhoenixLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Phoenix server linked service properties. Required.""" + type: Literal["Phoenix"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Phoenix\".""" + + __flattened_items = [ + "host", + "port", + "http_path", + "authentication_type", + "username", + "password", + "enable_ssl", + "trusted_cert_path", + "use_system_trust_store", + "allow_host_name_cn_mismatch", + "allow_self_signed_server_cert", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.PhoenixLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class PhoenixLinkedServiceTypeProperties(_Model): + """Phoenix server linked service properties. + + :ivar host: The IP address or host name of the Phoenix server. (i.e. 192.168.222.160). + Required. + :vartype host: any + :ivar port: The TCP port that the Phoenix server uses to listen for client connections. The + default value is 8765. + :vartype port: any + :ivar http_path: The partial URL corresponding to the Phoenix server. (i.e. + /gateway/sandbox/phoenix/version). The default value is hbasephoenix if using + WindowsAzureHDInsightService. + :vartype http_path: any + :ivar authentication_type: The authentication mechanism used to connect to the Phoenix server. + Required. Known values are: "Anonymous", "UsernameAndPassword", and + "WindowsAzureHDInsightService". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.PhoenixAuthenticationType + :ivar username: The user name used to connect to the Phoenix server. + :vartype username: any + :ivar password: The password corresponding to the user name. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar enable_ssl: Specifies whether the connections to the server are encrypted using SSL. The + default value is false. + :vartype enable_ssl: any + :ivar trusted_cert_path: The full path of the .pem file containing trusted CA certificates for + verifying the server when connecting over SSL. This property can only be set when using SSL on + self-hosted IR. The default value is the cacerts.pem file installed with the IR. + :vartype trusted_cert_path: any + :ivar use_system_trust_store: Specifies whether to use a CA certificate from the system trust + store or from a specified PEM file. The default value is false. + :vartype use_system_trust_store: any + :ivar allow_host_name_cn_mismatch: Specifies whether to require a CA-issued SSL certificate + name to match the host name of the server when connecting over SSL. The default value is false. + :vartype allow_host_name_cn_mismatch: any + :ivar allow_self_signed_server_cert: Specifies whether to allow self-signed certificates from + the server. The default value is false. + :vartype allow_self_signed_server_cert: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + host: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The IP address or host name of the Phoenix server. (i.e. 192.168.222.160). Required.""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The TCP port that the Phoenix server uses to listen for client connections. The default value + is 8765.""" + http_path: Optional[Any] = rest_field(name="httpPath", visibility=["read", "create", "update", "delete", "query"]) + """The partial URL corresponding to the Phoenix server. (i.e. /gateway/sandbox/phoenix/version). + The default value is hbasephoenix if using WindowsAzureHDInsightService.""" + authentication_type: Union[str, "_models.PhoenixAuthenticationType"] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication mechanism used to connect to the Phoenix server. Required. Known values are: + \"Anonymous\", \"UsernameAndPassword\", and \"WindowsAzureHDInsightService\".""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The user name used to connect to the Phoenix server.""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password corresponding to the user name.""" + enable_ssl: Optional[Any] = rest_field(name="enableSsl", visibility=["read", "create", "update", "delete", "query"]) + """Specifies whether the connections to the server are encrypted using SSL. The default value is + false.""" + trusted_cert_path: Optional[Any] = rest_field( + name="trustedCertPath", visibility=["read", "create", "update", "delete", "query"] + ) + """The full path of the .pem file containing trusted CA certificates for verifying the server when + connecting over SSL. This property can only be set when using SSL on self-hosted IR. The + default value is the cacerts.pem file installed with the IR.""" + use_system_trust_store: Optional[Any] = rest_field( + name="useSystemTrustStore", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to use a CA certificate from the system trust store or from a specified PEM + file. The default value is false.""" + allow_host_name_cn_mismatch: Optional[Any] = rest_field( + name="allowHostNameCNMismatch", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require a CA-issued SSL certificate name to match the host name of the + server when connecting over SSL. The default value is false.""" + allow_self_signed_server_cert: Optional[Any] = rest_field( + name="allowSelfSignedServerCert", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to allow self-signed certificates from the server. The default value is + false.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + host: Any, + authentication_type: Union[str, "_models.PhoenixAuthenticationType"], + port: Optional[Any] = None, + http_path: Optional[Any] = None, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + enable_ssl: Optional[Any] = None, + trusted_cert_path: Optional[Any] = None, + use_system_trust_store: Optional[Any] = None, + allow_host_name_cn_mismatch: Optional[Any] = None, + allow_self_signed_server_cert: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PhoenixObjectDataset(Dataset, discriminator="PhoenixObject"): + """Phoenix server dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.PhoenixDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "PhoenixObject". + :vartype type: str + """ + + type_properties: Optional["_models.PhoenixDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["PhoenixObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"PhoenixObject\".""" + + __flattened_items = ["table_name", "table", "schema"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.PhoenixDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class PhoenixSource(TabularSource, discriminator="PhoenixSource"): + """A copy activity Phoenix server source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "PhoenixSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["PhoenixSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"PhoenixSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "PhoenixSource" # type: ignore + + +class Pipeline(_Model): + """A data factory pipeline. + + :ivar description: The description of the pipeline. + :vartype description: str + :ivar activities: List of activities in pipeline. + :vartype activities: list[~azure.mgmt.datafactory.models.Activity] + :ivar parameters: List of parameters for pipeline. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar variables: List of variables for pipeline. + :vartype variables: dict[str, ~azure.mgmt.datafactory.models.VariableSpecification] + :ivar concurrency: The max number of concurrent runs for the pipeline. + :vartype concurrency: int + :ivar annotations: List of tags that can be used for describing the Pipeline. + :vartype annotations: list[any] + :ivar run_dimensions: Dimensions emitted by Pipeline. + :vartype run_dimensions: dict[str, any] + :ivar folder: The folder that this Pipeline is in. If not specified, Pipeline will appear at + the root level. + :vartype folder: ~azure.mgmt.datafactory.models.PipelineFolder + :ivar policy: Pipeline Policy. + :vartype policy: ~azure.mgmt.datafactory.models.PipelinePolicy + """ + + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The description of the pipeline.""" + activities: Optional[list["_models.Activity"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of activities in pipeline.""" + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of parameters for pipeline.""" + variables: Optional[dict[str, "_models.VariableSpecification"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of variables for pipeline.""" + concurrency: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The max number of concurrent runs for the pipeline.""" + annotations: Optional[list[Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of tags that can be used for describing the Pipeline.""" + run_dimensions: Optional[dict[str, Any]] = rest_field( + name="runDimensions", visibility=["read", "create", "update", "delete", "query"] + ) + """Dimensions emitted by Pipeline.""" + folder: Optional["_models.PipelineFolder"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The folder that this Pipeline is in. If not specified, Pipeline will appear at the root level.""" + policy: Optional["_models.PipelinePolicy"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Pipeline Policy.""" + + @overload + def __init__( + self, + *, + description: Optional[str] = None, + activities: Optional[list["_models.Activity"]] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + variables: Optional[dict[str, "_models.VariableSpecification"]] = None, + concurrency: Optional[int] = None, + annotations: Optional[list[Any]] = None, + run_dimensions: Optional[dict[str, Any]] = None, + folder: Optional["_models.PipelineFolder"] = None, + policy: Optional["_models.PipelinePolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PipelineElapsedTimeMetricPolicy(_Model): + """Pipeline ElapsedTime Metric Policy. + + :ivar duration: TimeSpan value, after which an Azure Monitoring Metric is fired. + :vartype duration: any + """ + + duration: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """TimeSpan value, after which an Azure Monitoring Metric is fired.""" + + @overload + def __init__( + self, + *, + duration: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PipelineExternalComputeScaleProperties(_Model): + """PipelineExternalComputeScale properties for managed integration runtime. + + :ivar time_to_live: Time to live (in minutes) setting of integration runtime which will execute + pipeline and external activity. + :vartype time_to_live: int + :ivar number_of_pipeline_nodes: Number of the pipeline nodes, which should be greater than 0 + and less than 11. + :vartype number_of_pipeline_nodes: int + :ivar number_of_external_nodes: Number of the the external nodes, which should be greater than + 0 and less than 11. + :vartype number_of_external_nodes: int + """ + + time_to_live: Optional[int] = rest_field( + name="timeToLive", visibility=["read", "create", "update", "delete", "query"] + ) + """Time to live (in minutes) setting of integration runtime which will execute pipeline and + external activity.""" + number_of_pipeline_nodes: Optional[int] = rest_field( + name="numberOfPipelineNodes", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of the pipeline nodes, which should be greater than 0 and less than 11.""" + number_of_external_nodes: Optional[int] = rest_field( + name="numberOfExternalNodes", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of the the external nodes, which should be greater than 0 and less than 11.""" + + @overload + def __init__( + self, + *, + time_to_live: Optional[int] = None, + number_of_pipeline_nodes: Optional[int] = None, + number_of_external_nodes: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PipelineFolder(_Model): + """The folder that this Pipeline is in. If not specified, Pipeline will appear at the root level. + + :ivar name: The name of the folder that this Pipeline is in. + :vartype name: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the folder that this Pipeline is in.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PipelinePolicy(_Model): + """Pipeline Policy. + + :ivar elapsed_time_metric: Pipeline ElapsedTime Metric Policy. + :vartype elapsed_time_metric: ~azure.mgmt.datafactory.models.PipelineElapsedTimeMetricPolicy + """ + + elapsed_time_metric: Optional["_models.PipelineElapsedTimeMetricPolicy"] = rest_field( + name="elapsedTimeMetric", visibility=["read", "create", "update", "delete", "query"] + ) + """Pipeline ElapsedTime Metric Policy.""" + + @overload + def __init__( + self, + *, + elapsed_time_metric: Optional["_models.PipelineElapsedTimeMetricPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PipelineReference(_Model): + """Pipeline reference type. + + :ivar type: Pipeline reference type. Required. "PipelineReference" + :vartype type: str or ~azure.mgmt.datafactory.models.PipelineReferenceType + :ivar reference_name: Reference pipeline name. Required. + :vartype reference_name: str + :ivar name: Reference name. + :vartype name: str + """ + + type: Union[str, "_models.PipelineReferenceType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Pipeline reference type. Required. \"PipelineReference\"""" + reference_name: str = rest_field(name="referenceName", visibility=["read", "create", "update", "delete", "query"]) + """Reference pipeline name. Required.""" + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Reference name.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.PipelineReferenceType"], + reference_name: str, + name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PipelineResource(ProxyResource): + """Pipeline resource type. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datafactory.models.SystemData + :ivar properties: Properties of the pipeline. Required. + :vartype properties: ~azure.mgmt.datafactory.models.Pipeline + :ivar etag: "If etag is provided in the response body, it may also be provided as a header per + the normal etag convention. Entity tags are used for comparing two or more entities from the + same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match + (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). + :vartype etag: str + """ + + properties: "_models.Pipeline" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Properties of the pipeline. Required.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """\"If etag is provided in the response body, it may also be provided as a header per the normal + etag convention. Entity tags are used for comparing two or more entities from the same + requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section + 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.\").""" + + __flattened_items = [ + "description", + "activities", + "parameters", + "variables", + "concurrency", + "annotations", + "run_dimensions", + "folder", + "policy", + ] + + @overload + def __init__( + self, + *, + properties: "_models.Pipeline", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class PipelineRun(_Model): + """Information about a pipeline run. + + :ivar run_id: Identifier of a run. + :vartype run_id: str + :ivar run_group_id: Identifier that correlates all the recovery runs of a pipeline run. + :vartype run_group_id: str + :ivar is_latest: Indicates if the recovered pipeline run is the latest in its group. + :vartype is_latest: bool + :ivar pipeline_name: The pipeline name. + :vartype pipeline_name: str + :ivar parameters: The full or partial list of parameter name, value pair used in the pipeline + run. + :vartype parameters: dict[str, str] + :ivar run_dimensions: Run dimensions emitted by Pipeline run. + :vartype run_dimensions: dict[str, str] + :ivar invoked_by: Entity that started the pipeline run. + :vartype invoked_by: ~azure.mgmt.datafactory.models.PipelineRunInvokedBy + :ivar last_updated: The last updated timestamp for the pipeline run event in ISO8601 format. + :vartype last_updated: ~datetime.datetime + :ivar run_start: The start time of a pipeline run in ISO8601 format. + :vartype run_start: ~datetime.datetime + :ivar run_end: The end time of a pipeline run in ISO8601 format. + :vartype run_end: ~datetime.datetime + :ivar duration_in_ms: The duration of a pipeline run. + :vartype duration_in_ms: int + :ivar status: The status of a pipeline run. Possible values: Queued, InProgress, Succeeded, + Failed, Canceling, Cancelled. + :vartype status: str + :ivar message: The message from a pipeline run. + :vartype message: str + """ + + run_id: Optional[str] = rest_field(name="runId", visibility=["read"]) + """Identifier of a run.""" + run_group_id: Optional[str] = rest_field(name="runGroupId", visibility=["read"]) + """Identifier that correlates all the recovery runs of a pipeline run.""" + is_latest: Optional[bool] = rest_field(name="isLatest", visibility=["read"]) + """Indicates if the recovered pipeline run is the latest in its group.""" + pipeline_name: Optional[str] = rest_field(name="pipelineName", visibility=["read"]) + """The pipeline name.""" + parameters: Optional[dict[str, str]] = rest_field(visibility=["read"]) + """The full or partial list of parameter name, value pair used in the pipeline run.""" + run_dimensions: Optional[dict[str, str]] = rest_field(name="runDimensions", visibility=["read"]) + """Run dimensions emitted by Pipeline run.""" + invoked_by: Optional["_models.PipelineRunInvokedBy"] = rest_field(name="invokedBy", visibility=["read"]) + """Entity that started the pipeline run.""" + last_updated: Optional[datetime.datetime] = rest_field(name="lastUpdated", visibility=["read"], format="rfc3339") + """The last updated timestamp for the pipeline run event in ISO8601 format.""" + run_start: Optional[datetime.datetime] = rest_field(name="runStart", visibility=["read"], format="rfc3339") + """The start time of a pipeline run in ISO8601 format.""" + run_end: Optional[datetime.datetime] = rest_field(name="runEnd", visibility=["read"], format="rfc3339") + """The end time of a pipeline run in ISO8601 format.""" + duration_in_ms: Optional[int] = rest_field(name="durationInMs", visibility=["read"]) + """The duration of a pipeline run.""" + status: Optional[str] = rest_field(visibility=["read"]) + """The status of a pipeline run. Possible values: Queued, InProgress, Succeeded, Failed, + Canceling, Cancelled.""" + message: Optional[str] = rest_field(visibility=["read"]) + """The message from a pipeline run.""" + + +class PipelineRunInvokedBy(_Model): + """Provides entity name and id that started the pipeline run. + + :ivar name: Name of the entity that started the pipeline run. + :vartype name: str + :ivar id: The ID of the entity that started the run. + :vartype id: str + :ivar invoked_by_type: The type of the entity that started the run. + :vartype invoked_by_type: str + :ivar pipeline_name: The name of the pipeline that triggered the run, if any. + :vartype pipeline_name: str + :ivar pipeline_run_id: The run id of the pipeline that triggered the run, if any. + :vartype pipeline_run_id: str + """ + + name: Optional[str] = rest_field(visibility=["read"]) + """Name of the entity that started the pipeline run.""" + id: Optional[str] = rest_field(visibility=["read"]) + """The ID of the entity that started the run.""" + invoked_by_type: Optional[str] = rest_field(name="invokedByType", visibility=["read"]) + """The type of the entity that started the run.""" + pipeline_name: Optional[str] = rest_field(name="pipelineName", visibility=["read"]) + """The name of the pipeline that triggered the run, if any.""" + pipeline_run_id: Optional[str] = rest_field(name="pipelineRunId", visibility=["read"]) + """The run id of the pipeline that triggered the run, if any.""" + + +class PipelineRunsQueryResponse(_Model): + """A list pipeline runs. + + :ivar value: List of pipeline runs. Required. + :vartype value: list[~azure.mgmt.datafactory.models.PipelineRun] + :ivar continuation_token: The continuation token for getting the next page of results, if any + remaining results exist, null otherwise. + :vartype continuation_token: str + """ + + value: list["_models.PipelineRun"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of pipeline runs. Required.""" + continuation_token: Optional[str] = rest_field( + name="continuationToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The continuation token for getting the next page of results, if any remaining results exist, + null otherwise.""" + + @overload + def __init__( + self, + *, + value: list["_models.PipelineRun"], + continuation_token: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PolybaseSettings(_Model): + """PolyBase settings. + + :ivar reject_type: Reject type. Known values are: "value" and "percentage". + :vartype reject_type: str or ~azure.mgmt.datafactory.models.PolybaseSettingsRejectType + :ivar reject_value: Specifies the value or the percentage of rows that can be rejected before + the query fails. Type: number (or Expression with resultType number), minimum: 0. + :vartype reject_value: any + :ivar reject_sample_value: Determines the number of rows to attempt to retrieve before the + PolyBase recalculates the percentage of rejected rows. Type: integer (or Expression with + resultType integer), minimum: 0. + :vartype reject_sample_value: any + :ivar use_type_default: Specifies how to handle missing values in delimited text files when + PolyBase retrieves data from the text file. Type: boolean (or Expression with resultType + boolean). + :vartype use_type_default: any + """ + + reject_type: Optional[Union[str, "_models.PolybaseSettingsRejectType"]] = rest_field( + name="rejectType", visibility=["read", "create", "update", "delete", "query"] + ) + """Reject type. Known values are: \"value\" and \"percentage\".""" + reject_value: Optional[Any] = rest_field( + name="rejectValue", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the value or the percentage of rows that can be rejected before the query fails. + Type: number (or Expression with resultType number), minimum: 0.""" + reject_sample_value: Optional[Any] = rest_field( + name="rejectSampleValue", visibility=["read", "create", "update", "delete", "query"] + ) + """Determines the number of rows to attempt to retrieve before the PolyBase recalculates the + percentage of rejected rows. Type: integer (or Expression with resultType integer), minimum: 0.""" + use_type_default: Optional[Any] = rest_field( + name="useTypeDefault", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies how to handle missing values in delimited text files when PolyBase retrieves data + from the text file. Type: boolean (or Expression with resultType boolean).""" + + @overload + def __init__( + self, + *, + reject_type: Optional[Union[str, "_models.PolybaseSettingsRejectType"]] = None, + reject_value: Optional[Any] = None, + reject_sample_value: Optional[Any] = None, + use_type_default: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PostgreSqlLinkedService(LinkedService, discriminator="PostgreSql"): + """Linked service for PostgreSQL data source. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: PostgreSQL linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.PostgreSqlLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "PostgreSql". + :vartype type: str + """ + + type_properties: "_models.PostgreSqlLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """PostgreSQL linked service properties. Required.""" + type: Literal["PostgreSql"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"PostgreSql\".""" + + __flattened_items = ["connection_string", "password", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.PostgreSqlLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class PostgreSqlLinkedServiceTypeProperties(_Model): + """PostgreSQL linked service properties. + + :ivar connection_string: The connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. Required. + :vartype connection_string: any + :ivar password: The Azure key vault secret reference of password in connection string. + :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_string: Any = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Required.""" + password: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of password in connection string.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_string: Any, + password: Optional["_models.AzureKeyVaultSecretReference"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PostgreSqlSource(TabularSource, discriminator="PostgreSqlSource"): + """A copy activity source for PostgreSQL databases. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: Database query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "PostgreSqlSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database query. Type: string (or Expression with resultType string).""" + type: Literal["PostgreSqlSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"PostgreSqlSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "PostgreSqlSource" # type: ignore + + +class PostgreSqlTableDataset(Dataset, discriminator="PostgreSqlTable"): + """The PostgreSQL table dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: PostgreSQL table dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.PostgreSqlTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "PostgreSqlTable". + :vartype type: str + """ + + type_properties: Optional["_models.PostgreSqlTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """PostgreSQL table dataset properties.""" + type: Literal["PostgreSqlTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"PostgreSqlTable\".""" + + __flattened_items = ["table_name", "table", "schema"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.PostgreSqlTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class PostgreSqlTableDatasetTypeProperties(_Model): + """PostgreSQL table dataset properties. + + :ivar table_name: This property will be retired. Please consider using schema + table + properties instead. + :vartype table_name: any + :ivar table: The PostgreSQL table name. Type: string (or Expression with resultType string). + :vartype table: any + :ivar schema: The PostgreSQL schema name. Type: string (or Expression with resultType string). + :vartype schema: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property will be retired. Please consider using schema + table properties instead.""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The PostgreSQL table name. Type: string (or Expression with resultType string).""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The PostgreSQL schema name. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + table: Optional[Any] = None, + schema: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PostgreSqlV2LinkedService(LinkedService, discriminator="PostgreSqlV2"): + """Linked service for PostgreSQLV2 data source. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: PostgreSQLV2 linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.PostgreSqlV2LinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "PostgreSqlV2". + :vartype type: str + """ + + type_properties: "_models.PostgreSqlV2LinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """PostgreSQLV2 linked service properties. Required.""" + type: Literal["PostgreSqlV2"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"PostgreSqlV2\".""" + + __flattened_items = [ + "server", + "port", + "username", + "database", + "authentication_type", + "ssl_mode", + "schema", + "pooling", + "connection_timeout", + "command_timeout", + "trust_server_certificate", + "ssl_certificate", + "ssl_key", + "ssl_password", + "read_buffer_size", + "log_parameters", + "timezone", + "encoding", + "password", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.PostgreSqlV2LinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class PostgreSqlV2LinkedServiceTypeProperties(_Model): + """PostgreSqlV2 linked service properties. + + :ivar server: Server name for connection. Type: string. Required. + :vartype server: any + :ivar port: The port for the connection. Type: integer. + :vartype port: any + :ivar username: Username for authentication. Type: string. Required. + :vartype username: any + :ivar database: Database name for connection. Type: string. Required. + :vartype database: any + :ivar authentication_type: The authentication type to use. Type: string. Required. + :vartype authentication_type: any + :ivar ssl_mode: SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: + require, 4: verify-ca, 5: verify-full. Type: integer. Required. + :vartype ssl_mode: any + :ivar schema: Sets the schema search path. Type: string. + :vartype schema: any + :ivar pooling: Whether connection pooling should be used. Type: boolean. + :vartype pooling: any + :ivar connection_timeout: The time to wait (in seconds) while trying to establish a connection + before terminating the attempt and generating an error. Type: integer. + :vartype connection_timeout: any + :ivar command_timeout: The time to wait (in seconds) while trying to execute a command before + terminating the attempt and generating an error. Set to zero for infinity. Type: integer. + :vartype command_timeout: any + :ivar trust_server_certificate: Whether to trust the server certificate without validating it. + Type: boolean. + :vartype trust_server_certificate: any + :ivar ssl_certificate: Location of a client certificate to be sent to the server. Type: string. + :vartype ssl_certificate: any + :ivar ssl_key: Location of a client key for a client certificate to be sent to the server. + Type: string. + :vartype ssl_key: any + :ivar ssl_password: Password for a key for a client certificate. Type: string. + :vartype ssl_password: any + :ivar read_buffer_size: Determines the size of the internal buffer uses when reading. + Increasing may improve performance if transferring large values from the database. Type: + integer. + :vartype read_buffer_size: any + :ivar log_parameters: When enabled, parameter values are logged when commands are executed. + Type: boolean. + :vartype log_parameters: any + :ivar timezone: Gets or sets the session timezone. Type: string. + :vartype timezone: any + :ivar encoding: Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL + string data. Type: string. + :vartype encoding: any + :ivar password: The Azure key vault secret reference of password in connection string. Type: + string. + :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + server: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Server name for connection. Type: string. Required.""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The port for the connection. Type: integer.""" + username: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Username for authentication. Type: string. Required.""" + database: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database name for connection. Type: string. Required.""" + authentication_type: Any = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to use. Type: string. Required.""" + ssl_mode: Any = rest_field(name="sslMode", visibility=["read", "create", "update", "delete", "query"]) + """SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: + verify-ca, 5: verify-full. Type: integer. Required.""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Sets the schema search path. Type: string.""" + pooling: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Whether connection pooling should be used. Type: boolean.""" + connection_timeout: Optional[Any] = rest_field( + name="connectionTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """The time to wait (in seconds) while trying to establish a connection before terminating the + attempt and generating an error. Type: integer.""" + command_timeout: Optional[Any] = rest_field( + name="commandTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """The time to wait (in seconds) while trying to execute a command before terminating the attempt + and generating an error. Set to zero for infinity. Type: integer.""" + trust_server_certificate: Optional[Any] = rest_field( + name="trustServerCertificate", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to trust the server certificate without validating it. Type: boolean.""" + ssl_certificate: Optional[Any] = rest_field( + name="sslCertificate", visibility=["read", "create", "update", "delete", "query"] + ) + """Location of a client certificate to be sent to the server. Type: string.""" + ssl_key: Optional[Any] = rest_field(name="sslKey", visibility=["read", "create", "update", "delete", "query"]) + """Location of a client key for a client certificate to be sent to the server. Type: string.""" + ssl_password: Optional[Any] = rest_field( + name="sslPassword", visibility=["read", "create", "update", "delete", "query"] + ) + """Password for a key for a client certificate. Type: string.""" + read_buffer_size: Optional[Any] = rest_field( + name="readBufferSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Determines the size of the internal buffer uses when reading. Increasing may improve + performance if transferring large values from the database. Type: integer.""" + log_parameters: Optional[Any] = rest_field( + name="logParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """When enabled, parameter values are logged when commands are executed. Type: boolean.""" + timezone: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Gets or sets the session timezone. Type: string.""" + encoding: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL string data. Type: + string.""" + password: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of password in connection string. Type: string.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + server: Any, + username: Any, + database: Any, + authentication_type: Any, + ssl_mode: Any, + port: Optional[Any] = None, + schema: Optional[Any] = None, + pooling: Optional[Any] = None, + connection_timeout: Optional[Any] = None, + command_timeout: Optional[Any] = None, + trust_server_certificate: Optional[Any] = None, + ssl_certificate: Optional[Any] = None, + ssl_key: Optional[Any] = None, + ssl_password: Optional[Any] = None, + read_buffer_size: Optional[Any] = None, + log_parameters: Optional[Any] = None, + timezone: Optional[Any] = None, + encoding: Optional[Any] = None, + password: Optional["_models.AzureKeyVaultSecretReference"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PostgreSqlV2Source(TabularSource, discriminator="PostgreSqlV2Source"): + """A copy activity source for PostgreSQL databases. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: Database query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "PostgreSqlV2Source". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database query. Type: string (or Expression with resultType string).""" + type: Literal["PostgreSqlV2Source"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"PostgreSqlV2Source\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "PostgreSqlV2Source" # type: ignore + + +class PostgreSqlV2TableDataset(Dataset, discriminator="PostgreSqlV2Table"): + """The PostgreSQLV2 table dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: PostgreSQLV2 table dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.PostgreSqlV2TableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "PostgreSqlV2Table". + :vartype type: str + """ + + type_properties: Optional["_models.PostgreSqlV2TableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """PostgreSQLV2 table dataset properties.""" + type: Literal["PostgreSqlV2Table"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"PostgreSqlV2Table\".""" + + __flattened_items = ["table", "schema"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.PostgreSqlV2TableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class PostgreSqlV2TableDatasetTypeProperties(_Model): + """PostgreSQLV2 table dataset properties. + + :ivar table: The PostgreSQL table name. Type: string (or Expression with resultType string). + :vartype table: any + :ivar schema: The PostgreSQL schema name. Type: string (or Expression with resultType string). + :vartype schema: any + """ + + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The PostgreSQL table name. Type: string (or Expression with resultType string).""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The PostgreSQL schema name. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table: Optional[Any] = None, + schema: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PowerQuerySink(DataFlowSink): + """Power query sink. + + :ivar name: Transformation name. Required. + :vartype name: str + :ivar description: Transformation description. + :vartype description: str + :ivar dataset: Dataset reference. + :vartype dataset: ~azure.mgmt.datafactory.models.DatasetReference + :ivar linked_service: Linked service reference. + :vartype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar flowlet: Flowlet Reference. + :vartype flowlet: ~azure.mgmt.datafactory.models.DataFlowReference + :ivar schema_linked_service: Schema linked service reference. + :vartype schema_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar rejected_data_linked_service: Rejected data linked service reference. + :vartype rejected_data_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar script: sink script. + :vartype script: str + """ + + script: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """sink script.""" + + @overload + def __init__( + self, + *, + name: str, + description: Optional[str] = None, + dataset: Optional["_models.DatasetReference"] = None, + linked_service: Optional["_models.LinkedServiceReference"] = None, + flowlet: Optional["_models.DataFlowReference"] = None, + schema_linked_service: Optional["_models.LinkedServiceReference"] = None, + rejected_data_linked_service: Optional["_models.LinkedServiceReference"] = None, + script: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PowerQuerySinkMapping(_Model): + """Map Power Query mashup query to sink dataset(s). + + :ivar query_name: Name of the query in Power Query mashup document. + :vartype query_name: str + :ivar dataflow_sinks: List of sinks mapped to Power Query mashup query. + :vartype dataflow_sinks: list[~azure.mgmt.datafactory.models.PowerQuerySink] + """ + + query_name: Optional[str] = rest_field(name="queryName", visibility=["read", "create", "update", "delete", "query"]) + """Name of the query in Power Query mashup document.""" + dataflow_sinks: Optional[list["_models.PowerQuerySink"]] = rest_field( + name="dataflowSinks", visibility=["read", "create", "update", "delete", "query"] + ) + """List of sinks mapped to Power Query mashup query.""" + + @overload + def __init__( + self, + *, + query_name: Optional[str] = None, + dataflow_sinks: Optional[list["_models.PowerQuerySink"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PowerQuerySource(DataFlowSource): + """Power query source. + + :ivar name: Transformation name. Required. + :vartype name: str + :ivar description: Transformation description. + :vartype description: str + :ivar dataset: Dataset reference. + :vartype dataset: ~azure.mgmt.datafactory.models.DatasetReference + :ivar linked_service: Linked service reference. + :vartype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar flowlet: Flowlet Reference. + :vartype flowlet: ~azure.mgmt.datafactory.models.DataFlowReference + :ivar schema_linked_service: Schema linked service reference. + :vartype schema_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar script: source script. + :vartype script: str + """ + + script: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """source script.""" + + @overload + def __init__( + self, + *, + name: str, + description: Optional[str] = None, + dataset: Optional["_models.DatasetReference"] = None, + linked_service: Optional["_models.LinkedServiceReference"] = None, + flowlet: Optional["_models.DataFlowReference"] = None, + schema_linked_service: Optional["_models.LinkedServiceReference"] = None, + script: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PowerQueryTypeProperties(_Model): + """Power Query data flow type properties. + + :ivar sources: List of sources in Power Query. + :vartype sources: list[~azure.mgmt.datafactory.models.PowerQuerySource] + :ivar script: Power query mashup script. + :vartype script: str + :ivar document_locale: Locale of the Power query mashup document. + :vartype document_locale: str + """ + + sources: Optional[list["_models.PowerQuerySource"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of sources in Power Query.""" + script: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Power query mashup script.""" + document_locale: Optional[str] = rest_field( + name="documentLocale", visibility=["read", "create", "update", "delete", "query"] + ) + """Locale of the Power query mashup document.""" + + @overload + def __init__( + self, + *, + sources: Optional[list["_models.PowerQuerySource"]] = None, + script: Optional[str] = None, + document_locale: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PrestoDatasetTypeProperties(_Model): + """Presto Dataset Properties. + + :ivar table_name: This property will be retired. Please consider using schema + table + properties instead. + :vartype table_name: any + :ivar table: The table name of the Presto. Type: string (or Expression with resultType string). + :vartype table: any + :ivar schema: The schema name of the Presto. Type: string (or Expression with resultType + string). + :vartype schema: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property will be retired. Please consider using schema + table properties instead.""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Presto. Type: string (or Expression with resultType string).""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the Presto. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + table: Optional[Any] = None, + schema: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PrestoLinkedService(LinkedService, discriminator="Presto"): + """Presto server linked service. This linked service has supported version property. The Version + 1.0 is scheduled for deprecation while your pipeline will continue to run after EOL but without + any bug fix or new features. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Presto server linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.PrestoLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Presto". + :vartype type: str + """ + + type_properties: "_models.PrestoLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Presto server linked service properties. Required.""" + type: Literal["Presto"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Presto\".""" + + __flattened_items = [ + "host", + "server_version", + "catalog", + "port", + "authentication_type", + "username", + "password", + "enable_ssl", + "enable_server_certificate_validation", + "trusted_cert_path", + "use_system_trust_store", + "allow_host_name_cn_mismatch", + "allow_self_signed_server_cert", + "time_zone_id", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.PrestoLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class PrestoLinkedServiceTypeProperties(_Model): + """Presto server linked service properties. + + :ivar host: The IP address or host name of the Presto server. (i.e. 192.168.222.160). Required. + :vartype host: any + :ivar server_version: The version of the Presto server. (i.e. 0.148-t) Only used for Version + 1.0. + :vartype server_version: any + :ivar catalog: The catalog context for all request against the server. Required. + :vartype catalog: any + :ivar port: The TCP port that the Presto server uses to listen for client connections. The + default value is 8080 when disable SSL, default value is 443 when enable SSL. + :vartype port: any + :ivar authentication_type: The authentication mechanism used to connect to the Presto server. + Required. Known values are: "Anonymous" and "LDAP". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.PrestoAuthenticationType + :ivar username: The user name used to connect to the Presto server. + :vartype username: any + :ivar password: The password corresponding to the user name. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar enable_ssl: Specifies whether the connections to the server are encrypted using SSL. The + default value for legacy version is False. The default value for version 2.0 is True. + :vartype enable_ssl: any + :ivar enable_server_certificate_validation: Specifies whether the connections to the server + will validate server certificate, the default value is True. Only used for Version 2.0. + :vartype enable_server_certificate_validation: any + :ivar trusted_cert_path: The full path of the .pem file containing trusted CA certificates for + verifying the server when connecting over SSL. This property can only be set when using SSL on + self-hosted IR. The default value is the cacerts.pem file installed with the IR. Only used for + Version 1.0. + :vartype trusted_cert_path: any + :ivar use_system_trust_store: Specifies whether to use a CA certificate from the system trust + store or from a specified PEM file. The default value is false. Only used for Version 1.0. + :vartype use_system_trust_store: any + :ivar allow_host_name_cn_mismatch: Specifies whether to require a CA-issued SSL certificate + name to match the host name of the server when connecting over SSL. The default value is false. + Only used for Version 1.0. + :vartype allow_host_name_cn_mismatch: any + :ivar allow_self_signed_server_cert: Specifies whether to allow self-signed certificates from + the server. The default value is false. Only used for Version 1.0. + :vartype allow_self_signed_server_cert: any + :ivar time_zone_id: The local time zone used by the connection. Valid values for this option + are specified in the IANA Time Zone Database. The default value for Version 1.0 is the client + system time zone. The default value for Version 2.0 is server system timeZone. + :vartype time_zone_id: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + host: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The IP address or host name of the Presto server. (i.e. 192.168.222.160). Required.""" + server_version: Optional[Any] = rest_field( + name="serverVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The version of the Presto server. (i.e. 0.148-t) Only used for Version 1.0.""" + catalog: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The catalog context for all request against the server. Required.""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The TCP port that the Presto server uses to listen for client connections. The default value is + 8080 when disable SSL, default value is 443 when enable SSL.""" + authentication_type: Union[str, "_models.PrestoAuthenticationType"] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication mechanism used to connect to the Presto server. Required. Known values are: + \"Anonymous\" and \"LDAP\".""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The user name used to connect to the Presto server.""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password corresponding to the user name.""" + enable_ssl: Optional[Any] = rest_field(name="enableSsl", visibility=["read", "create", "update", "delete", "query"]) + """Specifies whether the connections to the server are encrypted using SSL. The default value for + legacy version is False. The default value for version 2.0 is True.""" + enable_server_certificate_validation: Optional[Any] = rest_field( + name="enableServerCertificateValidation", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the connections to the server will validate server certificate, the default + value is True. Only used for Version 2.0.""" + trusted_cert_path: Optional[Any] = rest_field( + name="trustedCertPath", visibility=["read", "create", "update", "delete", "query"] + ) + """The full path of the .pem file containing trusted CA certificates for verifying the server when + connecting over SSL. This property can only be set when using SSL on self-hosted IR. The + default value is the cacerts.pem file installed with the IR. Only used for Version 1.0.""" + use_system_trust_store: Optional[Any] = rest_field( + name="useSystemTrustStore", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to use a CA certificate from the system trust store or from a specified PEM + file. The default value is false. Only used for Version 1.0.""" + allow_host_name_cn_mismatch: Optional[Any] = rest_field( + name="allowHostNameCNMismatch", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require a CA-issued SSL certificate name to match the host name of the + server when connecting over SSL. The default value is false. Only used for Version 1.0.""" + allow_self_signed_server_cert: Optional[Any] = rest_field( + name="allowSelfSignedServerCert", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to allow self-signed certificates from the server. The default value is + false. Only used for Version 1.0.""" + time_zone_id: Optional[Any] = rest_field( + name="timeZoneID", visibility=["read", "create", "update", "delete", "query"] + ) + """The local time zone used by the connection. Valid values for this option are specified in the + IANA Time Zone Database. The default value for Version 1.0 is the client system time zone. The + default value for Version 2.0 is server system timeZone.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + host: Any, + catalog: Any, + authentication_type: Union[str, "_models.PrestoAuthenticationType"], + server_version: Optional[Any] = None, + port: Optional[Any] = None, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + enable_ssl: Optional[Any] = None, + enable_server_certificate_validation: Optional[Any] = None, + trusted_cert_path: Optional[Any] = None, + use_system_trust_store: Optional[Any] = None, + allow_host_name_cn_mismatch: Optional[Any] = None, + allow_self_signed_server_cert: Optional[Any] = None, + time_zone_id: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PrestoObjectDataset(Dataset, discriminator="PrestoObject"): + """Presto server dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.PrestoDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "PrestoObject". + :vartype type: str + """ + + type_properties: Optional["_models.PrestoDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["PrestoObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"PrestoObject\".""" + + __flattened_items = ["table_name", "table", "schema"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.PrestoDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class PrestoSource(TabularSource, discriminator="PrestoSource"): + """A copy activity Presto server source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "PrestoSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["PrestoSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"PrestoSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "PrestoSource" # type: ignore + + +class PrivateEndpoint(_Model): + """Private endpoint which a connection belongs to. + + :ivar id: The resource Id for private endpoint. + :vartype id: str + """ + + id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource Id for private endpoint.""" + + @overload + def __init__( + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PrivateEndpointConnectionResource(ProxyResource): + """Private Endpoint Connection ARM resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datafactory.models.SystemData + :ivar properties: Core resource properties. + :vartype properties: ~azure.mgmt.datafactory.models.RemotePrivateEndpointConnection + :ivar etag: "If etag is provided in the response body, it may also be provided as a header per + the normal etag convention. Entity tags are used for comparing two or more entities from the + same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match + (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). + :vartype etag: str + """ + + properties: Optional["_models.RemotePrivateEndpointConnection"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Core resource properties.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """\"If etag is provided in the response body, it may also be provided as a header per the normal + etag convention. Entity tags are used for comparing two or more entities from the same + requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section + 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.\").""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.RemotePrivateEndpointConnection"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PrivateLinkConnectionApprovalRequest(_Model): + """A request to approve or reject a private endpoint connection. + + :ivar private_link_service_connection_state: The state of a private link connection. + :vartype private_link_service_connection_state: + ~azure.mgmt.datafactory.models.PrivateLinkConnectionState + :ivar private_endpoint: The resource of private endpoint. + :vartype private_endpoint: ~azure.mgmt.datafactory.models.PrivateEndpoint + """ + + private_link_service_connection_state: Optional["_models.PrivateLinkConnectionState"] = rest_field( + name="privateLinkServiceConnectionState", visibility=["read", "create", "update", "delete", "query"] + ) + """The state of a private link connection.""" + private_endpoint: Optional["_models.PrivateEndpoint"] = rest_field( + name="privateEndpoint", visibility=["read", "create", "update", "delete", "query"] + ) + """The resource of private endpoint.""" + + @overload + def __init__( + self, + *, + private_link_service_connection_state: Optional["_models.PrivateLinkConnectionState"] = None, + private_endpoint: Optional["_models.PrivateEndpoint"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SubResource(_Model): + """Azure Data Factory nested resource, which belongs to a factory. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar etag: Etag identifies change in the resource. + :vartype etag: str + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """The resource identifier.""" + name: Optional[str] = rest_field(visibility=["read"]) + """The resource name.""" + type: Optional[str] = rest_field(visibility=["read"]) + """The resource type.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """Etag identifies change in the resource.""" + + +class PrivateLinkConnectionApprovalRequestResource(SubResource): # pylint: disable=name-too-long + """Private Endpoint Connection Approval ARM resource. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar etag: Etag identifies change in the resource. + :vartype etag: str + :ivar properties: Core resource properties. + :vartype properties: ~azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequest + """ + + properties: Optional["_models.PrivateLinkConnectionApprovalRequest"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Core resource properties.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.PrivateLinkConnectionApprovalRequest"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PrivateLinkConnectionState(_Model): + """The state of a private link connection. + + :ivar status: Status of a private link connection. + :vartype status: str + :ivar description: Description of a private link connection. + :vartype description: str + :ivar actions_required: ActionsRequired for a private link connection. + :vartype actions_required: str + """ + + status: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Status of a private link connection.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Description of a private link connection.""" + actions_required: Optional[str] = rest_field( + name="actionsRequired", visibility=["read", "create", "update", "delete", "query"] + ) + """ActionsRequired for a private link connection.""" + + @overload + def __init__( + self, + *, + status: Optional[str] = None, + description: Optional[str] = None, + actions_required: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PrivateLinkResource(SubResource): + """A private link resource. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar etag: Etag identifies change in the resource. + :vartype etag: str + :ivar properties: Core resource properties. + :vartype properties: ~azure.mgmt.datafactory.models.PrivateLinkResourceProperties + """ + + properties: Optional["_models.PrivateLinkResourceProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Core resource properties.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.PrivateLinkResourceProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PrivateLinkResourceProperties(_Model): + """Properties of a private link resource. + + :ivar group_id: GroupId of a private link resource. + :vartype group_id: str + :ivar required_members: RequiredMembers of a private link resource. + :vartype required_members: list[str] + :ivar required_zone_names: RequiredZoneNames of a private link resource. + :vartype required_zone_names: list[str] + """ + + group_id: Optional[str] = rest_field(name="groupId", visibility=["read"]) + """GroupId of a private link resource.""" + required_members: Optional[list[str]] = rest_field(name="requiredMembers", visibility=["read"]) + """RequiredMembers of a private link resource.""" + required_zone_names: Optional[list[str]] = rest_field(name="requiredZoneNames", visibility=["read"]) + """RequiredZoneNames of a private link resource.""" + + +class PrivateLinkResourcesWrapper(_Model): + """Wrapper for a collection of private link resources. + + :ivar value: Required. + :vartype value: list[~azure.mgmt.datafactory.models.PrivateLinkResource] + """ + + value: list["_models.PrivateLinkResource"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Required.""" + + @overload + def __init__( + self, + *, + value: list["_models.PrivateLinkResource"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PurviewConfiguration(_Model): + """Purview configuration. + + :ivar purview_resource_id: Purview resource id. + :vartype purview_resource_id: str + """ + + purview_resource_id: Optional[str] = rest_field( + name="purviewResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """Purview resource id.""" + + @overload + def __init__( + self, + *, + purview_resource_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class QuickbaseLinkedService(LinkedService, discriminator="Quickbase"): + """Linked service for Quickbase. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Quickbase linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.QuickbaseLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Quickbase". + :vartype type: str + """ + + type_properties: "_models.QuickbaseLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Quickbase linked service properties. Required.""" + type: Literal["Quickbase"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Quickbase\".""" + + __flattened_items = ["url", "user_token", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.QuickbaseLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class QuickbaseLinkedServiceTypeProperties(_Model): + """Quickbase linked service type properties. + + :ivar url: The url to connect Quickbase source. Type: string (or Expression with resultType + string). Required. + :vartype url: any + :ivar user_token: The user token for the Quickbase source. Required. + :vartype user_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + url: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The url to connect Quickbase source. Type: string (or Expression with resultType string). + Required.""" + user_token: "_models.SecretBase" = rest_field( + name="userToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The user token for the Quickbase source. Required.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + url: Any, + user_token: "_models.SecretBase", + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class QuickBooksLinkedService(LinkedService, discriminator="QuickBooks"): + """QuickBooks server linked service. This linked service has supported version property. The + Version 1.0 is scheduled for deprecation while your pipeline will continue to run after EOL but + without any bug fix or new features. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: QuickBooks server linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.QuickBooksLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "QuickBooks". + :vartype type: str + """ + + type_properties: "_models.QuickBooksLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """QuickBooks server linked service properties. Required.""" + type: Literal["QuickBooks"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"QuickBooks\".""" + + __flattened_items = [ + "connection_properties", + "endpoint", + "company_id", + "consumer_key", + "consumer_secret", + "access_token", + "access_token_secret", + "refresh_token", + "use_encrypted_endpoints", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.QuickBooksLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class QuickBooksLinkedServiceTypeProperties(_Model): + """QuickBooks server linked service properties. + + :ivar connection_properties: Properties used to connect to QuickBooks. It is mutually exclusive + with any other properties in the linked service. Type: object. + :vartype connection_properties: any + :ivar endpoint: The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com). + :vartype endpoint: any + :ivar company_id: The company ID of the QuickBooks company to authorize. + :vartype company_id: any + :ivar consumer_key: The consumer key for OAuth 2.0 authentication. + :vartype consumer_key: any + :ivar consumer_secret: The consumer secret for OAuth 2.0 authentication. + :vartype consumer_secret: ~azure.mgmt.datafactory.models.SecretBase + :ivar access_token: The access token for OAuth 2.0 authentication. + :vartype access_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar access_token_secret: The access token secret is deprecated for OAuth 1.0 authentication. + Only used for version 1.0. + :vartype access_token_secret: ~azure.mgmt.datafactory.models.SecretBase + :ivar refresh_token: The refresh token for OAuth 2.0 authentication. + :vartype refresh_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using + HTTPS. The default value is true. Only used for version 1.0. + :vartype use_encrypted_endpoints: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_properties: Optional[Any] = rest_field( + name="connectionProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties used to connect to QuickBooks. It is mutually exclusive with any other properties in + the linked service. Type: object.""" + endpoint: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com).""" + company_id: Optional[Any] = rest_field(name="companyId", visibility=["read", "create", "update", "delete", "query"]) + """The company ID of the QuickBooks company to authorize.""" + consumer_key: Optional[Any] = rest_field( + name="consumerKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The consumer key for OAuth 2.0 authentication.""" + consumer_secret: Optional["_models.SecretBase"] = rest_field( + name="consumerSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """The consumer secret for OAuth 2.0 authentication.""" + access_token: Optional["_models.SecretBase"] = rest_field( + name="accessToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The access token for OAuth 2.0 authentication.""" + access_token_secret: Optional["_models.SecretBase"] = rest_field( + name="accessTokenSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """The access token secret is deprecated for OAuth 1.0 authentication. Only used for version 1.0.""" + refresh_token: Optional["_models.SecretBase"] = rest_field( + name="refreshToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The refresh token for OAuth 2.0 authentication.""" + use_encrypted_endpoints: Optional[Any] = rest_field( + name="useEncryptedEndpoints", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the data source endpoints are encrypted using HTTPS. The default value is + true. Only used for version 1.0.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_properties: Optional[Any] = None, + endpoint: Optional[Any] = None, + company_id: Optional[Any] = None, + consumer_key: Optional[Any] = None, + consumer_secret: Optional["_models.SecretBase"] = None, + access_token: Optional["_models.SecretBase"] = None, + access_token_secret: Optional["_models.SecretBase"] = None, + refresh_token: Optional["_models.SecretBase"] = None, + use_encrypted_endpoints: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class QuickBooksObjectDataset(Dataset, discriminator="QuickBooksObject"): + """QuickBooks server dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "QuickBooksObject". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["QuickBooksObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"QuickBooksObject\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class QuickBooksSource(TabularSource, discriminator="QuickBooksSource"): + """A copy activity QuickBooks server source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "QuickBooksSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["QuickBooksSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"QuickBooksSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "QuickBooksSource" # type: ignore + + +class RecurrenceSchedule(_Model): + """The recurrence schedule. + + :ivar minutes: The minutes. + :vartype minutes: list[int] + :ivar hours: The hours. + :vartype hours: list[int] + :ivar week_days: The days of the week. + :vartype week_days: list[str or ~azure.mgmt.datafactory.models.DaysOfWeek] + :ivar month_days: The month days. + :vartype month_days: list[int] + :ivar monthly_occurrences: The monthly occurrences. + :vartype monthly_occurrences: list[~azure.mgmt.datafactory.models.RecurrenceScheduleOccurrence] + """ + + minutes: Optional[list[int]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The minutes.""" + hours: Optional[list[int]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The hours.""" + week_days: Optional[list[Union[str, "_models.DaysOfWeek"]]] = rest_field( + name="weekDays", visibility=["read", "create", "update", "delete", "query"] + ) + """The days of the week.""" + month_days: Optional[list[int]] = rest_field( + name="monthDays", visibility=["read", "create", "update", "delete", "query"] + ) + """The month days.""" + monthly_occurrences: Optional[list["_models.RecurrenceScheduleOccurrence"]] = rest_field( + name="monthlyOccurrences", visibility=["read", "create", "update", "delete", "query"] + ) + """The monthly occurrences.""" + + @overload + def __init__( + self, + *, + minutes: Optional[list[int]] = None, + hours: Optional[list[int]] = None, + week_days: Optional[list[Union[str, "_models.DaysOfWeek"]]] = None, + month_days: Optional[list[int]] = None, + monthly_occurrences: Optional[list["_models.RecurrenceScheduleOccurrence"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class RecurrenceScheduleOccurrence(_Model): + """The recurrence schedule occurrence. + + :ivar day: The day of the week. Known values are: "Sunday", "Monday", "Tuesday", "Wednesday", + "Thursday", "Friday", and "Saturday". + :vartype day: str or ~azure.mgmt.datafactory.models.DayOfWeek + :ivar occurrence: The occurrence. + :vartype occurrence: int + """ + + day: Optional[Union[str, "_models.DayOfWeek"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The day of the week. Known values are: \"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", + \"Thursday\", \"Friday\", and \"Saturday\".""" + occurrence: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The occurrence.""" + + @overload + def __init__( + self, + *, + day: Optional[Union[str, "_models.DayOfWeek"]] = None, + occurrence: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class RedirectIncompatibleRowSettings(_Model): + """Redirect incompatible row settings. + + :ivar linked_service_name: Name of the Azure Storage, Storage SAS, or Azure Data Lake Store + linked service used for redirecting incompatible row. Must be specified if + redirectIncompatibleRowSettings is specified. Type: string (or Expression with resultType + string). Required. + :vartype linked_service_name: any + :ivar path: The path for storing the redirect incompatible row data. Type: string (or + Expression with resultType string). + :vartype path: any + """ + + linked_service_name: Any = rest_field( + name="linkedServiceName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the Azure Storage, Storage SAS, or Azure Data Lake Store linked service used for + redirecting incompatible row. Must be specified if redirectIncompatibleRowSettings is + specified. Type: string (or Expression with resultType string). Required.""" + path: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The path for storing the redirect incompatible row data. Type: string (or Expression with + resultType string).""" + + @overload + def __init__( + self, + *, + linked_service_name: Any, + path: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class RedshiftUnloadSettings(_Model): + """The Amazon S3 settings needed for the interim Amazon S3 when copying from Amazon Redshift with + unload. With this, data from Amazon Redshift source will be unloaded into S3 first and then + copied into the targeted sink from the interim S3. + + :ivar s3_linked_service_name: The name of the Amazon S3 linked service which will be used for + the unload operation when copying from the Amazon Redshift source. Required. + :vartype s3_linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar bucket_name: The bucket of the interim Amazon S3 which will be used to store the unloaded + data from Amazon Redshift source. The bucket must be in the same region as the Amazon Redshift + source. Type: string (or Expression with resultType string). Required. + :vartype bucket_name: any + """ + + s3_linked_service_name: "_models.LinkedServiceReference" = rest_field( + name="s3LinkedServiceName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the Amazon S3 linked service which will be used for the unload operation when + copying from the Amazon Redshift source. Required.""" + bucket_name: Any = rest_field(name="bucketName", visibility=["read", "create", "update", "delete", "query"]) + """The bucket of the interim Amazon S3 which will be used to store the unloaded data from Amazon + Redshift source. The bucket must be in the same region as the Amazon Redshift source. Type: + string (or Expression with resultType string). Required.""" + + @overload + def __init__( + self, + *, + s3_linked_service_name: "_models.LinkedServiceReference", + bucket_name: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class RelationalSource(CopySource, discriminator="RelationalSource"): + """A copy activity source for various relational databases. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query: Database query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "RelationalSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database query. Type: string (or Expression with resultType string).""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["RelationalSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"RelationalSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "RelationalSource" # type: ignore + + +class RelationalTableDataset(Dataset, discriminator="RelationalTable"): + """The relational table dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Relational table dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.RelationalTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "RelationalTable". + :vartype type: str + """ + + type_properties: Optional["_models.RelationalTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Relational table dataset properties.""" + type: Literal["RelationalTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"RelationalTable\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.RelationalTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class RelationalTableDatasetTypeProperties(_Model): + """Relational table dataset properties. + + :ivar table_name: The relational table name. Type: string (or Expression with resultType + string). + :vartype table_name: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """The relational table name. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class RemotePrivateEndpointConnection(_Model): + """A remote private endpoint connection. + + :ivar provisioning_state: + :vartype provisioning_state: str + :ivar private_endpoint: PrivateEndpoint of a remote private endpoint connection. + :vartype private_endpoint: ~azure.mgmt.datafactory.models.ArmIdWrapper + :ivar private_link_service_connection_state: The state of a private link connection. + :vartype private_link_service_connection_state: + ~azure.mgmt.datafactory.models.PrivateLinkConnectionState + """ + + provisioning_state: Optional[str] = rest_field(name="provisioningState", visibility=["read"]) + private_endpoint: Optional["_models.ArmIdWrapper"] = rest_field( + name="privateEndpoint", visibility=["read", "create", "update", "delete", "query"] + ) + """PrivateEndpoint of a remote private endpoint connection.""" + private_link_service_connection_state: Optional["_models.PrivateLinkConnectionState"] = rest_field( + name="privateLinkServiceConnectionState", visibility=["read", "create", "update", "delete", "query"] + ) + """The state of a private link connection.""" + + @overload + def __init__( + self, + *, + private_endpoint: Optional["_models.ArmIdWrapper"] = None, + private_link_service_connection_state: Optional["_models.PrivateLinkConnectionState"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class RerunTumblingWindowTrigger(Trigger, discriminator="RerunTumblingWindowTrigger"): + """Trigger that schedules pipeline reruns for all fixed time interval windows from a requested + start time to requested end time. + + :ivar description: Trigger description. + :vartype description: str + :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are + called on the Trigger. Known values are: "Started", "Stopped", and "Disabled". + :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :ivar annotations: List of tags that can be used for describing the trigger. + :vartype annotations: list[any] + :ivar type_properties: Rerun Trigger properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.RerunTumblingWindowTriggerTypeProperties + :ivar type: Trigger type. Required. Default value is "RerunTumblingWindowTrigger". + :vartype type: str + """ + + type_properties: "_models.RerunTumblingWindowTriggerTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Rerun Trigger properties. Required.""" + type: Literal["RerunTumblingWindowTrigger"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Trigger type. Required. Default value is \"RerunTumblingWindowTrigger\".""" + + __flattened_items = ["parent_trigger", "requested_start_time", "requested_end_time", "rerun_concurrency"] + + @overload + def __init__( + self, + *, + type_properties: "_models.RerunTumblingWindowTriggerTypeProperties", + description: Optional[str] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class RerunTumblingWindowTriggerTypeProperties(_Model): + """Rerun Trigger properties. + + :ivar parent_trigger: The parent trigger reference. Required. + :vartype parent_trigger: any + :ivar requested_start_time: The start time for the time period for which restatement is + initiated. Only UTC time is currently supported. Required. + :vartype requested_start_time: ~datetime.datetime + :ivar requested_end_time: The end time for the time period for which restatement is initiated. + Only UTC time is currently supported. Required. + :vartype requested_end_time: ~datetime.datetime + :ivar rerun_concurrency: The max number of parallel time windows (ready for execution) for + which a rerun is triggered. Required. + :vartype rerun_concurrency: int + """ + + parent_trigger: Any = rest_field(name="parentTrigger", visibility=["read", "create", "update", "delete", "query"]) + """The parent trigger reference. Required.""" + requested_start_time: datetime.datetime = rest_field( + name="requestedStartTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The start time for the time period for which restatement is initiated. Only UTC time is + currently supported. Required.""" + requested_end_time: datetime.datetime = rest_field( + name="requestedEndTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The end time for the time period for which restatement is initiated. Only UTC time is currently + supported. Required.""" + rerun_concurrency: int = rest_field( + name="rerunConcurrency", visibility=["read", "create", "update", "delete", "query"] + ) + """The max number of parallel time windows (ready for execution) for which a rerun is triggered. + Required.""" + + @overload + def __init__( + self, + *, + parent_trigger: Any, + requested_start_time: datetime.datetime, + requested_end_time: datetime.datetime, + rerun_concurrency: int, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ResponsysLinkedService(LinkedService, discriminator="Responsys"): + """Responsys linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Responsys linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.ResponsysLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Responsys". + :vartype type: str + """ + + type_properties: "_models.ResponsysLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Responsys linked service properties. Required.""" + type: Literal["Responsys"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Responsys\".""" + + __flattened_items = [ + "endpoint", + "client_id", + "client_secret", + "use_encrypted_endpoints", + "use_host_verification", + "use_peer_verification", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.ResponsysLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ResponsysLinkedServiceTypeProperties(_Model): + """Responsys linked service properties. + + :ivar endpoint: The endpoint of the Responsys server. Required. + :vartype endpoint: any + :ivar client_id: The client ID associated with the Responsys application. Type: string (or + Expression with resultType string). Required. + :vartype client_id: any + :ivar client_secret: The client secret associated with the Responsys application. Type: string + (or Expression with resultType string). + :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase + :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using + HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). + :vartype use_encrypted_endpoints: any + :ivar use_host_verification: Specifies whether to require the host name in the server's + certificate to match the host name of the server when connecting over SSL. The default value is + true. Type: boolean (or Expression with resultType boolean). + :vartype use_host_verification: any + :ivar use_peer_verification: Specifies whether to verify the identity of the server when + connecting over SSL. The default value is true. Type: boolean (or Expression with resultType + boolean). + :vartype use_peer_verification: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + endpoint: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The endpoint of the Responsys server. Required.""" + client_id: Any = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The client ID associated with the Responsys application. Type: string (or Expression with + resultType string). Required.""" + client_secret: Optional["_models.SecretBase"] = rest_field( + name="clientSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """The client secret associated with the Responsys application. Type: string (or Expression with + resultType string).""" + use_encrypted_endpoints: Optional[Any] = rest_field( + name="useEncryptedEndpoints", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the data source endpoints are encrypted using HTTPS. The default value is + true. Type: boolean (or Expression with resultType boolean).""" + use_host_verification: Optional[Any] = rest_field( + name="useHostVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require the host name in the server's certificate to match the host name + of the server when connecting over SSL. The default value is true. Type: boolean (or Expression + with resultType boolean).""" + use_peer_verification: Optional[Any] = rest_field( + name="usePeerVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to verify the identity of the server when connecting over SSL. The default + value is true. Type: boolean (or Expression with resultType boolean).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + endpoint: Any, + client_id: Any, + client_secret: Optional["_models.SecretBase"] = None, + use_encrypted_endpoints: Optional[Any] = None, + use_host_verification: Optional[Any] = None, + use_peer_verification: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ResponsysObjectDataset(Dataset, discriminator="ResponsysObject"): + """Responsys dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "ResponsysObject". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["ResponsysObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"ResponsysObject\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ResponsysSource(TabularSource, discriminator="ResponsysSource"): + """A copy activity Responsys source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "ResponsysSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["ResponsysSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"ResponsysSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "ResponsysSource" # type: ignore + + +class RestResourceDataset(Dataset, discriminator="RestResource"): + """A Rest service dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.RestResourceDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "RestResource". + :vartype type: str + """ + + type_properties: Optional["_models.RestResourceDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["RestResource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"RestResource\".""" + + __flattened_items = ["relative_url", "request_method", "request_body", "additional_headers", "pagination_rules"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.RestResourceDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class RestResourceDatasetTypeProperties(_Model): + """Properties specific to this dataset type. + + :ivar relative_url: The relative URL to the resource that the RESTful API provides. Type: + string (or Expression with resultType string). + :vartype relative_url: any + :ivar request_method: The HTTP method used to call the RESTful API. The default is GET. Type: + string (or Expression with resultType string). + :vartype request_method: any + :ivar request_body: The HTTP request body to the RESTful API if requestMethod is POST. Type: + string (or Expression with resultType string). + :vartype request_body: any + :ivar additional_headers: The additional HTTP headers in the request to the RESTful API. + :vartype additional_headers: dict[str, any] + :ivar pagination_rules: The pagination rules to compose next page requests. + :vartype pagination_rules: dict[str, any] + """ + + relative_url: Optional[Any] = rest_field( + name="relativeUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """The relative URL to the resource that the RESTful API provides. Type: string (or Expression + with resultType string).""" + request_method: Optional[Any] = rest_field( + name="requestMethod", visibility=["read", "create", "update", "delete", "query"] + ) + """The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression + with resultType string).""" + request_body: Optional[Any] = rest_field( + name="requestBody", visibility=["read", "create", "update", "delete", "query"] + ) + """The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression + with resultType string).""" + additional_headers: Optional[dict[str, Any]] = rest_field( + name="additionalHeaders", visibility=["read", "create", "update", "delete", "query"] + ) + """The additional HTTP headers in the request to the RESTful API.""" + pagination_rules: Optional[dict[str, Any]] = rest_field( + name="paginationRules", visibility=["read", "create", "update", "delete", "query"] + ) + """The pagination rules to compose next page requests.""" + + @overload + def __init__( + self, + *, + relative_url: Optional[Any] = None, + request_method: Optional[Any] = None, + request_body: Optional[Any] = None, + additional_headers: Optional[dict[str, Any]] = None, + pagination_rules: Optional[dict[str, Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class RestServiceLinkedService(LinkedService, discriminator="RestService"): + """Rest Service linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Rest Service linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.RestServiceLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "RestService". + :vartype type: str + """ + + type_properties: "_models.RestServiceLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Rest Service linked service properties. Required.""" + type: Literal["RestService"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"RestService\".""" + + __flattened_items = [ + "url", + "enable_server_certificate_validation", + "authentication_type", + "user_name", + "password", + "auth_headers", + "service_principal_id", + "service_principal_key", + "tenant", + "azure_cloud_type", + "aad_resource_id", + "encrypted_credential", + "credential", + "client_id", + "client_secret", + "token_endpoint", + "resource", + "scope", + "service_principal_credential_type", + "service_principal_embedded_cert", + "service_principal_embedded_cert_password", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.RestServiceLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class RestServiceLinkedServiceTypeProperties(_Model): + """Rest Service linked service properties. + + :ivar url: The base URL of the REST service. Type: string (or Expression with resultType + string). Required. + :vartype url: any + :ivar enable_server_certificate_validation: Whether to validate server side SSL certificate + when connecting to the endpoint.The default value is true. Type: boolean (or Expression with + resultType boolean). + :vartype enable_server_certificate_validation: any + :ivar authentication_type: Type of authentication used to connect to the REST service. + Required. Known values are: "Anonymous", "Basic", "AadServicePrincipal", + "ManagedServiceIdentity", and "OAuth2ClientCredential". + :vartype authentication_type: str or + ~azure.mgmt.datafactory.models.RestServiceAuthenticationType + :ivar user_name: The user name used in Basic authentication type. Type: string (or Expression + with resultType string). + :vartype user_name: any + :ivar password: The password used in Basic authentication type. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar auth_headers: The additional HTTP headers in the request to RESTful API used for + authorization. Type: object (or Expression with resultType object). + :vartype auth_headers: any + :ivar service_principal_id: The application's client ID used in AadServicePrincipal + authentication type. Type: string (or Expression with resultType string). + :vartype service_principal_id: any + :ivar service_principal_key: The application's key used in AadServicePrincipal authentication + type. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar tenant: The tenant information (domain name or tenant ID) used in AadServicePrincipal + authentication type under which your application resides. Type: string (or Expression with + resultType string). + :vartype tenant: any + :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed + values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data + factory regions’ cloud type. Type: string (or Expression with resultType string). + :vartype azure_cloud_type: any + :ivar aad_resource_id: The resource you are requesting authorization to use. Type: string (or + Expression with resultType string). + :vartype aad_resource_id: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + :ivar client_id: The client ID associated with your application. Type: string (or Expression + with resultType string). + :vartype client_id: any + :ivar client_secret: The client secret associated with your application. + :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase + :ivar token_endpoint: The token endpoint of the authorization server to acquire access token. + Type: string (or Expression with resultType string). + :vartype token_endpoint: any + :ivar resource: The target service or resource to which the access will be requested. Type: + string (or Expression with resultType string). + :vartype resource: any + :ivar scope: The scope of the access required. It describes what kind of access will be + requested. Type: string (or Expression with resultType string). + :vartype scope: any + :ivar service_principal_credential_type: The service principal credential type to use in + Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' + for certificate. Type: string (or Expression with resultType string). + :vartype service_principal_credential_type: any + :ivar service_principal_embedded_cert: Specify the base64 encoded certificate of your + application registered in Azure Active Directory. Type: string (or Expression with resultType + string). + :vartype service_principal_embedded_cert: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_principal_embedded_cert_password: Specify the password of your certificate if + your certificate has a password and you are using AadServicePrincipal authentication. Type: + string (or Expression with resultType string). + :vartype service_principal_embedded_cert_password: ~azure.mgmt.datafactory.models.SecretBase + """ + + url: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The base URL of the REST service. Type: string (or Expression with resultType string). + Required.""" + enable_server_certificate_validation: Optional[Any] = rest_field( + name="enableServerCertificateValidation", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to validate server side SSL certificate when connecting to the endpoint.The default + value is true. Type: boolean (or Expression with resultType boolean).""" + authentication_type: Union[str, "_models.RestServiceAuthenticationType"] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """Type of authentication used to connect to the REST service. Required. Known values are: + \"Anonymous\", \"Basic\", \"AadServicePrincipal\", \"ManagedServiceIdentity\", and + \"OAuth2ClientCredential\".""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """The user name used in Basic authentication type. Type: string (or Expression with resultType + string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password used in Basic authentication type.""" + auth_headers: Optional[Any] = rest_field( + name="authHeaders", visibility=["read", "create", "update", "delete", "query"] + ) + """The additional HTTP headers in the request to RESTful API used for authorization. Type: object + (or Expression with resultType object).""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The application's client ID used in AadServicePrincipal authentication type. Type: string (or + Expression with resultType string).""" + service_principal_key: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The application's key used in AadServicePrincipal authentication type.""" + tenant: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The tenant information (domain name or tenant ID) used in AadServicePrincipal authentication + type under which your application resides. Type: string (or Expression with resultType string).""" + azure_cloud_type: Optional[Any] = rest_field( + name="azureCloudType", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, + AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud + type. Type: string (or Expression with resultType string).""" + aad_resource_id: Optional[Any] = rest_field( + name="aadResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """The resource you are requesting authorization to use. Type: string (or Expression with + resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + client_id: Optional[Any] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The client ID associated with your application. Type: string (or Expression with resultType + string).""" + client_secret: Optional["_models.SecretBase"] = rest_field( + name="clientSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """The client secret associated with your application.""" + token_endpoint: Optional[Any] = rest_field( + name="tokenEndpoint", visibility=["read", "create", "update", "delete", "query"] + ) + """The token endpoint of the authorization server to acquire access token. Type: string (or + Expression with resultType string).""" + resource: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The target service or resource to which the access will be requested. Type: string (or + Expression with resultType string).""" + scope: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The scope of the access required. It describes what kind of access will be requested. Type: + string (or Expression with resultType string).""" + service_principal_credential_type: Optional[Any] = rest_field( + name="servicePrincipalCredentialType", visibility=["read", "create", "update", "delete", "query"] + ) + """The service principal credential type to use in Server-To-Server authentication. + 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + Expression with resultType string).""" + service_principal_embedded_cert: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalEmbeddedCert", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the base64 encoded certificate of your application registered in Azure Active + Directory. Type: string (or Expression with resultType string).""" + service_principal_embedded_cert_password: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalEmbeddedCertPassword", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the password of your certificate if your certificate has a password and you are using + AadServicePrincipal authentication. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + url: Any, + authentication_type: Union[str, "_models.RestServiceAuthenticationType"], + enable_server_certificate_validation: Optional[Any] = None, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + auth_headers: Optional[Any] = None, + service_principal_id: Optional[Any] = None, + service_principal_key: Optional["_models.SecretBase"] = None, + tenant: Optional[Any] = None, + azure_cloud_type: Optional[Any] = None, + aad_resource_id: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + credential: Optional["_models.CredentialReference"] = None, + client_id: Optional[Any] = None, + client_secret: Optional["_models.SecretBase"] = None, + token_endpoint: Optional[Any] = None, + resource: Optional[Any] = None, + scope: Optional[Any] = None, + service_principal_credential_type: Optional[Any] = None, + service_principal_embedded_cert: Optional["_models.SecretBase"] = None, + service_principal_embedded_cert_password: Optional["_models.SecretBase"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class RestSink(CopySink, discriminator="RestSink"): + """A copy activity Rest service Sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar request_method: The HTTP method used to call the RESTful API. The default is POST. Type: + string (or Expression with resultType string). + :vartype request_method: any + :ivar additional_headers: The additional HTTP headers in the request to the RESTful API. Type: + key value pairs (value should be string type). + :vartype additional_headers: any + :ivar http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the timeout + to get a response, not the timeout to read response data. Default value: 00:01:40. Type: string + (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype http_request_timeout: any + :ivar request_interval: The time to await before sending next request, in milliseconds. + :vartype request_interval: any + :ivar http_compression_type: Http Compression Type to Send data in compressed format with + Optimal Compression Level, Default is None. And The Only Supported option is Gzip. Type: string + (or Expression with resultType string). + :vartype http_compression_type: any + :ivar type: Copy sink type. Required. Default value is "RestSink". + :vartype type: str + """ + + request_method: Optional[Any] = rest_field( + name="requestMethod", visibility=["read", "create", "update", "delete", "query"] + ) + """The HTTP method used to call the RESTful API. The default is POST. Type: string (or Expression + with resultType string).""" + additional_headers: Optional[Any] = rest_field( + name="additionalHeaders", visibility=["read", "create", "update", "delete", "query"] + ) + """The additional HTTP headers in the request to the RESTful API. Type: key value pairs (value + should be string type).""" + http_request_timeout: Optional[Any] = rest_field( + name="httpRequestTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the + timeout to read response data. Default value: 00:01:40. Type: string (or Expression with + resultType string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + request_interval: Optional[Any] = rest_field( + name="requestInterval", visibility=["read", "create", "update", "delete", "query"] + ) + """The time to await before sending next request, in milliseconds.""" + http_compression_type: Optional[Any] = rest_field( + name="httpCompressionType", visibility=["read", "create", "update", "delete", "query"] + ) + """Http Compression Type to Send data in compressed format with Optimal Compression Level, Default + is None. And The Only Supported option is Gzip. Type: string (or Expression with resultType + string).""" + type: Literal["RestSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"RestSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + request_method: Optional[Any] = None, + additional_headers: Optional[Any] = None, + http_request_timeout: Optional[Any] = None, + request_interval: Optional[Any] = None, + http_compression_type: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "RestSink" # type: ignore + + +class RestSource(CopySource, discriminator="RestSource"): + """A copy activity Rest service source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar request_method: The HTTP method used to call the RESTful API. The default is GET. Type: + string (or Expression with resultType string). + :vartype request_method: any + :ivar request_body: The HTTP request body to the RESTful API if requestMethod is POST. Type: + string (or Expression with resultType string). + :vartype request_body: any + :ivar additional_headers: The additional HTTP headers in the request to the RESTful API. Type: + string (or Expression with resultType string). + :vartype additional_headers: any + :ivar pagination_rules: The pagination rules to compose next page requests. Type: string (or + Expression with resultType string). + :vartype pagination_rules: any + :ivar http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the timeout + to get a response, not the timeout to read response data. Default value: 00:01:40. Type: string + (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype http_request_timeout: any + :ivar request_interval: The time to await before sending next page request. + :vartype request_interval: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + key value pairs (value should be string type). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "RestSource". + :vartype type: str + """ + + request_method: Optional[Any] = rest_field( + name="requestMethod", visibility=["read", "create", "update", "delete", "query"] + ) + """The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression + with resultType string).""" + request_body: Optional[Any] = rest_field( + name="requestBody", visibility=["read", "create", "update", "delete", "query"] + ) + """The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression + with resultType string).""" + additional_headers: Optional[Any] = rest_field( + name="additionalHeaders", visibility=["read", "create", "update", "delete", "query"] + ) + """The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with + resultType string).""" + pagination_rules: Optional[Any] = rest_field( + name="paginationRules", visibility=["read", "create", "update", "delete", "query"] + ) + """The pagination rules to compose next page requests. Type: string (or Expression with resultType + string).""" + http_request_timeout: Optional[Any] = rest_field( + name="httpRequestTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the + timeout to read response data. Default value: 00:01:40. Type: string (or Expression with + resultType string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + request_interval: Optional[Any] = rest_field( + name="requestInterval", visibility=["read", "create", "update", "delete", "query"] + ) + """The time to await before sending next page request.""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: key value pairs (value + should be string type).""" + type: Literal["RestSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"RestSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + request_method: Optional[Any] = None, + request_body: Optional[Any] = None, + additional_headers: Optional[Any] = None, + pagination_rules: Optional[Any] = None, + http_request_timeout: Optional[Any] = None, + request_interval: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "RestSource" # type: ignore + + +class RetryPolicy(_Model): + """Execution policy for an activity. + + :ivar count: Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with + resultType integer), minimum: 0. + :vartype count: any + :ivar interval_in_seconds: Interval between retries in seconds. Default is 30. + :vartype interval_in_seconds: int + """ + + count: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType + integer), minimum: 0.""" + interval_in_seconds: Optional[int] = rest_field( + name="intervalInSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """Interval between retries in seconds. Default is 30.""" + + @overload + def __init__( + self, + *, + count: Optional[Any] = None, + interval_in_seconds: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class RunFilterParameters(_Model): + """Query parameters for listing runs. + + :ivar continuation_token: The continuation token for getting the next page of results. Null for + first page. + :vartype continuation_token: str + :ivar last_updated_after: The time at or after which the run event was updated in 'ISO 8601' + format. Required. + :vartype last_updated_after: ~datetime.datetime + :ivar last_updated_before: The time at or before which the run event was updated in 'ISO 8601' + format. Required. + :vartype last_updated_before: ~datetime.datetime + :ivar filters: List of filters. + :vartype filters: list[~azure.mgmt.datafactory.models.RunQueryFilter] + :ivar order_by: List of OrderBy option. + :vartype order_by: list[~azure.mgmt.datafactory.models.RunQueryOrderBy] + """ + + continuation_token: Optional[str] = rest_field( + name="continuationToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The continuation token for getting the next page of results. Null for first page.""" + last_updated_after: datetime.datetime = rest_field( + name="lastUpdatedAfter", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The time at or after which the run event was updated in 'ISO 8601' format. Required.""" + last_updated_before: datetime.datetime = rest_field( + name="lastUpdatedBefore", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The time at or before which the run event was updated in 'ISO 8601' format. Required.""" + filters: Optional[list["_models.RunQueryFilter"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of filters.""" + order_by: Optional[list["_models.RunQueryOrderBy"]] = rest_field( + name="orderBy", visibility=["read", "create", "update", "delete", "query"] + ) + """List of OrderBy option.""" + + @overload + def __init__( + self, + *, + last_updated_after: datetime.datetime, + last_updated_before: datetime.datetime, + continuation_token: Optional[str] = None, + filters: Optional[list["_models.RunQueryFilter"]] = None, + order_by: Optional[list["_models.RunQueryOrderBy"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class RunQueryFilter(_Model): + """Query filter option for listing runs. + + :ivar operand: Parameter name to be used for filter. The allowed operands to query pipeline + runs are PipelineName, RunStart, RunEnd and Status; to query activity runs are ActivityName, + ActivityRunStart, ActivityRunEnd, ActivityType and Status, and to query trigger runs are + TriggerName, TriggerRunTimestamp and Status. Required. Known values are: "PipelineName", + "Status", "RunStart", "RunEnd", "ActivityName", "ActivityRunStart", "ActivityRunEnd", + "ActivityType", "TriggerName", "TriggerRunTimestamp", "RunGroupId", and "LatestOnly". + :vartype operand: str or ~azure.mgmt.datafactory.models.RunQueryFilterOperand + :ivar operator: Operator to be used for filter. Required. Known values are: "Equals", + "NotEquals", "In", and "NotIn". + :vartype operator: str or ~azure.mgmt.datafactory.models.RunQueryFilterOperator + :ivar values_property: List of filter values. Required. + :vartype values_property: list[str] + """ + + operand: Union[str, "_models.RunQueryFilterOperand"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Parameter name to be used for filter. The allowed operands to query pipeline runs are + PipelineName, RunStart, RunEnd and Status; to query activity runs are ActivityName, + ActivityRunStart, ActivityRunEnd, ActivityType and Status, and to query trigger runs are + TriggerName, TriggerRunTimestamp and Status. Required. Known values are: \"PipelineName\", + \"Status\", \"RunStart\", \"RunEnd\", \"ActivityName\", \"ActivityRunStart\", + \"ActivityRunEnd\", \"ActivityType\", \"TriggerName\", \"TriggerRunTimestamp\", \"RunGroupId\", + and \"LatestOnly\".""" + operator: Union[str, "_models.RunQueryFilterOperator"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Operator to be used for filter. Required. Known values are: \"Equals\", \"NotEquals\", \"In\", + and \"NotIn\".""" + values_property: list[str] = rest_field( + name="values", visibility=["read", "create", "update", "delete", "query"], original_tsp_name="values" + ) + """List of filter values. Required.""" + + @overload + def __init__( + self, + *, + operand: Union[str, "_models.RunQueryFilterOperand"], + operator: Union[str, "_models.RunQueryFilterOperator"], + values_property: list[str], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class RunQueryOrderBy(_Model): + """An object to provide order by options for listing runs. + + :ivar order_by: Parameter name to be used for order by. The allowed parameters to order by for + pipeline runs are PipelineName, RunStart, RunEnd and Status; for activity runs are + ActivityName, ActivityRunStart, ActivityRunEnd and Status; for trigger runs are TriggerName, + TriggerRunTimestamp and Status. Required. Known values are: "RunStart", "RunEnd", + "PipelineName", "Status", "ActivityName", "ActivityRunStart", "ActivityRunEnd", "TriggerName", + and "TriggerRunTimestamp". + :vartype order_by: str or ~azure.mgmt.datafactory.models.RunQueryOrderByField + :ivar order: Sorting order of the parameter. Required. Known values are: "ASC" and "DESC". + :vartype order: str or ~azure.mgmt.datafactory.models.RunQueryOrder + """ + + order_by: Union[str, "_models.RunQueryOrderByField"] = rest_field( + name="orderBy", visibility=["read", "create", "update", "delete", "query"] + ) + """Parameter name to be used for order by. The allowed parameters to order by for pipeline runs + are PipelineName, RunStart, RunEnd and Status; for activity runs are ActivityName, + ActivityRunStart, ActivityRunEnd and Status; for trigger runs are TriggerName, + TriggerRunTimestamp and Status. Required. Known values are: \"RunStart\", \"RunEnd\", + \"PipelineName\", \"Status\", \"ActivityName\", \"ActivityRunStart\", \"ActivityRunEnd\", + \"TriggerName\", and \"TriggerRunTimestamp\".""" + order: Union[str, "_models.RunQueryOrder"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Sorting order of the parameter. Required. Known values are: \"ASC\" and \"DESC\".""" + + @overload + def __init__( + self, + *, + order_by: Union[str, "_models.RunQueryOrderByField"], + order: Union[str, "_models.RunQueryOrder"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SalesforceLinkedService(LinkedService, discriminator="Salesforce"): + """Linked service for Salesforce. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Salesforce linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SalesforceLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Salesforce". + :vartype type: str + """ + + type_properties: "_models.SalesforceLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Salesforce linked service properties. Required.""" + type: Literal["Salesforce"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Salesforce\".""" + + __flattened_items = [ + "environment_url", + "username", + "password", + "security_token", + "api_version", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.SalesforceLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SalesforceLinkedServiceTypeProperties(_Model): + """Salesforce linked service properties. + + :ivar environment_url: The URL of Salesforce instance. Default is + '`https://login.salesforce.com `_'. To copy data from sandbox, + specify '`https://test.salesforce.com `_'. To copy data from + custom domain, specify, for example, 'https://[domain].my.salesforce.com'. Type: string (or + Expression with resultType string). + :vartype environment_url: any + :ivar username: The username for Basic authentication of the Salesforce instance. Type: string + (or Expression with resultType string). + :vartype username: any + :ivar password: The password for Basic authentication of the Salesforce instance. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar security_token: The security token is optional to remotely access Salesforce instance. + :vartype security_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar api_version: The Salesforce API version used in ADF. Type: string (or Expression with + resultType string). + :vartype api_version: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + environment_url: Optional[Any] = rest_field( + name="environmentUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """The URL of Salesforce instance. Default is '`https://login.salesforce.com + `_'. To copy data from sandbox, specify + '`https://test.salesforce.com `_'. To copy data from custom + domain, specify, for example, 'https://[domain].my.salesforce.com'. Type: string (or Expression + with resultType string).""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The username for Basic authentication of the Salesforce instance. Type: string (or Expression + with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password for Basic authentication of the Salesforce instance.""" + security_token: Optional["_models.SecretBase"] = rest_field( + name="securityToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The security token is optional to remotely access Salesforce instance.""" + api_version: Optional[Any] = rest_field( + name="apiVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The Salesforce API version used in ADF. Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + environment_url: Optional[Any] = None, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + security_token: Optional["_models.SecretBase"] = None, + api_version: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SalesforceMarketingCloudLinkedService(LinkedService, discriminator="SalesforceMarketingCloud"): + """Salesforce Marketing Cloud linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Salesforce Marketing Cloud linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.SalesforceMarketingCloudLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "SalesforceMarketingCloud". + :vartype type: str + """ + + type_properties: "_models.SalesforceMarketingCloudLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Salesforce Marketing Cloud linked service properties. Required.""" + type: Literal["SalesforceMarketingCloud"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"SalesforceMarketingCloud\".""" + + __flattened_items = [ + "connection_properties", + "client_id", + "client_secret", + "use_encrypted_endpoints", + "use_host_verification", + "use_peer_verification", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.SalesforceMarketingCloudLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SalesforceMarketingCloudLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Salesforce Marketing Cloud linked service properties. + + :ivar connection_properties: Properties used to connect to Salesforce Marketing Cloud. It is + mutually exclusive with any other properties in the linked service. Type: object. + :vartype connection_properties: any + :ivar client_id: The client ID associated with the Salesforce Marketing Cloud application. + Type: string (or Expression with resultType string). + :vartype client_id: any + :ivar client_secret: The client secret associated with the Salesforce Marketing Cloud + application. Type: string (or Expression with resultType string). + :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase + :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using + HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). + :vartype use_encrypted_endpoints: any + :ivar use_host_verification: Specifies whether to require the host name in the server's + certificate to match the host name of the server when connecting over SSL. The default value is + true. Type: boolean (or Expression with resultType boolean). + :vartype use_host_verification: any + :ivar use_peer_verification: Specifies whether to verify the identity of the server when + connecting over SSL. The default value is true. Type: boolean (or Expression with resultType + boolean). + :vartype use_peer_verification: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_properties: Optional[Any] = rest_field( + name="connectionProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties used to connect to Salesforce Marketing Cloud. It is mutually exclusive with any + other properties in the linked service. Type: object.""" + client_id: Optional[Any] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The client ID associated with the Salesforce Marketing Cloud application. Type: string (or + Expression with resultType string).""" + client_secret: Optional["_models.SecretBase"] = rest_field( + name="clientSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """The client secret associated with the Salesforce Marketing Cloud application. Type: string (or + Expression with resultType string).""" + use_encrypted_endpoints: Optional[Any] = rest_field( + name="useEncryptedEndpoints", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the data source endpoints are encrypted using HTTPS. The default value is + true. Type: boolean (or Expression with resultType boolean).""" + use_host_verification: Optional[Any] = rest_field( + name="useHostVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require the host name in the server's certificate to match the host name + of the server when connecting over SSL. The default value is true. Type: boolean (or Expression + with resultType boolean).""" + use_peer_verification: Optional[Any] = rest_field( + name="usePeerVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to verify the identity of the server when connecting over SSL. The default + value is true. Type: boolean (or Expression with resultType boolean).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_properties: Optional[Any] = None, + client_id: Optional[Any] = None, + client_secret: Optional["_models.SecretBase"] = None, + use_encrypted_endpoints: Optional[Any] = None, + use_host_verification: Optional[Any] = None, + use_peer_verification: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SalesforceMarketingCloudObjectDataset(Dataset, discriminator="SalesforceMarketingCloudObject"): + """Salesforce Marketing Cloud dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "SalesforceMarketingCloudObject". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["SalesforceMarketingCloudObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SalesforceMarketingCloudObject\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SalesforceMarketingCloudSource(TabularSource, discriminator="SalesforceMarketingCloudSource"): + """A copy activity Salesforce Marketing Cloud source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "SalesforceMarketingCloudSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["SalesforceMarketingCloudSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SalesforceMarketingCloudSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SalesforceMarketingCloudSource" # type: ignore + + +class SalesforceObjectDataset(Dataset, discriminator="SalesforceObject"): + """The Salesforce object dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Salesforce object dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.SalesforceObjectDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "SalesforceObject". + :vartype type: str + """ + + type_properties: Optional["_models.SalesforceObjectDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Salesforce object dataset properties.""" + type: Literal["SalesforceObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SalesforceObject\".""" + + __flattened_items = ["object_api_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.SalesforceObjectDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SalesforceObjectDatasetTypeProperties(_Model): + """Salesforce object dataset properties. + + :ivar object_api_name: The Salesforce object API name. Type: string (or Expression with + resultType string). + :vartype object_api_name: any + """ + + object_api_name: Optional[Any] = rest_field( + name="objectApiName", visibility=["read", "create", "update", "delete", "query"] + ) + """The Salesforce object API name. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + object_api_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SalesforceServiceCloudLinkedService(LinkedService, discriminator="SalesforceServiceCloud"): + """Linked service for Salesforce Service Cloud. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Salesforce Service Cloud linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.SalesforceServiceCloudLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "SalesforceServiceCloud". + :vartype type: str + """ + + type_properties: "_models.SalesforceServiceCloudLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Salesforce Service Cloud linked service properties. Required.""" + type: Literal["SalesforceServiceCloud"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"SalesforceServiceCloud\".""" + + __flattened_items = [ + "environment_url", + "username", + "password", + "security_token", + "api_version", + "extended_properties", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.SalesforceServiceCloudLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SalesforceServiceCloudLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Salesforce Service Cloud linked service properties. + + :ivar environment_url: The URL of Salesforce Service Cloud instance. Default is + '`https://login.salesforce.com `_'. To copy data from sandbox, + specify '`https://test.salesforce.com `_'. To copy data from + custom domain, specify, for example, 'https://[domain].my.salesforce.com'. Type: string (or + Expression with resultType string). + :vartype environment_url: any + :ivar username: The username for Basic authentication of the Salesforce instance. Type: string + (or Expression with resultType string). + :vartype username: any + :ivar password: The password for Basic authentication of the Salesforce instance. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar security_token: The security token is optional to remotely access Salesforce instance. + :vartype security_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar api_version: The Salesforce API version used in ADF. Type: string (or Expression with + resultType string). + :vartype api_version: any + :ivar extended_properties: Extended properties appended to the connection string. Type: string + (or Expression with resultType string). + :vartype extended_properties: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + environment_url: Optional[Any] = rest_field( + name="environmentUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """The URL of Salesforce Service Cloud instance. Default is '`https://login.salesforce.com + `_'. To copy data from sandbox, specify + '`https://test.salesforce.com `_'. To copy data from custom + domain, specify, for example, 'https://[domain].my.salesforce.com'. Type: string (or Expression + with resultType string).""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The username for Basic authentication of the Salesforce instance. Type: string (or Expression + with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password for Basic authentication of the Salesforce instance.""" + security_token: Optional["_models.SecretBase"] = rest_field( + name="securityToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The security token is optional to remotely access Salesforce instance.""" + api_version: Optional[Any] = rest_field( + name="apiVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The Salesforce API version used in ADF. Type: string (or Expression with resultType string).""" + extended_properties: Optional[Any] = rest_field( + name="extendedProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Extended properties appended to the connection string. Type: string (or Expression with + resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + environment_url: Optional[Any] = None, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + security_token: Optional["_models.SecretBase"] = None, + api_version: Optional[Any] = None, + extended_properties: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SalesforceServiceCloudObjectDataset(Dataset, discriminator="SalesforceServiceCloudObject"): + """The Salesforce Service Cloud object dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Salesforce Service Cloud object dataset properties. + :vartype type_properties: + ~azure.mgmt.datafactory.models.SalesforceServiceCloudObjectDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "SalesforceServiceCloudObject". + :vartype type: str + """ + + type_properties: Optional["_models.SalesforceServiceCloudObjectDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Salesforce Service Cloud object dataset properties.""" + type: Literal["SalesforceServiceCloudObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SalesforceServiceCloudObject\".""" + + __flattened_items = ["object_api_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.SalesforceServiceCloudObjectDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SalesforceServiceCloudObjectDatasetTypeProperties(_Model): # pylint: disable=name-too-long + """Salesforce Service Cloud object dataset properties. + + :ivar object_api_name: The Salesforce Service Cloud object API name. Type: string (or + Expression with resultType string). + :vartype object_api_name: any + """ + + object_api_name: Optional[Any] = rest_field( + name="objectApiName", visibility=["read", "create", "update", "delete", "query"] + ) + """The Salesforce Service Cloud object API name. Type: string (or Expression with resultType + string).""" + + @overload + def __init__( + self, + *, + object_api_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SalesforceServiceCloudSink(CopySink, discriminator="SalesforceServiceCloudSink"): + """A copy activity Salesforce Service Cloud sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar write_behavior: The write behavior for the operation. Default is Insert. Known values + are: "Insert" and "Upsert". + :vartype write_behavior: str or ~azure.mgmt.datafactory.models.SalesforceSinkWriteBehavior + :ivar external_id_field_name: The name of the external ID field for upsert operation. Default + value is 'Id' column. Type: string (or Expression with resultType string). + :vartype external_id_field_name: any + :ivar ignore_null_values: The flag indicating whether or not to ignore null values from input + dataset (except key fields) during write operation. Default value is false. If set it to true, + it means ADF will leave the data in the destination object unchanged when doing upsert/update + operation and insert defined default value when doing insert operation, versus ADF will update + the data in the destination object to NULL when doing upsert/update operation and insert NULL + value when doing insert operation. Type: boolean (or Expression with resultType boolean). + :vartype ignore_null_values: any + :ivar type: Copy sink type. Required. Default value is "SalesforceServiceCloudSink". + :vartype type: str + """ + + write_behavior: Optional[Union[str, "_models.SalesforceSinkWriteBehavior"]] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """The write behavior for the operation. Default is Insert. Known values are: \"Insert\" and + \"Upsert\".""" + external_id_field_name: Optional[Any] = rest_field( + name="externalIdFieldName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the external ID field for upsert operation. Default value is 'Id' column. Type: + string (or Expression with resultType string).""" + ignore_null_values: Optional[Any] = rest_field( + name="ignoreNullValues", visibility=["read", "create", "update", "delete", "query"] + ) + """The flag indicating whether or not to ignore null values from input dataset (except key fields) + during write operation. Default value is false. If set it to true, it means ADF will leave the + data in the destination object unchanged when doing upsert/update operation and insert defined + default value when doing insert operation, versus ADF will update the data in the destination + object to NULL when doing upsert/update operation and insert NULL value when doing insert + operation. Type: boolean (or Expression with resultType boolean).""" + type: Literal["SalesforceServiceCloudSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"SalesforceServiceCloudSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + write_behavior: Optional[Union[str, "_models.SalesforceSinkWriteBehavior"]] = None, + external_id_field_name: Optional[Any] = None, + ignore_null_values: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SalesforceServiceCloudSink" # type: ignore + + +class SalesforceServiceCloudSource(CopySource, discriminator="SalesforceServiceCloudSource"): + """A copy activity Salesforce Service Cloud source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query: Database query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar read_behavior: The read behavior for the operation. Default is Query. Allowed values: + Query/QueryAll. Type: string (or Expression with resultType string). + :vartype read_behavior: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "SalesforceServiceCloudSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database query. Type: string (or Expression with resultType string).""" + read_behavior: Optional[Any] = rest_field( + name="readBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """The read behavior for the operation. Default is Query. Allowed values: Query/QueryAll. Type: + string (or Expression with resultType string).""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["SalesforceServiceCloudSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SalesforceServiceCloudSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query: Optional[Any] = None, + read_behavior: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SalesforceServiceCloudSource" # type: ignore + + +class SalesforceServiceCloudV2LinkedService(LinkedService, discriminator="SalesforceServiceCloudV2"): + """Linked service for Salesforce Service Cloud V2. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Salesforce Service Cloud V2 linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.SalesforceServiceCloudV2LinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "SalesforceServiceCloudV2". + :vartype type: str + """ + + type_properties: "_models.SalesforceServiceCloudV2LinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Salesforce Service Cloud V2 linked service properties. Required.""" + type: Literal["SalesforceServiceCloudV2"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"SalesforceServiceCloudV2\".""" + + __flattened_items = [ + "environment_url", + "authentication_type", + "client_id", + "client_secret", + "api_version", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.SalesforceServiceCloudV2LinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SalesforceServiceCloudV2LinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """Salesforce Service Cloud V2 linked service properties. + + :ivar environment_url: The URL of Salesforce Service Cloud instance. For example, + 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). + :vartype environment_url: any + :ivar authentication_type: The authentication type to be used to connect to the Salesforce. + Currently, we only support OAuth2ClientCredentials, it is also the default value. + :vartype authentication_type: any + :ivar client_id: The client Id for OAuth 2.0 Client Credentials Flow authentication of the + Salesforce instance. Type: string (or Expression with resultType string). + :vartype client_id: any + :ivar client_secret: The client secret for OAuth 2.0 Client Credentials Flow authentication of + the Salesforce instance. + :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase + :ivar api_version: The Salesforce API version used in ADF. The version must be larger than or + equal to 47.0 which is required by Salesforce BULK API 2.0. Type: string (or Expression with + resultType string). + :vartype api_version: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + environment_url: Optional[Any] = rest_field( + name="environmentUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """The URL of Salesforce Service Cloud instance. For example, + 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string).""" + authentication_type: Optional[Any] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to be used to connect to the Salesforce. Currently, we only support + OAuth2ClientCredentials, it is also the default value.""" + client_id: Optional[Any] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The client Id for OAuth 2.0 Client Credentials Flow authentication of the Salesforce instance. + Type: string (or Expression with resultType string).""" + client_secret: Optional["_models.SecretBase"] = rest_field( + name="clientSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """The client secret for OAuth 2.0 Client Credentials Flow authentication of the Salesforce + instance.""" + api_version: Optional[Any] = rest_field( + name="apiVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The Salesforce API version used in ADF. The version must be larger than or equal to 47.0 which + is required by Salesforce BULK API 2.0. Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + environment_url: Optional[Any] = None, + authentication_type: Optional[Any] = None, + client_id: Optional[Any] = None, + client_secret: Optional["_models.SecretBase"] = None, + api_version: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SalesforceServiceCloudV2ObjectDataset(Dataset, discriminator="SalesforceServiceCloudV2Object"): + """The Salesforce Service Cloud V2 object dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Salesforce Service Cloud V2 object dataset properties. + :vartype type_properties: + ~azure.mgmt.datafactory.models.SalesforceServiceCloudV2ObjectDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "SalesforceServiceCloudV2Object". + :vartype type: str + """ + + type_properties: Optional["_models.SalesforceServiceCloudV2ObjectDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Salesforce Service Cloud V2 object dataset properties.""" + type: Literal["SalesforceServiceCloudV2Object"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SalesforceServiceCloudV2Object\".""" + + __flattened_items = ["object_api_name", "report_id"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.SalesforceServiceCloudV2ObjectDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SalesforceServiceCloudV2ObjectDatasetTypeProperties(_Model): # pylint: disable=name-too-long + """Salesforce Service Cloud V2 object dataset properties. + + :ivar object_api_name: The Salesforce Service Cloud V2 object API name. Type: string (or + Expression with resultType string). + :vartype object_api_name: any + :ivar report_id: The Salesforce Service Cloud V2 reportId. Type: string (or Expression with + resultType string). + :vartype report_id: any + """ + + object_api_name: Optional[Any] = rest_field( + name="objectApiName", visibility=["read", "create", "update", "delete", "query"] + ) + """The Salesforce Service Cloud V2 object API name. Type: string (or Expression with resultType + string).""" + report_id: Optional[Any] = rest_field(name="reportId", visibility=["read", "create", "update", "delete", "query"]) + """The Salesforce Service Cloud V2 reportId. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + object_api_name: Optional[Any] = None, + report_id: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SalesforceServiceCloudV2Sink(CopySink, discriminator="SalesforceServiceCloudV2Sink"): + """A copy activity Salesforce Service Cloud V2 sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar write_behavior: The write behavior for the operation. Default is Insert. Known values + are: "Insert" and "Upsert". + :vartype write_behavior: str or ~azure.mgmt.datafactory.models.SalesforceV2SinkWriteBehavior + :ivar external_id_field_name: The name of the external ID field for upsert operation. Default + value is 'Id' column. Type: string (or Expression with resultType string). + :vartype external_id_field_name: any + :ivar ignore_null_values: The flag indicating whether or not to ignore null values from input + dataset (except key fields) during write operation. Default value is false. If set it to true, + it means ADF will leave the data in the destination object unchanged when doing upsert/update + operation and insert defined default value when doing insert operation, versus ADF will update + the data in the destination object to NULL when doing upsert/update operation and insert NULL + value when doing insert operation. Type: boolean (or Expression with resultType boolean). + :vartype ignore_null_values: any + :ivar type: Copy sink type. Required. Default value is "SalesforceServiceCloudV2Sink". + :vartype type: str + """ + + write_behavior: Optional[Union[str, "_models.SalesforceV2SinkWriteBehavior"]] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """The write behavior for the operation. Default is Insert. Known values are: \"Insert\" and + \"Upsert\".""" + external_id_field_name: Optional[Any] = rest_field( + name="externalIdFieldName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the external ID field for upsert operation. Default value is 'Id' column. Type: + string (or Expression with resultType string).""" + ignore_null_values: Optional[Any] = rest_field( + name="ignoreNullValues", visibility=["read", "create", "update", "delete", "query"] + ) + """The flag indicating whether or not to ignore null values from input dataset (except key fields) + during write operation. Default value is false. If set it to true, it means ADF will leave the + data in the destination object unchanged when doing upsert/update operation and insert defined + default value when doing insert operation, versus ADF will update the data in the destination + object to NULL when doing upsert/update operation and insert NULL value when doing insert + operation. Type: boolean (or Expression with resultType boolean).""" + type: Literal["SalesforceServiceCloudV2Sink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"SalesforceServiceCloudV2Sink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + write_behavior: Optional[Union[str, "_models.SalesforceV2SinkWriteBehavior"]] = None, + external_id_field_name: Optional[Any] = None, + ignore_null_values: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SalesforceServiceCloudV2Sink" # type: ignore + + +class SalesforceServiceCloudV2Source(CopySource, discriminator="SalesforceServiceCloudV2Source"): + """A copy activity Salesforce Service Cloud V2 source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar soql_query: Deprecating, please use 'query' property instead. Type: string (or Expression + with resultType string). + :vartype soql_query: any + :ivar query: You can only use Salesforce Object Query Language (SOQL) query with limitations. + For SOQL limitations, see this article: + `https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/queries.htm#SOQL%20Considerations + `_. + If query is not specified, all the data of the Salesforce object specified in + ObjectApiName/reportId in dataset will be retrieved. Type: string (or Expression with + resultType string). + :vartype query: any + :ivar include_deleted_objects: This property control whether query result contains Deleted + objects. Default is false. Type: boolean (or Expression with resultType boolean). + :vartype include_deleted_objects: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "SalesforceServiceCloudV2Source". + :vartype type: str + """ + + soql_query: Optional[Any] = rest_field(name="SOQLQuery", visibility=["read", "create", "update", "delete", "query"]) + """Deprecating, please use 'query' property instead. Type: string (or Expression with resultType + string).""" + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """You can only use Salesforce Object Query Language (SOQL) query with limitations. For SOQL + limitations, see this article: + `https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/queries.htm#SOQL%20Considerations + `_. + If query is not specified, all the data of the Salesforce object specified in + ObjectApiName/reportId in dataset will be retrieved. Type: string (or Expression with + resultType string).""" + include_deleted_objects: Optional[Any] = rest_field( + name="includeDeletedObjects", visibility=["read", "create", "update", "delete", "query"] + ) + """This property control whether query result contains Deleted objects. Default is false. Type: + boolean (or Expression with resultType boolean).""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["SalesforceServiceCloudV2Source"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SalesforceServiceCloudV2Source\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + soql_query: Optional[Any] = None, + query: Optional[Any] = None, + include_deleted_objects: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SalesforceServiceCloudV2Source" # type: ignore + + +class SalesforceSink(CopySink, discriminator="SalesforceSink"): + """A copy activity Salesforce sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar write_behavior: The write behavior for the operation. Default is Insert. Known values + are: "Insert" and "Upsert". + :vartype write_behavior: str or ~azure.mgmt.datafactory.models.SalesforceSinkWriteBehavior + :ivar external_id_field_name: The name of the external ID field for upsert operation. Default + value is 'Id' column. Type: string (or Expression with resultType string). + :vartype external_id_field_name: any + :ivar ignore_null_values: The flag indicating whether or not to ignore null values from input + dataset (except key fields) during write operation. Default value is false. If set it to true, + it means ADF will leave the data in the destination object unchanged when doing upsert/update + operation and insert defined default value when doing insert operation, versus ADF will update + the data in the destination object to NULL when doing upsert/update operation and insert NULL + value when doing insert operation. Type: boolean (or Expression with resultType boolean). + :vartype ignore_null_values: any + :ivar type: Copy sink type. Required. Default value is "SalesforceSink". + :vartype type: str + """ + + write_behavior: Optional[Union[str, "_models.SalesforceSinkWriteBehavior"]] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """The write behavior for the operation. Default is Insert. Known values are: \"Insert\" and + \"Upsert\".""" + external_id_field_name: Optional[Any] = rest_field( + name="externalIdFieldName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the external ID field for upsert operation. Default value is 'Id' column. Type: + string (or Expression with resultType string).""" + ignore_null_values: Optional[Any] = rest_field( + name="ignoreNullValues", visibility=["read", "create", "update", "delete", "query"] + ) + """The flag indicating whether or not to ignore null values from input dataset (except key fields) + during write operation. Default value is false. If set it to true, it means ADF will leave the + data in the destination object unchanged when doing upsert/update operation and insert defined + default value when doing insert operation, versus ADF will update the data in the destination + object to NULL when doing upsert/update operation and insert NULL value when doing insert + operation. Type: boolean (or Expression with resultType boolean).""" + type: Literal["SalesforceSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"SalesforceSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + write_behavior: Optional[Union[str, "_models.SalesforceSinkWriteBehavior"]] = None, + external_id_field_name: Optional[Any] = None, + ignore_null_values: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SalesforceSink" # type: ignore + + +class SalesforceSource(TabularSource, discriminator="SalesforceSource"): + """A copy activity Salesforce source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: Database query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar read_behavior: The read behavior for the operation. Default is Query. Allowed values: + Query/QueryAll. Type: string (or Expression with resultType string). + :vartype read_behavior: any + :ivar type: Copy source type. Required. Default value is "SalesforceSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database query. Type: string (or Expression with resultType string).""" + read_behavior: Optional[Any] = rest_field( + name="readBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """The read behavior for the operation. Default is Query. Allowed values: Query/QueryAll. Type: + string (or Expression with resultType string).""" + type: Literal["SalesforceSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SalesforceSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + read_behavior: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SalesforceSource" # type: ignore + + +class SalesforceV2LinkedService(LinkedService, discriminator="SalesforceV2"): + """Linked service for Salesforce V2. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Salesforce V2 linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.SalesforceV2LinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "SalesforceV2". + :vartype type: str + """ + + type_properties: "_models.SalesforceV2LinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Salesforce V2 linked service properties. Required.""" + type: Literal["SalesforceV2"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"SalesforceV2\".""" + + __flattened_items = [ + "environment_url", + "authentication_type", + "client_id", + "client_secret", + "api_version", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.SalesforceV2LinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SalesforceV2LinkedServiceTypeProperties(_Model): + """Salesforce V2 linked service properties. + + :ivar environment_url: The URL of Salesforce instance. For example, + 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). + :vartype environment_url: any + :ivar authentication_type: The authentication type to be used to connect to the Salesforce. + Currently, we only support OAuth2ClientCredentials, it is also the default value. + :vartype authentication_type: any + :ivar client_id: The client Id for OAuth 2.0 Client Credentials Flow authentication of the + Salesforce instance. Type: string (or Expression with resultType string). + :vartype client_id: any + :ivar client_secret: The client secret for OAuth 2.0 Client Credentials Flow authentication of + the Salesforce instance. + :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase + :ivar api_version: The Salesforce API version used in ADF. The version must be larger than or + equal to 47.0 which is required by Salesforce BULK API 2.0. Type: string (or Expression with + resultType string). + :vartype api_version: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + environment_url: Optional[Any] = rest_field( + name="environmentUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """The URL of Salesforce instance. For example, 'https://[domain].my.salesforce.com'. Type: string + (or Expression with resultType string).""" + authentication_type: Optional[Any] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to be used to connect to the Salesforce. Currently, we only support + OAuth2ClientCredentials, it is also the default value.""" + client_id: Optional[Any] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The client Id for OAuth 2.0 Client Credentials Flow authentication of the Salesforce instance. + Type: string (or Expression with resultType string).""" + client_secret: Optional["_models.SecretBase"] = rest_field( + name="clientSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """The client secret for OAuth 2.0 Client Credentials Flow authentication of the Salesforce + instance.""" + api_version: Optional[Any] = rest_field( + name="apiVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The Salesforce API version used in ADF. The version must be larger than or equal to 47.0 which + is required by Salesforce BULK API 2.0. Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + environment_url: Optional[Any] = None, + authentication_type: Optional[Any] = None, + client_id: Optional[Any] = None, + client_secret: Optional["_models.SecretBase"] = None, + api_version: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SalesforceV2ObjectDataset(Dataset, discriminator="SalesforceV2Object"): + """The Salesforce V2 object dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Salesforce V2 object dataset properties. + :vartype type_properties: + ~azure.mgmt.datafactory.models.SalesforceV2ObjectDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "SalesforceV2Object". + :vartype type: str + """ + + type_properties: Optional["_models.SalesforceV2ObjectDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Salesforce V2 object dataset properties.""" + type: Literal["SalesforceV2Object"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SalesforceV2Object\".""" + + __flattened_items = ["object_api_name", "report_id"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.SalesforceV2ObjectDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SalesforceV2ObjectDatasetTypeProperties(_Model): + """Salesforce V2 object dataset properties. + + :ivar object_api_name: The Salesforce V2 object API name. Type: string (or Expression with + resultType string). + :vartype object_api_name: any + :ivar report_id: The Salesforce V2 report Id. Type: string (or Expression with resultType + string). + :vartype report_id: any + """ + + object_api_name: Optional[Any] = rest_field( + name="objectApiName", visibility=["read", "create", "update", "delete", "query"] + ) + """The Salesforce V2 object API name. Type: string (or Expression with resultType string).""" + report_id: Optional[Any] = rest_field(name="reportId", visibility=["read", "create", "update", "delete", "query"]) + """The Salesforce V2 report Id. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + object_api_name: Optional[Any] = None, + report_id: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SalesforceV2Sink(CopySink, discriminator="SalesforceV2Sink"): + """A copy activity Salesforce V2 sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar write_behavior: The write behavior for the operation. Default is Insert. Known values + are: "Insert" and "Upsert". + :vartype write_behavior: str or ~azure.mgmt.datafactory.models.SalesforceV2SinkWriteBehavior + :ivar external_id_field_name: The name of the external ID field for upsert operation. Default + value is 'Id' column. Type: string (or Expression with resultType string). + :vartype external_id_field_name: any + :ivar ignore_null_values: The flag indicating whether or not to ignore null values from input + dataset (except key fields) during write operation. Default value is false. If set it to true, + it means ADF will leave the data in the destination object unchanged when doing upsert/update + operation and insert defined default value when doing insert operation, versus ADF will update + the data in the destination object to NULL when doing upsert/update operation and insert NULL + value when doing insert operation. Type: boolean (or Expression with resultType boolean). + :vartype ignore_null_values: any + :ivar type: Copy sink type. Required. Default value is "SalesforceV2Sink". + :vartype type: str + """ + + write_behavior: Optional[Union[str, "_models.SalesforceV2SinkWriteBehavior"]] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """The write behavior for the operation. Default is Insert. Known values are: \"Insert\" and + \"Upsert\".""" + external_id_field_name: Optional[Any] = rest_field( + name="externalIdFieldName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the external ID field for upsert operation. Default value is 'Id' column. Type: + string (or Expression with resultType string).""" + ignore_null_values: Optional[Any] = rest_field( + name="ignoreNullValues", visibility=["read", "create", "update", "delete", "query"] + ) + """The flag indicating whether or not to ignore null values from input dataset (except key fields) + during write operation. Default value is false. If set it to true, it means ADF will leave the + data in the destination object unchanged when doing upsert/update operation and insert defined + default value when doing insert operation, versus ADF will update the data in the destination + object to NULL when doing upsert/update operation and insert NULL value when doing insert + operation. Type: boolean (or Expression with resultType boolean).""" + type: Literal["SalesforceV2Sink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"SalesforceV2Sink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + write_behavior: Optional[Union[str, "_models.SalesforceV2SinkWriteBehavior"]] = None, + external_id_field_name: Optional[Any] = None, + ignore_null_values: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SalesforceV2Sink" # type: ignore + + +class SalesforceV2Source(TabularSource, discriminator="SalesforceV2Source"): + """A copy activity Salesforce V2 source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar soql_query: Deprecating, please use 'query' property instead. Type: string (or Expression + with resultType string). + :vartype soql_query: any + :ivar query: You can only use Salesforce Object Query Language (SOQL) query with limitations. + For SOQL limitations, see this article: + `https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/queries.htm#SOQL%20Considerations + `_. + If query is not specified, all the data of the Salesforce object specified in + ObjectApiName/reportId in dataset will be retrieved. Type: string (or Expression with + resultType string). + :vartype query: any + :ivar include_deleted_objects: This property control whether query result contains Deleted + objects. Default is false. Type: boolean (or Expression with resultType boolean). + :vartype include_deleted_objects: any + :ivar page_size: Page size for each http request, too large pageSize will caused timeout, + default 300,000. Type: integer (or Expression with resultType integer). + :vartype page_size: any + :ivar partition_option: Partition option for the SalesforceV2 connector in copy activity, + AutoDetect or None. Type: string (or Expression with resultType string). + :vartype partition_option: any + :ivar type: Copy source type. Required. Default value is "SalesforceV2Source". + :vartype type: str + """ + + soql_query: Optional[Any] = rest_field(name="SOQLQuery", visibility=["read", "create", "update", "delete", "query"]) + """Deprecating, please use 'query' property instead. Type: string (or Expression with resultType + string).""" + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """You can only use Salesforce Object Query Language (SOQL) query with limitations. For SOQL + limitations, see this article: + `https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/queries.htm#SOQL%20Considerations + `_. + If query is not specified, all the data of the Salesforce object specified in + ObjectApiName/reportId in dataset will be retrieved. Type: string (or Expression with + resultType string).""" + include_deleted_objects: Optional[Any] = rest_field( + name="includeDeletedObjects", visibility=["read", "create", "update", "delete", "query"] + ) + """This property control whether query result contains Deleted objects. Default is false. Type: + boolean (or Expression with resultType boolean).""" + page_size: Optional[Any] = rest_field(name="pageSize", visibility=["read", "create", "update", "delete", "query"]) + """Page size for each http request, too large pageSize will caused timeout, default 300,000. Type: + integer (or Expression with resultType integer).""" + partition_option: Optional[Any] = rest_field( + name="partitionOption", visibility=["read", "create", "update", "delete", "query"] + ) + """Partition option for the SalesforceV2 connector in copy activity, AutoDetect or None. Type: + string (or Expression with resultType string).""" + type: Literal["SalesforceV2Source"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SalesforceV2Source\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + soql_query: Optional[Any] = None, + query: Optional[Any] = None, + include_deleted_objects: Optional[Any] = None, + page_size: Optional[Any] = None, + partition_option: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SalesforceV2Source" # type: ignore + + +class SapBwCubeDataset(Dataset, discriminator="SapBwCube"): + """The SAP BW cube dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type: Type of dataset. Required. Default value is "SapBwCube". + :vartype type: str + """ + + type: Literal["SapBwCube"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SapBwCube\".""" + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SapBwCube" # type: ignore + + +class SapBWLinkedService(LinkedService, discriminator="SapBW"): + """SAP Business Warehouse Linked Service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Properties specific to this linked service type. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SapBWLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "SapBW". + :vartype type: str + """ + + type_properties: "_models.SapBWLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this linked service type. Required.""" + type: Literal["SapBW"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"SapBW\".""" + + __flattened_items = ["server", "system_number", "client_id", "user_name", "password", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.SapBWLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SapBWLinkedServiceTypeProperties(_Model): + """Properties specific to this linked service type. + + :ivar server: Host name of the SAP BW instance. Type: string (or Expression with resultType + string). Required. + :vartype server: any + :ivar system_number: System number of the BW system. (Usually a two-digit decimal number + represented as a string.) Type: string (or Expression with resultType string). Required. + :vartype system_number: any + :ivar client_id: Client ID of the client on the BW system. (Usually a three-digit decimal + number represented as a string) Type: string (or Expression with resultType string). Required. + :vartype client_id: any + :ivar user_name: Username to access the SAP BW server. Type: string (or Expression with + resultType string). + :vartype user_name: any + :ivar password: Password to access the SAP BW server. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + server: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Host name of the SAP BW instance. Type: string (or Expression with resultType string). + Required.""" + system_number: Any = rest_field(name="systemNumber", visibility=["read", "create", "update", "delete", "query"]) + """System number of the BW system. (Usually a two-digit decimal number represented as a string.) + Type: string (or Expression with resultType string). Required.""" + client_id: Any = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """Client ID of the client on the BW system. (Usually a three-digit decimal number represented as + a string) Type: string (or Expression with resultType string). Required.""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """Username to access the SAP BW server. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password to access the SAP BW server.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + server: Any, + system_number: Any, + client_id: Any, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SapBwSource(TabularSource, discriminator="SapBwSource"): + """A copy activity source for SapBW server via MDX. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: MDX query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "SapBwSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """MDX query. Type: string (or Expression with resultType string).""" + type: Literal["SapBwSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SapBwSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SapBwSource" # type: ignore + + +class SapCloudForCustomerLinkedService(LinkedService, discriminator="SapCloudForCustomer"): + """Linked service for SAP Cloud for Customer. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: SAP Cloud for Customer linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.SapCloudForCustomerLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "SapCloudForCustomer". + :vartype type: str + """ + + type_properties: "_models.SapCloudForCustomerLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """SAP Cloud for Customer linked service properties. Required.""" + type: Literal["SapCloudForCustomer"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"SapCloudForCustomer\".""" + + __flattened_items = ["url", "username", "password", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.SapCloudForCustomerLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SapCloudForCustomerLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """SAP Cloud for Customer linked service properties. + + :ivar url: The URL of SAP Cloud for Customer OData API. For example, + '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: string (or Expression with + resultType string). Required. + :vartype url: any + :ivar username: The username for Basic authentication. Type: string (or Expression with + resultType string). + :vartype username: any + :ivar password: The password for Basic authentication. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Either encryptedCredential or + username/password must be provided. Type: string. + :vartype encrypted_credential: str + """ + + url: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The URL of SAP Cloud for Customer OData API. For example, + '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: string (or Expression with + resultType string). Required.""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The username for Basic authentication. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password for Basic authentication.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Either encryptedCredential or username/password must be + provided. Type: string.""" + + @overload + def __init__( + self, + *, + url: Any, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SapCloudForCustomerResourceDataset(Dataset, discriminator="SapCloudForCustomerResource"): + """The path of the SAP Cloud for Customer OData entity. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: SAP Cloud For Customer OData resource dataset properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.SapCloudForCustomerResourceDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "SapCloudForCustomerResource". + :vartype type: str + """ + + type_properties: "_models.SapCloudForCustomerResourceDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """SAP Cloud For Customer OData resource dataset properties. Required.""" + type: Literal["SapCloudForCustomerResource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SapCloudForCustomerResource\".""" + + __flattened_items = ["path"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.SapCloudForCustomerResourceDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SapCloudForCustomerResourceDatasetTypeProperties(_Model): # pylint: disable=name-too-long + """Sap Cloud For Customer OData resource dataset properties. + + :ivar path: The path of the SAP Cloud for Customer OData entity. Type: string (or Expression + with resultType string). Required. + :vartype path: any + """ + + path: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with + resultType string). Required.""" + + @overload + def __init__( + self, + *, + path: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SapCloudForCustomerSink(CopySink, discriminator="SapCloudForCustomerSink"): + """A copy activity SAP Cloud for Customer sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar write_behavior: The write behavior for the operation. Default is 'Insert'. Known values + are: "Insert" and "Update". + :vartype write_behavior: str or + ~azure.mgmt.datafactory.models.SapCloudForCustomerSinkWriteBehavior + :ivar http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the timeout + to get a response, not the timeout to read response data. Default value: 00:05:00. Type: string + (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype http_request_timeout: any + :ivar type: Copy sink type. Required. Default value is "SapCloudForCustomerSink". + :vartype type: str + """ + + write_behavior: Optional[Union[str, "_models.SapCloudForCustomerSinkWriteBehavior"]] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """The write behavior for the operation. Default is 'Insert'. Known values are: \"Insert\" and + \"Update\".""" + http_request_timeout: Optional[Any] = rest_field( + name="httpRequestTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the + timeout to read response data. Default value: 00:05:00. Type: string (or Expression with + resultType string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + type: Literal["SapCloudForCustomerSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"SapCloudForCustomerSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + write_behavior: Optional[Union[str, "_models.SapCloudForCustomerSinkWriteBehavior"]] = None, + http_request_timeout: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SapCloudForCustomerSink" # type: ignore + + +class SapCloudForCustomerSource(TabularSource, discriminator="SapCloudForCustomerSource"): + """A copy activity source for SAP Cloud for Customer source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: SAP Cloud for Customer OData query. For example, "$top=1". Type: string (or + Expression with resultType string). + :vartype query: any + :ivar http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the timeout + to get a response, not the timeout to read response data. Default value: 00:05:00. Type: string + (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype http_request_timeout: any + :ivar type: Copy source type. Required. Default value is "SapCloudForCustomerSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """SAP Cloud for Customer OData query. For example, \"$top=1\". Type: string (or Expression with + resultType string).""" + http_request_timeout: Optional[Any] = rest_field( + name="httpRequestTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the + timeout to read response data. Default value: 00:05:00. Type: string (or Expression with + resultType string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + type: Literal["SapCloudForCustomerSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SapCloudForCustomerSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + http_request_timeout: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SapCloudForCustomerSource" # type: ignore + + +class SapEccLinkedService(LinkedService, discriminator="SapEcc"): + """Linked service for SAP ERP Central Component(SAP ECC). + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: SAP ECC linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SapEccLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "SapEcc". + :vartype type: str + """ + + type_properties: "_models.SapEccLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """SAP ECC linked service properties. Required.""" + type: Literal["SapEcc"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"SapEcc\".""" + + __flattened_items = ["url", "username", "password", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.SapEccLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SapEccLinkedServiceTypeProperties(_Model): + """SAP ECC linked service properties. + + :ivar url: The URL of SAP ECC OData API. For example, + '[`https://hostname:port/sap/opu/odata/sap/servicename/] + `_'. Type: string (or Expression with + resultType string). Required. + :vartype url: any + :ivar username: The username for Basic authentication. Type: string (or Expression with + resultType string). + :vartype username: any + :ivar password: The password for Basic authentication. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Either encryptedCredential or + username/password must be provided. Type: string. + :vartype encrypted_credential: str + """ + + url: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The URL of SAP ECC OData API. For example, + '[`https://hostname:port/sap/opu/odata/sap/servicename/] + `_'. Type: string (or Expression with + resultType string). Required.""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The username for Basic authentication. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password for Basic authentication.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Either encryptedCredential or username/password must be + provided. Type: string.""" + + @overload + def __init__( + self, + *, + url: Any, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SapEccResourceDataset(Dataset, discriminator="SapEccResource"): + """The path of the SAP ECC OData entity. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: SAP ECC OData resource dataset properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SapEccResourceDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "SapEccResource". + :vartype type: str + """ + + type_properties: "_models.SapEccResourceDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """SAP ECC OData resource dataset properties. Required.""" + type: Literal["SapEccResource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SapEccResource\".""" + + __flattened_items = ["path"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.SapEccResourceDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SapEccResourceDatasetTypeProperties(_Model): + """Sap ECC OData resource dataset properties. + + :ivar path: The path of the SAP ECC OData entity. Type: string (or Expression with resultType + string). Required. + :vartype path: any + """ + + path: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). + Required.""" + + @overload + def __init__( + self, + *, + path: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SapEccSource(TabularSource, discriminator="SapEccSource"): + """A copy activity source for SAP ECC source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: SAP ECC OData query. For example, "$top=1". Type: string (or Expression with + resultType string). + :vartype query: any + :ivar http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the timeout + to get a response, not the timeout to read response data. Default value: 00:05:00. Type: string + (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype http_request_timeout: any + :ivar type: Copy source type. Required. Default value is "SapEccSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """SAP ECC OData query. For example, \"$top=1\". Type: string (or Expression with resultType + string).""" + http_request_timeout: Optional[Any] = rest_field( + name="httpRequestTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the + timeout to read response data. Default value: 00:05:00. Type: string (or Expression with + resultType string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + type: Literal["SapEccSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SapEccSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + http_request_timeout: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SapEccSource" # type: ignore + + +class SapHanaLinkedService(LinkedService, discriminator="SapHana"): + """SAP HANA Linked Service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Properties specific to this linked service type. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SapHanaLinkedServiceProperties + :ivar type: Type of linked service. Required. Default value is "SapHana". + :vartype type: str + """ + + type_properties: "_models.SapHanaLinkedServiceProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this linked service type. Required.""" + type: Literal["SapHana"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"SapHana\".""" + + __flattened_items = [ + "connection_string", + "server", + "authentication_type", + "user_name", + "password", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.SapHanaLinkedServiceProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SapHanaLinkedServiceProperties(_Model): + """Properties specific to this linked service type. + + :ivar connection_string: SAP HANA ODBC connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar server: Host name of the SAP HANA server. Type: string (or Expression with resultType + string). + :vartype server: any + :ivar authentication_type: The authentication type to be used to connect to the SAP HANA + server. Known values are: "Basic" and "Windows". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.SapHanaAuthenticationType + :ivar user_name: Username to access the SAP HANA server. Type: string (or Expression with + resultType string). + :vartype user_name: any + :ivar password: Password to access the SAP HANA server. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """SAP HANA ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference.""" + server: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Host name of the SAP HANA server. Type: string (or Expression with resultType string).""" + authentication_type: Optional[Union[str, "_models.SapHanaAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to be used to connect to the SAP HANA server. Known values are: + \"Basic\" and \"Windows\".""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """Username to access the SAP HANA server. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password to access the SAP HANA server.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_string: Optional[Any] = None, + server: Optional[Any] = None, + authentication_type: Optional[Union[str, "_models.SapHanaAuthenticationType"]] = None, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SapHanaPartitionSettings(_Model): + """The settings that will be leveraged for SAP HANA source partitioning. + + :ivar partition_column_name: The name of the column that will be used for proceeding range + partitioning. Type: string (or Expression with resultType string). + :vartype partition_column_name: any + """ + + partition_column_name: Optional[Any] = rest_field( + name="partitionColumnName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the column that will be used for proceeding range partitioning. Type: string (or + Expression with resultType string).""" + + @overload + def __init__( + self, + *, + partition_column_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SapHanaSource(TabularSource, discriminator="SapHanaSource"): + """A copy activity source for SAP HANA source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: SAP HANA Sql query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar packet_size: The packet size of data read from SAP HANA. Type: integer(or Expression with + resultType integer). + :vartype packet_size: any + :ivar partition_option: The partition mechanism that will be used for SAP HANA read in + parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "SapHanaDynamicRange". + :vartype partition_option: any + :ivar partition_settings: The settings that will be leveraged for SAP HANA source partitioning. + :vartype partition_settings: ~azure.mgmt.datafactory.models.SapHanaPartitionSettings + :ivar type: Copy source type. Required. Default value is "SapHanaSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """SAP HANA Sql query. Type: string (or Expression with resultType string).""" + packet_size: Optional[Any] = rest_field( + name="packetSize", visibility=["read", "create", "update", "delete", "query"] + ) + """The packet size of data read from SAP HANA. Type: integer(or Expression with resultType + integer).""" + partition_option: Optional[Any] = rest_field( + name="partitionOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The partition mechanism that will be used for SAP HANA read in parallel. Possible values + include: \"None\", \"PhysicalPartitionsOfTable\", \"SapHanaDynamicRange\".""" + partition_settings: Optional["_models.SapHanaPartitionSettings"] = rest_field( + name="partitionSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The settings that will be leveraged for SAP HANA source partitioning.""" + type: Literal["SapHanaSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SapHanaSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + packet_size: Optional[Any] = None, + partition_option: Optional[Any] = None, + partition_settings: Optional["_models.SapHanaPartitionSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SapHanaSource" # type: ignore + + +class SapHanaTableDataset(Dataset, discriminator="SapHanaTable"): + """SAP HANA Table properties. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: SAP HANA Table properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.SapHanaTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "SapHanaTable". + :vartype type: str + """ + + type_properties: Optional["_models.SapHanaTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """SAP HANA Table properties.""" + type: Literal["SapHanaTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SapHanaTable\".""" + + __flattened_items = ["schema", "table"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.SapHanaTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SapHanaTableDatasetTypeProperties(_Model): + """SAP HANA Table properties. + + :ivar schema: The schema name of SAP HANA. Type: string (or Expression with resultType string). + :vartype schema: any + :ivar table: The table name of SAP HANA. Type: string (or Expression with resultType string). + :vartype table: any + """ + + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of SAP HANA. Type: string (or Expression with resultType string).""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of SAP HANA. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + schema: Optional[Any] = None, + table: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SapOdpLinkedService(LinkedService, discriminator="SapOdp"): + """SAP ODP Linked Service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Properties specific to SAP ODP linked service type. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SapOdpLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "SapOdp". + :vartype type: str + """ + + type_properties: "_models.SapOdpLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to SAP ODP linked service type. Required.""" + type: Literal["SapOdp"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"SapOdp\".""" + + __flattened_items = [ + "server", + "system_number", + "client_id", + "language", + "system_id", + "user_name", + "password", + "message_server", + "message_server_service", + "snc_mode", + "snc_my_name", + "snc_partner_name", + "snc_library_path", + "snc_qop", + "x509_certificate_path", + "logon_group", + "subscriber_name", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.SapOdpLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SapOdpLinkedServiceTypeProperties(_Model): + """Properties specific to this linked service type. + + :ivar server: Host name of the SAP instance where the table is located. Type: string (or + Expression with resultType string). + :vartype server: any + :ivar system_number: System number of the SAP system where the table is located. (Usually a + two-digit decimal number represented as a string.) Type: string (or Expression with resultType + string). + :vartype system_number: any + :ivar client_id: Client ID of the client on the SAP system where the table is located. (Usually + a three-digit decimal number represented as a string) Type: string (or Expression with + resultType string). + :vartype client_id: any + :ivar language: Language of the SAP system where the table is located. The default value is EN. + Type: string (or Expression with resultType string). + :vartype language: any + :ivar system_id: SystemID of the SAP system where the table is located. Type: string (or + Expression with resultType string). + :vartype system_id: any + :ivar user_name: Username to access the SAP server where the table is located. Type: string (or + Expression with resultType string). + :vartype user_name: any + :ivar password: Password to access the SAP server where the table is located. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar message_server: The hostname of the SAP Message Server. Type: string (or Expression with + resultType string). + :vartype message_server: any + :ivar message_server_service: The service name or port number of the Message Server. Type: + string (or Expression with resultType string). + :vartype message_server_service: any + :ivar snc_mode: SNC activation flag (Boolean) to access the SAP server where the table is + located. Type: boolean (or Expression with resultType boolean). + :vartype snc_mode: any + :ivar snc_my_name: Initiator's SNC name to access the SAP server where the table is located. + Type: string (or Expression with resultType string). + :vartype snc_my_name: any + :ivar snc_partner_name: Communication partner's SNC name to access the SAP server where the + table is located. Type: string (or Expression with resultType string). + :vartype snc_partner_name: any + :ivar snc_library_path: External security product's library to access the SAP server where the + table is located. Type: string (or Expression with resultType string). + :vartype snc_library_path: any + :ivar snc_qop: SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string + (or Expression with resultType string). + :vartype snc_qop: any + :ivar x509_certificate_path: SNC X509 certificate file path. Type: string (or Expression with + resultType string). + :vartype x509_certificate_path: any + :ivar logon_group: The Logon Group for the SAP System. Type: string (or Expression with + resultType string). + :vartype logon_group: any + :ivar subscriber_name: The subscriber name. Type: string (or Expression with resultType + string). + :vartype subscriber_name: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + server: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Host name of the SAP instance where the table is located. Type: string (or Expression with + resultType string).""" + system_number: Optional[Any] = rest_field( + name="systemNumber", visibility=["read", "create", "update", "delete", "query"] + ) + """System number of the SAP system where the table is located. (Usually a two-digit decimal number + represented as a string.) Type: string (or Expression with resultType string).""" + client_id: Optional[Any] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """Client ID of the client on the SAP system where the table is located. (Usually a three-digit + decimal number represented as a string) Type: string (or Expression with resultType string).""" + language: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Language of the SAP system where the table is located. The default value is EN. Type: string + (or Expression with resultType string).""" + system_id: Optional[Any] = rest_field(name="systemId", visibility=["read", "create", "update", "delete", "query"]) + """SystemID of the SAP system where the table is located. Type: string (or Expression with + resultType string).""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """Username to access the SAP server where the table is located. Type: string (or Expression with + resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password to access the SAP server where the table is located.""" + message_server: Optional[Any] = rest_field( + name="messageServer", visibility=["read", "create", "update", "delete", "query"] + ) + """The hostname of the SAP Message Server. Type: string (or Expression with resultType string).""" + message_server_service: Optional[Any] = rest_field( + name="messageServerService", visibility=["read", "create", "update", "delete", "query"] + ) + """The service name or port number of the Message Server. Type: string (or Expression with + resultType string).""" + snc_mode: Optional[Any] = rest_field(name="sncMode", visibility=["read", "create", "update", "delete", "query"]) + """SNC activation flag (Boolean) to access the SAP server where the table is located. Type: + boolean (or Expression with resultType boolean).""" + snc_my_name: Optional[Any] = rest_field( + name="sncMyName", visibility=["read", "create", "update", "delete", "query"] + ) + """Initiator's SNC name to access the SAP server where the table is located. Type: string (or + Expression with resultType string).""" + snc_partner_name: Optional[Any] = rest_field( + name="sncPartnerName", visibility=["read", "create", "update", "delete", "query"] + ) + """Communication partner's SNC name to access the SAP server where the table is located. Type: + string (or Expression with resultType string).""" + snc_library_path: Optional[Any] = rest_field( + name="sncLibraryPath", visibility=["read", "create", "update", "delete", "query"] + ) + """External security product's library to access the SAP server where the table is located. Type: + string (or Expression with resultType string).""" + snc_qop: Optional[Any] = rest_field(name="sncQop", visibility=["read", "create", "update", "delete", "query"]) + """SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expression + with resultType string).""" + x509_certificate_path: Optional[Any] = rest_field( + name="x509CertificatePath", visibility=["read", "create", "update", "delete", "query"] + ) + """SNC X509 certificate file path. Type: string (or Expression with resultType string).""" + logon_group: Optional[Any] = rest_field( + name="logonGroup", visibility=["read", "create", "update", "delete", "query"] + ) + """The Logon Group for the SAP System. Type: string (or Expression with resultType string).""" + subscriber_name: Optional[Any] = rest_field( + name="subscriberName", visibility=["read", "create", "update", "delete", "query"] + ) + """The subscriber name. Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + server: Optional[Any] = None, + system_number: Optional[Any] = None, + client_id: Optional[Any] = None, + language: Optional[Any] = None, + system_id: Optional[Any] = None, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + message_server: Optional[Any] = None, + message_server_service: Optional[Any] = None, + snc_mode: Optional[Any] = None, + snc_my_name: Optional[Any] = None, + snc_partner_name: Optional[Any] = None, + snc_library_path: Optional[Any] = None, + snc_qop: Optional[Any] = None, + x509_certificate_path: Optional[Any] = None, + logon_group: Optional[Any] = None, + subscriber_name: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SapOdpResourceDataset(Dataset, discriminator="SapOdpResource"): + """SAP ODP Resource properties. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: SAP ODP Resource properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SapOdpResourceDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "SapOdpResource". + :vartype type: str + """ + + type_properties: "_models.SapOdpResourceDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """SAP ODP Resource properties. Required.""" + type: Literal["SapOdpResource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SapOdpResource\".""" + + __flattened_items = ["context", "object_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.SapOdpResourceDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SapOdpResourceDatasetTypeProperties(_Model): + """SAP ODP Resource properties. + + :ivar context: The context of the SAP ODP Object. Type: string (or Expression with resultType + string). Required. + :vartype context: any + :ivar object_name: The name of the SAP ODP Object. Type: string (or Expression with resultType + string). Required. + :vartype object_name: any + """ + + context: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The context of the SAP ODP Object. Type: string (or Expression with resultType string). + Required.""" + object_name: Any = rest_field(name="objectName", visibility=["read", "create", "update", "delete", "query"]) + """The name of the SAP ODP Object. Type: string (or Expression with resultType string). Required.""" + + @overload + def __init__( + self, + *, + context: Any, + object_name: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SapOdpSource(TabularSource, discriminator="SapOdpSource"): + """A copy activity source for SAP ODP source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar extraction_mode: The extraction mode. Allowed value include: Full, Delta and Recovery. + The default value is Full. Type: string (or Expression with resultType string). + :vartype extraction_mode: any + :ivar subscriber_process: The subscriber process to manage the delta process. Type: string (or + Expression with resultType string). + :vartype subscriber_process: any + :ivar selection: Specifies the selection conditions from source data. Type: array of + objects(selection) (or Expression with resultType array of objects). + :vartype selection: any + :ivar projection: Specifies the columns to be selected from source data. Type: array of + objects(projection) (or Expression with resultType array of objects). + :vartype projection: any + :ivar type: Copy source type. Required. Default value is "SapOdpSource". + :vartype type: str + """ + + extraction_mode: Optional[Any] = rest_field( + name="extractionMode", visibility=["read", "create", "update", "delete", "query"] + ) + """The extraction mode. Allowed value include: Full, Delta and Recovery. The default value is + Full. Type: string (or Expression with resultType string).""" + subscriber_process: Optional[Any] = rest_field( + name="subscriberProcess", visibility=["read", "create", "update", "delete", "query"] + ) + """The subscriber process to manage the delta process. Type: string (or Expression with resultType + string).""" + selection: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specifies the selection conditions from source data. Type: array of objects(selection) (or + Expression with resultType array of objects).""" + projection: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specifies the columns to be selected from source data. Type: array of objects(projection) (or + Expression with resultType array of objects).""" + type: Literal["SapOdpSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SapOdpSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + extraction_mode: Optional[Any] = None, + subscriber_process: Optional[Any] = None, + selection: Optional[Any] = None, + projection: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SapOdpSource" # type: ignore + + +class SapOpenHubLinkedService(LinkedService, discriminator="SapOpenHub"): + """SAP Business Warehouse Open Hub Destination Linked Service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Properties specific to SAP Business Warehouse Open Hub Destination + linked service type. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SapOpenHubLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "SapOpenHub". + :vartype type: str + """ + + type_properties: "_models.SapOpenHubLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to SAP Business Warehouse Open Hub Destination linked service type. + Required.""" + type: Literal["SapOpenHub"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"SapOpenHub\".""" + + __flattened_items = [ + "server", + "system_number", + "client_id", + "language", + "system_id", + "user_name", + "password", + "message_server", + "message_server_service", + "logon_group", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.SapOpenHubLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SapOpenHubLinkedServiceTypeProperties(_Model): + """Properties specific to SAP Business Warehouse Open Hub Destination linked service type. + + :ivar server: Host name of the SAP BW instance where the open hub destination is located. Type: + string (or Expression with resultType string). + :vartype server: any + :ivar system_number: System number of the BW system where the open hub destination is located. + (Usually a two-digit decimal number represented as a string.) Type: string (or Expression with + resultType string). + :vartype system_number: any + :ivar client_id: Client ID of the client on the BW system where the open hub destination is + located. (Usually a three-digit decimal number represented as a string) Type: string (or + Expression with resultType string). + :vartype client_id: any + :ivar language: Language of the BW system where the open hub destination is located. The + default value is EN. Type: string (or Expression with resultType string). + :vartype language: any + :ivar system_id: SystemID of the SAP system where the table is located. Type: string (or + Expression with resultType string). + :vartype system_id: any + :ivar user_name: Username to access the SAP BW server where the open hub destination is + located. Type: string (or Expression with resultType string). + :vartype user_name: any + :ivar password: Password to access the SAP BW server where the open hub destination is located. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar message_server: The hostname of the SAP Message Server. Type: string (or Expression with + resultType string). + :vartype message_server: any + :ivar message_server_service: The service name or port number of the Message Server. Type: + string (or Expression with resultType string). + :vartype message_server_service: any + :ivar logon_group: The Logon Group for the SAP System. Type: string (or Expression with + resultType string). + :vartype logon_group: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + server: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Host name of the SAP BW instance where the open hub destination is located. Type: string (or + Expression with resultType string).""" + system_number: Optional[Any] = rest_field( + name="systemNumber", visibility=["read", "create", "update", "delete", "query"] + ) + """System number of the BW system where the open hub destination is located. (Usually a two-digit + decimal number represented as a string.) Type: string (or Expression with resultType string).""" + client_id: Optional[Any] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """Client ID of the client on the BW system where the open hub destination is located. (Usually a + three-digit decimal number represented as a string) Type: string (or Expression with resultType + string).""" + language: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Language of the BW system where the open hub destination is located. The default value is EN. + Type: string (or Expression with resultType string).""" + system_id: Optional[Any] = rest_field(name="systemId", visibility=["read", "create", "update", "delete", "query"]) + """SystemID of the SAP system where the table is located. Type: string (or Expression with + resultType string).""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """Username to access the SAP BW server where the open hub destination is located. Type: string + (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password to access the SAP BW server where the open hub destination is located.""" + message_server: Optional[Any] = rest_field( + name="messageServer", visibility=["read", "create", "update", "delete", "query"] + ) + """The hostname of the SAP Message Server. Type: string (or Expression with resultType string).""" + message_server_service: Optional[Any] = rest_field( + name="messageServerService", visibility=["read", "create", "update", "delete", "query"] + ) + """The service name or port number of the Message Server. Type: string (or Expression with + resultType string).""" + logon_group: Optional[Any] = rest_field( + name="logonGroup", visibility=["read", "create", "update", "delete", "query"] + ) + """The Logon Group for the SAP System. Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + server: Optional[Any] = None, + system_number: Optional[Any] = None, + client_id: Optional[Any] = None, + language: Optional[Any] = None, + system_id: Optional[Any] = None, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + message_server: Optional[Any] = None, + message_server_service: Optional[Any] = None, + logon_group: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SapOpenHubSource(TabularSource, discriminator="SapOpenHubSource"): + """A copy activity source for SAP Business Warehouse Open Hub Destination source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar exclude_last_request: Whether to exclude the records of the last request. The default + value is true. Type: boolean (or Expression with resultType boolean). + :vartype exclude_last_request: any + :ivar base_request_id: The ID of request for delta loading. Once it is set, only data with + requestId larger than the value of this property will be retrieved. The default value is 0. + Type: integer (or Expression with resultType integer ). + :vartype base_request_id: any + :ivar custom_rfc_read_table_function_module: Specifies the custom RFC function module that will + be used to read data from SAP Table. Type: string (or Expression with resultType string). + :vartype custom_rfc_read_table_function_module: any + :ivar sap_data_column_delimiter: The single character that will be used as delimiter passed to + SAP RFC as well as splitting the output data retrieved. Type: string (or Expression with + resultType string). + :vartype sap_data_column_delimiter: any + :ivar type: Copy source type. Required. Default value is "SapOpenHubSource". + :vartype type: str + """ + + exclude_last_request: Optional[Any] = rest_field( + name="excludeLastRequest", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to exclude the records of the last request. The default value is true. Type: boolean + (or Expression with resultType boolean).""" + base_request_id: Optional[Any] = rest_field( + name="baseRequestId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of request for delta loading. Once it is set, only data with requestId larger than the + value of this property will be retrieved. The default value is 0. Type: integer (or Expression + with resultType integer ).""" + custom_rfc_read_table_function_module: Optional[Any] = rest_field( + name="customRfcReadTableFunctionModule", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the custom RFC function module that will be used to read data from SAP Table. Type: + string (or Expression with resultType string).""" + sap_data_column_delimiter: Optional[Any] = rest_field( + name="sapDataColumnDelimiter", visibility=["read", "create", "update", "delete", "query"] + ) + """The single character that will be used as delimiter passed to SAP RFC as well as splitting the + output data retrieved. Type: string (or Expression with resultType string).""" + type: Literal["SapOpenHubSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SapOpenHubSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + exclude_last_request: Optional[Any] = None, + base_request_id: Optional[Any] = None, + custom_rfc_read_table_function_module: Optional[Any] = None, + sap_data_column_delimiter: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SapOpenHubSource" # type: ignore + + +class SapOpenHubTableDataset(Dataset, discriminator="SapOpenHubTable"): + """Sap Business Warehouse Open Hub Destination Table properties. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Sap Business Warehouse Open Hub Destination Table properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SapOpenHubTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "SapOpenHubTable". + :vartype type: str + """ + + type_properties: "_models.SapOpenHubTableDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Sap Business Warehouse Open Hub Destination Table properties. Required.""" + type: Literal["SapOpenHubTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SapOpenHubTable\".""" + + __flattened_items = ["open_hub_destination_name", "exclude_last_request", "base_request_id"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.SapOpenHubTableDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SapOpenHubTableDatasetTypeProperties(_Model): + """Sap Business Warehouse Open Hub Destination Table properties. + + :ivar open_hub_destination_name: The name of the Open Hub Destination with destination type as + Database Table. Type: string (or Expression with resultType string). Required. + :vartype open_hub_destination_name: any + :ivar exclude_last_request: Whether to exclude the records of the last request. The default + value is true. Type: boolean (or Expression with resultType boolean). + :vartype exclude_last_request: any + :ivar base_request_id: The ID of request for delta loading. Once it is set, only data with + requestId larger than the value of this property will be retrieved. The default value is 0. + Type: integer (or Expression with resultType integer ). + :vartype base_request_id: any + """ + + open_hub_destination_name: Any = rest_field( + name="openHubDestinationName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the Open Hub Destination with destination type as Database Table. Type: string (or + Expression with resultType string). Required.""" + exclude_last_request: Optional[Any] = rest_field( + name="excludeLastRequest", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to exclude the records of the last request. The default value is true. Type: boolean + (or Expression with resultType boolean).""" + base_request_id: Optional[Any] = rest_field( + name="baseRequestId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of request for delta loading. Once it is set, only data with requestId larger than the + value of this property will be retrieved. The default value is 0. Type: integer (or Expression + with resultType integer ).""" + + @overload + def __init__( + self, + *, + open_hub_destination_name: Any, + exclude_last_request: Optional[Any] = None, + base_request_id: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SapTableLinkedService(LinkedService, discriminator="SapTable"): + """SAP Table Linked Service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Properties specific to this linked service type. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SapTableLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "SapTable". + :vartype type: str + """ + + type_properties: "_models.SapTableLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this linked service type. Required.""" + type: Literal["SapTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"SapTable\".""" + + __flattened_items = [ + "server", + "system_number", + "client_id", + "language", + "system_id", + "user_name", + "password", + "message_server", + "message_server_service", + "snc_mode", + "snc_my_name", + "snc_partner_name", + "snc_library_path", + "snc_qop", + "logon_group", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.SapTableLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SapTableLinkedServiceTypeProperties(_Model): + """Properties specific to this linked service type. + + :ivar server: Host name of the SAP instance where the table is located. Type: string (or + Expression with resultType string). + :vartype server: any + :ivar system_number: System number of the SAP system where the table is located. (Usually a + two-digit decimal number represented as a string.) Type: string (or Expression with resultType + string). + :vartype system_number: any + :ivar client_id: Client ID of the client on the SAP system where the table is located. (Usually + a three-digit decimal number represented as a string) Type: string (or Expression with + resultType string). + :vartype client_id: any + :ivar language: Language of the SAP system where the table is located. The default value is EN. + Type: string (or Expression with resultType string). + :vartype language: any + :ivar system_id: SystemID of the SAP system where the table is located. Type: string (or + Expression with resultType string). + :vartype system_id: any + :ivar user_name: Username to access the SAP server where the table is located. Type: string (or + Expression with resultType string). + :vartype user_name: any + :ivar password: Password to access the SAP server where the table is located. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar message_server: The hostname of the SAP Message Server. Type: string (or Expression with + resultType string). + :vartype message_server: any + :ivar message_server_service: The service name or port number of the Message Server. Type: + string (or Expression with resultType string). + :vartype message_server_service: any + :ivar snc_mode: SNC activation flag (Boolean) to access the SAP server where the table is + located. Type: boolean (or Expression with resultType boolean). + :vartype snc_mode: any + :ivar snc_my_name: Initiator's SNC name to access the SAP server where the table is located. + Type: string (or Expression with resultType string). + :vartype snc_my_name: any + :ivar snc_partner_name: Communication partner's SNC name to access the SAP server where the + table is located. Type: string (or Expression with resultType string). + :vartype snc_partner_name: any + :ivar snc_library_path: External security product's library to access the SAP server where the + table is located. Type: string (or Expression with resultType string). + :vartype snc_library_path: any + :ivar snc_qop: SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string + (or Expression with resultType string). + :vartype snc_qop: any + :ivar logon_group: The Logon Group for the SAP System. Type: string (or Expression with + resultType string). + :vartype logon_group: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + server: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Host name of the SAP instance where the table is located. Type: string (or Expression with + resultType string).""" + system_number: Optional[Any] = rest_field( + name="systemNumber", visibility=["read", "create", "update", "delete", "query"] + ) + """System number of the SAP system where the table is located. (Usually a two-digit decimal number + represented as a string.) Type: string (or Expression with resultType string).""" + client_id: Optional[Any] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """Client ID of the client on the SAP system where the table is located. (Usually a three-digit + decimal number represented as a string) Type: string (or Expression with resultType string).""" + language: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Language of the SAP system where the table is located. The default value is EN. Type: string + (or Expression with resultType string).""" + system_id: Optional[Any] = rest_field(name="systemId", visibility=["read", "create", "update", "delete", "query"]) + """SystemID of the SAP system where the table is located. Type: string (or Expression with + resultType string).""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """Username to access the SAP server where the table is located. Type: string (or Expression with + resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password to access the SAP server where the table is located.""" + message_server: Optional[Any] = rest_field( + name="messageServer", visibility=["read", "create", "update", "delete", "query"] + ) + """The hostname of the SAP Message Server. Type: string (or Expression with resultType string).""" + message_server_service: Optional[Any] = rest_field( + name="messageServerService", visibility=["read", "create", "update", "delete", "query"] + ) + """The service name or port number of the Message Server. Type: string (or Expression with + resultType string).""" + snc_mode: Optional[Any] = rest_field(name="sncMode", visibility=["read", "create", "update", "delete", "query"]) + """SNC activation flag (Boolean) to access the SAP server where the table is located. Type: + boolean (or Expression with resultType boolean).""" + snc_my_name: Optional[Any] = rest_field( + name="sncMyName", visibility=["read", "create", "update", "delete", "query"] + ) + """Initiator's SNC name to access the SAP server where the table is located. Type: string (or + Expression with resultType string).""" + snc_partner_name: Optional[Any] = rest_field( + name="sncPartnerName", visibility=["read", "create", "update", "delete", "query"] + ) + """Communication partner's SNC name to access the SAP server where the table is located. Type: + string (or Expression with resultType string).""" + snc_library_path: Optional[Any] = rest_field( + name="sncLibraryPath", visibility=["read", "create", "update", "delete", "query"] + ) + """External security product's library to access the SAP server where the table is located. Type: + string (or Expression with resultType string).""" + snc_qop: Optional[Any] = rest_field(name="sncQop", visibility=["read", "create", "update", "delete", "query"]) + """SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expression + with resultType string).""" + logon_group: Optional[Any] = rest_field( + name="logonGroup", visibility=["read", "create", "update", "delete", "query"] + ) + """The Logon Group for the SAP System. Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + server: Optional[Any] = None, + system_number: Optional[Any] = None, + client_id: Optional[Any] = None, + language: Optional[Any] = None, + system_id: Optional[Any] = None, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + message_server: Optional[Any] = None, + message_server_service: Optional[Any] = None, + snc_mode: Optional[Any] = None, + snc_my_name: Optional[Any] = None, + snc_partner_name: Optional[Any] = None, + snc_library_path: Optional[Any] = None, + snc_qop: Optional[Any] = None, + logon_group: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SapTablePartitionSettings(_Model): + """The settings that will be leveraged for SAP table source partitioning. + + :ivar partition_column_name: The name of the column that will be used for proceeding range + partitioning. Type: string (or Expression with resultType string). + :vartype partition_column_name: any + :ivar partition_upper_bound: The maximum value of column specified in partitionColumnName that + will be used for proceeding range partitioning. Type: string (or Expression with resultType + string). + :vartype partition_upper_bound: any + :ivar partition_lower_bound: The minimum value of column specified in partitionColumnName that + will be used for proceeding range partitioning. Type: string (or Expression with resultType + string). + :vartype partition_lower_bound: any + :ivar max_partitions_number: The maximum value of partitions the table will be split into. + Type: integer (or Expression with resultType string). + :vartype max_partitions_number: any + """ + + partition_column_name: Optional[Any] = rest_field( + name="partitionColumnName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the column that will be used for proceeding range partitioning. Type: string (or + Expression with resultType string).""" + partition_upper_bound: Optional[Any] = rest_field( + name="partitionUpperBound", visibility=["read", "create", "update", "delete", "query"] + ) + """The maximum value of column specified in partitionColumnName that will be used for proceeding + range partitioning. Type: string (or Expression with resultType string).""" + partition_lower_bound: Optional[Any] = rest_field( + name="partitionLowerBound", visibility=["read", "create", "update", "delete", "query"] + ) + """The minimum value of column specified in partitionColumnName that will be used for proceeding + range partitioning. Type: string (or Expression with resultType string).""" + max_partitions_number: Optional[Any] = rest_field( + name="maxPartitionsNumber", visibility=["read", "create", "update", "delete", "query"] + ) + """The maximum value of partitions the table will be split into. Type: integer (or Expression with + resultType string).""" + + @overload + def __init__( + self, + *, + partition_column_name: Optional[Any] = None, + partition_upper_bound: Optional[Any] = None, + partition_lower_bound: Optional[Any] = None, + max_partitions_number: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SapTableResourceDataset(Dataset, discriminator="SapTableResource"): + """SAP Table Resource properties. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: SAP Table Resource properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SapTableResourceDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "SapTableResource". + :vartype type: str + """ + + type_properties: "_models.SapTableResourceDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """SAP Table Resource properties. Required.""" + type: Literal["SapTableResource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SapTableResource\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.SapTableResourceDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SapTableResourceDatasetTypeProperties(_Model): + """SAP Table Resource properties. + + :ivar table_name: The name of the SAP Table. Type: string (or Expression with resultType + string). Required. + :vartype table_name: any + """ + + table_name: Any = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """The name of the SAP Table. Type: string (or Expression with resultType string). Required.""" + + @overload + def __init__( + self, + *, + table_name: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SapTableSource(TabularSource, discriminator="SapTableSource"): + """A copy activity source for SAP Table source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar row_count: The number of rows to be retrieved. Type: integer(or Expression with + resultType integer). + :vartype row_count: any + :ivar row_skips: The number of rows that will be skipped. Type: integer (or Expression with + resultType integer). + :vartype row_skips: any + :ivar rfc_table_fields: The fields of the SAP table that will be retrieved. For example, + column0, column1. Type: string (or Expression with resultType string). + :vartype rfc_table_fields: any + :ivar rfc_table_options: The options for the filtering of the SAP Table. For example, COLUMN0 + EQ SOME VALUE. Type: string (or Expression with resultType string). + :vartype rfc_table_options: any + :ivar batch_size: Specifies the maximum number of rows that will be retrieved at a time when + retrieving data from SAP Table. Type: integer (or Expression with resultType integer). + :vartype batch_size: any + :ivar custom_rfc_read_table_function_module: Specifies the custom RFC function module that will + be used to read data from SAP Table. Type: string (or Expression with resultType string). + :vartype custom_rfc_read_table_function_module: any + :ivar sap_data_column_delimiter: The single character that will be used as delimiter passed to + SAP RFC as well as splitting the output data retrieved. Type: string (or Expression with + resultType string). + :vartype sap_data_column_delimiter: any + :ivar partition_option: The partition mechanism that will be used for SAP table read in + parallel. Possible values include: "None", "PartitionOnInt", "PartitionOnCalendarYear", + "PartitionOnCalendarMonth", "PartitionOnCalendarDate", "PartitionOnTime". + :vartype partition_option: any + :ivar partition_settings: The settings that will be leveraged for SAP table source + partitioning. + :vartype partition_settings: ~azure.mgmt.datafactory.models.SapTablePartitionSettings + :ivar type: Copy source type. Required. Default value is "SapTableSource". + :vartype type: str + """ + + row_count: Optional[Any] = rest_field(name="rowCount", visibility=["read", "create", "update", "delete", "query"]) + """The number of rows to be retrieved. Type: integer(or Expression with resultType integer).""" + row_skips: Optional[Any] = rest_field(name="rowSkips", visibility=["read", "create", "update", "delete", "query"]) + """The number of rows that will be skipped. Type: integer (or Expression with resultType integer).""" + rfc_table_fields: Optional[Any] = rest_field( + name="rfcTableFields", visibility=["read", "create", "update", "delete", "query"] + ) + """The fields of the SAP table that will be retrieved. For example, column0, column1. Type: string + (or Expression with resultType string).""" + rfc_table_options: Optional[Any] = rest_field( + name="rfcTableOptions", visibility=["read", "create", "update", "delete", "query"] + ) + """The options for the filtering of the SAP Table. For example, COLUMN0 EQ SOME VALUE. Type: + string (or Expression with resultType string).""" + batch_size: Optional[Any] = rest_field(name="batchSize", visibility=["read", "create", "update", "delete", "query"]) + """Specifies the maximum number of rows that will be retrieved at a time when retrieving data from + SAP Table. Type: integer (or Expression with resultType integer).""" + custom_rfc_read_table_function_module: Optional[Any] = rest_field( + name="customRfcReadTableFunctionModule", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the custom RFC function module that will be used to read data from SAP Table. Type: + string (or Expression with resultType string).""" + sap_data_column_delimiter: Optional[Any] = rest_field( + name="sapDataColumnDelimiter", visibility=["read", "create", "update", "delete", "query"] + ) + """The single character that will be used as delimiter passed to SAP RFC as well as splitting the + output data retrieved. Type: string (or Expression with resultType string).""" + partition_option: Optional[Any] = rest_field( + name="partitionOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The partition mechanism that will be used for SAP table read in parallel. Possible values + include: \"None\", \"PartitionOnInt\", \"PartitionOnCalendarYear\", + \"PartitionOnCalendarMonth\", \"PartitionOnCalendarDate\", \"PartitionOnTime\".""" + partition_settings: Optional["_models.SapTablePartitionSettings"] = rest_field( + name="partitionSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The settings that will be leveraged for SAP table source partitioning.""" + type: Literal["SapTableSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SapTableSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + row_count: Optional[Any] = None, + row_skips: Optional[Any] = None, + rfc_table_fields: Optional[Any] = None, + rfc_table_options: Optional[Any] = None, + batch_size: Optional[Any] = None, + custom_rfc_read_table_function_module: Optional[Any] = None, + sap_data_column_delimiter: Optional[Any] = None, + partition_option: Optional[Any] = None, + partition_settings: Optional["_models.SapTablePartitionSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SapTableSource" # type: ignore + + +class ScheduleTrigger(MultiplePipelineTrigger, discriminator="ScheduleTrigger"): + """Trigger that creates pipeline runs periodically, on schedule. + + :ivar description: Trigger description. + :vartype description: str + :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are + called on the Trigger. Known values are: "Started", "Stopped", and "Disabled". + :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :ivar annotations: List of tags that can be used for describing the trigger. + :vartype annotations: list[any] + :ivar pipelines: Pipelines that need to be started. + :vartype pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] + :ivar type_properties: Schedule Trigger properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.ScheduleTriggerTypeProperties + :ivar type: Trigger type. Required. Default value is "ScheduleTrigger". + :vartype type: str + """ + + type_properties: "_models.ScheduleTriggerTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Schedule Trigger properties. Required.""" + type: Literal["ScheduleTrigger"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Trigger type. Required. Default value is \"ScheduleTrigger\".""" + + __flattened_items = ["recurrence"] + + @overload + def __init__( + self, + *, + type_properties: "_models.ScheduleTriggerTypeProperties", + description: Optional[str] = None, + annotations: Optional[list[Any]] = None, + pipelines: Optional[list["_models.TriggerPipelineReference"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ScheduleTriggerRecurrence(_Model): + """The workflow trigger recurrence. + + :ivar frequency: The frequency. Known values are: "NotSpecified", "Minute", "Hour", "Day", + "Week", "Month", and "Year". + :vartype frequency: str or ~azure.mgmt.datafactory.models.RecurrenceFrequency + :ivar interval: The interval. + :vartype interval: int + :ivar start_time: The start time. + :vartype start_time: ~datetime.datetime + :ivar end_time: The end time. + :vartype end_time: ~datetime.datetime + :ivar time_zone: The time zone. + :vartype time_zone: str + :ivar schedule: The recurrence schedule. + :vartype schedule: ~azure.mgmt.datafactory.models.RecurrenceSchedule + """ + + frequency: Optional[Union[str, "_models.RecurrenceFrequency"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The frequency. Known values are: \"NotSpecified\", \"Minute\", \"Hour\", \"Day\", \"Week\", + \"Month\", and \"Year\".""" + interval: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The interval.""" + start_time: Optional[datetime.datetime] = rest_field( + name="startTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The start time.""" + end_time: Optional[datetime.datetime] = rest_field( + name="endTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The end time.""" + time_zone: Optional[str] = rest_field(name="timeZone", visibility=["read", "create", "update", "delete", "query"]) + """The time zone.""" + schedule: Optional["_models.RecurrenceSchedule"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The recurrence schedule.""" + + @overload + def __init__( + self, + *, + frequency: Optional[Union[str, "_models.RecurrenceFrequency"]] = None, + interval: Optional[int] = None, + start_time: Optional[datetime.datetime] = None, + end_time: Optional[datetime.datetime] = None, + time_zone: Optional[str] = None, + schedule: Optional["_models.RecurrenceSchedule"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ScheduleTriggerTypeProperties(_Model): + """Schedule Trigger properties. + + :ivar recurrence: Recurrence schedule configuration. Required. + :vartype recurrence: ~azure.mgmt.datafactory.models.ScheduleTriggerRecurrence + """ + + recurrence: "_models.ScheduleTriggerRecurrence" = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Recurrence schedule configuration. Required.""" + + @overload + def __init__( + self, + *, + recurrence: "_models.ScheduleTriggerRecurrence", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ScriptAction(_Model): + """Custom script action to run on HDI ondemand cluster once it's up. + + :ivar name: The user provided name of the script action. Required. + :vartype name: str + :ivar uri: The URI for the script action. Required. + :vartype uri: str + :ivar roles: The node types on which the script action should be executed. Required. + :vartype roles: any + :ivar parameters: The parameters for the script action. + :vartype parameters: str + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The user provided name of the script action. Required.""" + uri: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The URI for the script action. Required.""" + roles: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The node types on which the script action should be executed. Required.""" + parameters: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The parameters for the script action.""" + + @overload + def __init__( + self, + *, + name: str, + uri: str, + roles: Any, + parameters: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ScriptActivity(ExecutionActivity, discriminator="Script"): + """Script activity type. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Script activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.ScriptActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "Script". + :vartype type: str + """ + + type_properties: "_models.ScriptActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Script activity properties. Required.""" + type: Literal["Script"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"Script\".""" + + __flattened_items = [ + "script_block_execution_timeout", + "scripts", + "log_settings", + "return_multistatement_result", + "treat_decimal_as_string", + ] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.ScriptActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ScriptActivityParameter(_Model): + """Parameters of a script block. + + :ivar name: The name of the parameter. Type: string (or Expression with resultType string). + :vartype name: any + :ivar type: The type of the parameter. Known values are: "Boolean", "DateTime", + "DateTimeOffset", "Decimal", "Double", "Guid", "Int16", "Int32", "Int64", "Single", "String", + and "Timespan". + :vartype type: str or ~azure.mgmt.datafactory.models.ScriptActivityParameterType + :ivar value: The value of the parameter. Type: string (or Expression with resultType string). + :vartype value: any + :ivar direction: The direction of the parameter. Known values are: "Input", "Output", and + "InputOutput". + :vartype direction: str or ~azure.mgmt.datafactory.models.ScriptActivityParameterDirection + :ivar size: The size of the output direction parameter. + :vartype size: int + """ + + name: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the parameter. Type: string (or Expression with resultType string).""" + type: Optional[Union[str, "_models.ScriptActivityParameterType"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The type of the parameter. Known values are: \"Boolean\", \"DateTime\", \"DateTimeOffset\", + \"Decimal\", \"Double\", \"Guid\", \"Int16\", \"Int32\", \"Int64\", \"Single\", \"String\", and + \"Timespan\".""" + value: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The value of the parameter. Type: string (or Expression with resultType string).""" + direction: Optional[Union[str, "_models.ScriptActivityParameterDirection"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The direction of the parameter. Known values are: \"Input\", \"Output\", and \"InputOutput\".""" + size: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The size of the output direction parameter.""" + + @overload + def __init__( + self, + *, + name: Optional[Any] = None, + type: Optional[Union[str, "_models.ScriptActivityParameterType"]] = None, + value: Optional[Any] = None, + direction: Optional[Union[str, "_models.ScriptActivityParameterDirection"]] = None, + size: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ScriptActivityScriptBlock(_Model): + """Script block of scripts. + + :ivar text: The query text. Type: string (or Expression with resultType string). Required. + :vartype text: any + :ivar type: The type of the query. Please refer to the ScriptType for valid options. Type: + string (or Expression with resultType string). Required. + :vartype type: any + :ivar parameters: Array of script parameters. Type: array. + :vartype parameters: list[~azure.mgmt.datafactory.models.ScriptActivityParameter] + """ + + text: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The query text. Type: string (or Expression with resultType string). Required.""" + type: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The type of the query. Please refer to the ScriptType for valid options. Type: string (or + Expression with resultType string). Required.""" + parameters: Optional[list["_models.ScriptActivityParameter"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Array of script parameters. Type: array.""" + + @overload + def __init__( + self, + *, + text: Any, + type: Any, + parameters: Optional[list["_models.ScriptActivityParameter"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ScriptActivityTypeProperties(_Model): + """Script activity properties. + + :ivar script_block_execution_timeout: ScriptBlock execution timeout. Type: string (or + Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype script_block_execution_timeout: any + :ivar scripts: Array of script blocks. Type: array. + :vartype scripts: list[~azure.mgmt.datafactory.models.ScriptActivityScriptBlock] + :ivar log_settings: Log settings of script activity. + :vartype log_settings: ~azure.mgmt.datafactory.models.ScriptActivityTypePropertiesLogSettings + :ivar return_multistatement_result: Enable to retrieve result sets from multiple SQL statements + and the number of rows affected by the DML statement. Supported connector: SnowflakeV2. Type: + boolean (or Expression with resultType boolean). + :vartype return_multistatement_result: any + :ivar treat_decimal_as_string: Indicates whether to treat decimal values as strings to avoid + value overflow issue. This option is enabled for SnowflakeV2 connector only. Type: boolean (or + Expression with resultType boolean). + :vartype treat_decimal_as_string: any + """ + + script_block_execution_timeout: Optional[Any] = rest_field( + name="scriptBlockExecutionTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """ScriptBlock execution timeout. Type: string (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + scripts: Optional[list["_models.ScriptActivityScriptBlock"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Array of script blocks. Type: array.""" + log_settings: Optional["_models.ScriptActivityTypePropertiesLogSettings"] = rest_field( + name="logSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Log settings of script activity.""" + return_multistatement_result: Optional[Any] = rest_field( + name="returnMultistatementResult", visibility=["read", "create", "update", "delete", "query"] + ) + """Enable to retrieve result sets from multiple SQL statements and the number of rows affected by + the DML statement. Supported connector: SnowflakeV2. Type: boolean (or Expression with + resultType boolean).""" + treat_decimal_as_string: Optional[Any] = rest_field( + name="treatDecimalAsString", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether to treat decimal values as strings to avoid value overflow issue. This option + is enabled for SnowflakeV2 connector only. Type: boolean (or Expression with resultType + boolean).""" + + @overload + def __init__( + self, + *, + script_block_execution_timeout: Optional[Any] = None, + scripts: Optional[list["_models.ScriptActivityScriptBlock"]] = None, + log_settings: Optional["_models.ScriptActivityTypePropertiesLogSettings"] = None, + return_multistatement_result: Optional[Any] = None, + treat_decimal_as_string: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ScriptActivityTypePropertiesLogSettings(_Model): + """Log settings of script activity. + + :ivar log_destination: The destination of logs. Type: string. Required. Known values are: + "ActivityOutput" and "ExternalStore". + :vartype log_destination: str or ~azure.mgmt.datafactory.models.ScriptActivityLogDestination + :ivar log_location_settings: Log location settings customer needs to provide when enabling log. + :vartype log_location_settings: ~azure.mgmt.datafactory.models.LogLocationSettings + """ + + log_destination: Union[str, "_models.ScriptActivityLogDestination"] = rest_field( + name="logDestination", visibility=["read", "create", "update", "delete", "query"] + ) + """The destination of logs. Type: string. Required. Known values are: \"ActivityOutput\" and + \"ExternalStore\".""" + log_location_settings: Optional["_models.LogLocationSettings"] = rest_field( + name="logLocationSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Log location settings customer needs to provide when enabling log.""" + + @overload + def __init__( + self, + *, + log_destination: Union[str, "_models.ScriptActivityLogDestination"], + log_location_settings: Optional["_models.LogLocationSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SecureInputOutputPolicy(_Model): + """Execution policy for an activity that supports secure input and output. + + :ivar secure_input: When set to true, Input from activity is considered as secure and will not + be logged to monitoring. + :vartype secure_input: bool + :ivar secure_output: When set to true, Output from activity is considered as secure and will + not be logged to monitoring. + :vartype secure_output: bool + """ + + secure_input: Optional[bool] = rest_field( + name="secureInput", visibility=["read", "create", "update", "delete", "query"] + ) + """When set to true, Input from activity is considered as secure and will not be logged to + monitoring.""" + secure_output: Optional[bool] = rest_field( + name="secureOutput", visibility=["read", "create", "update", "delete", "query"] + ) + """When set to true, Output from activity is considered as secure and will not be logged to + monitoring.""" + + @overload + def __init__( + self, + *, + secure_input: Optional[bool] = None, + secure_output: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SecureString(SecretBase, discriminator="SecureString"): + """Azure Data Factory secure string definition. The string value will be masked with asterisks '*' + during Get or List API calls. + + :ivar value: Value of secure string. Required. + :vartype value: str + :ivar type: Type of the secret. Required. Default value is "SecureString". + :vartype type: str + """ + + value: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Value of secure string. Required.""" + type: Literal["SecureString"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of the secret. Required. Default value is \"SecureString\".""" + + @overload + def __init__( + self, + *, + value: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SecureString" # type: ignore + + +class SelfDependencyTumblingWindowTriggerReference( + DependencyReference, discriminator="SelfDependencyTumblingWindowTriggerReference" +): # pylint: disable=name-too-long + """Self referenced tumbling window trigger dependency. + + :ivar offset: Timespan applied to the start time of a tumbling window when evaluating + dependency. Required. + :vartype offset: str + :ivar size: The size of the window when evaluating the dependency. If undefined the frequency + of the tumbling window will be used. + :vartype size: str + :ivar type: The type of dependency reference. Required. Default value is + "SelfDependencyTumblingWindowTriggerReference". + :vartype type: str + """ + + offset: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Timespan applied to the start time of a tumbling window when evaluating dependency. Required.""" + size: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The size of the window when evaluating the dependency. If undefined the frequency of the + tumbling window will be used.""" + type: Literal["SelfDependencyTumblingWindowTriggerReference"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The type of dependency reference. Required. Default value is + \"SelfDependencyTumblingWindowTriggerReference\".""" + + @overload + def __init__( + self, + *, + offset: str, + size: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SelfDependencyTumblingWindowTriggerReference" # type: ignore + + +class SelfHostedIntegrationRuntime(IntegrationRuntime, discriminator="SelfHosted"): + """Self-hosted integration runtime. + + :ivar description: Integration runtime description. + :vartype description: str + :ivar type_properties: When this property is not null, means this is a linked integration + runtime. The property is used to access original integration runtime. + :vartype type_properties: + ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeTypeProperties + :ivar type: Type of integration runtime. Required. SelfHosted. + :vartype type: str or ~azure.mgmt.datafactory.models.SELF_HOSTED + """ + + type_properties: Optional["_models.SelfHostedIntegrationRuntimeTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """When this property is not null, means this is a linked integration runtime. The property is + used to access original integration runtime.""" + type: Literal[IntegrationRuntimeType.SELF_HOSTED] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of integration runtime. Required. SelfHosted.""" + + __flattened_items = ["linked_info", "self_contained_interactive_authoring_enabled"] + + @overload + def __init__( + self, + *, + description: Optional[str] = None, + type_properties: Optional["_models.SelfHostedIntegrationRuntimeTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SelfHostedIntegrationRuntimeNode(_Model): + """Properties of Self-hosted integration runtime node. + + :ivar node_name: Name of the integration runtime node. + :vartype node_name: str + :ivar machine_name: Machine name of the integration runtime node. + :vartype machine_name: str + :ivar host_service_uri: URI for the host machine of the integration runtime. + :vartype host_service_uri: str + :ivar status: Status of the integration runtime node. Known values are: "NeedRegistration", + "Online", "Limited", "Offline", "Upgrading", "Initializing", and "InitializeFailed". + :vartype status: str or ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNodeStatus + :ivar capabilities: The integration runtime capabilities dictionary. + :vartype capabilities: dict[str, str] + :ivar version_status: Status of the integration runtime node version. + :vartype version_status: str + :ivar version: Version of the integration runtime node. + :vartype version: str + :ivar register_time: The time at which the integration runtime node was registered in ISO8601 + format. + :vartype register_time: ~datetime.datetime + :ivar last_connect_time: The most recent time at which the integration runtime was connected in + ISO8601 format. + :vartype last_connect_time: ~datetime.datetime + :ivar expiry_time: The time at which the integration runtime will expire in ISO8601 format. + :vartype expiry_time: ~datetime.datetime + :ivar last_start_time: The time the node last started up. + :vartype last_start_time: ~datetime.datetime + :ivar last_stop_time: The integration runtime node last stop time. + :vartype last_stop_time: ~datetime.datetime + :ivar last_update_result: The result of the last integration runtime node update. Known values + are: "None", "Succeed", and "Fail". + :vartype last_update_result: str or + ~azure.mgmt.datafactory.models.IntegrationRuntimeUpdateResult + :ivar last_start_update_time: The last time for the integration runtime node update start. + :vartype last_start_update_time: ~datetime.datetime + :ivar last_end_update_time: The last time for the integration runtime node update end. + :vartype last_end_update_time: ~datetime.datetime + :ivar is_active_dispatcher: Indicates whether this node is the active dispatcher for + integration runtime requests. + :vartype is_active_dispatcher: bool + :ivar concurrent_jobs_limit: Maximum concurrent jobs on the integration runtime node. + :vartype concurrent_jobs_limit: int + :ivar max_concurrent_jobs: The maximum concurrent jobs in this integration runtime. + :vartype max_concurrent_jobs: int + """ + + node_name: Optional[str] = rest_field(name="nodeName", visibility=["read"]) + """Name of the integration runtime node.""" + machine_name: Optional[str] = rest_field(name="machineName", visibility=["read"]) + """Machine name of the integration runtime node.""" + host_service_uri: Optional[str] = rest_field(name="hostServiceUri", visibility=["read"]) + """URI for the host machine of the integration runtime.""" + status: Optional[Union[str, "_models.SelfHostedIntegrationRuntimeNodeStatus"]] = rest_field(visibility=["read"]) + """Status of the integration runtime node. Known values are: \"NeedRegistration\", \"Online\", + \"Limited\", \"Offline\", \"Upgrading\", \"Initializing\", and \"InitializeFailed\".""" + capabilities: Optional[dict[str, str]] = rest_field(visibility=["read"]) + """The integration runtime capabilities dictionary.""" + version_status: Optional[str] = rest_field(name="versionStatus", visibility=["read"]) + """Status of the integration runtime node version.""" + version: Optional[str] = rest_field(visibility=["read"]) + """Version of the integration runtime node.""" + register_time: Optional[datetime.datetime] = rest_field(name="registerTime", visibility=["read"], format="rfc3339") + """The time at which the integration runtime node was registered in ISO8601 format.""" + last_connect_time: Optional[datetime.datetime] = rest_field( + name="lastConnectTime", visibility=["read"], format="rfc3339" + ) + """The most recent time at which the integration runtime was connected in ISO8601 format.""" + expiry_time: Optional[datetime.datetime] = rest_field(name="expiryTime", visibility=["read"], format="rfc3339") + """The time at which the integration runtime will expire in ISO8601 format.""" + last_start_time: Optional[datetime.datetime] = rest_field( + name="lastStartTime", visibility=["read"], format="rfc3339" + ) + """The time the node last started up.""" + last_stop_time: Optional[datetime.datetime] = rest_field(name="lastStopTime", visibility=["read"], format="rfc3339") + """The integration runtime node last stop time.""" + last_update_result: Optional[Union[str, "_models.IntegrationRuntimeUpdateResult"]] = rest_field( + name="lastUpdateResult", visibility=["read"] + ) + """The result of the last integration runtime node update. Known values are: \"None\", + \"Succeed\", and \"Fail\".""" + last_start_update_time: Optional[datetime.datetime] = rest_field( + name="lastStartUpdateTime", visibility=["read"], format="rfc3339" + ) + """The last time for the integration runtime node update start.""" + last_end_update_time: Optional[datetime.datetime] = rest_field( + name="lastEndUpdateTime", visibility=["read"], format="rfc3339" + ) + """The last time for the integration runtime node update end.""" + is_active_dispatcher: Optional[bool] = rest_field(name="isActiveDispatcher", visibility=["read"]) + """Indicates whether this node is the active dispatcher for integration runtime requests.""" + concurrent_jobs_limit: Optional[int] = rest_field(name="concurrentJobsLimit", visibility=["read"]) + """Maximum concurrent jobs on the integration runtime node.""" + max_concurrent_jobs: Optional[int] = rest_field(name="maxConcurrentJobs", visibility=["read"]) + """The maximum concurrent jobs in this integration runtime.""" + + +class SelfHostedIntegrationRuntimeStatus(IntegrationRuntimeStatus, discriminator="SelfHosted"): + """Self-hosted integration runtime status. + + :ivar data_factory_name: The data factory name which the integration runtime belong to. + :vartype data_factory_name: str + :ivar state: The state of integration runtime. Known values are: "Initial", "Stopped", + "Started", "Starting", "Stopping", "NeedRegistration", "Online", "Limited", "Offline", and + "AccessDenied". + :vartype state: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeState + :ivar type_properties: Self-hosted integration runtime status type properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeStatusTypeProperties + :ivar type: Type of integration runtime. Required. SelfHosted. + :vartype type: str or ~azure.mgmt.datafactory.models.SELF_HOSTED + """ + + type_properties: "_models.SelfHostedIntegrationRuntimeStatusTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Self-hosted integration runtime status type properties. Required.""" + type: Literal[IntegrationRuntimeType.SELF_HOSTED] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of integration runtime. Required. SelfHosted.""" + + __flattened_items = [ + "create_time", + "task_queue_id", + "internal_channel_encryption", + "version", + "nodes", + "scheduled_update_date", + "update_delay_offset", + "local_time_zone_offset", + "capabilities", + "service_urls", + "auto_update", + "version_status", + "links", + "pushed_version", + "latest_version", + "auto_update_eta", + "self_contained_interactive_authoring_enabled", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.SelfHostedIntegrationRuntimeStatusTypeProperties", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SelfHostedIntegrationRuntimeStatusTypeProperties(_Model): # pylint: disable=name-too-long + """Self-hosted integration runtime status type properties. + + :ivar create_time: The time at which the integration runtime was created, in ISO8601 format. + :vartype create_time: ~datetime.datetime + :ivar task_queue_id: The task queue id of the integration runtime. + :vartype task_queue_id: str + :ivar internal_channel_encryption: It is used to set the encryption mode for node-node + communication channel (when more than 2 self-hosted integration runtime nodes exist). Known + values are: "NotSet", "SslEncrypted", and "NotEncrypted". + :vartype internal_channel_encryption: str or + ~azure.mgmt.datafactory.models.IntegrationRuntimeInternalChannelEncryptionMode + :ivar version: Version of the integration runtime. + :vartype version: str + :ivar nodes: The list of nodes for this integration runtime. + :vartype nodes: list[~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode] + :ivar scheduled_update_date: The date at which the integration runtime will be scheduled to + update, in ISO8601 format. + :vartype scheduled_update_date: ~datetime.datetime + :ivar update_delay_offset: The time in the date scheduled by service to update the integration + runtime, e.g., PT03H is 3 hours. + :vartype update_delay_offset: str + :ivar local_time_zone_offset: The local time zone offset in hours. + :vartype local_time_zone_offset: str + :ivar capabilities: Object with additional information about integration runtime capabilities. + :vartype capabilities: dict[str, str] + :ivar service_urls: The URLs for the services used in integration runtime backend service. + :vartype service_urls: list[str] + :ivar auto_update: Whether Self-hosted integration runtime auto update has been turned on. + Known values are: "On" and "Off". + :vartype auto_update: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeAutoUpdate + :ivar version_status: Status of the integration runtime version. + :vartype version_status: str + :ivar links: The list of linked integration runtimes that are created to share with this + integration runtime. + :vartype links: list[~azure.mgmt.datafactory.models.LinkedIntegrationRuntime] + :ivar pushed_version: The version that the integration runtime is going to update to. + :vartype pushed_version: str + :ivar latest_version: The latest version on download center. + :vartype latest_version: str + :ivar auto_update_eta: The estimated time when the self-hosted integration runtime will be + updated. + :vartype auto_update_eta: ~datetime.datetime + :ivar self_contained_interactive_authoring_enabled: An alternative option to ensure interactive + authoring function when your self-hosted integration runtime is unable to establish a + connection with Azure Relay. + :vartype self_contained_interactive_authoring_enabled: bool + """ + + create_time: Optional[datetime.datetime] = rest_field(name="createTime", visibility=["read"], format="rfc3339") + """The time at which the integration runtime was created, in ISO8601 format.""" + task_queue_id: Optional[str] = rest_field(name="taskQueueId", visibility=["read"]) + """The task queue id of the integration runtime.""" + internal_channel_encryption: Optional[Union[str, "_models.IntegrationRuntimeInternalChannelEncryptionMode"]] = ( + rest_field(name="internalChannelEncryption", visibility=["read"]) + ) + """It is used to set the encryption mode for node-node communication channel (when more than 2 + self-hosted integration runtime nodes exist). Known values are: \"NotSet\", \"SslEncrypted\", + and \"NotEncrypted\".""" + version: Optional[str] = rest_field(visibility=["read"]) + """Version of the integration runtime.""" + nodes: Optional[list["_models.SelfHostedIntegrationRuntimeNode"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The list of nodes for this integration runtime.""" + scheduled_update_date: Optional[datetime.datetime] = rest_field( + name="scheduledUpdateDate", visibility=["read"], format="rfc3339" + ) + """The date at which the integration runtime will be scheduled to update, in ISO8601 format.""" + update_delay_offset: Optional[str] = rest_field(name="updateDelayOffset", visibility=["read"]) + """The time in the date scheduled by service to update the integration runtime, e.g., PT03H is 3 + hours.""" + local_time_zone_offset: Optional[str] = rest_field(name="localTimeZoneOffset", visibility=["read"]) + """The local time zone offset in hours.""" + capabilities: Optional[dict[str, str]] = rest_field(visibility=["read"]) + """Object with additional information about integration runtime capabilities.""" + service_urls: Optional[list[str]] = rest_field(name="serviceUrls", visibility=["read"]) + """The URLs for the services used in integration runtime backend service.""" + auto_update: Optional[Union[str, "_models.IntegrationRuntimeAutoUpdate"]] = rest_field( + name="autoUpdate", visibility=["read"] + ) + """Whether Self-hosted integration runtime auto update has been turned on. Known values are: + \"On\" and \"Off\".""" + version_status: Optional[str] = rest_field(name="versionStatus", visibility=["read"]) + """Status of the integration runtime version.""" + links: Optional[list["_models.LinkedIntegrationRuntime"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The list of linked integration runtimes that are created to share with this integration + runtime.""" + pushed_version: Optional[str] = rest_field(name="pushedVersion", visibility=["read"]) + """The version that the integration runtime is going to update to.""" + latest_version: Optional[str] = rest_field(name="latestVersion", visibility=["read"]) + """The latest version on download center.""" + auto_update_eta: Optional[datetime.datetime] = rest_field( + name="autoUpdateETA", visibility=["read"], format="rfc3339" + ) + """The estimated time when the self-hosted integration runtime will be updated.""" + self_contained_interactive_authoring_enabled: Optional[bool] = rest_field( + name="selfContainedInteractiveAuthoringEnabled", visibility=["read"] + ) + """An alternative option to ensure interactive authoring function when your self-hosted + integration runtime is unable to establish a connection with Azure Relay.""" + + @overload + def __init__( + self, + *, + nodes: Optional[list["_models.SelfHostedIntegrationRuntimeNode"]] = None, + links: Optional[list["_models.LinkedIntegrationRuntime"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SelfHostedIntegrationRuntimeTypeProperties(_Model): # pylint: disable=name-too-long + """The self-hosted integration runtime properties. + + :ivar linked_info: The base definition of a linked integration runtime. + :vartype linked_info: ~azure.mgmt.datafactory.models.LinkedIntegrationRuntimeType + :ivar self_contained_interactive_authoring_enabled: An alternative option to ensure interactive + authoring function when your self-hosted integration runtime is unable to establish a + connection with Azure Relay. + :vartype self_contained_interactive_authoring_enabled: bool + """ + + linked_info: Optional["_models.LinkedIntegrationRuntimeType"] = rest_field( + name="linkedInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """The base definition of a linked integration runtime.""" + self_contained_interactive_authoring_enabled: Optional[bool] = rest_field( + name="selfContainedInteractiveAuthoringEnabled", visibility=["read", "create", "update", "delete", "query"] + ) + """An alternative option to ensure interactive authoring function when your self-hosted + integration runtime is unable to establish a connection with Azure Relay.""" + + @overload + def __init__( + self, + *, + linked_info: Optional["_models.LinkedIntegrationRuntimeType"] = None, + self_contained_interactive_authoring_enabled: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ServiceNowLinkedService(LinkedService, discriminator="ServiceNow"): + """ServiceNow server linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: ServiceNow server linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.ServiceNowLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "ServiceNow". + :vartype type: str + """ + + type_properties: "_models.ServiceNowLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """ServiceNow server linked service properties. Required.""" + type: Literal["ServiceNow"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"ServiceNow\".""" + + __flattened_items = [ + "endpoint", + "authentication_type", + "username", + "password", + "client_id", + "client_secret", + "use_encrypted_endpoints", + "use_host_verification", + "use_peer_verification", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.ServiceNowLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ServiceNowLinkedServiceTypeProperties(_Model): + """ServiceNow server linked service properties. + + :ivar endpoint: The endpoint of the ServiceNow server. (i.e. .service-now.com). + Required. + :vartype endpoint: any + :ivar authentication_type: The authentication type to use. Required. Known values are: "Basic" + and "OAuth2". + :vartype authentication_type: str or + ~azure.mgmt.datafactory.models.ServiceNowAuthenticationType + :ivar username: The user name used to connect to the ServiceNow server for Basic and OAuth2 + authentication. + :vartype username: any + :ivar password: The password corresponding to the user name for Basic and OAuth2 + authentication. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar client_id: The client id for OAuth2 authentication. + :vartype client_id: any + :ivar client_secret: The client secret for OAuth2 authentication. + :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase + :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using + HTTPS. The default value is true. + :vartype use_encrypted_endpoints: any + :ivar use_host_verification: Specifies whether to require the host name in the server's + certificate to match the host name of the server when connecting over SSL. The default value is + true. + :vartype use_host_verification: any + :ivar use_peer_verification: Specifies whether to verify the identity of the server when + connecting over SSL. The default value is true. + :vartype use_peer_verification: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + endpoint: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The endpoint of the ServiceNow server. (i.e. .service-now.com). Required.""" + authentication_type: Union[str, "_models.ServiceNowAuthenticationType"] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to use. Required. Known values are: \"Basic\" and \"OAuth2\".""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The user name used to connect to the ServiceNow server for Basic and OAuth2 authentication.""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password corresponding to the user name for Basic and OAuth2 authentication.""" + client_id: Optional[Any] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The client id for OAuth2 authentication.""" + client_secret: Optional["_models.SecretBase"] = rest_field( + name="clientSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """The client secret for OAuth2 authentication.""" + use_encrypted_endpoints: Optional[Any] = rest_field( + name="useEncryptedEndpoints", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the data source endpoints are encrypted using HTTPS. The default value is + true.""" + use_host_verification: Optional[Any] = rest_field( + name="useHostVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require the host name in the server's certificate to match the host name + of the server when connecting over SSL. The default value is true.""" + use_peer_verification: Optional[Any] = rest_field( + name="usePeerVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to verify the identity of the server when connecting over SSL. The default + value is true.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + endpoint: Any, + authentication_type: Union[str, "_models.ServiceNowAuthenticationType"], + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + client_id: Optional[Any] = None, + client_secret: Optional["_models.SecretBase"] = None, + use_encrypted_endpoints: Optional[Any] = None, + use_host_verification: Optional[Any] = None, + use_peer_verification: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ServiceNowObjectDataset(Dataset, discriminator="ServiceNowObject"): + """ServiceNow server dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "ServiceNowObject". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["ServiceNowObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"ServiceNowObject\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ServiceNowSource(TabularSource, discriminator="ServiceNowSource"): + """A copy activity ServiceNow server source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "ServiceNowSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["ServiceNowSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"ServiceNowSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "ServiceNowSource" # type: ignore + + +class ServiceNowV2DatasetTypeProperties(_Model): + """Properties specific to this dataset type. + + :ivar table_name: The table name. Type: string (or Expression with resultType string). + :vartype table_name: any + :ivar value_type: Type of value copied from source. Known values are: "actual" and "display". + :vartype value_type: str or ~azure.mgmt.datafactory.models.ValueType + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """The table name. Type: string (or Expression with resultType string).""" + value_type: Optional[Union[str, "_models.ValueType"]] = rest_field( + name="valueType", visibility=["read", "create", "update", "delete", "query"] + ) + """Type of value copied from source. Known values are: \"actual\" and \"display\".""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + value_type: Optional[Union[str, "_models.ValueType"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ServiceNowV2LinkedService(LinkedService, discriminator="ServiceNowV2"): + """ServiceNowV2 server linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: ServiceNowV2 server linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.ServiceNowV2LinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "ServiceNowV2". + :vartype type: str + """ + + type_properties: "_models.ServiceNowV2LinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """ServiceNowV2 server linked service properties. Required.""" + type: Literal["ServiceNowV2"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"ServiceNowV2\".""" + + __flattened_items = [ + "endpoint", + "authentication_type", + "username", + "password", + "client_id", + "client_secret", + "grant_type", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.ServiceNowV2LinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ServiceNowV2LinkedServiceTypeProperties(_Model): + """ServiceNowV2 server linked service properties. + + :ivar endpoint: The endpoint of the ServiceNowV2 server. (i.e. .service-now.com). + Required. + :vartype endpoint: any + :ivar authentication_type: The authentication type to use. Required. Known values are: "Basic" + and "OAuth2". + :vartype authentication_type: str or + ~azure.mgmt.datafactory.models.ServiceNowV2AuthenticationType + :ivar username: The user name used to connect to the ServiceNowV2 server for Basic and OAuth2 + authentication. + :vartype username: any + :ivar password: The password corresponding to the user name for Basic and OAuth2 + authentication. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar client_id: The client id for OAuth2 authentication. + :vartype client_id: any + :ivar client_secret: The client secret for OAuth2 authentication. + :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase + :ivar grant_type: GrantType for OAuth2 authentication. Default value is password. + :vartype grant_type: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + endpoint: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The endpoint of the ServiceNowV2 server. (i.e. .service-now.com). Required.""" + authentication_type: Union[str, "_models.ServiceNowV2AuthenticationType"] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to use. Required. Known values are: \"Basic\" and \"OAuth2\".""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The user name used to connect to the ServiceNowV2 server for Basic and OAuth2 authentication.""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password corresponding to the user name for Basic and OAuth2 authentication.""" + client_id: Optional[Any] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The client id for OAuth2 authentication.""" + client_secret: Optional["_models.SecretBase"] = rest_field( + name="clientSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """The client secret for OAuth2 authentication.""" + grant_type: Optional[Any] = rest_field(name="grantType", visibility=["read", "create", "update", "delete", "query"]) + """GrantType for OAuth2 authentication. Default value is password.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + endpoint: Any, + authentication_type: Union[str, "_models.ServiceNowV2AuthenticationType"], + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + client_id: Optional[Any] = None, + client_secret: Optional["_models.SecretBase"] = None, + grant_type: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ServiceNowV2ObjectDataset(Dataset, discriminator="ServiceNowV2Object"): + """ServiceNowV2 server dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.ServiceNowV2DatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "ServiceNowV2Object". + :vartype type: str + """ + + type_properties: Optional["_models.ServiceNowV2DatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["ServiceNowV2Object"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"ServiceNowV2Object\".""" + + __flattened_items = ["table_name", "value_type"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.ServiceNowV2DatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ServiceNowV2Source(TabularSource, discriminator="ServiceNowV2Source"): + """A copy activity ServiceNowV2 server source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar expression: Expression to filter data from source. + :vartype expression: ~azure.mgmt.datafactory.models.ExpressionV2 + :ivar page_size: Page size of the result. Type: integer (or Expression with resultType + integer). + :vartype page_size: any + :ivar type: Copy source type. Required. Default value is "ServiceNowV2Source". + :vartype type: str + """ + + expression: Optional["_models.ExpressionV2"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Expression to filter data from source.""" + page_size: Optional[Any] = rest_field(name="pageSize", visibility=["read", "create", "update", "delete", "query"]) + """Page size of the result. Type: integer (or Expression with resultType integer).""" + type: Literal["ServiceNowV2Source"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"ServiceNowV2Source\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + expression: Optional["_models.ExpressionV2"] = None, + page_size: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "ServiceNowV2Source" # type: ignore + + +class ServicePrincipalCredential(Credential, discriminator="ServicePrincipal"): + """Service principal credential. + + :ivar description: Credential description. + :vartype description: str + :ivar annotations: List of tags that can be used for describing the Credential. + :vartype annotations: list[any] + :ivar type_properties: Service Principal credential properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.ServicePrincipalCredentialTypeProperties + :ivar type: Type of credential. Required. Default value is "ServicePrincipal". + :vartype type: str + """ + + type_properties: "_models.ServicePrincipalCredentialTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Service Principal credential properties. Required.""" + type: Literal["ServicePrincipal"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of credential. Required. Default value is \"ServicePrincipal\".""" + + __flattened_items = ["service_principal_id", "service_principal_key", "tenant"] + + @overload + def __init__( + self, + *, + type_properties: "_models.ServicePrincipalCredentialTypeProperties", + description: Optional[str] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ServicePrincipalCredentialTypeProperties(_Model): + """Service Principal credential type properties. + + :ivar service_principal_id: The app ID of the service principal used to authenticate. + :vartype service_principal_id: any + :ivar service_principal_key: The key of the service principal used to authenticate. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar tenant: The ID of the tenant to which the service principal belongs. + :vartype tenant: any + """ + + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The app ID of the service principal used to authenticate.""" + service_principal_key: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The key of the service principal used to authenticate.""" + tenant: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The ID of the tenant to which the service principal belongs.""" + + @overload + def __init__( + self, + *, + service_principal_id: Optional[Any] = None, + service_principal_key: Optional["_models.AzureKeyVaultSecretReference"] = None, + tenant: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SetVariableActivity(ControlActivity, discriminator="SetVariable"): + """Set value for a Variable. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar type_properties: Set Variable activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SetVariableActivityTypeProperties + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.SecureInputOutputPolicy + :ivar type: Type of activity. Required. Default value is "SetVariable". + :vartype type: str + """ + + type_properties: "_models.SetVariableActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Set Variable activity properties. Required.""" + policy: Optional["_models.SecureInputOutputPolicy"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Activity policy.""" + type: Literal["SetVariable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"SetVariable\".""" + + __flattened_items = ["variable_name", "value", "set_system_variable"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.SetVariableActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + policy: Optional["_models.SecureInputOutputPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SetVariableActivityTypeProperties(_Model): + """SetVariable activity properties. + + :ivar variable_name: Name of the variable whose value needs to be set. + :vartype variable_name: str + :ivar value: Value to be set. Could be a static value or Expression. + :vartype value: any + :ivar set_system_variable: If set to true, it sets the pipeline run return value. + :vartype set_system_variable: bool + """ + + variable_name: Optional[str] = rest_field( + name="variableName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the variable whose value needs to be set.""" + value: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Value to be set. Could be a static value or Expression.""" + set_system_variable: Optional[bool] = rest_field( + name="setSystemVariable", visibility=["read", "create", "update", "delete", "query"] + ) + """If set to true, it sets the pipeline run return value.""" + + @overload + def __init__( + self, + *, + variable_name: Optional[str] = None, + value: Optional[Any] = None, + set_system_variable: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SftpLocation(DatasetLocation, discriminator="SftpLocation"): + """The location of SFTP dataset. + + :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with + resultType string). + :vartype folder_path: any + :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType + string). + :vartype file_name: any + :ivar type: Type of dataset storage location. Required. Default value is "SftpLocation". + :vartype type: str + """ + + type: Literal["SftpLocation"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage location. Required. Default value is \"SftpLocation\".""" + + @overload + def __init__( + self, + *, + folder_path: Optional[Any] = None, + file_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SftpLocation" # type: ignore + + +class SftpReadSettings(StoreReadSettings, discriminator="SftpReadSettings"): + """Sftp read settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar recursive: If true, files under the folder path will be read recursively. Default is + true. Type: boolean (or Expression with resultType boolean). + :vartype recursive: any + :ivar wildcard_folder_path: Sftp wildcardFolderPath. Type: string (or Expression with + resultType string). + :vartype wildcard_folder_path: any + :ivar wildcard_file_name: Sftp wildcardFileName. Type: string (or Expression with resultType + string). + :vartype wildcard_file_name: any + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: any + :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: + string (or Expression with resultType string). + :vartype partition_root_path: any + :ivar file_list_path: Point to a text file that lists each file (relative path to the path + configured in the dataset) that you want to copy. Type: string (or Expression with resultType + string). + :vartype file_list_path: any + :ivar delete_files_after_completion: Indicates whether the source files need to be deleted + after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + :vartype delete_files_after_completion: any + :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or + Expression with resultType string). + :vartype modified_datetime_start: any + :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression + with resultType string). + :vartype modified_datetime_end: any + :ivar disable_chunking: If true, disable parallel reading within each file. Default is false. + Type: boolean (or Expression with resultType boolean). + :vartype disable_chunking: any + :ivar type: The read setting type. Required. Default value is "SftpReadSettings". + :vartype type: str + """ + + recursive: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, files under the folder path will be read recursively. Default is true. Type: boolean + (or Expression with resultType boolean).""" + wildcard_folder_path: Optional[Any] = rest_field( + name="wildcardFolderPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Sftp wildcardFolderPath. Type: string (or Expression with resultType string).""" + wildcard_file_name: Optional[Any] = rest_field( + name="wildcardFileName", visibility=["read", "create", "update", "delete", "query"] + ) + """Sftp wildcardFileName. Type: string (or Expression with resultType string).""" + enable_partition_discovery: Optional[Any] = rest_field( + name="enablePartitionDiscovery", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType + boolean).""" + partition_root_path: Optional[Any] = rest_field( + name="partitionRootPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the root path where partition discovery starts from. Type: string (or Expression with + resultType string).""" + file_list_path: Optional[Any] = rest_field( + name="fileListPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Point to a text file that lists each file (relative path to the path configured in the dataset) + that you want to copy. Type: string (or Expression with resultType string).""" + delete_files_after_completion: Optional[Any] = rest_field( + name="deleteFilesAfterCompletion", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the source files need to be deleted after copy completion. Default is false. + Type: boolean (or Expression with resultType boolean).""" + modified_datetime_start: Optional[Any] = rest_field( + name="modifiedDatetimeStart", visibility=["read", "create", "update", "delete", "query"] + ) + """The start of file's modified datetime. Type: string (or Expression with resultType string).""" + modified_datetime_end: Optional[Any] = rest_field( + name="modifiedDatetimeEnd", visibility=["read", "create", "update", "delete", "query"] + ) + """The end of file's modified datetime. Type: string (or Expression with resultType string).""" + disable_chunking: Optional[Any] = rest_field( + name="disableChunking", visibility=["read", "create", "update", "delete", "query"] + ) + """If true, disable parallel reading within each file. Default is false. Type: boolean (or + Expression with resultType boolean).""" + type: Literal["SftpReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"SftpReadSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + recursive: Optional[Any] = None, + wildcard_folder_path: Optional[Any] = None, + wildcard_file_name: Optional[Any] = None, + enable_partition_discovery: Optional[Any] = None, + partition_root_path: Optional[Any] = None, + file_list_path: Optional[Any] = None, + delete_files_after_completion: Optional[Any] = None, + modified_datetime_start: Optional[Any] = None, + modified_datetime_end: Optional[Any] = None, + disable_chunking: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SftpReadSettings" # type: ignore + + +class SftpServerLinkedService(LinkedService, discriminator="Sftp"): + """A linked service for an SSH File Transfer Protocol (SFTP) server. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Properties specific to this linked service type. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SftpServerLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Sftp". + :vartype type: str + """ + + type_properties: "_models.SftpServerLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this linked service type. Required.""" + type: Literal["Sftp"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Sftp\".""" + + __flattened_items = [ + "host", + "port", + "authentication_type", + "user_name", + "password", + "encrypted_credential", + "private_key_path", + "private_key_content", + "pass_phrase", + "skip_host_key_validation", + "host_key_fingerprint", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.SftpServerLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SftpServerLinkedServiceTypeProperties(_Model): + """Properties specific to this linked service type. + + :ivar host: The SFTP server host name. Type: string (or Expression with resultType string). + Required. + :vartype host: any + :ivar port: The TCP port number that the SFTP server uses to listen for client connections. + Default value is 22. Type: integer (or Expression with resultType integer), minimum: 0. + :vartype port: any + :ivar authentication_type: The authentication type to be used to connect to the FTP server. + Known values are: "Basic", "SshPublicKey", and "MultiFactor". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.SftpAuthenticationType + :ivar user_name: The username used to log on to the SFTP server. Type: string (or Expression + with resultType string). + :vartype user_name: any + :ivar password: Password to logon the SFTP server for Basic authentication. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar private_key_path: The SSH private key file path for SshPublicKey authentication. Only + valid for on-premises copy. For on-premises copy with SshPublicKey authentication, either + PrivateKeyPath or PrivateKeyContent should be specified. SSH private key should be OpenSSH + format. Type: string (or Expression with resultType string). + :vartype private_key_path: any + :ivar private_key_content: Base64 encoded SSH private key content for SshPublicKey + authentication. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or + PrivateKeyContent should be specified. SSH private key should be OpenSSH format. + :vartype private_key_content: ~azure.mgmt.datafactory.models.SecretBase + :ivar pass_phrase: The password to decrypt the SSH private key if the SSH private key is + encrypted. + :vartype pass_phrase: ~azure.mgmt.datafactory.models.SecretBase + :ivar skip_host_key_validation: If true, skip the SSH host key validation. Default value is + false. Type: boolean (or Expression with resultType boolean). + :vartype skip_host_key_validation: any + :ivar host_key_fingerprint: The host key finger-print of the SFTP server. When + SkipHostKeyValidation is false, HostKeyFingerprint should be specified. Type: string (or + Expression with resultType string). + :vartype host_key_fingerprint: any + """ + + host: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The SFTP server host name. Type: string (or Expression with resultType string). Required.""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The TCP port number that the SFTP server uses to listen for client connections. Default value + is 22. Type: integer (or Expression with resultType integer), minimum: 0.""" + authentication_type: Optional[Union[str, "_models.SftpAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to be used to connect to the FTP server. Known values are: \"Basic\", + \"SshPublicKey\", and \"MultiFactor\".""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """The username used to log on to the SFTP server. Type: string (or Expression with resultType + string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password to logon the SFTP server for Basic authentication.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + private_key_path: Optional[Any] = rest_field( + name="privateKeyPath", visibility=["read", "create", "update", "delete", "query"] + ) + """The SSH private key file path for SshPublicKey authentication. Only valid for on-premises copy. + For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or + PrivateKeyContent should be specified. SSH private key should be OpenSSH format. Type: string + (or Expression with resultType string).""" + private_key_content: Optional["_models.SecretBase"] = rest_field( + name="privateKeyContent", visibility=["read", "create", "update", "delete", "query"] + ) + """Base64 encoded SSH private key content for SshPublicKey authentication. For on-premises copy + with SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should be + specified. SSH private key should be OpenSSH format.""" + pass_phrase: Optional["_models.SecretBase"] = rest_field( + name="passPhrase", visibility=["read", "create", "update", "delete", "query"] + ) + """The password to decrypt the SSH private key if the SSH private key is encrypted.""" + skip_host_key_validation: Optional[Any] = rest_field( + name="skipHostKeyValidation", visibility=["read", "create", "update", "delete", "query"] + ) + """If true, skip the SSH host key validation. Default value is false. Type: boolean (or Expression + with resultType boolean).""" + host_key_fingerprint: Optional[Any] = rest_field( + name="hostKeyFingerprint", visibility=["read", "create", "update", "delete", "query"] + ) + """The host key finger-print of the SFTP server. When SkipHostKeyValidation is false, + HostKeyFingerprint should be specified. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + host: Any, + port: Optional[Any] = None, + authentication_type: Optional[Union[str, "_models.SftpAuthenticationType"]] = None, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + private_key_path: Optional[Any] = None, + private_key_content: Optional["_models.SecretBase"] = None, + pass_phrase: Optional["_models.SecretBase"] = None, + skip_host_key_validation: Optional[Any] = None, + host_key_fingerprint: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SftpWriteSettings(StoreWriteSettings, discriminator="SftpWriteSettings"): + """Sftp write settings. + + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar copy_behavior: The type of copy behavior for copy sink. + :vartype copy_behavior: any + :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects + (or Expression with resultType array of objects). + :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] + :ivar operation_timeout: Specifies the timeout for writing each chunk to SFTP server. Default + value: 01:00:00 (one hour). Type: string (or Expression with resultType string). + :vartype operation_timeout: any + :ivar use_temp_file_rename: Upload to temporary file(s) and rename. Disable this option if your + SFTP server doesn't support rename operation. Type: boolean (or Expression with resultType + boolean). + :vartype use_temp_file_rename: any + :ivar type: The write setting type. Required. Default value is "SftpWriteSettings". + :vartype type: str + """ + + operation_timeout: Optional[Any] = rest_field( + name="operationTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the timeout for writing each chunk to SFTP server. Default value: 01:00:00 (one + hour). Type: string (or Expression with resultType string).""" + use_temp_file_rename: Optional[Any] = rest_field( + name="useTempFileRename", visibility=["read", "create", "update", "delete", "query"] + ) + """Upload to temporary file(s) and rename. Disable this option if your SFTP server doesn't support + rename operation. Type: boolean (or Expression with resultType boolean).""" + type: Literal["SftpWriteSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The write setting type. Required. Default value is \"SftpWriteSettings\".""" + + @overload + def __init__( + self, + *, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + copy_behavior: Optional[Any] = None, + metadata: Optional[list["_models.MetadataItem"]] = None, + operation_timeout: Optional[Any] = None, + use_temp_file_rename: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SftpWriteSettings" # type: ignore + + +class SharePointOnlineListDatasetTypeProperties(_Model): # pylint: disable=name-too-long + """Sharepoint online list dataset properties. + + :ivar list_name: The name of the SharePoint Online list. Type: string (or Expression with + resultType string). + :vartype list_name: any + """ + + list_name: Optional[Any] = rest_field(name="listName", visibility=["read", "create", "update", "delete", "query"]) + """The name of the SharePoint Online list. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + list_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SharePointOnlineListLinkedService(LinkedService, discriminator="SharePointOnlineList"): + """SharePoint Online List linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: SharePoint Online List linked service properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.SharePointOnlineListLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "SharePointOnlineList". + :vartype type: str + """ + + type_properties: "_models.SharePointOnlineListLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """SharePoint Online List linked service properties. Required.""" + type: Literal["SharePointOnlineList"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"SharePointOnlineList\".""" + + __flattened_items = [ + "site_url", + "tenant_id", + "service_principal_id", + "service_principal_key", + "service_principal_credential_type", + "service_principal_embedded_cert", + "service_principal_embedded_cert_password", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.SharePointOnlineListLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SharePointOnlineListLinkedServiceTypeProperties(_Model): # pylint: disable=name-too-long + """SharePoint Online List linked service properties. + + :ivar site_url: The URL of the SharePoint Online site. For example, + `https://contoso.sharepoint.com/sites/siteName + `_. Type: string (or Expression with resultType + string). Required. + :vartype site_url: any + :ivar tenant_id: The tenant ID under which your application resides. You can find it from Azure + portal Active Directory overview page. Type: string (or Expression with resultType string). + Required. + :vartype tenant_id: any + :ivar service_principal_id: The application (client) ID of your application registered in Azure + Active Directory. Make sure to grant SharePoint site permission to this application. Type: + string (or Expression with resultType string). Required. + :vartype service_principal_id: any + :ivar service_principal_key: The client secret of your application registered in Azure Active + Directory. Type: string (or Expression with resultType string). + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_principal_credential_type: The service principal credential type to use in + Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' + for certificate. Type: string (or Expression with resultType string). + :vartype service_principal_credential_type: any + :ivar service_principal_embedded_cert: Specify the base64 encoded certificate of your + application registered in Azure Active Directory. Type: string (or Expression with resultType + string). + :vartype service_principal_embedded_cert: ~azure.mgmt.datafactory.models.SecretBase + :ivar service_principal_embedded_cert_password: Specify the password of your certificate if + your certificate has a password and you are using AadServicePrincipal authentication. Type: + string (or Expression with resultType string). + :vartype service_principal_embedded_cert_password: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + site_url: Any = rest_field(name="siteUrl", visibility=["read", "create", "update", "delete", "query"]) + """The URL of the SharePoint Online site. For example, + `https://contoso.sharepoint.com/sites/siteName + `_. Type: string (or Expression with resultType + string). Required.""" + tenant_id: Any = rest_field(name="tenantId", visibility=["read", "create", "update", "delete", "query"]) + """The tenant ID under which your application resides. You can find it from Azure portal Active + Directory overview page. Type: string (or Expression with resultType string). Required.""" + service_principal_id: Any = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The application (client) ID of your application registered in Azure Active Directory. Make sure + to grant SharePoint site permission to this application. Type: string (or Expression with + resultType string). Required.""" + service_principal_key: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The client secret of your application registered in Azure Active Directory. Type: string (or + Expression with resultType string).""" + service_principal_credential_type: Optional[Any] = rest_field( + name="servicePrincipalCredentialType", visibility=["read", "create", "update", "delete", "query"] + ) + """The service principal credential type to use in Server-To-Server authentication. + 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + Expression with resultType string).""" + service_principal_embedded_cert: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalEmbeddedCert", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the base64 encoded certificate of your application registered in Azure Active + Directory. Type: string (or Expression with resultType string).""" + service_principal_embedded_cert_password: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalEmbeddedCertPassword", visibility=["read", "create", "update", "delete", "query"] + ) + """Specify the password of your certificate if your certificate has a password and you are using + AadServicePrincipal authentication. Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + site_url: Any, + tenant_id: Any, + service_principal_id: Any, + service_principal_key: Optional["_models.SecretBase"] = None, + service_principal_credential_type: Optional[Any] = None, + service_principal_embedded_cert: Optional["_models.SecretBase"] = None, + service_principal_embedded_cert_password: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SharePointOnlineListResourceDataset(Dataset, discriminator="SharePointOnlineListResource"): + """The sharepoint online list resource dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Sharepoint online list dataset properties. + :vartype type_properties: + ~azure.mgmt.datafactory.models.SharePointOnlineListDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "SharePointOnlineListResource". + :vartype type: str + """ + + type_properties: Optional["_models.SharePointOnlineListDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Sharepoint online list dataset properties.""" + type: Literal["SharePointOnlineListResource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SharePointOnlineListResource\".""" + + __flattened_items = ["list_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.SharePointOnlineListDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SharePointOnlineListSource(CopySource, discriminator="SharePointOnlineListSource"): + """A copy activity source for sharePoint online list source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query: The OData query to filter the data in SharePoint Online list. For example, + "$top=1". Type: string (or Expression with resultType string). + :vartype query: any + :ivar http_request_timeout: The wait time to get a response from SharePoint Online. Default + value is 5 minutes (00:05:00). Type: string (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype http_request_timeout: any + :ivar type: Copy source type. Required. Default value is "SharePointOnlineListSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The OData query to filter the data in SharePoint Online list. For example, \"$top=1\". Type: + string (or Expression with resultType string).""" + http_request_timeout: Optional[Any] = rest_field( + name="httpRequestTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """The wait time to get a response from SharePoint Online. Default value is 5 minutes (00:05:00). + Type: string (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + type: Literal["SharePointOnlineListSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SharePointOnlineListSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query: Optional[Any] = None, + http_request_timeout: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SharePointOnlineListSource" # type: ignore + + +class ShopifyLinkedService(LinkedService, discriminator="Shopify"): + """Shopify Service linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Shopify Service linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.ShopifyLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Shopify". + :vartype type: str + """ + + type_properties: "_models.ShopifyLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Shopify Service linked service properties. Required.""" + type: Literal["Shopify"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Shopify\".""" + + __flattened_items = [ + "host", + "access_token", + "use_encrypted_endpoints", + "use_host_verification", + "use_peer_verification", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.ShopifyLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ShopifyLinkedServiceTypeProperties(_Model): + """Shopify Service linked service properties. + + :ivar host: The endpoint of the Shopify server. (i.e. mystore.myshopify.com). Required. + :vartype host: any + :ivar access_token: The API access token that can be used to access Shopify’s data. The token + won't expire if it is offline mode. + :vartype access_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using + HTTPS. The default value is true. + :vartype use_encrypted_endpoints: any + :ivar use_host_verification: Specifies whether to require the host name in the server's + certificate to match the host name of the server when connecting over SSL. The default value is + true. + :vartype use_host_verification: any + :ivar use_peer_verification: Specifies whether to verify the identity of the server when + connecting over SSL. The default value is true. + :vartype use_peer_verification: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + host: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The endpoint of the Shopify server. (i.e. mystore.myshopify.com). Required.""" + access_token: Optional["_models.SecretBase"] = rest_field( + name="accessToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The API access token that can be used to access Shopify’s data. The token won't expire if it is + offline mode.""" + use_encrypted_endpoints: Optional[Any] = rest_field( + name="useEncryptedEndpoints", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the data source endpoints are encrypted using HTTPS. The default value is + true.""" + use_host_verification: Optional[Any] = rest_field( + name="useHostVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require the host name in the server's certificate to match the host name + of the server when connecting over SSL. The default value is true.""" + use_peer_verification: Optional[Any] = rest_field( + name="usePeerVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to verify the identity of the server when connecting over SSL. The default + value is true.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + host: Any, + access_token: Optional["_models.SecretBase"] = None, + use_encrypted_endpoints: Optional[Any] = None, + use_host_verification: Optional[Any] = None, + use_peer_verification: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ShopifyObjectDataset(Dataset, discriminator="ShopifyObject"): + """Shopify Service dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "ShopifyObject". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["ShopifyObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"ShopifyObject\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ShopifySource(TabularSource, discriminator="ShopifySource"): + """A copy activity Shopify Service source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "ShopifySource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["ShopifySource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"ShopifySource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "ShopifySource" # type: ignore + + +class SkipErrorFile(_Model): + """Skip error file. + + :ivar file_missing: Skip if file is deleted by other client during copy. Default is true. Type: + boolean (or Expression with resultType boolean). + :vartype file_missing: any + :ivar data_inconsistency: Skip if source/sink file changed by other concurrent write. Default + is false. Type: boolean (or Expression with resultType boolean). + :vartype data_inconsistency: any + """ + + file_missing: Optional[Any] = rest_field( + name="fileMissing", visibility=["read", "create", "update", "delete", "query"] + ) + """Skip if file is deleted by other client during copy. Default is true. Type: boolean (or + Expression with resultType boolean).""" + data_inconsistency: Optional[Any] = rest_field( + name="dataInconsistency", visibility=["read", "create", "update", "delete", "query"] + ) + """Skip if source/sink file changed by other concurrent write. Default is false. Type: boolean (or + Expression with resultType boolean).""" + + @overload + def __init__( + self, + *, + file_missing: Optional[Any] = None, + data_inconsistency: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SmartsheetLinkedService(LinkedService, discriminator="Smartsheet"): + """Linked service for Smartsheet. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Smartsheet linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SmartsheetLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Smartsheet". + :vartype type: str + """ + + type_properties: "_models.SmartsheetLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Smartsheet linked service properties. Required.""" + type: Literal["Smartsheet"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Smartsheet\".""" + + __flattened_items = ["api_token", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.SmartsheetLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SmartsheetLinkedServiceTypeProperties(_Model): + """Smartsheet linked service type properties. + + :ivar api_token: The api token for the Smartsheet source. Required. + :vartype api_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + api_token: "_models.SecretBase" = rest_field( + name="apiToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The api token for the Smartsheet source. Required.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + api_token: "_models.SecretBase", + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SnowflakeDataset(Dataset, discriminator="SnowflakeTable"): + """The snowflake dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Snowflake dataset properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SnowflakeDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "SnowflakeTable". + :vartype type: str + """ + + type_properties: "_models.SnowflakeDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Snowflake dataset properties. Required.""" + type: Literal["SnowflakeTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SnowflakeTable\".""" + + __flattened_items = ["schema", "table"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.SnowflakeDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SnowflakeDatasetTypeProperties(_Model): + """Snowflake dataset properties. + + :ivar schema: The schema name of the Snowflake database. Type: string (or Expression with + resultType string). + :vartype schema: any + :ivar table: The table name of the Snowflake database. Type: string (or Expression with + resultType string). + :vartype table: any + """ + + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the Snowflake database. Type: string (or Expression with resultType string).""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Snowflake database. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + schema: Optional[Any] = None, + table: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SnowflakeExportCopyCommand(ExportSettings, discriminator="SnowflakeExportCopyCommand"): + """Snowflake export command settings. + + :ivar additional_copy_options: Additional copy options directly passed to snowflake Copy + Command. Type: key value pairs (value should be string type) (or Expression with resultType + object). Example: "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", "TIME_FORMAT": + "'HH24:MI:SS.FF'" }. + :vartype additional_copy_options: dict[str, any] + :ivar additional_format_options: Additional format options directly passed to snowflake Copy + Command. Type: key value pairs (value should be string type) (or Expression with resultType + object). Example: "additionalFormatOptions": { "OVERWRITE": "TRUE", "MAX_FILE_SIZE": "'FALSE'" + }. + :vartype additional_format_options: dict[str, any] + :ivar storage_integration: The name of the snowflake storage integration to use for the copy + operation. Type: string (or Expression with resultType string). + :vartype storage_integration: any + :ivar type: The export setting type. Required. Default value is "SnowflakeExportCopyCommand". + :vartype type: str + """ + + additional_copy_options: Optional[dict[str, Any]] = rest_field( + name="additionalCopyOptions", visibility=["read", "create", "update", "delete", "query"] + ) + """Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value + should be string type) (or Expression with resultType object). Example: + \"additionalCopyOptions\": { \"DATE_FORMAT\": \"MM/DD/YYYY\", \"TIME_FORMAT\": + \"'HH24:MI:SS.FF'\" }.""" + additional_format_options: Optional[dict[str, Any]] = rest_field( + name="additionalFormatOptions", visibility=["read", "create", "update", "delete", "query"] + ) + """Additional format options directly passed to snowflake Copy Command. Type: key value pairs + (value should be string type) (or Expression with resultType object). Example: + \"additionalFormatOptions\": { \"OVERWRITE\": \"TRUE\", \"MAX_FILE_SIZE\": \"'FALSE'\" }.""" + storage_integration: Optional[Any] = rest_field( + name="storageIntegration", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the snowflake storage integration to use for the copy operation. Type: string (or + Expression with resultType string).""" + type: Literal["SnowflakeExportCopyCommand"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The export setting type. Required. Default value is \"SnowflakeExportCopyCommand\".""" + + @overload + def __init__( + self, + *, + additional_copy_options: Optional[dict[str, Any]] = None, + additional_format_options: Optional[dict[str, Any]] = None, + storage_integration: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SnowflakeExportCopyCommand" # type: ignore + + +class SnowflakeImportCopyCommand(ImportSettings, discriminator="SnowflakeImportCopyCommand"): + """Snowflake import command settings. + + :ivar additional_copy_options: Additional copy options directly passed to snowflake Copy + Command. Type: key value pairs (value should be string type) (or Expression with resultType + object). Example: "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", "TIME_FORMAT": + "'HH24:MI:SS.FF'" }. + :vartype additional_copy_options: dict[str, any] + :ivar additional_format_options: Additional format options directly passed to snowflake Copy + Command. Type: key value pairs (value should be string type) (or Expression with resultType + object). Example: "additionalFormatOptions": { "FORCE": "TRUE", "LOAD_UNCERTAIN_FILES": + "'FALSE'" }. + :vartype additional_format_options: dict[str, any] + :ivar storage_integration: The name of the snowflake storage integration to use for the copy + operation. Type: string (or Expression with resultType string). + :vartype storage_integration: any + :ivar type: The import setting type. Required. Default value is "SnowflakeImportCopyCommand". + :vartype type: str + """ + + additional_copy_options: Optional[dict[str, Any]] = rest_field( + name="additionalCopyOptions", visibility=["read", "create", "update", "delete", "query"] + ) + """Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value + should be string type) (or Expression with resultType object). Example: + \"additionalCopyOptions\": { \"DATE_FORMAT\": \"MM/DD/YYYY\", \"TIME_FORMAT\": + \"'HH24:MI:SS.FF'\" }.""" + additional_format_options: Optional[dict[str, Any]] = rest_field( + name="additionalFormatOptions", visibility=["read", "create", "update", "delete", "query"] + ) + """Additional format options directly passed to snowflake Copy Command. Type: key value pairs + (value should be string type) (or Expression with resultType object). Example: + \"additionalFormatOptions\": { \"FORCE\": \"TRUE\", \"LOAD_UNCERTAIN_FILES\": \"'FALSE'\" }.""" + storage_integration: Optional[Any] = rest_field( + name="storageIntegration", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the snowflake storage integration to use for the copy operation. Type: string (or + Expression with resultType string).""" + type: Literal["SnowflakeImportCopyCommand"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The import setting type. Required. Default value is \"SnowflakeImportCopyCommand\".""" + + @overload + def __init__( + self, + *, + additional_copy_options: Optional[dict[str, Any]] = None, + additional_format_options: Optional[dict[str, Any]] = None, + storage_integration: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SnowflakeImportCopyCommand" # type: ignore + + +class SnowflakeLinkedService(LinkedService, discriminator="Snowflake"): + """Snowflake linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Snowflake linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SnowflakeLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Snowflake". + :vartype type: str + """ + + type_properties: "_models.SnowflakeLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Snowflake linked service properties. Required.""" + type: Literal["Snowflake"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Snowflake\".""" + + __flattened_items = ["connection_string", "password", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.SnowflakeLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SnowflakeLinkedServiceTypeProperties(_Model): + """Snowflake linked service properties. + + :ivar connection_string: The connection string of snowflake. Type: string, SecureString. + Required. + :vartype connection_string: any + :ivar password: The Azure key vault secret reference of password in connection string. + :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_string: Any = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection string of snowflake. Type: string, SecureString. Required.""" + password: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of password in connection string.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_string: Any, + password: Optional["_models.AzureKeyVaultSecretReference"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SnowflakeLinkedV2ServiceTypeProperties(_Model): + """Snowflake linked service properties. + + :ivar account_identifier: The account identifier of your Snowflake account, e.g. + xy12345.east-us-2.azure. Required. + :vartype account_identifier: any + :ivar user: The name of the Snowflake user. + :vartype user: any + :ivar password: The Azure key vault secret reference of password in connection string. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar database: The name of the Snowflake database. Required. + :vartype database: any + :ivar warehouse: The name of the Snowflake warehouse. Required. + :vartype warehouse: any + :ivar authentication_type: The type used for authentication. Type: string. Known values are: + "Basic", "KeyPair", and "AADServicePrincipal". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.SnowflakeAuthenticationType + :ivar client_id: The client ID of the application registered in Azure Active Directory for + AADServicePrincipal authentication. + :vartype client_id: any + :ivar client_secret: The Azure key vault secret reference of client secret for + AADServicePrincipal authentication. + :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase + :ivar tenant_id: The tenant ID of the application registered in Azure Active Directory for + AADServicePrincipal authentication. + :vartype tenant_id: any + :ivar scope: The scope of the application registered in Azure Active Directory for + AADServicePrincipal authentication. + :vartype scope: any + :ivar private_key: The Azure key vault secret reference of privateKey for KeyPair auth. + :vartype private_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar private_key_passphrase: The Azure key vault secret reference of private key password for + KeyPair auth with encrypted private key. + :vartype private_key_passphrase: ~azure.mgmt.datafactory.models.SecretBase + :ivar role: The default access control role to use in the Snowflake session. Type: string (or + Expression with resultType string). + :vartype role: any + :ivar host: The host name of the Snowflake account. Type: string (or Expression with resultType + string). + :vartype host: any + :ivar schema: Schema name for connection. Type: string (or Expression with resultType string). + :vartype schema: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar use_utc_timestamps: Indicates whether to use UTC timezone for timestamp data types. Type: + boolean. + :vartype use_utc_timestamps: any + """ + + account_identifier: Any = rest_field( + name="accountIdentifier", visibility=["read", "create", "update", "delete", "query"] + ) + """The account identifier of your Snowflake account, e.g. xy12345.east-us-2.azure. Required.""" + user: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the Snowflake user.""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Azure key vault secret reference of password in connection string.""" + database: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the Snowflake database. Required.""" + warehouse: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the Snowflake warehouse. Required.""" + authentication_type: Optional[Union[str, "_models.SnowflakeAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type used for authentication. Type: string. Known values are: \"Basic\", \"KeyPair\", and + \"AADServicePrincipal\".""" + client_id: Optional[Any] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The client ID of the application registered in Azure Active Directory for AADServicePrincipal + authentication.""" + client_secret: Optional["_models.SecretBase"] = rest_field( + name="clientSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of client secret for AADServicePrincipal authentication.""" + tenant_id: Optional[Any] = rest_field(name="tenantId", visibility=["read", "create", "update", "delete", "query"]) + """The tenant ID of the application registered in Azure Active Directory for AADServicePrincipal + authentication.""" + scope: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The scope of the application registered in Azure Active Directory for AADServicePrincipal + authentication.""" + private_key: Optional["_models.SecretBase"] = rest_field( + name="privateKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of privateKey for KeyPair auth.""" + private_key_passphrase: Optional["_models.SecretBase"] = rest_field( + name="privateKeyPassphrase", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of private key password for KeyPair auth with encrypted + private key.""" + role: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The default access control role to use in the Snowflake session. Type: string (or Expression + with resultType string).""" + host: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The host name of the Snowflake account. Type: string (or Expression with resultType string).""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Schema name for connection. Type: string (or Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + use_utc_timestamps: Optional[Any] = rest_field( + name="useUtcTimestamps", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether to use UTC timezone for timestamp data types. Type: boolean.""" + + @overload + def __init__( + self, + *, + account_identifier: Any, + database: Any, + warehouse: Any, + user: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + authentication_type: Optional[Union[str, "_models.SnowflakeAuthenticationType"]] = None, + client_id: Optional[Any] = None, + client_secret: Optional["_models.SecretBase"] = None, + tenant_id: Optional[Any] = None, + scope: Optional[Any] = None, + private_key: Optional["_models.SecretBase"] = None, + private_key_passphrase: Optional["_models.SecretBase"] = None, + role: Optional[Any] = None, + host: Optional[Any] = None, + schema: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + use_utc_timestamps: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SnowflakeSink(CopySink, discriminator="SnowflakeSink"): + """A copy activity snowflake sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType + string). + :vartype pre_copy_script: any + :ivar import_settings: Snowflake import settings. + :vartype import_settings: ~azure.mgmt.datafactory.models.SnowflakeImportCopyCommand + :ivar type: Copy sink type. Required. Default value is "SnowflakeSink". + :vartype type: str + """ + + pre_copy_script: Optional[Any] = rest_field( + name="preCopyScript", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL pre-copy script. Type: string (or Expression with resultType string).""" + import_settings: Optional["_models.SnowflakeImportCopyCommand"] = rest_field( + name="importSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Snowflake import settings.""" + type: Literal["SnowflakeSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"SnowflakeSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + pre_copy_script: Optional[Any] = None, + import_settings: Optional["_models.SnowflakeImportCopyCommand"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SnowflakeSink" # type: ignore + + +class SnowflakeSource(CopySource, discriminator="SnowflakeSource"): + """A copy activity snowflake source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query: Snowflake Sql query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar export_settings: Snowflake export settings. Required. + :vartype export_settings: ~azure.mgmt.datafactory.models.SnowflakeExportCopyCommand + :ivar type: Copy source type. Required. Default value is "SnowflakeSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Snowflake Sql query. Type: string (or Expression with resultType string).""" + export_settings: "_models.SnowflakeExportCopyCommand" = rest_field( + name="exportSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Snowflake export settings. Required.""" + type: Literal["SnowflakeSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SnowflakeSource\".""" + + @overload + def __init__( + self, + *, + export_settings: "_models.SnowflakeExportCopyCommand", + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SnowflakeSource" # type: ignore + + +class SnowflakeV2Dataset(Dataset, discriminator="SnowflakeV2Table"): + """The snowflake dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Snowflake dataset properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SnowflakeDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "SnowflakeV2Table". + :vartype type: str + """ + + type_properties: "_models.SnowflakeDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Snowflake dataset properties. Required.""" + type: Literal["SnowflakeV2Table"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SnowflakeV2Table\".""" + + __flattened_items = ["schema", "table"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.SnowflakeDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SnowflakeV2LinkedService(LinkedService, discriminator="SnowflakeV2"): + """Snowflake linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Snowflake linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SnowflakeLinkedV2ServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "SnowflakeV2". + :vartype type: str + """ + + type_properties: "_models.SnowflakeLinkedV2ServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Snowflake linked service properties. Required.""" + type: Literal["SnowflakeV2"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"SnowflakeV2\".""" + + __flattened_items = [ + "account_identifier", + "user", + "password", + "database", + "warehouse", + "authentication_type", + "client_id", + "client_secret", + "tenant_id", + "scope", + "private_key", + "private_key_passphrase", + "role", + "host", + "schema", + "encrypted_credential", + "use_utc_timestamps", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.SnowflakeLinkedV2ServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SnowflakeV2Sink(CopySink, discriminator="SnowflakeV2Sink"): + """A copy activity snowflake sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType + string). + :vartype pre_copy_script: any + :ivar import_settings: Snowflake import settings. + :vartype import_settings: ~azure.mgmt.datafactory.models.SnowflakeImportCopyCommand + :ivar type: Copy sink type. Required. Default value is "SnowflakeV2Sink". + :vartype type: str + """ + + pre_copy_script: Optional[Any] = rest_field( + name="preCopyScript", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL pre-copy script. Type: string (or Expression with resultType string).""" + import_settings: Optional["_models.SnowflakeImportCopyCommand"] = rest_field( + name="importSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Snowflake import settings.""" + type: Literal["SnowflakeV2Sink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"SnowflakeV2Sink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + pre_copy_script: Optional[Any] = None, + import_settings: Optional["_models.SnowflakeImportCopyCommand"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SnowflakeV2Sink" # type: ignore + + +class SnowflakeV2Source(CopySource, discriminator="SnowflakeV2Source"): + """A copy activity snowflake source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query: Snowflake Sql query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar export_settings: Snowflake export settings. Required. + :vartype export_settings: ~azure.mgmt.datafactory.models.SnowflakeExportCopyCommand + :ivar type: Copy source type. Required. Default value is "SnowflakeV2Source". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Snowflake Sql query. Type: string (or Expression with resultType string).""" + export_settings: "_models.SnowflakeExportCopyCommand" = rest_field( + name="exportSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Snowflake export settings. Required.""" + type: Literal["SnowflakeV2Source"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SnowflakeV2Source\".""" + + @overload + def __init__( + self, + *, + export_settings: "_models.SnowflakeExportCopyCommand", + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SnowflakeV2Source" # type: ignore + + +class SparkConfigurationParametrizationReference(_Model): # pylint: disable=name-too-long + """Spark configuration reference. + + :ivar type: Spark configuration reference type. Required. "SparkConfigurationReference" + :vartype type: str or ~azure.mgmt.datafactory.models.SparkConfigurationReferenceType + :ivar reference_name: Reference spark configuration name. Type: string (or Expression with + resultType string). Required. + :vartype reference_name: any + """ + + type: Union[str, "_models.SparkConfigurationReferenceType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Spark configuration reference type. Required. \"SparkConfigurationReference\"""" + reference_name: Any = rest_field(name="referenceName", visibility=["read", "create", "update", "delete", "query"]) + """Reference spark configuration name. Type: string (or Expression with resultType string). + Required.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.SparkConfigurationReferenceType"], + reference_name: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SparkDatasetTypeProperties(_Model): + """Spark Properties. + + :ivar table_name: This property will be retired. Please consider using schema + table + properties instead. + :vartype table_name: any + :ivar table: The table name of the Spark. Type: string (or Expression with resultType string). + :vartype table: any + :ivar schema: The schema name of the Spark. Type: string (or Expression with resultType + string). + :vartype schema: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property will be retired. Please consider using schema + table properties instead.""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Spark. Type: string (or Expression with resultType string).""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the Spark. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + table: Optional[Any] = None, + schema: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SparkLinkedService(LinkedService, discriminator="Spark"): + """Spark Server linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Spark Server linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SparkLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Spark". + :vartype type: str + """ + + type_properties: "_models.SparkLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Spark Server linked service properties. Required.""" + type: Literal["Spark"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Spark\".""" + + __flattened_items = [ + "host", + "port", + "server_type", + "thrift_transport_protocol", + "authentication_type", + "username", + "password", + "http_path", + "enable_ssl", + "enable_server_certificate_validation", + "trusted_cert_path", + "use_system_trust_store", + "allow_host_name_cn_mismatch", + "allow_self_signed_server_cert", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.SparkLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SparkLinkedServiceTypeProperties(_Model): + """Spark Server linked service properties. + + :ivar host: IP address or host name of the Spark server. Required. + :vartype host: any + :ivar port: The TCP port that the Spark server uses to listen for client connections. Required. + :vartype port: any + :ivar server_type: The type of Spark server. Known values are: "SharkServer", "SharkServer2", + and "SparkThriftServer". + :vartype server_type: str or ~azure.mgmt.datafactory.models.SparkServerType + :ivar thrift_transport_protocol: The transport protocol to use in the Thrift layer. Known + values are: "Binary", "SASL", and "HTTP ". + :vartype thrift_transport_protocol: str or + ~azure.mgmt.datafactory.models.SparkThriftTransportProtocol + :ivar authentication_type: The authentication method used to access the Spark server. Required. + Known values are: "Anonymous", "Username", "UsernameAndPassword", and + "WindowsAzureHDInsightService". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.SparkAuthenticationType + :ivar username: The user name that you use to access Spark Server. + :vartype username: any + :ivar password: The password corresponding to the user name that you provided in the Username + field. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar http_path: The partial URL corresponding to the Spark server. + :vartype http_path: any + :ivar enable_ssl: Specifies whether the connections to the server are encrypted using SSL. The + default value is false. + :vartype enable_ssl: any + :ivar enable_server_certificate_validation: Specifies whether the connections to the server + will validate server certificate, the default value is True. Only used for Version 2.0. + :vartype enable_server_certificate_validation: any + :ivar trusted_cert_path: The full path of the .pem file containing trusted CA certificates for + verifying the server when connecting over SSL. This property can only be set when using SSL on + self-hosted IR. The default value is the cacerts.pem file installed with the IR. + :vartype trusted_cert_path: any + :ivar use_system_trust_store: Specifies whether to use a CA certificate from the system trust + store or from a specified PEM file. The default value is false. + :vartype use_system_trust_store: any + :ivar allow_host_name_cn_mismatch: Specifies whether to require a CA-issued SSL certificate + name to match the host name of the server when connecting over SSL. The default value is false. + :vartype allow_host_name_cn_mismatch: any + :ivar allow_self_signed_server_cert: Specifies whether to allow self-signed certificates from + the server. The default value is false. + :vartype allow_self_signed_server_cert: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + host: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """IP address or host name of the Spark server. Required.""" + port: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The TCP port that the Spark server uses to listen for client connections. Required.""" + server_type: Optional[Union[str, "_models.SparkServerType"]] = rest_field( + name="serverType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of Spark server. Known values are: \"SharkServer\", \"SharkServer2\", and + \"SparkThriftServer\".""" + thrift_transport_protocol: Optional[Union[str, "_models.SparkThriftTransportProtocol"]] = rest_field( + name="thriftTransportProtocol", visibility=["read", "create", "update", "delete", "query"] + ) + """The transport protocol to use in the Thrift layer. Known values are: \"Binary\", \"SASL\", and + \"HTTP \".""" + authentication_type: Union[str, "_models.SparkAuthenticationType"] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication method used to access the Spark server. Required. Known values are: + \"Anonymous\", \"Username\", \"UsernameAndPassword\", and \"WindowsAzureHDInsightService\".""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The user name that you use to access Spark Server.""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password corresponding to the user name that you provided in the Username field.""" + http_path: Optional[Any] = rest_field(name="httpPath", visibility=["read", "create", "update", "delete", "query"]) + """The partial URL corresponding to the Spark server.""" + enable_ssl: Optional[Any] = rest_field(name="enableSsl", visibility=["read", "create", "update", "delete", "query"]) + """Specifies whether the connections to the server are encrypted using SSL. The default value is + false.""" + enable_server_certificate_validation: Optional[Any] = rest_field( + name="enableServerCertificateValidation", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the connections to the server will validate server certificate, the default + value is True. Only used for Version 2.0.""" + trusted_cert_path: Optional[Any] = rest_field( + name="trustedCertPath", visibility=["read", "create", "update", "delete", "query"] + ) + """The full path of the .pem file containing trusted CA certificates for verifying the server when + connecting over SSL. This property can only be set when using SSL on self-hosted IR. The + default value is the cacerts.pem file installed with the IR.""" + use_system_trust_store: Optional[Any] = rest_field( + name="useSystemTrustStore", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to use a CA certificate from the system trust store or from a specified PEM + file. The default value is false.""" + allow_host_name_cn_mismatch: Optional[Any] = rest_field( + name="allowHostNameCNMismatch", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require a CA-issued SSL certificate name to match the host name of the + server when connecting over SSL. The default value is false.""" + allow_self_signed_server_cert: Optional[Any] = rest_field( + name="allowSelfSignedServerCert", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to allow self-signed certificates from the server. The default value is + false.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + host: Any, + port: Any, + authentication_type: Union[str, "_models.SparkAuthenticationType"], + server_type: Optional[Union[str, "_models.SparkServerType"]] = None, + thrift_transport_protocol: Optional[Union[str, "_models.SparkThriftTransportProtocol"]] = None, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + http_path: Optional[Any] = None, + enable_ssl: Optional[Any] = None, + enable_server_certificate_validation: Optional[Any] = None, + trusted_cert_path: Optional[Any] = None, + use_system_trust_store: Optional[Any] = None, + allow_host_name_cn_mismatch: Optional[Any] = None, + allow_self_signed_server_cert: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SparkObjectDataset(Dataset, discriminator="SparkObject"): + """Spark Server dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.SparkDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "SparkObject". + :vartype type: str + """ + + type_properties: Optional["_models.SparkDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["SparkObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SparkObject\".""" + + __flattened_items = ["table_name", "table", "schema"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.SparkDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SparkSource(TabularSource, discriminator="SparkSource"): + """A copy activity Spark Server source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "SparkSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["SparkSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SparkSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SparkSource" # type: ignore + + +class SqlAlwaysEncryptedProperties(_Model): + """Sql always encrypted properties. + + :ivar always_encrypted_akv_auth_type: Sql always encrypted AKV authentication type. Type: + string. Required. Known values are: "ServicePrincipal", "ManagedIdentity", and + "UserAssignedManagedIdentity". + :vartype always_encrypted_akv_auth_type: str or + ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedAkvAuthType + :ivar service_principal_id: The client ID of the application in Azure Active Directory used for + Azure Key Vault authentication. Type: string (or Expression with resultType string). + :vartype service_principal_id: any + :ivar service_principal_key: The key of the service principal used to authenticate against + Azure Key Vault. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + always_encrypted_akv_auth_type: Union[str, "_models.SqlAlwaysEncryptedAkvAuthType"] = rest_field( + name="alwaysEncryptedAkvAuthType", visibility=["read", "create", "update", "delete", "query"] + ) + """Sql always encrypted AKV authentication type. Type: string. Required. Known values are: + \"ServicePrincipal\", \"ManagedIdentity\", and \"UserAssignedManagedIdentity\".""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The client ID of the application in Azure Active Directory used for Azure Key Vault + authentication. Type: string (or Expression with resultType string).""" + service_principal_key: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The key of the service principal used to authenticate against Azure Key Vault.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( + self, + *, + always_encrypted_akv_auth_type: Union[str, "_models.SqlAlwaysEncryptedAkvAuthType"], + service_principal_id: Optional[Any] = None, + service_principal_key: Optional["_models.SecretBase"] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SqlDWSink(CopySink, discriminator="SqlDWSink"): + """A copy activity SQL Data Warehouse sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType + string). + :vartype pre_copy_script: any + :ivar allow_poly_base: Indicates to use PolyBase to copy data into SQL Data Warehouse when + applicable. Type: boolean (or Expression with resultType boolean). + :vartype allow_poly_base: any + :ivar poly_base_settings: Specifies PolyBase-related settings when allowPolyBase is true. + :vartype poly_base_settings: ~azure.mgmt.datafactory.models.PolybaseSettings + :ivar allow_copy_command: Indicates to use Copy Command to copy data into SQL Data Warehouse. + Type: boolean (or Expression with resultType boolean). + :vartype allow_copy_command: any + :ivar copy_command_settings: Specifies Copy Command related settings when allowCopyCommand is + true. + :vartype copy_command_settings: ~azure.mgmt.datafactory.models.DWCopyCommandSettings + :ivar table_option: The option to handle sink table, such as autoCreate. For now only + 'autoCreate' value is supported. Type: string (or Expression with resultType string). + :vartype table_option: any + :ivar sql_writer_use_table_lock: Whether to use table lock during bulk copy. Type: boolean (or + Expression with resultType boolean). + :vartype sql_writer_use_table_lock: any + :ivar write_behavior: Write behavior when copying data into azure SQL DW. Type: + SqlDWWriteBehaviorEnum (or Expression with resultType SqlDWWriteBehaviorEnum). + :vartype write_behavior: any + :ivar upsert_settings: SQL DW upsert settings. + :vartype upsert_settings: ~azure.mgmt.datafactory.models.SqlDWUpsertSettings + :ivar type: Copy sink type. Required. Default value is "SqlDWSink". + :vartype type: str + """ + + pre_copy_script: Optional[Any] = rest_field( + name="preCopyScript", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL pre-copy script. Type: string (or Expression with resultType string).""" + allow_poly_base: Optional[Any] = rest_field( + name="allowPolyBase", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates to use PolyBase to copy data into SQL Data Warehouse when applicable. Type: boolean + (or Expression with resultType boolean).""" + poly_base_settings: Optional["_models.PolybaseSettings"] = rest_field( + name="polyBaseSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies PolyBase-related settings when allowPolyBase is true.""" + allow_copy_command: Optional[Any] = rest_field( + name="allowCopyCommand", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or + Expression with resultType boolean).""" + copy_command_settings: Optional["_models.DWCopyCommandSettings"] = rest_field( + name="copyCommandSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies Copy Command related settings when allowCopyCommand is true.""" + table_option: Optional[Any] = rest_field( + name="tableOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is + supported. Type: string (or Expression with resultType string).""" + sql_writer_use_table_lock: Optional[Any] = rest_field( + name="sqlWriterUseTableLock", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType + boolean).""" + write_behavior: Optional[Any] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """Write behavior when copying data into azure SQL DW. Type: SqlDWWriteBehaviorEnum (or Expression + with resultType SqlDWWriteBehaviorEnum).""" + upsert_settings: Optional["_models.SqlDWUpsertSettings"] = rest_field( + name="upsertSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL DW upsert settings.""" + type: Literal["SqlDWSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"SqlDWSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + pre_copy_script: Optional[Any] = None, + allow_poly_base: Optional[Any] = None, + poly_base_settings: Optional["_models.PolybaseSettings"] = None, + allow_copy_command: Optional[Any] = None, + copy_command_settings: Optional["_models.DWCopyCommandSettings"] = None, + table_option: Optional[Any] = None, + sql_writer_use_table_lock: Optional[Any] = None, + write_behavior: Optional[Any] = None, + upsert_settings: Optional["_models.SqlDWUpsertSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SqlDWSink" # type: ignore + + +class SqlDWSource(TabularSource, discriminator="SqlDWSource"): + """A copy activity SQL Data Warehouse source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar sql_reader_query: SQL Data Warehouse reader query. Type: string (or Expression with + resultType string). + :vartype sql_reader_query: any + :ivar sql_reader_stored_procedure_name: Name of the stored procedure for a SQL Data Warehouse + source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression + with resultType string). + :vartype sql_reader_stored_procedure_name: any + :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. + Example: "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression with resultType + object), itemType: StoredProcedureParameter. + :vartype stored_procedure_parameters: any + :ivar isolation_level: Specifies the transaction locking behavior for the SQL source. Allowed + values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value + is ReadCommitted. Type: string (or Expression with resultType string). + :vartype isolation_level: any + :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. + Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or + Expression with resultType string). + :vartype partition_option: any + :ivar partition_settings: The settings that will be leveraged for Sql source partitioning. + :vartype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings + :ivar type: Copy source type. Required. Default value is "SqlDWSource". + :vartype type: str + """ + + sql_reader_query: Optional[Any] = rest_field( + name="sqlReaderQuery", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL Data Warehouse reader query. Type: string (or Expression with resultType string).""" + sql_reader_stored_procedure_name: Optional[Any] = rest_field( + name="sqlReaderStoredProcedureName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the stored procedure for a SQL Data Warehouse source. This cannot be used at the same + time as SqlReaderQuery. Type: string (or Expression with resultType string).""" + stored_procedure_parameters: Optional[Any] = rest_field( + name="storedProcedureParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """Value and type setting for stored procedure parameters. Example: \"{Parameter1: {value: \"1\", + type: \"int\"}}\". Type: object (or Expression with resultType object), itemType: + StoredProcedureParameter.""" + isolation_level: Optional[Any] = rest_field( + name="isolationLevel", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the transaction locking behavior for the SQL source. Allowed values: + ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is + ReadCommitted. Type: string (or Expression with resultType string).""" + partition_option: Optional[Any] = rest_field( + name="partitionOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The partition mechanism that will be used for Sql read in parallel. Possible values include: + \"None\", \"PhysicalPartitionsOfTable\", \"DynamicRange\". Type: string (or Expression with + resultType string).""" + partition_settings: Optional["_models.SqlPartitionSettings"] = rest_field( + name="partitionSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The settings that will be leveraged for Sql source partitioning.""" + type: Literal["SqlDWSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SqlDWSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + sql_reader_query: Optional[Any] = None, + sql_reader_stored_procedure_name: Optional[Any] = None, + stored_procedure_parameters: Optional[Any] = None, + isolation_level: Optional[Any] = None, + partition_option: Optional[Any] = None, + partition_settings: Optional["_models.SqlPartitionSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SqlDWSource" # type: ignore + + +class SqlDWUpsertSettings(_Model): + """Sql DW upsert option settings. + + :ivar interim_schema_name: Schema name for interim table. Type: string (or Expression with + resultType string). + :vartype interim_schema_name: any + :ivar keys_property: Key column names for unique row identification. Type: array of strings (or + Expression with resultType array of strings). + :vartype keys_property: any + """ + + interim_schema_name: Optional[Any] = rest_field( + name="interimSchemaName", visibility=["read", "create", "update", "delete", "query"] + ) + """Schema name for interim table. Type: string (or Expression with resultType string).""" + keys_property: Optional[Any] = rest_field( + name="keys", visibility=["read", "create", "update", "delete", "query"], original_tsp_name="keys" + ) + """Key column names for unique row identification. Type: array of strings (or Expression with + resultType array of strings).""" + + @overload + def __init__( + self, + *, + interim_schema_name: Optional[Any] = None, + keys_property: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SqlMISink(CopySink, discriminator="SqlMISink"): + """A copy activity Azure SQL Managed Instance sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar sql_writer_stored_procedure_name: SQL writer stored procedure name. Type: string (or + Expression with resultType string). + :vartype sql_writer_stored_procedure_name: any + :ivar sql_writer_table_type: SQL writer table type. Type: string (or Expression with resultType + string). + :vartype sql_writer_table_type: any + :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType + string). + :vartype pre_copy_script: any + :ivar stored_procedure_parameters: SQL stored procedure parameters. + :vartype stored_procedure_parameters: any + :ivar stored_procedure_table_type_parameter_name: The stored procedure parameter name of the + table type. Type: string (or Expression with resultType string). + :vartype stored_procedure_table_type_parameter_name: any + :ivar table_option: The option to handle sink table, such as autoCreate. For now only + 'autoCreate' value is supported. Type: string (or Expression with resultType string). + :vartype table_option: any + :ivar sql_writer_use_table_lock: Whether to use table lock during bulk copy. Type: boolean (or + Expression with resultType boolean). + :vartype sql_writer_use_table_lock: any + :ivar write_behavior: White behavior when copying data into azure SQL MI. Type: string (or + Expression with resultType string). + :vartype write_behavior: any + :ivar upsert_settings: SQL upsert settings. + :vartype upsert_settings: ~azure.mgmt.datafactory.models.SqlUpsertSettings + :ivar type: Copy sink type. Required. Default value is "SqlMISink". + :vartype type: str + """ + + sql_writer_stored_procedure_name: Optional[Any] = rest_field( + name="sqlWriterStoredProcedureName", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL writer stored procedure name. Type: string (or Expression with resultType string).""" + sql_writer_table_type: Optional[Any] = rest_field( + name="sqlWriterTableType", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL writer table type. Type: string (or Expression with resultType string).""" + pre_copy_script: Optional[Any] = rest_field( + name="preCopyScript", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL pre-copy script. Type: string (or Expression with resultType string).""" + stored_procedure_parameters: Optional[Any] = rest_field( + name="storedProcedureParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL stored procedure parameters.""" + stored_procedure_table_type_parameter_name: Optional[Any] = rest_field( + name="storedProcedureTableTypeParameterName", visibility=["read", "create", "update", "delete", "query"] + ) + """The stored procedure parameter name of the table type. Type: string (or Expression with + resultType string).""" + table_option: Optional[Any] = rest_field( + name="tableOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is + supported. Type: string (or Expression with resultType string).""" + sql_writer_use_table_lock: Optional[Any] = rest_field( + name="sqlWriterUseTableLock", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType + boolean).""" + write_behavior: Optional[Any] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """White behavior when copying data into azure SQL MI. Type: string (or Expression with resultType + string).""" + upsert_settings: Optional["_models.SqlUpsertSettings"] = rest_field( + name="upsertSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL upsert settings.""" + type: Literal["SqlMISink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"SqlMISink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + sql_writer_stored_procedure_name: Optional[Any] = None, + sql_writer_table_type: Optional[Any] = None, + pre_copy_script: Optional[Any] = None, + stored_procedure_parameters: Optional[Any] = None, + stored_procedure_table_type_parameter_name: Optional[Any] = None, + table_option: Optional[Any] = None, + sql_writer_use_table_lock: Optional[Any] = None, + write_behavior: Optional[Any] = None, + upsert_settings: Optional["_models.SqlUpsertSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SqlMISink" # type: ignore + + +class SqlMISource(TabularSource, discriminator="SqlMISource"): + """A copy activity Azure SQL Managed Instance source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar sql_reader_query: SQL reader query. Type: string (or Expression with resultType string). + :vartype sql_reader_query: any + :ivar sql_reader_stored_procedure_name: Name of the stored procedure for a Azure SQL Managed + Instance source. This cannot be used at the same time as SqlReaderQuery. Type: string (or + Expression with resultType string). + :vartype sql_reader_stored_procedure_name: any + :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. + Example: "{Parameter1: {value: "1", type: "int"}}". + :vartype stored_procedure_parameters: any + :ivar isolation_level: Specifies the transaction locking behavior for the SQL source. Allowed + values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value + is ReadCommitted. Type: string (or Expression with resultType string). + :vartype isolation_level: any + :ivar produce_additional_types: Which additional types to produce. + :vartype produce_additional_types: any + :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. + Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or + Expression with resultType string). + :vartype partition_option: any + :ivar partition_settings: The settings that will be leveraged for Sql source partitioning. + :vartype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings + :ivar type: Copy source type. Required. Default value is "SqlMISource". + :vartype type: str + """ + + sql_reader_query: Optional[Any] = rest_field( + name="sqlReaderQuery", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL reader query. Type: string (or Expression with resultType string).""" + sql_reader_stored_procedure_name: Optional[Any] = rest_field( + name="sqlReaderStoredProcedureName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the stored procedure for a Azure SQL Managed Instance source. This cannot be used at + the same time as SqlReaderQuery. Type: string (or Expression with resultType string).""" + stored_procedure_parameters: Optional[Any] = rest_field( + name="storedProcedureParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """Value and type setting for stored procedure parameters. Example: \"{Parameter1: {value: \"1\", + type: \"int\"}}\".""" + isolation_level: Optional[Any] = rest_field( + name="isolationLevel", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the transaction locking behavior for the SQL source. Allowed values: + ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is + ReadCommitted. Type: string (or Expression with resultType string).""" + produce_additional_types: Optional[Any] = rest_field( + name="produceAdditionalTypes", visibility=["read", "create", "update", "delete", "query"] + ) + """Which additional types to produce.""" + partition_option: Optional[Any] = rest_field( + name="partitionOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The partition mechanism that will be used for Sql read in parallel. Possible values include: + \"None\", \"PhysicalPartitionsOfTable\", \"DynamicRange\". Type: string (or Expression with + resultType string).""" + partition_settings: Optional["_models.SqlPartitionSettings"] = rest_field( + name="partitionSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The settings that will be leveraged for Sql source partitioning.""" + type: Literal["SqlMISource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SqlMISource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + sql_reader_query: Optional[Any] = None, + sql_reader_stored_procedure_name: Optional[Any] = None, + stored_procedure_parameters: Optional[Any] = None, + isolation_level: Optional[Any] = None, + produce_additional_types: Optional[Any] = None, + partition_option: Optional[Any] = None, + partition_settings: Optional["_models.SqlPartitionSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SqlMISource" # type: ignore + + +class SqlPartitionSettings(_Model): + """The settings that will be leveraged for Sql source partitioning. + + :ivar partition_column_name: The name of the column in integer or datetime type that will be + used for proceeding partitioning. If not specified, the primary key of the table is + auto-detected and used as the partition column. Type: string (or Expression with resultType + string). + :vartype partition_column_name: any + :ivar partition_upper_bound: The maximum value of the partition column for partition range + splitting. This value is used to decide the partition stride, not for filtering the rows in + table. All rows in the table or query result will be partitioned and copied. Type: string (or + Expression with resultType string). + :vartype partition_upper_bound: any + :ivar partition_lower_bound: The minimum value of the partition column for partition range + splitting. This value is used to decide the partition stride, not for filtering the rows in + table. All rows in the table or query result will be partitioned and copied. Type: string (or + Expression with resultType string). + :vartype partition_lower_bound: any + """ + + partition_column_name: Optional[Any] = rest_field( + name="partitionColumnName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the column in integer or datetime type that will be used for proceeding + partitioning. If not specified, the primary key of the table is auto-detected and used as the + partition column. Type: string (or Expression with resultType string).""" + partition_upper_bound: Optional[Any] = rest_field( + name="partitionUpperBound", visibility=["read", "create", "update", "delete", "query"] + ) + """The maximum value of the partition column for partition range splitting. This value is used to + decide the partition stride, not for filtering the rows in table. All rows in the table or + query result will be partitioned and copied. Type: string (or Expression with resultType + string).""" + partition_lower_bound: Optional[Any] = rest_field( + name="partitionLowerBound", visibility=["read", "create", "update", "delete", "query"] + ) + """The minimum value of the partition column for partition range splitting. This value is used to + decide the partition stride, not for filtering the rows in table. All rows in the table or + query result will be partitioned and copied. Type: string (or Expression with resultType + string).""" + + @overload + def __init__( + self, + *, + partition_column_name: Optional[Any] = None, + partition_upper_bound: Optional[Any] = None, + partition_lower_bound: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SqlServerLinkedService(LinkedService, discriminator="SqlServer"): + """SQL Server linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: SQL Server linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SqlServerLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "SqlServer". + :vartype type: str + """ + + type_properties: "_models.SqlServerLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL Server linked service properties. Required.""" + type: Literal["SqlServer"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"SqlServer\".""" + + __flattened_items = [ + "server", + "database", + "encrypt", + "trust_server_certificate", + "host_name_in_certificate", + "application_intent", + "connect_timeout", + "connect_retry_count", + "connect_retry_interval", + "load_balance_timeout", + "command_timeout", + "integrated_security", + "failover_partner", + "max_pool_size", + "min_pool_size", + "multiple_active_result_sets", + "multi_subnet_failover", + "packet_size", + "pooling", + "connection_string", + "authentication_type", + "user_name", + "password", + "encrypted_credential", + "always_encrypted_settings", + "credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.SqlServerLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SqlServerLinkedServiceTypeProperties(SqlServerBaseLinkedServiceTypeProperties): + """SQL Server linked service properties. + + :ivar server: The name or network address of the instance of SQL Server to which to connect, + used by recommended version. Type: string (or Expression with resultType string). + :vartype server: any + :ivar database: The name of the database, used by recommended version. Type: string (or + Expression with resultType string). + :vartype database: any + :ivar encrypt: Indicate whether TLS encryption is required for all data sent between the client + and server, used by recommended version. Possible values are true/yes/mandatory, + false/no/optional and strict. Type: string (or Expression with resultType string). + :vartype encrypt: any + :ivar trust_server_certificate: Indicate whether the channel will be encrypted while bypassing + walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or + Expression with resultType boolean). + :vartype trust_server_certificate: any + :ivar host_name_in_certificate: The host name to use when validating the server certificate for + the connection. When not specified, the server name from the Data Source is used for + certificate validation, used by recommended version. Type: string (or Expression with + resultType string). + :vartype host_name_in_certificate: any + :ivar application_intent: The application workload type when connecting to a server, used by + recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression + with resultType string). + :vartype application_intent: any + :ivar connect_timeout: The length of time (in seconds) to wait for a connection to the server + before terminating the attempt and generating an error, used by recommended version. Type: + integer (or Expression with resultType integer). + :vartype connect_timeout: any + :ivar connect_retry_count: The number of re-connections attempted after identifying that there + was an idle connection failure, used by recommended version. This must be an integer between 0 + and 255. Type: integer (or Expression with resultType integer). + :vartype connect_retry_count: any + :ivar connect_retry_interval: The amount of time (in seconds) between each re-connection + attempt after identifying that there was an idle connection failure, used by recommended + version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType + integer). + :vartype connect_retry_interval: any + :ivar load_balance_timeout: The minimum time, in seconds, for the connection to live in the + connection pool before being destroyed, used by recommended version. Type: integer (or + Expression with resultType integer). + :vartype load_balance_timeout: any + :ivar command_timeout: The default wait time (in seconds) before terminating the attempt to + execute a command and generating an error, used by recommended version. Type: integer (or + Expression with resultType integer). + :vartype command_timeout: any + :ivar integrated_security: Indicate whether User ID and Password are specified in the + connection (when false) or whether the current Windows account credentials are used for + authentication (when true), used by recommended version. Type: Boolean (or Expression with + resultType boolean). + :vartype integrated_security: any + :ivar failover_partner: The name or address of the partner server to connect to if the primary + server is down, used by recommended version. Type: string (or Expression with resultType + string). + :vartype failover_partner: any + :ivar max_pool_size: The maximum number of connections allowed in the connection pool for this + specific connection string, used by recommended version. Type: integer (or Expression with + resultType integer). + :vartype max_pool_size: any + :ivar min_pool_size: The minimum number of connections allowed in the connection pool for this + specific connection string, used by recommended version. Type: integer (or Expression with + resultType integer). + :vartype min_pool_size: any + :ivar multiple_active_result_sets: When true, an application can maintain multiple active + result sets (MARS). When false, an application must process or cancel all result sets from one + batch before it can execute any other batch on that connection, used by recommended version. + Type: Boolean (or Expression with resultType boolean). + :vartype multiple_active_result_sets: any + :ivar multi_subnet_failover: If your application is connecting to an AlwaysOn availability + group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of + and connection to the (currently) active server, used by recommended version. Type: Boolean (or + Expression with resultType boolean). + :vartype multi_subnet_failover: any + :ivar packet_size: The size in bytes of the network packets used to communicate with an + instance of server, used by recommended version. Type: integer (or Expression with resultType + integer). + :vartype packet_size: any + :ivar pooling: Indicate whether the connection will be pooled or explicitly opened every time + that the connection is requested, used by recommended version. Type: Boolean (or Expression + with resultType boolean). + :vartype pooling: any + :ivar connection_string: The connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar authentication_type: The type used for authentication. Type: string. Known values are: + "SQL", "Windows", and "UserAssignedManagedIdentity". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.SqlServerAuthenticationType + :ivar user_name: The on-premises Windows authentication user name. Type: string (or Expression + with resultType string). + :vartype user_name: any + :ivar password: The on-premises Windows authentication password. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar always_encrypted_settings: Sql always encrypted properties. + :vartype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.""" + authentication_type: Optional[Union[str, "_models.SqlServerAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type used for authentication. Type: string. Known values are: \"SQL\", \"Windows\", and + \"UserAssignedManagedIdentity\".""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """The on-premises Windows authentication user name. Type: string (or Expression with resultType + string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The on-premises Windows authentication password.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = rest_field( + name="alwaysEncryptedSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Sql always encrypted properties.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( # pylint: disable=too-many-locals + self, + *, + server: Optional[Any] = None, + database: Optional[Any] = None, + encrypt: Optional[Any] = None, + trust_server_certificate: Optional[Any] = None, + host_name_in_certificate: Optional[Any] = None, + application_intent: Optional[Any] = None, + connect_timeout: Optional[Any] = None, + connect_retry_count: Optional[Any] = None, + connect_retry_interval: Optional[Any] = None, + load_balance_timeout: Optional[Any] = None, + command_timeout: Optional[Any] = None, + integrated_security: Optional[Any] = None, + failover_partner: Optional[Any] = None, + max_pool_size: Optional[Any] = None, + min_pool_size: Optional[Any] = None, + multiple_active_result_sets: Optional[Any] = None, + multi_subnet_failover: Optional[Any] = None, + packet_size: Optional[Any] = None, + pooling: Optional[Any] = None, + connection_string: Optional[Any] = None, + authentication_type: Optional[Union[str, "_models.SqlServerAuthenticationType"]] = None, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SqlServerSink(CopySink, discriminator="SqlServerSink"): + """A copy activity SQL server sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar sql_writer_stored_procedure_name: SQL writer stored procedure name. Type: string (or + Expression with resultType string). + :vartype sql_writer_stored_procedure_name: any + :ivar sql_writer_table_type: SQL writer table type. Type: string (or Expression with resultType + string). + :vartype sql_writer_table_type: any + :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType + string). + :vartype pre_copy_script: any + :ivar stored_procedure_parameters: SQL stored procedure parameters. + :vartype stored_procedure_parameters: any + :ivar stored_procedure_table_type_parameter_name: The stored procedure parameter name of the + table type. Type: string (or Expression with resultType string). + :vartype stored_procedure_table_type_parameter_name: any + :ivar table_option: The option to handle sink table, such as autoCreate. For now only + 'autoCreate' value is supported. Type: string (or Expression with resultType string). + :vartype table_option: any + :ivar sql_writer_use_table_lock: Whether to use table lock during bulk copy. Type: boolean (or + Expression with resultType boolean). + :vartype sql_writer_use_table_lock: any + :ivar write_behavior: Write behavior when copying data into sql server. Type: string (or + Expression with resultType string). + :vartype write_behavior: any + :ivar upsert_settings: SQL upsert settings. + :vartype upsert_settings: ~azure.mgmt.datafactory.models.SqlUpsertSettings + :ivar type: Copy sink type. Required. Default value is "SqlServerSink". + :vartype type: str + """ + + sql_writer_stored_procedure_name: Optional[Any] = rest_field( + name="sqlWriterStoredProcedureName", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL writer stored procedure name. Type: string (or Expression with resultType string).""" + sql_writer_table_type: Optional[Any] = rest_field( + name="sqlWriterTableType", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL writer table type. Type: string (or Expression with resultType string).""" + pre_copy_script: Optional[Any] = rest_field( + name="preCopyScript", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL pre-copy script. Type: string (or Expression with resultType string).""" + stored_procedure_parameters: Optional[Any] = rest_field( + name="storedProcedureParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL stored procedure parameters.""" + stored_procedure_table_type_parameter_name: Optional[Any] = rest_field( + name="storedProcedureTableTypeParameterName", visibility=["read", "create", "update", "delete", "query"] + ) + """The stored procedure parameter name of the table type. Type: string (or Expression with + resultType string).""" + table_option: Optional[Any] = rest_field( + name="tableOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is + supported. Type: string (or Expression with resultType string).""" + sql_writer_use_table_lock: Optional[Any] = rest_field( + name="sqlWriterUseTableLock", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType + boolean).""" + write_behavior: Optional[Any] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """Write behavior when copying data into sql server. Type: string (or Expression with resultType + string).""" + upsert_settings: Optional["_models.SqlUpsertSettings"] = rest_field( + name="upsertSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL upsert settings.""" + type: Literal["SqlServerSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"SqlServerSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + sql_writer_stored_procedure_name: Optional[Any] = None, + sql_writer_table_type: Optional[Any] = None, + pre_copy_script: Optional[Any] = None, + stored_procedure_parameters: Optional[Any] = None, + stored_procedure_table_type_parameter_name: Optional[Any] = None, + table_option: Optional[Any] = None, + sql_writer_use_table_lock: Optional[Any] = None, + write_behavior: Optional[Any] = None, + upsert_settings: Optional["_models.SqlUpsertSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SqlServerSink" # type: ignore + + +class SqlServerSource(TabularSource, discriminator="SqlServerSource"): + """A copy activity SQL server source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar sql_reader_query: SQL reader query. Type: string (or Expression with resultType string). + :vartype sql_reader_query: any + :ivar sql_reader_stored_procedure_name: Name of the stored procedure for a SQL Database source. + This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with + resultType string). + :vartype sql_reader_stored_procedure_name: any + :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. + Example: "{Parameter1: {value: "1", type: "int"}}". + :vartype stored_procedure_parameters: any + :ivar isolation_level: Specifies the transaction locking behavior for the SQL source. Allowed + values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value + is ReadCommitted. Type: string (or Expression with resultType string). + :vartype isolation_level: any + :ivar produce_additional_types: Which additional types to produce. + :vartype produce_additional_types: any + :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. + Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or + Expression with resultType string). + :vartype partition_option: any + :ivar partition_settings: The settings that will be leveraged for Sql source partitioning. + :vartype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings + :ivar type: Copy source type. Required. Default value is "SqlServerSource". + :vartype type: str + """ + + sql_reader_query: Optional[Any] = rest_field( + name="sqlReaderQuery", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL reader query. Type: string (or Expression with resultType string).""" + sql_reader_stored_procedure_name: Optional[Any] = rest_field( + name="sqlReaderStoredProcedureName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the stored procedure for a SQL Database source. This cannot be used at the same time as + SqlReaderQuery. Type: string (or Expression with resultType string).""" + stored_procedure_parameters: Optional[Any] = rest_field( + name="storedProcedureParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """Value and type setting for stored procedure parameters. Example: \"{Parameter1: {value: \"1\", + type: \"int\"}}\".""" + isolation_level: Optional[Any] = rest_field( + name="isolationLevel", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the transaction locking behavior for the SQL source. Allowed values: + ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is + ReadCommitted. Type: string (or Expression with resultType string).""" + produce_additional_types: Optional[Any] = rest_field( + name="produceAdditionalTypes", visibility=["read", "create", "update", "delete", "query"] + ) + """Which additional types to produce.""" + partition_option: Optional[Any] = rest_field( + name="partitionOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The partition mechanism that will be used for Sql read in parallel. Possible values include: + \"None\", \"PhysicalPartitionsOfTable\", \"DynamicRange\". Type: string (or Expression with + resultType string).""" + partition_settings: Optional["_models.SqlPartitionSettings"] = rest_field( + name="partitionSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The settings that will be leveraged for Sql source partitioning.""" + type: Literal["SqlServerSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SqlServerSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + sql_reader_query: Optional[Any] = None, + sql_reader_stored_procedure_name: Optional[Any] = None, + stored_procedure_parameters: Optional[Any] = None, + isolation_level: Optional[Any] = None, + produce_additional_types: Optional[Any] = None, + partition_option: Optional[Any] = None, + partition_settings: Optional["_models.SqlPartitionSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SqlServerSource" # type: ignore + + +class SqlServerStoredProcedureActivity(ExecutionActivity, discriminator="SqlServerStoredProcedure"): + """SQL stored procedure activity type. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: SQL stored procedure activity properties. Required. + :vartype type_properties: + ~azure.mgmt.datafactory.models.SqlServerStoredProcedureActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "SqlServerStoredProcedure". + :vartype type: str + """ + + type_properties: "_models.SqlServerStoredProcedureActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL stored procedure activity properties. Required.""" + type: Literal["SqlServerStoredProcedure"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"SqlServerStoredProcedure\".""" + + __flattened_items = ["stored_procedure_name", "stored_procedure_parameters"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.SqlServerStoredProcedureActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SqlServerStoredProcedureActivityTypeProperties(_Model): # pylint: disable=name-too-long + """SQL stored procedure activity properties. + + :ivar stored_procedure_name: Stored procedure name. Type: string (or Expression with resultType + string). Required. + :vartype stored_procedure_name: any + :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. + Example: "{Parameter1: {value: "1", type: "int"}}". + :vartype stored_procedure_parameters: any + """ + + stored_procedure_name: Any = rest_field( + name="storedProcedureName", visibility=["read", "create", "update", "delete", "query"] + ) + """Stored procedure name. Type: string (or Expression with resultType string). Required.""" + stored_procedure_parameters: Optional[Any] = rest_field( + name="storedProcedureParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """Value and type setting for stored procedure parameters. Example: \"{Parameter1: {value: \"1\", + type: \"int\"}}\".""" + + @overload + def __init__( + self, + *, + stored_procedure_name: Any, + stored_procedure_parameters: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SqlServerTableDataset(Dataset, discriminator="SqlServerTable"): + """The on-premises SQL Server dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: On-premises SQL Server dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.SqlServerTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "SqlServerTable". + :vartype type: str + """ + + type_properties: Optional["_models.SqlServerTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """On-premises SQL Server dataset properties.""" + type: Literal["SqlServerTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SqlServerTable\".""" + + __flattened_items = ["table_name", "schema", "table"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.SqlServerTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SqlServerTableDatasetTypeProperties(_Model): + """On-premises SQL Server dataset properties. + + :ivar table_name: This property will be retired. Please consider using schema + table + properties instead. + :vartype table_name: any + :ivar schema: The schema name of the SQL Server dataset. Type: string (or Expression with + resultType string). + :vartype schema: any + :ivar table: The table name of the SQL Server dataset. Type: string (or Expression with + resultType string). + :vartype table: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property will be retired. Please consider using schema + table properties instead.""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the SQL Server dataset. Type: string (or Expression with resultType string).""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the SQL Server dataset. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + schema: Optional[Any] = None, + table: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SqlSink(CopySink, discriminator="SqlSink"): + """A copy activity SQL sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar sql_writer_stored_procedure_name: SQL writer stored procedure name. Type: string (or + Expression with resultType string). + :vartype sql_writer_stored_procedure_name: any + :ivar sql_writer_table_type: SQL writer table type. Type: string (or Expression with resultType + string). + :vartype sql_writer_table_type: any + :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType + string). + :vartype pre_copy_script: any + :ivar stored_procedure_parameters: SQL stored procedure parameters. + :vartype stored_procedure_parameters: any + :ivar stored_procedure_table_type_parameter_name: The stored procedure parameter name of the + table type. Type: string (or Expression with resultType string). + :vartype stored_procedure_table_type_parameter_name: any + :ivar table_option: The option to handle sink table, such as autoCreate. For now only + 'autoCreate' value is supported. Type: string (or Expression with resultType string). + :vartype table_option: any + :ivar sql_writer_use_table_lock: Whether to use table lock during bulk copy. Type: boolean (or + Expression with resultType boolean). + :vartype sql_writer_use_table_lock: any + :ivar write_behavior: Write behavior when copying data into sql. Type: string (or Expression + with resultType string). + :vartype write_behavior: any + :ivar upsert_settings: SQL upsert settings. + :vartype upsert_settings: ~azure.mgmt.datafactory.models.SqlUpsertSettings + :ivar type: Copy sink type. Required. Default value is "SqlSink". + :vartype type: str + """ + + sql_writer_stored_procedure_name: Optional[Any] = rest_field( + name="sqlWriterStoredProcedureName", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL writer stored procedure name. Type: string (or Expression with resultType string).""" + sql_writer_table_type: Optional[Any] = rest_field( + name="sqlWriterTableType", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL writer table type. Type: string (or Expression with resultType string).""" + pre_copy_script: Optional[Any] = rest_field( + name="preCopyScript", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL pre-copy script. Type: string (or Expression with resultType string).""" + stored_procedure_parameters: Optional[Any] = rest_field( + name="storedProcedureParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL stored procedure parameters.""" + stored_procedure_table_type_parameter_name: Optional[Any] = rest_field( + name="storedProcedureTableTypeParameterName", visibility=["read", "create", "update", "delete", "query"] + ) + """The stored procedure parameter name of the table type. Type: string (or Expression with + resultType string).""" + table_option: Optional[Any] = rest_field( + name="tableOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is + supported. Type: string (or Expression with resultType string).""" + sql_writer_use_table_lock: Optional[Any] = rest_field( + name="sqlWriterUseTableLock", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType + boolean).""" + write_behavior: Optional[Any] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """Write behavior when copying data into sql. Type: string (or Expression with resultType string).""" + upsert_settings: Optional["_models.SqlUpsertSettings"] = rest_field( + name="upsertSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL upsert settings.""" + type: Literal["SqlSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"SqlSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + sql_writer_stored_procedure_name: Optional[Any] = None, + sql_writer_table_type: Optional[Any] = None, + pre_copy_script: Optional[Any] = None, + stored_procedure_parameters: Optional[Any] = None, + stored_procedure_table_type_parameter_name: Optional[Any] = None, + table_option: Optional[Any] = None, + sql_writer_use_table_lock: Optional[Any] = None, + write_behavior: Optional[Any] = None, + upsert_settings: Optional["_models.SqlUpsertSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SqlSink" # type: ignore + + +class SqlSource(TabularSource, discriminator="SqlSource"): + """A copy activity SQL source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar sql_reader_query: SQL reader query. Type: string (or Expression with resultType string). + :vartype sql_reader_query: any + :ivar sql_reader_stored_procedure_name: Name of the stored procedure for a SQL Database source. + This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with + resultType string). + :vartype sql_reader_stored_procedure_name: any + :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. + Example: "{Parameter1: {value: "1", type: "int"}}". + :vartype stored_procedure_parameters: any + :ivar isolation_level: Specifies the transaction locking behavior for the SQL source. Allowed + values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value + is ReadCommitted. Type: string (or Expression with resultType string). + :vartype isolation_level: any + :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. + Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or + Expression with resultType string). + :vartype partition_option: any + :ivar partition_settings: The settings that will be leveraged for Sql source partitioning. + :vartype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings + :ivar type: Copy source type. Required. Default value is "SqlSource". + :vartype type: str + """ + + sql_reader_query: Optional[Any] = rest_field( + name="sqlReaderQuery", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL reader query. Type: string (or Expression with resultType string).""" + sql_reader_stored_procedure_name: Optional[Any] = rest_field( + name="sqlReaderStoredProcedureName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the stored procedure for a SQL Database source. This cannot be used at the same time as + SqlReaderQuery. Type: string (or Expression with resultType string).""" + stored_procedure_parameters: Optional[Any] = rest_field( + name="storedProcedureParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """Value and type setting for stored procedure parameters. Example: \"{Parameter1: {value: \"1\", + type: \"int\"}}\".""" + isolation_level: Optional[Any] = rest_field( + name="isolationLevel", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the transaction locking behavior for the SQL source. Allowed values: + ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is + ReadCommitted. Type: string (or Expression with resultType string).""" + partition_option: Optional[Any] = rest_field( + name="partitionOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The partition mechanism that will be used for Sql read in parallel. Possible values include: + \"None\", \"PhysicalPartitionsOfTable\", \"DynamicRange\". Type: string (or Expression with + resultType string).""" + partition_settings: Optional["_models.SqlPartitionSettings"] = rest_field( + name="partitionSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The settings that will be leveraged for Sql source partitioning.""" + type: Literal["SqlSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SqlSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + sql_reader_query: Optional[Any] = None, + sql_reader_stored_procedure_name: Optional[Any] = None, + stored_procedure_parameters: Optional[Any] = None, + isolation_level: Optional[Any] = None, + partition_option: Optional[Any] = None, + partition_settings: Optional["_models.SqlPartitionSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SqlSource" # type: ignore + + +class SqlUpsertSettings(_Model): + """Sql upsert option settings. + + :ivar use_temp_db: Specifies whether to use temp db for upsert interim table. Type: boolean (or + Expression with resultType boolean). + :vartype use_temp_db: any + :ivar interim_schema_name: Schema name for interim table. Type: string (or Expression with + resultType string). + :vartype interim_schema_name: any + :ivar keys_property: Key column names for unique row identification. Type: array of strings (or + Expression with resultType array of strings). + :vartype keys_property: any + """ + + use_temp_db: Optional[Any] = rest_field( + name="useTempDB", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to use temp db for upsert interim table. Type: boolean (or Expression with + resultType boolean).""" + interim_schema_name: Optional[Any] = rest_field( + name="interimSchemaName", visibility=["read", "create", "update", "delete", "query"] + ) + """Schema name for interim table. Type: string (or Expression with resultType string).""" + keys_property: Optional[Any] = rest_field( + name="keys", visibility=["read", "create", "update", "delete", "query"], original_tsp_name="keys" + ) + """Key column names for unique row identification. Type: array of strings (or Expression with + resultType array of strings).""" + + @overload + def __init__( + self, + *, + use_temp_db: Optional[Any] = None, + interim_schema_name: Optional[Any] = None, + keys_property: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SquareLinkedService(LinkedService, discriminator="Square"): + """Square Service linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Square Service linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SquareLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Square". + :vartype type: str + """ + + type_properties: "_models.SquareLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Square Service linked service properties. Required.""" + type: Literal["Square"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Square\".""" + + __flattened_items = [ + "connection_properties", + "host", + "client_id", + "client_secret", + "redirect_uri", + "use_encrypted_endpoints", + "use_host_verification", + "use_peer_verification", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.SquareLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SquareLinkedServiceTypeProperties(_Model): + """Square Service linked service properties. + + :ivar connection_properties: Properties used to connect to Square. It is mutually exclusive + with any other properties in the linked service. Type: object. + :vartype connection_properties: any + :ivar host: The URL of the Square instance. (i.e. mystore.mysquare.com). + :vartype host: any + :ivar client_id: The client ID associated with your Square application. + :vartype client_id: any + :ivar client_secret: The client secret associated with your Square application. + :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase + :ivar redirect_uri: The redirect URL assigned in the Square application dashboard. (i.e. + `http://localhost:2500 `_). + :vartype redirect_uri: any + :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using + HTTPS. The default value is true. + :vartype use_encrypted_endpoints: any + :ivar use_host_verification: Specifies whether to require the host name in the server's + certificate to match the host name of the server when connecting over SSL. The default value is + true. + :vartype use_host_verification: any + :ivar use_peer_verification: Specifies whether to verify the identity of the server when + connecting over SSL. The default value is true. + :vartype use_peer_verification: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_properties: Optional[Any] = rest_field( + name="connectionProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties used to connect to Square. It is mutually exclusive with any other properties in the + linked service. Type: object.""" + host: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The URL of the Square instance. (i.e. mystore.mysquare.com).""" + client_id: Optional[Any] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The client ID associated with your Square application.""" + client_secret: Optional["_models.SecretBase"] = rest_field( + name="clientSecret", visibility=["read", "create", "update", "delete", "query"] + ) + """The client secret associated with your Square application.""" + redirect_uri: Optional[Any] = rest_field( + name="redirectUri", visibility=["read", "create", "update", "delete", "query"] + ) + """The redirect URL assigned in the Square application dashboard. (i.e. `http://localhost:2500 + `_).""" + use_encrypted_endpoints: Optional[Any] = rest_field( + name="useEncryptedEndpoints", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the data source endpoints are encrypted using HTTPS. The default value is + true.""" + use_host_verification: Optional[Any] = rest_field( + name="useHostVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require the host name in the server's certificate to match the host name + of the server when connecting over SSL. The default value is true.""" + use_peer_verification: Optional[Any] = rest_field( + name="usePeerVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to verify the identity of the server when connecting over SSL. The default + value is true.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_properties: Optional[Any] = None, + host: Optional[Any] = None, + client_id: Optional[Any] = None, + client_secret: Optional["_models.SecretBase"] = None, + redirect_uri: Optional[Any] = None, + use_encrypted_endpoints: Optional[Any] = None, + use_host_verification: Optional[Any] = None, + use_peer_verification: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SquareObjectDataset(Dataset, discriminator="SquareObject"): + """Square Service dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "SquareObject". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["SquareObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SquareObject\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SquareSource(TabularSource, discriminator="SquareSource"): + """A copy activity Square Service source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "SquareSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["SquareSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SquareSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SquareSource" # type: ignore + + +class SSISAccessCredential(_Model): + """SSIS access credential. + + :ivar domain: Domain for windows authentication. Type: string (or Expression with resultType + string). Required. + :vartype domain: any + :ivar user_name: UseName for windows authentication. Type: string (or Expression with + resultType string). Required. + :vartype user_name: any + :ivar password: Password for windows authentication. Required. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + """ + + domain: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Domain for windows authentication. Type: string (or Expression with resultType string). + Required.""" + user_name: Any = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """UseName for windows authentication. Type: string (or Expression with resultType string). + Required.""" + password: "_models.SecretBase" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password for windows authentication. Required.""" + + @overload + def __init__( + self, + *, + domain: Any, + user_name: Any, + password: "_models.SecretBase", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SSISChildPackage(_Model): + """SSIS embedded child package. + + :ivar package_path: Path for embedded child package. Type: string (or Expression with + resultType string). Required. + :vartype package_path: any + :ivar package_name: Name for embedded child package. + :vartype package_name: str + :ivar package_content: Content for embedded child package. Type: string (or Expression with + resultType string). Required. + :vartype package_content: any + :ivar package_last_modified_date: Last modified date for embedded child package. + :vartype package_last_modified_date: str + """ + + package_path: Any = rest_field(name="packagePath", visibility=["read", "create", "update", "delete", "query"]) + """Path for embedded child package. Type: string (or Expression with resultType string). Required.""" + package_name: Optional[str] = rest_field( + name="packageName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name for embedded child package.""" + package_content: Any = rest_field(name="packageContent", visibility=["read", "create", "update", "delete", "query"]) + """Content for embedded child package. Type: string (or Expression with resultType string). + Required.""" + package_last_modified_date: Optional[str] = rest_field( + name="packageLastModifiedDate", visibility=["read", "create", "update", "delete", "query"] + ) + """Last modified date for embedded child package.""" + + @overload + def __init__( + self, + *, + package_path: Any, + package_content: Any, + package_name: Optional[str] = None, + package_last_modified_date: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SsisObjectMetadata(_Model): + """SSIS object metadata. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + SsisEnvironment, SsisFolder, SsisPackage, SsisProject + + :ivar type: Type of metadata. Required. Known values are: "Folder", "Project", "Package", and + "Environment". + :vartype type: str or ~azure.mgmt.datafactory.models.SsisObjectMetadataType + :ivar id: Metadata id. + :vartype id: int + :ivar name: Metadata name. + :vartype name: str + :ivar description: Metadata description. + :vartype description: str + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """Type of metadata. Required. Known values are: \"Folder\", \"Project\", \"Package\", and + \"Environment\".""" + id: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Metadata id.""" + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Metadata name.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Metadata description.""" + + @overload + def __init__( + self, + *, + type: str, + id: Optional[int] = None, # pylint: disable=redefined-builtin + name: Optional[str] = None, + description: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SsisEnvironment(SsisObjectMetadata, discriminator="Environment"): + """Ssis environment. + + :ivar id: Metadata id. + :vartype id: int + :ivar name: Metadata name. + :vartype name: str + :ivar description: Metadata description. + :vartype description: str + :ivar folder_id: Folder id which contains environment. + :vartype folder_id: int + :ivar variables: Variable in environment. + :vartype variables: list[~azure.mgmt.datafactory.models.SsisVariable] + :ivar type: Type of metadata. Required. Environment. + :vartype type: str or ~azure.mgmt.datafactory.models.ENVIRONMENT + """ + + folder_id: Optional[int] = rest_field(name="folderId", visibility=["read", "create", "update", "delete", "query"]) + """Folder id which contains environment.""" + variables: Optional[list["_models.SsisVariable"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Variable in environment.""" + type: Literal[SsisObjectMetadataType.ENVIRONMENT] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of metadata. Required. Environment.""" + + @overload + def __init__( + self, + *, + id: Optional[int] = None, # pylint: disable=redefined-builtin + name: Optional[str] = None, + description: Optional[str] = None, + folder_id: Optional[int] = None, + variables: Optional[list["_models.SsisVariable"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = SsisObjectMetadataType.ENVIRONMENT # type: ignore + + +class SsisEnvironmentReference(_Model): + """Ssis environment reference. + + :ivar id: Environment reference id. + :vartype id: int + :ivar environment_folder_name: Environment folder name. + :vartype environment_folder_name: str + :ivar environment_name: Environment name. + :vartype environment_name: str + :ivar reference_type: Reference type. + :vartype reference_type: str + """ + + id: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Environment reference id.""" + environment_folder_name: Optional[str] = rest_field( + name="environmentFolderName", visibility=["read", "create", "update", "delete", "query"] + ) + """Environment folder name.""" + environment_name: Optional[str] = rest_field( + name="environmentName", visibility=["read", "create", "update", "delete", "query"] + ) + """Environment name.""" + reference_type: Optional[str] = rest_field( + name="referenceType", visibility=["read", "create", "update", "delete", "query"] + ) + """Reference type.""" + + @overload + def __init__( + self, + *, + id: Optional[int] = None, # pylint: disable=redefined-builtin + environment_folder_name: Optional[str] = None, + environment_name: Optional[str] = None, + reference_type: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SSISExecutionCredential(_Model): + """SSIS package execution credential. + + :ivar domain: Domain for windows authentication. Type: string (or Expression with resultType + string). Required. + :vartype domain: any + :ivar user_name: UseName for windows authentication. Type: string (or Expression with + resultType string). Required. + :vartype user_name: any + :ivar password: Password for windows authentication. Required. + :vartype password: ~azure.mgmt.datafactory.models.SecureString + """ + + domain: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Domain for windows authentication. Type: string (or Expression with resultType string). + Required.""" + user_name: Any = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """UseName for windows authentication. Type: string (or Expression with resultType string). + Required.""" + password: "_models.SecureString" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password for windows authentication. Required.""" + + @overload + def __init__( + self, + *, + domain: Any, + user_name: Any, + password: "_models.SecureString", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SSISExecutionParameter(_Model): + """SSIS execution parameter. + + :ivar value: SSIS package execution parameter value. Type: string (or Expression with + resultType string). Required. + :vartype value: any + """ + + value: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """SSIS package execution parameter value. Type: string (or Expression with resultType string). + Required.""" + + @overload + def __init__( + self, + *, + value: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SsisFolder(SsisObjectMetadata, discriminator="Folder"): + """Ssis folder. + + :ivar id: Metadata id. + :vartype id: int + :ivar name: Metadata name. + :vartype name: str + :ivar description: Metadata description. + :vartype description: str + :ivar type: Type of metadata. Required. Folder. + :vartype type: str or ~azure.mgmt.datafactory.models.FOLDER + """ + + type: Literal[SsisObjectMetadataType.FOLDER] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of metadata. Required. Folder.""" + + @overload + def __init__( + self, + *, + id: Optional[int] = None, # pylint: disable=redefined-builtin + name: Optional[str] = None, + description: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = SsisObjectMetadataType.FOLDER # type: ignore + + +class SSISLogLocation(_Model): + """SSIS package execution log location. + + :ivar log_path: The SSIS package execution log path. Type: string (or Expression with + resultType string). Required. + :vartype log_path: any + :ivar type: The type of SSIS log location. Required. "File" + :vartype type: str or ~azure.mgmt.datafactory.models.SsisLogLocationType + :ivar type_properties: SSIS package execution log location properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SSISLogLocationTypeProperties + """ + + log_path: Any = rest_field(name="logPath", visibility=["read", "create", "update", "delete", "query"]) + """The SSIS package execution log path. Type: string (or Expression with resultType string). + Required.""" + type: Union[str, "_models.SsisLogLocationType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The type of SSIS log location. Required. \"File\"""" + type_properties: "_models.SSISLogLocationTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """SSIS package execution log location properties. Required.""" + + __flattened_items = ["access_credential", "log_refresh_interval"] + + @overload + def __init__( + self, + *, + log_path: Any, + type: Union[str, "_models.SsisLogLocationType"], + type_properties: "_models.SSISLogLocationTypeProperties", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SSISLogLocationTypeProperties(_Model): + """SSIS package execution log location properties. + + :ivar access_credential: The package execution log access credential. + :vartype access_credential: ~azure.mgmt.datafactory.models.SSISAccessCredential + :ivar log_refresh_interval: Specifies the interval to refresh log. The default interval is 5 + minutes. Type: string (or Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype log_refresh_interval: any + """ + + access_credential: Optional["_models.SSISAccessCredential"] = rest_field( + name="accessCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The package execution log access credential.""" + log_refresh_interval: Optional[Any] = rest_field( + name="logRefreshInterval", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the interval to refresh log. The default interval is 5 minutes. Type: string (or + Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + + @overload + def __init__( + self, + *, + access_credential: Optional["_models.SSISAccessCredential"] = None, + log_refresh_interval: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SsisObjectMetadataListResponse(_Model): + """A list of SSIS object metadata. + + :ivar value: The SsisObjectMetadata items on this page. Required. + :vartype value: list[~azure.mgmt.datafactory.models.SsisObjectMetadata] + :ivar next_link: The link to the next page of items. + :vartype next_link: str + """ + + value: list["_models.SsisObjectMetadata"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The SsisObjectMetadata items on this page. Required.""" + next_link: Optional[str] = rest_field(name="nextLink", visibility=["read", "create", "update", "delete", "query"]) + """The link to the next page of items.""" + + @overload + def __init__( + self, + *, + value: list["_models.SsisObjectMetadata"], + next_link: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SsisObjectMetadataStatusResponse(_Model): + """The status of the operation. + + :ivar status: The status of the operation. + :vartype status: str + :ivar name: The operation name. + :vartype name: str + :ivar properties: The operation properties. + :vartype properties: str + :ivar error: The operation error message. + :vartype error: str + """ + + status: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The status of the operation.""" + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The operation name.""" + properties: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The operation properties.""" + error: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The operation error message.""" + + @overload + def __init__( + self, + *, + status: Optional[str] = None, + name: Optional[str] = None, + properties: Optional[str] = None, + error: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SsisPackage(SsisObjectMetadata, discriminator="Package"): + """Ssis Package. + + :ivar id: Metadata id. + :vartype id: int + :ivar name: Metadata name. + :vartype name: str + :ivar description: Metadata description. + :vartype description: str + :ivar folder_id: Folder id which contains package. + :vartype folder_id: int + :ivar project_version: Project version which contains package. + :vartype project_version: int + :ivar project_id: Project id which contains package. + :vartype project_id: int + :ivar parameters: Parameters in package. + :vartype parameters: list[~azure.mgmt.datafactory.models.SsisParameter] + :ivar type: Type of metadata. Required. Package. + :vartype type: str or ~azure.mgmt.datafactory.models.PACKAGE + """ + + folder_id: Optional[int] = rest_field(name="folderId", visibility=["read", "create", "update", "delete", "query"]) + """Folder id which contains package.""" + project_version: Optional[int] = rest_field( + name="projectVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """Project version which contains package.""" + project_id: Optional[int] = rest_field(name="projectId", visibility=["read", "create", "update", "delete", "query"]) + """Project id which contains package.""" + parameters: Optional[list["_models.SsisParameter"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Parameters in package.""" + type: Literal[SsisObjectMetadataType.PACKAGE] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of metadata. Required. Package.""" + + @overload + def __init__( + self, + *, + id: Optional[int] = None, # pylint: disable=redefined-builtin + name: Optional[str] = None, + description: Optional[str] = None, + folder_id: Optional[int] = None, + project_version: Optional[int] = None, + project_id: Optional[int] = None, + parameters: Optional[list["_models.SsisParameter"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = SsisObjectMetadataType.PACKAGE # type: ignore + + +class SSISPackageLocation(_Model): + """SSIS package location. + + :ivar package_path: The SSIS package path. Type: string (or Expression with resultType string). + :vartype package_path: any + :ivar type: The type of SSIS package location. Known values are: "SSISDB", "File", + "InlinePackage", and "PackageStore". + :vartype type: str or ~azure.mgmt.datafactory.models.SsisPackageLocationType + :ivar type_properties: SSIS package location properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.SSISPackageLocationTypeProperties + """ + + package_path: Optional[Any] = rest_field( + name="packagePath", visibility=["read", "create", "update", "delete", "query"] + ) + """The SSIS package path. Type: string (or Expression with resultType string).""" + type: Optional[Union[str, "_models.SsisPackageLocationType"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The type of SSIS package location. Known values are: \"SSISDB\", \"File\", \"InlinePackage\", + and \"PackageStore\".""" + type_properties: Optional["_models.SSISPackageLocationTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """SSIS package location properties.""" + + __flattened_items = [ + "package_password", + "access_credential", + "configuration_path", + "configuration_access_credential", + "package_name", + "package_content", + "package_last_modified_date", + "child_packages", + ] + + @overload + def __init__( + self, + *, + package_path: Optional[Any] = None, + type: Optional[Union[str, "_models.SsisPackageLocationType"]] = None, + type_properties: Optional["_models.SSISPackageLocationTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SSISPackageLocationTypeProperties(_Model): + """SSIS package location properties. + + :ivar package_password: Password of the package. + :vartype package_password: ~azure.mgmt.datafactory.models.SecretBase + :ivar access_credential: The package access credential. + :vartype access_credential: ~azure.mgmt.datafactory.models.SSISAccessCredential + :ivar configuration_path: The configuration file of the package execution. Type: string (or + Expression with resultType string). + :vartype configuration_path: any + :ivar configuration_access_credential: The configuration file access credential. + :vartype configuration_access_credential: ~azure.mgmt.datafactory.models.SSISAccessCredential + :ivar package_name: The package name. + :vartype package_name: str + :ivar package_content: The embedded package content. Type: string (or Expression with + resultType string). + :vartype package_content: any + :ivar package_last_modified_date: The embedded package last modified date. + :vartype package_last_modified_date: str + :ivar child_packages: The embedded child package list. + :vartype child_packages: list[~azure.mgmt.datafactory.models.SSISChildPackage] + """ + + package_password: Optional["_models.SecretBase"] = rest_field( + name="packagePassword", visibility=["read", "create", "update", "delete", "query"] + ) + """Password of the package.""" + access_credential: Optional["_models.SSISAccessCredential"] = rest_field( + name="accessCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The package access credential.""" + configuration_path: Optional[Any] = rest_field( + name="configurationPath", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration file of the package execution. Type: string (or Expression with resultType + string).""" + configuration_access_credential: Optional["_models.SSISAccessCredential"] = rest_field( + name="configurationAccessCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration file access credential.""" + package_name: Optional[str] = rest_field( + name="packageName", visibility=["read", "create", "update", "delete", "query"] + ) + """The package name.""" + package_content: Optional[Any] = rest_field( + name="packageContent", visibility=["read", "create", "update", "delete", "query"] + ) + """The embedded package content. Type: string (or Expression with resultType string).""" + package_last_modified_date: Optional[str] = rest_field( + name="packageLastModifiedDate", visibility=["read", "create", "update", "delete", "query"] + ) + """The embedded package last modified date.""" + child_packages: Optional[list["_models.SSISChildPackage"]] = rest_field( + name="childPackages", visibility=["read", "create", "update", "delete", "query"] + ) + """The embedded child package list.""" + + @overload + def __init__( + self, + *, + package_password: Optional["_models.SecretBase"] = None, + access_credential: Optional["_models.SSISAccessCredential"] = None, + configuration_path: Optional[Any] = None, + configuration_access_credential: Optional["_models.SSISAccessCredential"] = None, + package_name: Optional[str] = None, + package_content: Optional[Any] = None, + package_last_modified_date: Optional[str] = None, + child_packages: Optional[list["_models.SSISChildPackage"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SsisParameter(_Model): + """Ssis parameter. + + :ivar id: Parameter id. + :vartype id: int + :ivar name: Parameter name. + :vartype name: str + :ivar description: Parameter description. + :vartype description: str + :ivar data_type: Parameter type. + :vartype data_type: str + :ivar required: Whether parameter is required. + :vartype required: bool + :ivar sensitive: Whether parameter is sensitive. + :vartype sensitive: bool + :ivar design_default_value: Design default value of parameter. + :vartype design_default_value: str + :ivar default_value: Default value of parameter. + :vartype default_value: str + :ivar sensitive_default_value: Default sensitive value of parameter. + :vartype sensitive_default_value: str + :ivar value_type: Parameter value type. + :vartype value_type: str + :ivar value_set: Parameter value set. + :vartype value_set: bool + :ivar variable: Parameter reference variable. + :vartype variable: str + """ + + id: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Parameter id.""" + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Parameter name.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Parameter description.""" + data_type: Optional[str] = rest_field(name="dataType", visibility=["read", "create", "update", "delete", "query"]) + """Parameter type.""" + required: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Whether parameter is required.""" + sensitive: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Whether parameter is sensitive.""" + design_default_value: Optional[str] = rest_field( + name="designDefaultValue", visibility=["read", "create", "update", "delete", "query"] + ) + """Design default value of parameter.""" + default_value: Optional[str] = rest_field( + name="defaultValue", visibility=["read", "create", "update", "delete", "query"] + ) + """Default value of parameter.""" + sensitive_default_value: Optional[str] = rest_field( + name="sensitiveDefaultValue", visibility=["read", "create", "update", "delete", "query"] + ) + """Default sensitive value of parameter.""" + value_type: Optional[str] = rest_field(name="valueType", visibility=["read", "create", "update", "delete", "query"]) + """Parameter value type.""" + value_set: Optional[bool] = rest_field(name="valueSet", visibility=["read", "create", "update", "delete", "query"]) + """Parameter value set.""" + variable: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Parameter reference variable.""" + + @overload + def __init__( + self, + *, + id: Optional[int] = None, # pylint: disable=redefined-builtin + name: Optional[str] = None, + description: Optional[str] = None, + data_type: Optional[str] = None, + required: Optional[bool] = None, + sensitive: Optional[bool] = None, + design_default_value: Optional[str] = None, + default_value: Optional[str] = None, + sensitive_default_value: Optional[str] = None, + value_type: Optional[str] = None, + value_set: Optional[bool] = None, + variable: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SsisProject(SsisObjectMetadata, discriminator="Project"): + """Ssis project. + + :ivar id: Metadata id. + :vartype id: int + :ivar name: Metadata name. + :vartype name: str + :ivar description: Metadata description. + :vartype description: str + :ivar folder_id: Folder id which contains project. + :vartype folder_id: int + :ivar version: Project version. + :vartype version: int + :ivar environment_refs: Environment reference in project. + :vartype environment_refs: list[~azure.mgmt.datafactory.models.SsisEnvironmentReference] + :ivar parameters: Parameters in project. + :vartype parameters: list[~azure.mgmt.datafactory.models.SsisParameter] + :ivar type: Type of metadata. Required. Project. + :vartype type: str or ~azure.mgmt.datafactory.models.PROJECT + """ + + folder_id: Optional[int] = rest_field(name="folderId", visibility=["read", "create", "update", "delete", "query"]) + """Folder id which contains project.""" + version: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Project version.""" + environment_refs: Optional[list["_models.SsisEnvironmentReference"]] = rest_field( + name="environmentRefs", visibility=["read", "create", "update", "delete", "query"] + ) + """Environment reference in project.""" + parameters: Optional[list["_models.SsisParameter"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Parameters in project.""" + type: Literal[SsisObjectMetadataType.PROJECT] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of metadata. Required. Project.""" + + @overload + def __init__( + self, + *, + id: Optional[int] = None, # pylint: disable=redefined-builtin + name: Optional[str] = None, + description: Optional[str] = None, + folder_id: Optional[int] = None, + version: Optional[int] = None, + environment_refs: Optional[list["_models.SsisEnvironmentReference"]] = None, + parameters: Optional[list["_models.SsisParameter"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = SsisObjectMetadataType.PROJECT # type: ignore + + +class SSISPropertyOverride(_Model): + """SSIS property override. + + :ivar value: SSIS package property override value. Type: string (or Expression with resultType + string). Required. + :vartype value: any + :ivar is_sensitive: Whether SSIS package property override value is sensitive data. Value will + be encrypted in SSISDB if it is true. + :vartype is_sensitive: bool + """ + + value: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """SSIS package property override value. Type: string (or Expression with resultType string). + Required.""" + is_sensitive: Optional[bool] = rest_field( + name="isSensitive", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether SSIS package property override value is sensitive data. Value will be encrypted in + SSISDB if it is true.""" + + @overload + def __init__( + self, + *, + value: Any, + is_sensitive: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SsisVariable(_Model): + """Ssis variable. + + :ivar id: Variable id. + :vartype id: int + :ivar name: Variable name. + :vartype name: str + :ivar description: Variable description. + :vartype description: str + :ivar data_type: Variable type. + :vartype data_type: str + :ivar sensitive: Whether variable is sensitive. + :vartype sensitive: bool + :ivar value: Variable value. + :vartype value: str + :ivar sensitive_value: Variable sensitive value. + :vartype sensitive_value: str + """ + + id: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Variable id.""" + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Variable name.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Variable description.""" + data_type: Optional[str] = rest_field(name="dataType", visibility=["read", "create", "update", "delete", "query"]) + """Variable type.""" + sensitive: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Whether variable is sensitive.""" + value: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Variable value.""" + sensitive_value: Optional[str] = rest_field( + name="sensitiveValue", visibility=["read", "create", "update", "delete", "query"] + ) + """Variable sensitive value.""" + + @overload + def __init__( + self, + *, + id: Optional[int] = None, # pylint: disable=redefined-builtin + name: Optional[str] = None, + description: Optional[str] = None, + data_type: Optional[str] = None, + sensitive: Optional[bool] = None, + value: Optional[str] = None, + sensitive_value: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class StagingSettings(_Model): + """Staging settings. + + :ivar linked_service_name: Staging linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar path: The path to storage for storing the interim data. Type: string (or Expression with + resultType string). + :vartype path: any + :ivar enable_compression: Specifies whether to use compression when copying data via an interim + staging. Default value is false. Type: boolean (or Expression with resultType boolean). + :vartype enable_compression: any + """ + + linked_service_name: "_models.LinkedServiceReference" = rest_field( + name="linkedServiceName", visibility=["read", "create", "update", "delete", "query"] + ) + """Staging linked service reference. Required.""" + path: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The path to storage for storing the interim data. Type: string (or Expression with resultType + string).""" + enable_compression: Optional[Any] = rest_field( + name="enableCompression", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to use compression when copying data via an interim staging. Default value is + false. Type: boolean (or Expression with resultType boolean).""" + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + path: Optional[Any] = None, + enable_compression: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SwitchActivity(ControlActivity, discriminator="Switch"): + """This activity evaluates an expression and executes activities under the cases property that + correspond to the expression evaluation expected in the equals property. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar type_properties: Switch activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SwitchActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "Switch". + :vartype type: str + """ + + type_properties: "_models.SwitchActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Switch activity properties. Required.""" + type: Literal["Switch"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"Switch\".""" + + __flattened_items = ["on", "cases", "default_activities"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.SwitchActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SwitchActivityTypeProperties(_Model): + """Switch activity properties. + + :ivar on: An expression that would evaluate to a string or integer. This is used to determine + the block of activities in cases that will be executed. Required. + :vartype on: ~azure.mgmt.datafactory.models.Expression + :ivar cases: List of cases that correspond to expected values of the 'on' property. This is an + optional property and if not provided, the activity will execute activities provided in + defaultActivities. + :vartype cases: list[~azure.mgmt.datafactory.models.SwitchCase] + :ivar default_activities: List of activities to execute if no case condition is satisfied. This + is an optional property and if not provided, the activity will exit without any action. + :vartype default_activities: list[~azure.mgmt.datafactory.models.Activity] + """ + + on: "_models.Expression" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """An expression that would evaluate to a string or integer. This is used to determine the block + of activities in cases that will be executed. Required.""" + cases: Optional[list["_models.SwitchCase"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of cases that correspond to expected values of the 'on' property. This is an optional + property and if not provided, the activity will execute activities provided in + defaultActivities.""" + default_activities: Optional[list["_models.Activity"]] = rest_field( + name="defaultActivities", visibility=["read", "create", "update", "delete", "query"] + ) + """List of activities to execute if no case condition is satisfied. This is an optional property + and if not provided, the activity will exit without any action.""" + + @overload + def __init__( + self, + *, + on: "_models.Expression", + cases: Optional[list["_models.SwitchCase"]] = None, + default_activities: Optional[list["_models.Activity"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SwitchCase(_Model): + """Switch cases with have a value and corresponding activities. + + :ivar value: Expected value that satisfies the expression result of the 'on' property. + :vartype value: str + :ivar activities: List of activities to execute for satisfied case condition. + :vartype activities: list[~azure.mgmt.datafactory.models.Activity] + """ + + value: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Expected value that satisfies the expression result of the 'on' property.""" + activities: Optional[list["_models.Activity"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of activities to execute for satisfied case condition.""" + + @overload + def __init__( + self, + *, + value: Optional[str] = None, + activities: Optional[list["_models.Activity"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SybaseLinkedService(LinkedService, discriminator="Sybase"): + """Linked service for Sybase data source. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Sybase linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SybaseLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Sybase". + :vartype type: str + """ + + type_properties: "_models.SybaseLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Sybase linked service properties. Required.""" + type: Literal["Sybase"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Sybase\".""" + + __flattened_items = [ + "server", + "database", + "schema", + "authentication_type", + "username", + "password", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.SybaseLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SybaseLinkedServiceTypeProperties(_Model): + """Sybase linked service properties. + + :ivar server: Server name for connection. Type: string (or Expression with resultType string). + Required. + :vartype server: any + :ivar database: Database name for connection. Type: string (or Expression with resultType + string). Required. + :vartype database: any + :ivar schema: Schema name for connection. Type: string (or Expression with resultType string). + :vartype schema: any + :ivar authentication_type: AuthenticationType to be used for connection. Known values are: + "Basic" and "Windows". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.SybaseAuthenticationType + :ivar username: Username for authentication. Type: string (or Expression with resultType + string). + :vartype username: any + :ivar password: Password for authentication. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + server: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Server name for connection. Type: string (or Expression with resultType string). Required.""" + database: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database name for connection. Type: string (or Expression with resultType string). Required.""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Schema name for connection. Type: string (or Expression with resultType string).""" + authentication_type: Optional[Union[str, "_models.SybaseAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """AuthenticationType to be used for connection. Known values are: \"Basic\" and \"Windows\".""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Username for authentication. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password for authentication.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + server: Any, + database: Any, + schema: Optional[Any] = None, + authentication_type: Optional[Union[str, "_models.SybaseAuthenticationType"]] = None, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SybaseSource(TabularSource, discriminator="SybaseSource"): + """A copy activity source for Sybase databases. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: Database query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "SybaseSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database query. Type: string (or Expression with resultType string).""" + type: Literal["SybaseSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"SybaseSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SybaseSource" # type: ignore + + +class SybaseTableDataset(Dataset, discriminator="SybaseTable"): + """The Sybase table dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Sybase table dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.SybaseTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "SybaseTable". + :vartype type: str + """ + + type_properties: Optional["_models.SybaseTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Sybase table dataset properties.""" + type: Literal["SybaseTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"SybaseTable\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.SybaseTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SybaseTableDatasetTypeProperties(_Model): + """Sybase table dataset properties. + + :ivar table_name: The Sybase table name. Type: string (or Expression with resultType string). + :vartype table_name: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """The Sybase table name. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SynapseNotebookActivity(ExecutionActivity, discriminator="SynapseNotebook"): + """Execute Synapse notebook activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Execute Synapse notebook activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SynapseNotebookActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "SynapseNotebook". + :vartype type: str + """ + + type_properties: "_models.SynapseNotebookActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Execute Synapse notebook activity properties. Required.""" + type: Literal["SynapseNotebook"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"SynapseNotebook\".""" + + __flattened_items = [ + "notebook", + "spark_pool", + "parameters", + "executor_size", + "conf", + "driver_size", + "num_executors", + "configuration_type", + "target_spark_configuration", + "spark_config", + ] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.SynapseNotebookActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SynapseNotebookActivityTypeProperties(_Model): + """Execute Synapse notebook activity properties. + + :ivar notebook: Synapse notebook reference. Required. + :vartype notebook: ~azure.mgmt.datafactory.models.SynapseNotebookReference + :ivar spark_pool: The name of the big data pool which will be used to execute the notebook. + :vartype spark_pool: ~azure.mgmt.datafactory.models.BigDataPoolParametrizationReference + :ivar parameters: Notebook parameters. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.NotebookParameter] + :ivar executor_size: Number of core and memory to be used for executors allocated in the + specified Spark pool for the session, which will be used for overriding 'executorCores' and + 'executorMemory' of the notebook you provide. Type: string (or Expression with resultType + string). + :vartype executor_size: any + :ivar conf: Spark configuration properties, which will override the 'conf' of the notebook you + provide. + :vartype conf: any + :ivar driver_size: Number of core and memory to be used for driver allocated in the specified + Spark pool for the session, which will be used for overriding 'driverCores' and 'driverMemory' + of the notebook you provide. Type: string (or Expression with resultType string). + :vartype driver_size: any + :ivar num_executors: Number of executors to launch for this session, which will override the + 'numExecutors' of the notebook you provide. Type: integer (or Expression with resultType + integer). + :vartype num_executors: any + :ivar configuration_type: The type of the spark config. Known values are: "Default", + "Customized", and "Artifact". + :vartype configuration_type: str or ~azure.mgmt.datafactory.models.ConfigurationType + :ivar target_spark_configuration: The spark configuration of the spark job. + :vartype target_spark_configuration: + ~azure.mgmt.datafactory.models.SparkConfigurationParametrizationReference + :ivar spark_config: Spark configuration property. + :vartype spark_config: dict[str, any] + """ + + notebook: "_models.SynapseNotebookReference" = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Synapse notebook reference. Required.""" + spark_pool: Optional["_models.BigDataPoolParametrizationReference"] = rest_field( + name="sparkPool", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the big data pool which will be used to execute the notebook.""" + parameters: Optional[dict[str, "_models.NotebookParameter"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Notebook parameters.""" + executor_size: Optional[Any] = rest_field( + name="executorSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of core and memory to be used for executors allocated in the specified Spark pool for + the session, which will be used for overriding 'executorCores' and 'executorMemory' of the + notebook you provide. Type: string (or Expression with resultType string).""" + conf: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Spark configuration properties, which will override the 'conf' of the notebook you provide.""" + driver_size: Optional[Any] = rest_field( + name="driverSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of core and memory to be used for driver allocated in the specified Spark pool for the + session, which will be used for overriding 'driverCores' and 'driverMemory' of the notebook you + provide. Type: string (or Expression with resultType string).""" + num_executors: Optional[Any] = rest_field( + name="numExecutors", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of executors to launch for this session, which will override the 'numExecutors' of the + notebook you provide. Type: integer (or Expression with resultType integer).""" + configuration_type: Optional[Union[str, "_models.ConfigurationType"]] = rest_field( + name="configurationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of the spark config. Known values are: \"Default\", \"Customized\", and \"Artifact\".""" + target_spark_configuration: Optional["_models.SparkConfigurationParametrizationReference"] = rest_field( + name="targetSparkConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """The spark configuration of the spark job.""" + spark_config: Optional[dict[str, Any]] = rest_field( + name="sparkConfig", visibility=["read", "create", "update", "delete", "query"] + ) + """Spark configuration property.""" + + @overload + def __init__( + self, + *, + notebook: "_models.SynapseNotebookReference", + spark_pool: Optional["_models.BigDataPoolParametrizationReference"] = None, + parameters: Optional[dict[str, "_models.NotebookParameter"]] = None, + executor_size: Optional[Any] = None, + conf: Optional[Any] = None, + driver_size: Optional[Any] = None, + num_executors: Optional[Any] = None, + configuration_type: Optional[Union[str, "_models.ConfigurationType"]] = None, + target_spark_configuration: Optional["_models.SparkConfigurationParametrizationReference"] = None, + spark_config: Optional[dict[str, Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SynapseNotebookReference(_Model): + """Synapse notebook reference type. + + :ivar type: Synapse notebook reference type. Required. "NotebookReference" + :vartype type: str or ~azure.mgmt.datafactory.models.NotebookReferenceType + :ivar reference_name: Reference notebook name. Type: string (or Expression with resultType + string). Required. + :vartype reference_name: any + """ + + type: Union[str, "_models.NotebookReferenceType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Synapse notebook reference type. Required. \"NotebookReference\"""" + reference_name: Any = rest_field(name="referenceName", visibility=["read", "create", "update", "delete", "query"]) + """Reference notebook name. Type: string (or Expression with resultType string). Required.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.NotebookReferenceType"], + reference_name: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SynapseSparkJobActivityTypeProperties(_Model): + """Execute spark job activity properties. + + :ivar spark_job: Synapse spark job reference. Required. + :vartype spark_job: ~azure.mgmt.datafactory.models.SynapseSparkJobReference + :ivar arguments: User specified arguments to SynapseSparkJobDefinitionActivity. + :vartype arguments: list[any] + :ivar file: The main file used for the job, which will override the 'file' of the spark job + definition you provide. Type: string (or Expression with resultType string). + :vartype file: any + :ivar scan_folder: Scanning subfolders from the root folder of the main definition file, these + files will be added as reference files. The folders named 'jars', 'pyFiles', 'files' or + 'archives' will be scanned, and the folders name are case sensitive. Type: boolean (or + Expression with resultType boolean). + :vartype scan_folder: any + :ivar class_name: The fully-qualified identifier or the main class that is in the main + definition file, which will override the 'className' of the spark job definition you provide. + Type: string (or Expression with resultType string). + :vartype class_name: any + :ivar files: (Deprecated. Please use pythonCodeReference and filesV2) Additional files used for + reference in the main definition file, which will override the 'files' of the spark job + definition you provide. + :vartype files: list[any] + :ivar python_code_reference: Additional python code files used for reference in the main + definition file, which will override the 'pyFiles' of the spark job definition you provide. + :vartype python_code_reference: list[any] + :ivar files_v2: Additional files used for reference in the main definition file, which will + override the 'jars' and 'files' of the spark job definition you provide. + :vartype files_v2: list[any] + :ivar target_big_data_pool: The name of the big data pool which will be used to execute the + spark batch job, which will override the 'targetBigDataPool' of the spark job definition you + provide. + :vartype target_big_data_pool: + ~azure.mgmt.datafactory.models.BigDataPoolParametrizationReference + :ivar executor_size: Number of core and memory to be used for executors allocated in the + specified Spark pool for the job, which will be used for overriding 'executorCores' and + 'executorMemory' of the spark job definition you provide. Type: string (or Expression with + resultType string). + :vartype executor_size: any + :ivar conf: Spark configuration properties, which will override the 'conf' of the spark job + definition you provide. + :vartype conf: any + :ivar driver_size: Number of core and memory to be used for driver allocated in the specified + Spark pool for the job, which will be used for overriding 'driverCores' and 'driverMemory' of + the spark job definition you provide. Type: string (or Expression with resultType string). + :vartype driver_size: any + :ivar num_executors: Number of executors to launch for this job, which will override the + 'numExecutors' of the spark job definition you provide. Type: integer (or Expression with + resultType integer). + :vartype num_executors: any + :ivar configuration_type: The type of the spark config. Known values are: "Default", + "Customized", and "Artifact". + :vartype configuration_type: str or ~azure.mgmt.datafactory.models.ConfigurationType + :ivar target_spark_configuration: The spark configuration of the spark job. + :vartype target_spark_configuration: + ~azure.mgmt.datafactory.models.SparkConfigurationParametrizationReference + :ivar spark_config: Spark configuration property. + :vartype spark_config: dict[str, any] + """ + + spark_job: "_models.SynapseSparkJobReference" = rest_field( + name="sparkJob", visibility=["read", "create", "update", "delete", "query"] + ) + """Synapse spark job reference. Required.""" + arguments: Optional[list[Any]] = rest_field(name="args", visibility=["read", "create", "update", "delete", "query"]) + """User specified arguments to SynapseSparkJobDefinitionActivity.""" + file: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The main file used for the job, which will override the 'file' of the spark job definition you + provide. Type: string (or Expression with resultType string).""" + scan_folder: Optional[Any] = rest_field( + name="scanFolder", visibility=["read", "create", "update", "delete", "query"] + ) + """Scanning subfolders from the root folder of the main definition file, these files will be added + as reference files. The folders named 'jars', 'pyFiles', 'files' or 'archives' will be scanned, + and the folders name are case sensitive. Type: boolean (or Expression with resultType boolean).""" + class_name: Optional[Any] = rest_field(name="className", visibility=["read", "create", "update", "delete", "query"]) + """The fully-qualified identifier or the main class that is in the main definition file, which + will override the 'className' of the spark job definition you provide. Type: string (or + Expression with resultType string).""" + files: Optional[list[Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """(Deprecated. Please use pythonCodeReference and filesV2) Additional files used for reference in + the main definition file, which will override the 'files' of the spark job definition you + provide.""" + python_code_reference: Optional[list[Any]] = rest_field( + name="pythonCodeReference", visibility=["read", "create", "update", "delete", "query"] + ) + """Additional python code files used for reference in the main definition file, which will + override the 'pyFiles' of the spark job definition you provide.""" + files_v2: Optional[list[Any]] = rest_field( + name="filesV2", visibility=["read", "create", "update", "delete", "query"] + ) + """Additional files used for reference in the main definition file, which will override the 'jars' + and 'files' of the spark job definition you provide.""" + target_big_data_pool: Optional["_models.BigDataPoolParametrizationReference"] = rest_field( + name="targetBigDataPool", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the big data pool which will be used to execute the spark batch job, which will + override the 'targetBigDataPool' of the spark job definition you provide.""" + executor_size: Optional[Any] = rest_field( + name="executorSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of core and memory to be used for executors allocated in the specified Spark pool for + the job, which will be used for overriding 'executorCores' and 'executorMemory' of the spark + job definition you provide. Type: string (or Expression with resultType string).""" + conf: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Spark configuration properties, which will override the 'conf' of the spark job definition you + provide.""" + driver_size: Optional[Any] = rest_field( + name="driverSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of core and memory to be used for driver allocated in the specified Spark pool for the + job, which will be used for overriding 'driverCores' and 'driverMemory' of the spark job + definition you provide. Type: string (or Expression with resultType string).""" + num_executors: Optional[Any] = rest_field( + name="numExecutors", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of executors to launch for this job, which will override the 'numExecutors' of the spark + job definition you provide. Type: integer (or Expression with resultType integer).""" + configuration_type: Optional[Union[str, "_models.ConfigurationType"]] = rest_field( + name="configurationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of the spark config. Known values are: \"Default\", \"Customized\", and \"Artifact\".""" + target_spark_configuration: Optional["_models.SparkConfigurationParametrizationReference"] = rest_field( + name="targetSparkConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """The spark configuration of the spark job.""" + spark_config: Optional[dict[str, Any]] = rest_field( + name="sparkConfig", visibility=["read", "create", "update", "delete", "query"] + ) + """Spark configuration property.""" + + @overload + def __init__( + self, + *, + spark_job: "_models.SynapseSparkJobReference", + arguments: Optional[list[Any]] = None, + file: Optional[Any] = None, + scan_folder: Optional[Any] = None, + class_name: Optional[Any] = None, + files: Optional[list[Any]] = None, + python_code_reference: Optional[list[Any]] = None, + files_v2: Optional[list[Any]] = None, + target_big_data_pool: Optional["_models.BigDataPoolParametrizationReference"] = None, + executor_size: Optional[Any] = None, + conf: Optional[Any] = None, + driver_size: Optional[Any] = None, + num_executors: Optional[Any] = None, + configuration_type: Optional[Union[str, "_models.ConfigurationType"]] = None, + target_spark_configuration: Optional["_models.SparkConfigurationParametrizationReference"] = None, + spark_config: Optional[dict[str, Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SynapseSparkJobDefinitionActivity(ExecutionActivity, discriminator="SparkJob"): + """Execute spark job activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Execute spark job activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.SynapseSparkJobActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "SparkJob". + :vartype type: str + """ + + type_properties: "_models.SynapseSparkJobActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Execute spark job activity properties. Required.""" + type: Literal["SparkJob"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"SparkJob\".""" + + __flattened_items = [ + "spark_job", + "arguments", + "file", + "scan_folder", + "class_name", + "files", + "python_code_reference", + "files_v2", + "target_big_data_pool", + "executor_size", + "conf", + "driver_size", + "num_executors", + "configuration_type", + "target_spark_configuration", + "spark_config", + ] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.SynapseSparkJobActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class SynapseSparkJobReference(_Model): + """Synapse spark job reference type. + + :ivar type: Synapse spark job reference type. Required. "SparkJobDefinitionReference" + :vartype type: str or ~azure.mgmt.datafactory.models.SparkJobReferenceType + :ivar reference_name: Reference spark job name. Expression with resultType string. Required. + :vartype reference_name: any + """ + + type: Union[str, "_models.SparkJobReferenceType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Synapse spark job reference type. Required. \"SparkJobDefinitionReference\"""" + reference_name: Any = rest_field(name="referenceName", visibility=["read", "create", "update", "delete", "query"]) + """Reference spark job name. Expression with resultType string. Required.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.SparkJobReferenceType"], + reference_name: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SystemData(_Model): + """Metadata pertaining to creation and last modification of the resource. + + :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. Known values are: + "User", "Application", "ManagedIdentity", and "Key". + :vartype created_by_type: str or ~azure.mgmt.datafactory.models.CreatedByType + :ivar created_at: The timestamp of resource creation (UTC). + :vartype created_at: ~datetime.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. Known values + are: "User", "Application", "ManagedIdentity", and "Key". + :vartype last_modified_by_type: str or ~azure.mgmt.datafactory.models.CreatedByType + :ivar last_modified_at: The timestamp of resource last modification (UTC). + :vartype last_modified_at: ~datetime.datetime + """ + + created_by: Optional[str] = rest_field(name="createdBy", visibility=["read", "create", "update", "delete", "query"]) + """The identity that created the resource.""" + created_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( + name="createdByType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of identity that created the resource. Known values are: \"User\", \"Application\", + \"ManagedIdentity\", and \"Key\".""" + created_at: Optional[datetime.datetime] = rest_field( + name="createdAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The timestamp of resource creation (UTC).""" + last_modified_by: Optional[str] = rest_field( + name="lastModifiedBy", visibility=["read", "create", "update", "delete", "query"] + ) + """The identity that last modified the resource.""" + last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( + name="lastModifiedByType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of identity that last modified the resource. Known values are: \"User\", + \"Application\", \"ManagedIdentity\", and \"Key\".""" + last_modified_at: Optional[datetime.datetime] = rest_field( + name="lastModifiedAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The timestamp of resource last modification (UTC).""" + + @overload + def __init__( + self, + *, + created_by: Optional[str] = None, + created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, + created_at: Optional[datetime.datetime] = None, + last_modified_by: Optional[str] = None, + last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, + last_modified_at: Optional[datetime.datetime] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TarGZipReadSettings(CompressionReadSettings, discriminator="TarGZipReadSettings"): + """The TarGZip compression read settings. + + :ivar preserve_compression_file_name_as_folder: Preserve the compression file name as folder + path. Type: boolean (or Expression with resultType boolean). + :vartype preserve_compression_file_name_as_folder: any + :ivar type: The Compression setting type. Required. Default value is "TarGZipReadSettings". + :vartype type: str + """ + + preserve_compression_file_name_as_folder: Optional[Any] = rest_field( + name="preserveCompressionFileNameAsFolder", visibility=["read", "create", "update", "delete", "query"] + ) + """Preserve the compression file name as folder path. Type: boolean (or Expression with resultType + boolean).""" + type: Literal["TarGZipReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The Compression setting type. Required. Default value is \"TarGZipReadSettings\".""" + + @overload + def __init__( + self, + *, + preserve_compression_file_name_as_folder: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "TarGZipReadSettings" # type: ignore + + +class TarReadSettings(CompressionReadSettings, discriminator="TarReadSettings"): + """The Tar compression read settings. + + :ivar preserve_compression_file_name_as_folder: Preserve the compression file name as folder + path. Type: boolean (or Expression with resultType boolean). + :vartype preserve_compression_file_name_as_folder: any + :ivar type: The Compression setting type. Required. Default value is "TarReadSettings". + :vartype type: str + """ + + preserve_compression_file_name_as_folder: Optional[Any] = rest_field( + name="preserveCompressionFileNameAsFolder", visibility=["read", "create", "update", "delete", "query"] + ) + """Preserve the compression file name as folder path. Type: boolean (or Expression with resultType + boolean).""" + type: Literal["TarReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The Compression setting type. Required. Default value is \"TarReadSettings\".""" + + @overload + def __init__( + self, + *, + preserve_compression_file_name_as_folder: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "TarReadSettings" # type: ignore + + +class TeamDeskLinkedService(LinkedService, discriminator="TeamDesk"): + """Linked service for TeamDesk. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: TeamDesk linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.TeamDeskLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "TeamDesk". + :vartype type: str + """ + + type_properties: "_models.TeamDeskLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """TeamDesk linked service properties. Required.""" + type: Literal["TeamDesk"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"TeamDesk\".""" + + __flattened_items = ["authentication_type", "url", "user_name", "password", "api_token", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.TeamDeskLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class TeamDeskLinkedServiceTypeProperties(_Model): + """TeamDesk linked service type properties. + + :ivar authentication_type: The authentication type to use. Required. Known values are: "Basic" + and "Token". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.TeamDeskAuthenticationType + :ivar url: The url to connect TeamDesk source. Type: string (or Expression with resultType + string). Required. + :vartype url: any + :ivar user_name: The username of the TeamDesk source. Type: string (or Expression with + resultType string). + :vartype user_name: any + :ivar password: The password of the TeamDesk source. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar api_token: The api token for the TeamDesk source. + :vartype api_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + authentication_type: Union[str, "_models.TeamDeskAuthenticationType"] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to use. Required. Known values are: \"Basic\" and \"Token\".""" + url: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The url to connect TeamDesk source. Type: string (or Expression with resultType string). + Required.""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """The username of the TeamDesk source. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password of the TeamDesk source.""" + api_token: Optional["_models.SecretBase"] = rest_field( + name="apiToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The api token for the TeamDesk source.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + authentication_type: Union[str, "_models.TeamDeskAuthenticationType"], + url: Any, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + api_token: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TeradataImportCommand(ImportSettings, discriminator="TeradataImportCommand"): + """Teradata import command settings. + + :ivar additional_format_options: Additional format options for Teradata Copy Command. The + format options only applies to direct copy from CSV source. Type: key value pairs (value should + be string type) (or Expression with resultType object). Example: "additionalFormatOptions": { + "timeFormat": "HHhMImSSs" }. + :vartype additional_format_options: any + :ivar type: The import setting type. Required. Default value is "TeradataImportCommand". + :vartype type: str + """ + + additional_format_options: Optional[Any] = rest_field( + name="additionalFormatOptions", visibility=["read", "create", "update", "delete", "query"] + ) + """Additional format options for Teradata Copy Command. The format options only applies to direct + copy from CSV source. Type: key value pairs (value should be string type) (or Expression with + resultType object). Example: \"additionalFormatOptions\": { \"timeFormat\": \"HHhMImSSs\" }.""" + type: Literal["TeradataImportCommand"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The import setting type. Required. Default value is \"TeradataImportCommand\".""" + + @overload + def __init__( + self, + *, + additional_format_options: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "TeradataImportCommand" # type: ignore + + +class TeradataLinkedService(LinkedService, discriminator="Teradata"): + """Linked service for Teradata data source. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Teradata linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.TeradataLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Teradata". + :vartype type: str + """ + + type_properties: "_models.TeradataLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Teradata linked service properties. Required.""" + type: Literal["Teradata"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Teradata\".""" + + __flattened_items = [ + "connection_string", + "server", + "authentication_type", + "username", + "password", + "ssl_mode", + "port_number", + "https_port_number", + "use_data_encryption", + "character_set", + "max_resp_size", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.TeradataLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class TeradataLinkedServiceTypeProperties(_Model): + """Teradata linked service properties. + + :ivar connection_string: Teradata ODBC connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. Only applied for version 1.0. + :vartype connection_string: any + :ivar server: Server name for connection. Type: string (or Expression with resultType string). + :vartype server: any + :ivar authentication_type: AuthenticationType to be used for connection. Known values are: + "Basic" and "Windows". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.TeradataAuthenticationType + :ivar username: Username for authentication. Type: string (or Expression with resultType + string). + :vartype username: any + :ivar password: Password for authentication. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar ssl_mode: SSL mode for connection. Valid values including: “Disable”, “Allow”, “Prefer”, + “Require”, “Verify-CA”, “Verify-Full”. Default value is “Verify-Full”. Type: string (or + Expression with resultType string). Only applied for version 2.0. + :vartype ssl_mode: any + :ivar port_number: The port numbers when connecting to server through non HTTPS/TLS + connections. Type: integer (or Expression with resultType integer). Only used for V2. Only + applied for version 2.0. + :vartype port_number: any + :ivar https_port_number: The port numbers when connecting to server through HTTPS/TLS + connections. Type: integer (or Expression with resultType integer). Only applied for version + 2.0. + :vartype https_port_number: any + :ivar use_data_encryption: Specifies whether to encrypt all communication with the Teradata + database. Allowed values are 0 or 1. This setting will be ignored for HTTPS/TLS connections. + Type: integer (or Expression with resultType integer). Only applied for version 2.0. + :vartype use_data_encryption: any + :ivar character_set: The character set to use for the connection. Type: string (or Expression + with resultType string). Only applied for version 2.0. + :vartype character_set: any + :ivar max_resp_size: The maximum size of the response buffer for SQL requests, in bytes. Type: + integer. Only applied for version 2.0. + :vartype max_resp_size: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """Teradata ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + Only applied for version 1.0.""" + server: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Server name for connection. Type: string (or Expression with resultType string).""" + authentication_type: Optional[Union[str, "_models.TeradataAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """AuthenticationType to be used for connection. Known values are: \"Basic\" and \"Windows\".""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Username for authentication. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password for authentication.""" + ssl_mode: Optional[Any] = rest_field(name="sslMode", visibility=["read", "create", "update", "delete", "query"]) + """SSL mode for connection. Valid values including: “Disable”, “Allow”, “Prefer”, “Require”, + “Verify-CA”, “Verify-Full”. Default value is “Verify-Full”. Type: string (or Expression with + resultType string). Only applied for version 2.0.""" + port_number: Optional[Any] = rest_field( + name="portNumber", visibility=["read", "create", "update", "delete", "query"] + ) + """The port numbers when connecting to server through non HTTPS/TLS connections. Type: integer (or + Expression with resultType integer). Only used for V2. Only applied for version 2.0.""" + https_port_number: Optional[Any] = rest_field( + name="httpsPortNumber", visibility=["read", "create", "update", "delete", "query"] + ) + """The port numbers when connecting to server through HTTPS/TLS connections. Type: integer (or + Expression with resultType integer). Only applied for version 2.0.""" + use_data_encryption: Optional[Any] = rest_field( + name="useDataEncryption", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to encrypt all communication with the Teradata database. Allowed values are 0 + or 1. This setting will be ignored for HTTPS/TLS connections. Type: integer (or Expression with + resultType integer). Only applied for version 2.0.""" + character_set: Optional[Any] = rest_field( + name="characterSet", visibility=["read", "create", "update", "delete", "query"] + ) + """The character set to use for the connection. Type: string (or Expression with resultType + string). Only applied for version 2.0.""" + max_resp_size: Optional[Any] = rest_field( + name="maxRespSize", visibility=["read", "create", "update", "delete", "query"] + ) + """The maximum size of the response buffer for SQL requests, in bytes. Type: integer. Only applied + for version 2.0.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_string: Optional[Any] = None, + server: Optional[Any] = None, + authentication_type: Optional[Union[str, "_models.TeradataAuthenticationType"]] = None, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + ssl_mode: Optional[Any] = None, + port_number: Optional[Any] = None, + https_port_number: Optional[Any] = None, + use_data_encryption: Optional[Any] = None, + character_set: Optional[Any] = None, + max_resp_size: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TeradataPartitionSettings(_Model): + """The settings that will be leveraged for teradata source partitioning. + + :ivar partition_column_name: The name of the column that will be used for proceeding range or + hash partitioning. Type: string (or Expression with resultType string). + :vartype partition_column_name: any + :ivar partition_upper_bound: The maximum value of column specified in partitionColumnName that + will be used for proceeding range partitioning. Type: string (or Expression with resultType + string). + :vartype partition_upper_bound: any + :ivar partition_lower_bound: The minimum value of column specified in partitionColumnName that + will be used for proceeding range partitioning. Type: string (or Expression with resultType + string). + :vartype partition_lower_bound: any + """ + + partition_column_name: Optional[Any] = rest_field( + name="partitionColumnName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the column that will be used for proceeding range or hash partitioning. Type: + string (or Expression with resultType string).""" + partition_upper_bound: Optional[Any] = rest_field( + name="partitionUpperBound", visibility=["read", "create", "update", "delete", "query"] + ) + """The maximum value of column specified in partitionColumnName that will be used for proceeding + range partitioning. Type: string (or Expression with resultType string).""" + partition_lower_bound: Optional[Any] = rest_field( + name="partitionLowerBound", visibility=["read", "create", "update", "delete", "query"] + ) + """The minimum value of column specified in partitionColumnName that will be used for proceeding + range partitioning. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + partition_column_name: Optional[Any] = None, + partition_upper_bound: Optional[Any] = None, + partition_lower_bound: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TeradataSink(CopySink, discriminator="TeradataSink"): + """A copy activity Teradata sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar import_settings: Teradata import settings. + :vartype import_settings: ~azure.mgmt.datafactory.models.TeradataImportCommand + :ivar type: Copy sink type. Required. Default value is "TeradataSink". + :vartype type: str + """ + + import_settings: Optional["_models.TeradataImportCommand"] = rest_field( + name="importSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Teradata import settings.""" + type: Literal["TeradataSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"TeradataSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + import_settings: Optional["_models.TeradataImportCommand"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "TeradataSink" # type: ignore + + +class TeradataSource(TabularSource, discriminator="TeradataSource"): + """A copy activity Teradata source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: Teradata query. Type: string (or Expression with resultType string). + :vartype query: any + :ivar partition_option: The partition mechanism that will be used for teradata read in + parallel. Possible values include: "None", "Hash", "DynamicRange". + :vartype partition_option: any + :ivar partition_settings: The settings that will be leveraged for teradata source partitioning. + :vartype partition_settings: ~azure.mgmt.datafactory.models.TeradataPartitionSettings + :ivar type: Copy source type. Required. Default value is "TeradataSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Teradata query. Type: string (or Expression with resultType string).""" + partition_option: Optional[Any] = rest_field( + name="partitionOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The partition mechanism that will be used for teradata read in parallel. Possible values + include: \"None\", \"Hash\", \"DynamicRange\".""" + partition_settings: Optional["_models.TeradataPartitionSettings"] = rest_field( + name="partitionSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The settings that will be leveraged for teradata source partitioning.""" + type: Literal["TeradataSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"TeradataSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + partition_option: Optional[Any] = None, + partition_settings: Optional["_models.TeradataPartitionSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "TeradataSource" # type: ignore + + +class TeradataTableDataset(Dataset, discriminator="TeradataTable"): + """The Teradata database dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Teradata dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.TeradataTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "TeradataTable". + :vartype type: str + """ + + type_properties: Optional["_models.TeradataTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Teradata dataset properties.""" + type: Literal["TeradataTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"TeradataTable\".""" + + __flattened_items = ["database", "table"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.TeradataTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class TeradataTableDatasetTypeProperties(_Model): + """Teradata dataset properties. + + :ivar database: The database name of Teradata. Type: string (or Expression with resultType + string). + :vartype database: any + :ivar table: The table name of Teradata. Type: string (or Expression with resultType string). + :vartype table: any + """ + + database: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The database name of Teradata. Type: string (or Expression with resultType string).""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of Teradata. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + database: Optional[Any] = None, + table: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TextFormat(DatasetStorageFormat, discriminator="TextFormat"): + """The data stored in text format. + + :ivar serializer: Serializer. Type: string (or Expression with resultType string). + :vartype serializer: any + :ivar deserializer: Deserializer. Type: string (or Expression with resultType string). + :vartype deserializer: any + :ivar column_delimiter: The column delimiter. Type: string (or Expression with resultType + string). + :vartype column_delimiter: any + :ivar row_delimiter: The row delimiter. Type: string (or Expression with resultType string). + :vartype row_delimiter: any + :ivar escape_char: The escape character. Type: string (or Expression with resultType string). + :vartype escape_char: any + :ivar quote_char: The quote character. Type: string (or Expression with resultType string). + :vartype quote_char: any + :ivar null_value: The null value string. Type: string (or Expression with resultType string). + :vartype null_value: any + :ivar encoding_name: The code page name of the preferred encoding. If miss, the default value + is ΓÇ£utf-8ΓÇ¥, unless BOM denotes another Unicode encoding. Refer to the ΓÇ£NameΓÇ¥ column of + the table in the following link to set supported values: + `https://msdn.microsoft.com/library/system.text.encoding.aspx + `_. Type: string (or Expression + with resultType string). + :vartype encoding_name: any + :ivar treat_empty_as_null: Treat empty column values in the text file as null. The default + value is true. Type: boolean (or Expression with resultType boolean). + :vartype treat_empty_as_null: any + :ivar skip_line_count: The number of lines/rows to be skipped when parsing text files. The + default value is 0. Type: integer (or Expression with resultType integer). + :vartype skip_line_count: any + :ivar first_row_as_header: When used as input, treat the first row of data as headers. When + used as output,write the headers into the output as the first row of data. The default value is + false. Type: boolean (or Expression with resultType boolean). + :vartype first_row_as_header: any + :ivar type: Type of dataset storage format. Required. Default value is "TextFormat". + :vartype type: str + """ + + column_delimiter: Optional[Any] = rest_field( + name="columnDelimiter", visibility=["read", "create", "update", "delete", "query"] + ) + """The column delimiter. Type: string (or Expression with resultType string).""" + row_delimiter: Optional[Any] = rest_field( + name="rowDelimiter", visibility=["read", "create", "update", "delete", "query"] + ) + """The row delimiter. Type: string (or Expression with resultType string).""" + escape_char: Optional[Any] = rest_field( + name="escapeChar", visibility=["read", "create", "update", "delete", "query"] + ) + """The escape character. Type: string (or Expression with resultType string).""" + quote_char: Optional[Any] = rest_field(name="quoteChar", visibility=["read", "create", "update", "delete", "query"]) + """The quote character. Type: string (or Expression with resultType string).""" + null_value: Optional[Any] = rest_field(name="nullValue", visibility=["read", "create", "update", "delete", "query"]) + """The null value string. Type: string (or Expression with resultType string).""" + encoding_name: Optional[Any] = rest_field( + name="encodingName", visibility=["read", "create", "update", "delete", "query"] + ) + """The code page name of the preferred encoding. If miss, the default value is ΓÇ£utf-8ΓÇ¥, unless + BOM denotes another Unicode encoding. Refer to the ΓÇ£NameΓÇ¥ column of the table in the + following link to set supported values: + `https://msdn.microsoft.com/library/system.text.encoding.aspx + `_. Type: string (or Expression + with resultType string).""" + treat_empty_as_null: Optional[Any] = rest_field( + name="treatEmptyAsNull", visibility=["read", "create", "update", "delete", "query"] + ) + """Treat empty column values in the text file as null. The default value is true. Type: boolean + (or Expression with resultType boolean).""" + skip_line_count: Optional[Any] = rest_field( + name="skipLineCount", visibility=["read", "create", "update", "delete", "query"] + ) + """The number of lines/rows to be skipped when parsing text files. The default value is 0. Type: + integer (or Expression with resultType integer).""" + first_row_as_header: Optional[Any] = rest_field( + name="firstRowAsHeader", visibility=["read", "create", "update", "delete", "query"] + ) + """When used as input, treat the first row of data as headers. When used as output,write the + headers into the output as the first row of data. The default value is false. Type: boolean (or + Expression with resultType boolean).""" + type: Literal["TextFormat"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset storage format. Required. Default value is \"TextFormat\".""" + + @overload + def __init__( + self, + *, + serializer: Optional[Any] = None, + deserializer: Optional[Any] = None, + column_delimiter: Optional[Any] = None, + row_delimiter: Optional[Any] = None, + escape_char: Optional[Any] = None, + quote_char: Optional[Any] = None, + null_value: Optional[Any] = None, + encoding_name: Optional[Any] = None, + treat_empty_as_null: Optional[Any] = None, + skip_line_count: Optional[Any] = None, + first_row_as_header: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "TextFormat" # type: ignore + + +class TriggerDependencyReference(DependencyReference, discriminator="TriggerDependencyReference"): + """Trigger referenced dependency. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + TumblingWindowTriggerDependencyReference + + :ivar reference_trigger: Referenced trigger. Required. + :vartype reference_trigger: ~azure.mgmt.datafactory.models.TriggerReference + :ivar type: Required. Default value is "TriggerDependencyReference". + :vartype type: str + """ + + __mapping__: dict[str, _Model] = {} + reference_trigger: "_models.TriggerReference" = rest_field( + name="referenceTrigger", visibility=["read", "create", "update", "delete", "query"] + ) + """Referenced trigger. Required.""" + type: Literal["TriggerDependencyReference"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Required. Default value is \"TriggerDependencyReference\".""" + + @overload + def __init__( + self, + *, + reference_trigger: "_models.TriggerReference", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "TriggerDependencyReference" # type: ignore + + +class TriggerFilterParameters(_Model): + """Query parameters for triggers. + + :ivar continuation_token: The continuation token for getting the next page of results. Null for + first page. + :vartype continuation_token: str + :ivar parent_trigger_name: The name of the parent TumblingWindowTrigger to get the child rerun + triggers. + :vartype parent_trigger_name: str + """ + + continuation_token: Optional[str] = rest_field( + name="continuationToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The continuation token for getting the next page of results. Null for first page.""" + parent_trigger_name: Optional[str] = rest_field( + name="parentTriggerName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the parent TumblingWindowTrigger to get the child rerun triggers.""" + + @overload + def __init__( + self, + *, + continuation_token: Optional[str] = None, + parent_trigger_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TriggerPipelineReference(_Model): + """Pipeline that needs to be triggered with the given parameters. + + :ivar pipeline_reference: Pipeline reference. + :vartype pipeline_reference: ~azure.mgmt.datafactory.models.PipelineReference + :ivar parameters: Pipeline parameters. + :vartype parameters: dict[str, any] + """ + + pipeline_reference: Optional["_models.PipelineReference"] = rest_field( + name="pipelineReference", visibility=["read", "create", "update", "delete", "query"] + ) + """Pipeline reference.""" + parameters: Optional[dict[str, Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Pipeline parameters.""" + + @overload + def __init__( + self, + *, + pipeline_reference: Optional["_models.PipelineReference"] = None, + parameters: Optional[dict[str, Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TriggerQueryResponse(_Model): + """A query of triggers. + + :ivar value: List of triggers. Required. + :vartype value: list[~azure.mgmt.datafactory.models.TriggerResource] + :ivar continuation_token: The continuation token for getting the next page of results, if any + remaining results exist, null otherwise. + :vartype continuation_token: str + """ + + value: list["_models.TriggerResource"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of triggers. Required.""" + continuation_token: Optional[str] = rest_field( + name="continuationToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The continuation token for getting the next page of results, if any remaining results exist, + null otherwise.""" + + @overload + def __init__( + self, + *, + value: list["_models.TriggerResource"], + continuation_token: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TriggerReference(_Model): + """Trigger reference type. + + :ivar type: Trigger reference type. Required. "TriggerReference" + :vartype type: str or ~azure.mgmt.datafactory.models.TriggerReferenceType + :ivar reference_name: Reference trigger name. Required. + :vartype reference_name: str + """ + + type: Union[str, "_models.TriggerReferenceType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Trigger reference type. Required. \"TriggerReference\"""" + reference_name: str = rest_field(name="referenceName", visibility=["read", "create", "update", "delete", "query"]) + """Reference trigger name. Required.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.TriggerReferenceType"], + reference_name: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TriggerResource(ProxyResource): + """Trigger resource type. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datafactory.models.SystemData + :ivar properties: Properties of the trigger. Required. + :vartype properties: ~azure.mgmt.datafactory.models.Trigger + :ivar etag: "If etag is provided in the response body, it may also be provided as a header per + the normal etag convention. Entity tags are used for comparing two or more entities from the + same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match + (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). + :vartype etag: str + """ + + properties: "_models.Trigger" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Properties of the trigger. Required.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """\"If etag is provided in the response body, it may also be provided as a header per the normal + etag convention. Entity tags are used for comparing two or more entities from the same + requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section + 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.\").""" + + @overload + def __init__( + self, + *, + properties: "_models.Trigger", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TriggerRun(_Model): + """Trigger runs. + + :ivar trigger_run_id: Trigger run id. + :vartype trigger_run_id: str + :ivar trigger_name: Trigger name. + :vartype trigger_name: str + :ivar trigger_type: Trigger type. + :vartype trigger_type: str + :ivar trigger_run_timestamp: Trigger run start time. + :vartype trigger_run_timestamp: ~datetime.datetime + :ivar status: Trigger run status. Known values are: "Succeeded", "Failed", and "Inprogress". + :vartype status: str or ~azure.mgmt.datafactory.models.TriggerRunStatus + :ivar message: Trigger error message. + :vartype message: str + :ivar properties: List of property name and value related to trigger run. Name, value pair + depends on type of trigger. + :vartype properties: dict[str, str] + :ivar triggered_pipelines: List of pipeline name and run Id triggered by the trigger run. + :vartype triggered_pipelines: dict[str, str] + :ivar run_dimension: Run dimension for which trigger was fired. + :vartype run_dimension: dict[str, str] + :ivar dependency_status: Status of the upstream pipelines. + :vartype dependency_status: dict[str, any] + """ + + trigger_run_id: Optional[str] = rest_field(name="triggerRunId", visibility=["read"]) + """Trigger run id.""" + trigger_name: Optional[str] = rest_field(name="triggerName", visibility=["read"]) + """Trigger name.""" + trigger_type: Optional[str] = rest_field(name="triggerType", visibility=["read"]) + """Trigger type.""" + trigger_run_timestamp: Optional[datetime.datetime] = rest_field( + name="triggerRunTimestamp", visibility=["read"], format="rfc3339" + ) + """Trigger run start time.""" + status: Optional[Union[str, "_models.TriggerRunStatus"]] = rest_field(visibility=["read"]) + """Trigger run status. Known values are: \"Succeeded\", \"Failed\", and \"Inprogress\".""" + message: Optional[str] = rest_field(visibility=["read"]) + """Trigger error message.""" + properties: Optional[dict[str, str]] = rest_field(visibility=["read"]) + """List of property name and value related to trigger run. Name, value pair depends on type of + trigger.""" + triggered_pipelines: Optional[dict[str, str]] = rest_field(name="triggeredPipelines", visibility=["read"]) + """List of pipeline name and run Id triggered by the trigger run.""" + run_dimension: Optional[dict[str, str]] = rest_field(name="runDimension", visibility=["read"]) + """Run dimension for which trigger was fired.""" + dependency_status: Optional[dict[str, Any]] = rest_field(name="dependencyStatus", visibility=["read"]) + """Status of the upstream pipelines.""" + + +class TriggerRunsQueryResponse(_Model): + """A list of trigger runs. + + :ivar value: List of trigger runs. Required. + :vartype value: list[~azure.mgmt.datafactory.models.TriggerRun] + :ivar continuation_token: The continuation token for getting the next page of results, if any + remaining results exist, null otherwise. + :vartype continuation_token: str + """ + + value: list["_models.TriggerRun"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of trigger runs. Required.""" + continuation_token: Optional[str] = rest_field( + name="continuationToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The continuation token for getting the next page of results, if any remaining results exist, + null otherwise.""" + + @overload + def __init__( + self, + *, + value: list["_models.TriggerRun"], + continuation_token: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TriggerSubscriptionOperationStatus(_Model): + """Defines the response of a trigger subscription operation. + + :ivar trigger_name: Trigger name. + :vartype trigger_name: str + :ivar status: Event Subscription Status. Known values are: "Enabled", "Provisioning", + "Deprovisioning", "Disabled", and "Unknown". + :vartype status: str or ~azure.mgmt.datafactory.models.EventSubscriptionStatus + """ + + trigger_name: Optional[str] = rest_field(name="triggerName", visibility=["read"]) + """Trigger name.""" + status: Optional[Union[str, "_models.EventSubscriptionStatus"]] = rest_field(visibility=["read"]) + """Event Subscription Status. Known values are: \"Enabled\", \"Provisioning\", \"Deprovisioning\", + \"Disabled\", and \"Unknown\".""" + + +class TumblingWindowTrigger(Trigger, discriminator="TumblingWindowTrigger"): + """Trigger that schedules pipeline runs for all fixed time interval windows from a start time + without gaps and also supports backfill scenarios (when start time is in the past). + + :ivar description: Trigger description. + :vartype description: str + :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are + called on the Trigger. Known values are: "Started", "Stopped", and "Disabled". + :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :ivar annotations: List of tags that can be used for describing the trigger. + :vartype annotations: list[any] + :ivar pipeline: Pipeline for which runs are created when an event is fired for trigger window + that is ready. Required. + :vartype pipeline: ~azure.mgmt.datafactory.models.TriggerPipelineReference + :ivar type_properties: Tumbling Window Trigger properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.TumblingWindowTriggerTypeProperties + :ivar type: Trigger type. Required. Default value is "TumblingWindowTrigger". + :vartype type: str + """ + + pipeline: "_models.TriggerPipelineReference" = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Pipeline for which runs are created when an event is fired for trigger window that is ready. + Required.""" + type_properties: "_models.TumblingWindowTriggerTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Tumbling Window Trigger properties. Required.""" + type: Literal["TumblingWindowTrigger"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Trigger type. Required. Default value is \"TumblingWindowTrigger\".""" + + __flattened_items = [ + "frequency", + "interval", + "start_time", + "end_time", + "delay", + "max_concurrency", + "retry_policy", + "depends_on", + ] + + @overload + def __init__( + self, + *, + pipeline: "_models.TriggerPipelineReference", + type_properties: "_models.TumblingWindowTriggerTypeProperties", + description: Optional[str] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class TumblingWindowTriggerDependencyReference( + TriggerDependencyReference, discriminator="TumblingWindowTriggerDependencyReference" +): + """Referenced tumbling window trigger dependency. + + :ivar reference_trigger: Referenced trigger. Required. + :vartype reference_trigger: ~azure.mgmt.datafactory.models.TriggerReference + :ivar offset: Timespan applied to the start time of a tumbling window when evaluating + dependency. + :vartype offset: str + :ivar size: The size of the window when evaluating the dependency. If undefined the frequency + of the tumbling window will be used. + :vartype size: str + :ivar type: The type of dependency reference. Required. Default value is + "TumblingWindowTriggerDependencyReference". + :vartype type: str + """ + + offset: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Timespan applied to the start time of a tumbling window when evaluating dependency.""" + size: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The size of the window when evaluating the dependency. If undefined the frequency of the + tumbling window will be used.""" + type: Literal["TumblingWindowTriggerDependencyReference"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The type of dependency reference. Required. Default value is + \"TumblingWindowTriggerDependencyReference\".""" + + @overload + def __init__( + self, + *, + reference_trigger: "_models.TriggerReference", + offset: Optional[str] = None, + size: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "TumblingWindowTriggerDependencyReference" # type: ignore + + +class TumblingWindowTriggerTypeProperties(_Model): + """Tumbling Window Trigger properties. + + :ivar frequency: The frequency of the time windows. Required. Known values are: "Minute", + "Hour", and "Month". + :vartype frequency: str or ~azure.mgmt.datafactory.models.TumblingWindowFrequency + :ivar interval: The interval of the time windows. The minimum interval allowed is 15 Minutes. + Required. + :vartype interval: int + :ivar start_time: The start time for the time period for the trigger during which events are + fired for windows that are ready. Only UTC time is currently supported. Required. + :vartype start_time: ~datetime.datetime + :ivar end_time: The end time for the time period for the trigger during which events are fired + for windows that are ready. Only UTC time is currently supported. + :vartype end_time: ~datetime.datetime + :ivar delay: Specifies how long the trigger waits past due time before triggering new run. It + doesn't alter window start and end time. The default is 0. Type: string (or Expression with + resultType string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype delay: any + :ivar max_concurrency: The max number of parallel time windows (ready for execution) for which + a new run is triggered. Required. + :vartype max_concurrency: int + :ivar retry_policy: Retry policy that will be applied for failed pipeline runs. + :vartype retry_policy: ~azure.mgmt.datafactory.models.RetryPolicy + :ivar depends_on: Triggers that this trigger depends on. Only tumbling window triggers are + supported. + :vartype depends_on: list[~azure.mgmt.datafactory.models.DependencyReference] + """ + + frequency: Union[str, "_models.TumblingWindowFrequency"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The frequency of the time windows. Required. Known values are: \"Minute\", \"Hour\", and + \"Month\".""" + interval: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The interval of the time windows. The minimum interval allowed is 15 Minutes. Required.""" + start_time: datetime.datetime = rest_field( + name="startTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The start time for the time period for the trigger during which events are fired for windows + that are ready. Only UTC time is currently supported. Required.""" + end_time: Optional[datetime.datetime] = rest_field( + name="endTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The end time for the time period for the trigger during which events are fired for windows that + are ready. Only UTC time is currently supported.""" + delay: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specifies how long the trigger waits past due time before triggering new run. It doesn't alter + window start and end time. The default is 0. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + max_concurrency: int = rest_field(name="maxConcurrency", visibility=["read", "create", "update", "delete", "query"]) + """The max number of parallel time windows (ready for execution) for which a new run is triggered. + Required.""" + retry_policy: Optional["_models.RetryPolicy"] = rest_field( + name="retryPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + """Retry policy that will be applied for failed pipeline runs.""" + depends_on: Optional[list["_models.DependencyReference"]] = rest_field( + name="dependsOn", visibility=["read", "create", "update", "delete", "query"] + ) + """Triggers that this trigger depends on. Only tumbling window triggers are supported.""" + + @overload + def __init__( + self, + *, + frequency: Union[str, "_models.TumblingWindowFrequency"], + interval: int, + start_time: datetime.datetime, + max_concurrency: int, + end_time: Optional[datetime.datetime] = None, + delay: Optional[Any] = None, + retry_policy: Optional["_models.RetryPolicy"] = None, + depends_on: Optional[list["_models.DependencyReference"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TwilioLinkedService(LinkedService, discriminator="Twilio"): + """Linked service for Twilio. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Twilio linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.TwilioLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Twilio". + :vartype type: str + """ + + type_properties: "_models.TwilioLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Twilio linked service properties. Required.""" + type: Literal["Twilio"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Twilio\".""" + + __flattened_items = ["user_name", "password"] + + @overload + def __init__( + self, + *, + type_properties: "_models.TwilioLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class TwilioLinkedServiceTypeProperties(_Model): + """Twilio linked service type properties. + + :ivar user_name: The Account SID of Twilio service. Type: string (or Expression with resultType + string). Required. + :vartype user_name: any + :ivar password: The auth token of Twilio service. Required. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + """ + + user_name: Any = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """The Account SID of Twilio service. Type: string (or Expression with resultType string). + Required.""" + password: "_models.SecretBase" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The auth token of Twilio service. Required.""" + + @overload + def __init__( + self, + *, + user_name: Any, + password: "_models.SecretBase", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class UntilActivity(ControlActivity, discriminator="Until"): + """This activity executes inner activities until the specified boolean expression results to true + or timeout is reached, whichever is earlier. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar type_properties: Until activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.UntilActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "Until". + :vartype type: str + """ + + type_properties: "_models.UntilActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Until activity properties. Required.""" + type: Literal["Until"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"Until\".""" + + __flattened_items = ["expression", "timeout", "activities"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.UntilActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class UntilActivityTypeProperties(_Model): + """Until activity properties. + + :ivar expression: An expression that would evaluate to Boolean. The loop will continue until + this expression evaluates to true. Required. + :vartype expression: ~azure.mgmt.datafactory.models.Expression + :ivar timeout: Specifies the timeout for the activity to run. If there is no value specified, + it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or + Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype timeout: any + :ivar activities: List of activities to execute. Required. + :vartype activities: list[~azure.mgmt.datafactory.models.Activity] + """ + + expression: "_models.Expression" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """An expression that would evaluate to Boolean. The loop will continue until this expression + evaluates to true. Required.""" + timeout: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specifies the timeout for the activity to run. If there is no value specified, it takes the + value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with + resultType string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + activities: list["_models.Activity"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of activities to execute. Required.""" + + @overload + def __init__( + self, + *, + expression: "_models.Expression", + activities: list["_models.Activity"], + timeout: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class UpdateIntegrationRuntimeNodeRequest(_Model): + """Update integration runtime node request. + + :ivar concurrent_jobs_limit: The number of concurrent jobs permitted to run on the integration + runtime node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. + :vartype concurrent_jobs_limit: int + """ + + concurrent_jobs_limit: Optional[int] = rest_field( + name="concurrentJobsLimit", visibility=["read", "create", "update", "delete", "query"] + ) + """The number of concurrent jobs permitted to run on the integration runtime node. Values between + 1 and maxConcurrentJobs(inclusive) are allowed.""" + + @overload + def __init__( + self, + *, + concurrent_jobs_limit: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class UpdateIntegrationRuntimeRequest(_Model): + """Update integration runtime request. + + :ivar auto_update: Enables or disables the auto-update feature of the self-hosted integration + runtime. See `https://go.microsoft.com/fwlink/?linkid=854189 + `_. Known values are: "On" and "Off". + :vartype auto_update: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeAutoUpdate + :ivar update_delay_offset: The time offset (in hours) in the day, e.g., PT03H is 3 hours. The + integration runtime auto update will happen on that time. + :vartype update_delay_offset: str + """ + + auto_update: Optional[Union[str, "_models.IntegrationRuntimeAutoUpdate"]] = rest_field( + name="autoUpdate", visibility=["read", "create", "update", "delete", "query"] + ) + """Enables or disables the auto-update feature of the self-hosted integration runtime. See + `https://go.microsoft.com/fwlink/?linkid=854189 + `_. Known values are: \"On\" and \"Off\".""" + update_delay_offset: Optional[str] = rest_field( + name="updateDelayOffset", visibility=["read", "create", "update", "delete", "query"] + ) + """The time offset (in hours) in the day, e.g., PT03H is 3 hours. The integration runtime auto + update will happen on that time.""" + + @overload + def __init__( + self, + *, + auto_update: Optional[Union[str, "_models.IntegrationRuntimeAutoUpdate"]] = None, + update_delay_offset: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class UserAccessPolicy(_Model): + """Get Data Plane read only token request definition. + + :ivar permissions: The string with permissions for Data Plane access. Currently only 'r' is + supported which grants read only access. + :vartype permissions: str + :ivar access_resource_path: The resource path to get access relative to factory. Currently only + empty string is supported which corresponds to the factory resource. + :vartype access_resource_path: str + :ivar profile_name: The name of the profile. Currently only the default is supported. The + default value is DefaultProfile. + :vartype profile_name: str + :ivar start_time: Start time for the token. If not specified the current time will be used. + :vartype start_time: str + :ivar expire_time: Expiration time for the token. Maximum duration for the token is eight hours + and by default the token will expire in eight hours. + :vartype expire_time: str + """ + + permissions: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The string with permissions for Data Plane access. Currently only 'r' is supported which grants + read only access.""" + access_resource_path: Optional[str] = rest_field( + name="accessResourcePath", visibility=["read", "create", "update", "delete", "query"] + ) + """The resource path to get access relative to factory. Currently only empty string is supported + which corresponds to the factory resource.""" + profile_name: Optional[str] = rest_field( + name="profileName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the profile. Currently only the default is supported. The default value is + DefaultProfile.""" + start_time: Optional[str] = rest_field(name="startTime", visibility=["read", "create", "update", "delete", "query"]) + """Start time for the token. If not specified the current time will be used.""" + expire_time: Optional[str] = rest_field( + name="expireTime", visibility=["read", "create", "update", "delete", "query"] + ) + """Expiration time for the token. Maximum duration for the token is eight hours and by default the + token will expire in eight hours.""" + + @overload + def __init__( + self, + *, + permissions: Optional[str] = None, + access_resource_path: Optional[str] = None, + profile_name: Optional[str] = None, + start_time: Optional[str] = None, + expire_time: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class UserProperty(_Model): + """User property. + + :ivar name: User property name. Required. + :vartype name: str + :ivar value: User property value. Type: string (or Expression with resultType string). + Required. + :vartype value: any + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """User property name. Required.""" + value: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """User property value. Type: string (or Expression with resultType string). Required.""" + + @overload + def __init__( + self, + *, + name: str, + value: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ValidationActivity(ControlActivity, discriminator="Validation"): + """This activity verifies that an external resource exists. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar type_properties: Validation activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.ValidationActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "Validation". + :vartype type: str + """ + + type_properties: "_models.ValidationActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Validation activity properties. Required.""" + type: Literal["Validation"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"Validation\".""" + + __flattened_items = ["timeout", "sleep", "minimum_size", "child_items", "dataset"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.ValidationActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ValidationActivityTypeProperties(_Model): + """Validation activity properties. + + :ivar timeout: Specifies the timeout for the activity to run. If there is no value specified, + it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or + Expression with resultType string), pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype timeout: any + :ivar sleep: A delay in seconds between validation attempts. If no value is specified, 10 + seconds will be used as the default. Type: integer (or Expression with resultType integer). + :vartype sleep: any + :ivar minimum_size: Can be used if dataset points to a file. The file must be greater than or + equal in size to the value specified. Type: integer (or Expression with resultType integer). + :vartype minimum_size: any + :ivar child_items: Can be used if dataset points to a folder. If set to true, the folder must + have at least one file. If set to false, the folder must be empty. Type: boolean (or Expression + with resultType boolean). + :vartype child_items: any + :ivar dataset: Validation activity dataset reference. Required. + :vartype dataset: ~azure.mgmt.datafactory.models.DatasetReference + """ + + timeout: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specifies the timeout for the activity to run. If there is no value specified, it takes the + value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with + resultType string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + sleep: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A delay in seconds between validation attempts. If no value is specified, 10 seconds will be + used as the default. Type: integer (or Expression with resultType integer).""" + minimum_size: Optional[Any] = rest_field( + name="minimumSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Can be used if dataset points to a file. The file must be greater than or equal in size to the + value specified. Type: integer (or Expression with resultType integer).""" + child_items: Optional[Any] = rest_field( + name="childItems", visibility=["read", "create", "update", "delete", "query"] + ) + """Can be used if dataset points to a folder. If set to true, the folder must have at least one + file. If set to false, the folder must be empty. Type: boolean (or Expression with resultType + boolean).""" + dataset: "_models.DatasetReference" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Validation activity dataset reference. Required.""" + + @overload + def __init__( + self, + *, + dataset: "_models.DatasetReference", + timeout: Optional[Any] = None, + sleep: Optional[Any] = None, + minimum_size: Optional[Any] = None, + child_items: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class VariableSpecification(_Model): + """Definition of a single variable for a Pipeline. + + :ivar type: Variable type. Required. Known values are: "String", "Bool", and "Array". + :vartype type: str or ~azure.mgmt.datafactory.models.VariableType + :ivar default_value: Default value of variable. + :vartype default_value: any + """ + + type: Union[str, "_models.VariableType"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Variable type. Required. Known values are: \"String\", \"Bool\", and \"Array\".""" + default_value: Optional[Any] = rest_field( + name="defaultValue", visibility=["read", "create", "update", "delete", "query"] + ) + """Default value of variable.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.VariableType"], + default_value: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class VerticaDatasetTypeProperties(_Model): + """Vertica Properties. + + :ivar table_name: This property will be retired. Please consider using schema + table + properties instead. + :vartype table_name: any + :ivar table: The table name of the Vertica. Type: string (or Expression with resultType + string). + :vartype table: any + :ivar schema: The schema name of the Vertica. Type: string (or Expression with resultType + string). + :vartype schema: any + """ + + table_name: Optional[Any] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """This property will be retired. Please consider using schema + table properties instead.""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Vertica. Type: string (or Expression with resultType string).""" + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the Vertica. Type: string (or Expression with resultType string).""" + + @overload + def __init__( + self, + *, + table_name: Optional[Any] = None, + table: Optional[Any] = None, + schema: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class VerticaLinkedService(LinkedService, discriminator="Vertica"): + """Vertica linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Vertica linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.VerticaLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Vertica". + :vartype type: str + """ + + type_properties: "_models.VerticaLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Vertica linked service properties. Required.""" + type: Literal["Vertica"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Vertica\".""" + + __flattened_items = ["connection_string", "server", "port", "uid", "database", "pwd", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.VerticaLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class VerticaLinkedServiceTypeProperties(_Model): + """Vertica linked service properties. + + :ivar connection_string: An ODBC connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. + :vartype connection_string: any + :ivar server: Server name for connection. Type: string. + :vartype server: any + :ivar port: The port for the connection. Type: integer. + :vartype port: any + :ivar uid: Username for authentication. Type: string. + :vartype uid: any + :ivar database: Database name for connection. Type: string. + :vartype database: any + :ivar pwd: The Azure key vault secret reference of password in connection string. + :vartype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_string: Optional[Any] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference.""" + server: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Server name for connection. Type: string.""" + port: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The port for the connection. Type: integer.""" + uid: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Username for authentication. Type: string.""" + database: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Database name for connection. Type: string.""" + pwd: Optional["_models.AzureKeyVaultSecretReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure key vault secret reference of password in connection string.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_string: Optional[Any] = None, + server: Optional[Any] = None, + port: Optional[Any] = None, + uid: Optional[Any] = None, + database: Optional[Any] = None, + pwd: Optional["_models.AzureKeyVaultSecretReference"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class VerticaSource(TabularSource, discriminator="VerticaSource"): + """A copy activity Vertica source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "VerticaSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["VerticaSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"VerticaSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "VerticaSource" # type: ignore + + +class VerticaTableDataset(Dataset, discriminator="VerticaTable"): + """Vertica dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.VerticaDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "VerticaTable". + :vartype type: str + """ + + type_properties: Optional["_models.VerticaDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["VerticaTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"VerticaTable\".""" + + __flattened_items = ["table_name", "table", "schema"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.VerticaDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class WaitActivity(ControlActivity, discriminator="Wait"): + """This activity suspends pipeline execution for the specified interval. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar type_properties: Wait activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.WaitActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "Wait". + :vartype type: str + """ + + type_properties: "_models.WaitActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Wait activity properties. Required.""" + type: Literal["Wait"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"Wait\".""" + + __flattened_items = ["wait_time_in_seconds"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.WaitActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class WaitActivityTypeProperties(_Model): + """Wait activity properties. + + :ivar wait_time_in_seconds: Duration in seconds. Type: integer (or Expression with resultType + integer). Required. + :vartype wait_time_in_seconds: any + """ + + wait_time_in_seconds: Any = rest_field( + name="waitTimeInSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """Duration in seconds. Type: integer (or Expression with resultType integer). Required.""" + + @overload + def __init__( + self, + *, + wait_time_in_seconds: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class WarehouseLinkedService(LinkedService, discriminator="Warehouse"): + """Microsoft Fabric Warehouse linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Microsoft Fabric Warehouse linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.WarehouseLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Warehouse". + :vartype type: str + """ + + type_properties: "_models.WarehouseLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Microsoft Fabric Warehouse linked service properties. Required.""" + type: Literal["Warehouse"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Warehouse\".""" + + __flattened_items = [ + "artifact_id", + "endpoint", + "workspace_id", + "authentication_type", + "service_principal_id", + "service_principal_key", + "tenant", + "encrypted_credential", + "service_principal_credential_type", + "service_principal_credential", + "credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.WarehouseLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class WarehouseLinkedServiceTypeProperties(_Model): + """Microsoft Fabric Warehouse linked service properties. + + :ivar artifact_id: The ID of Microsoft Fabric Warehouse artifact. Type: string (or Expression + with resultType string). Required. + :vartype artifact_id: any + :ivar endpoint: The endpoint of Microsoft Fabric Warehouse server. Type: string (or Expression + with resultType string). Required. + :vartype endpoint: any + :ivar workspace_id: The ID of Microsoft Fabric workspace. Type: string (or Expression with + resultType string). + :vartype workspace_id: any + :ivar authentication_type: The authentication type to use. Known values are: + "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.WarehouseAuthenticationType + :ivar service_principal_id: The ID of the application used to authenticate against Microsoft + Fabric Warehouse. Type: string (or Expression with resultType string). + :vartype service_principal_id: any + :ivar service_principal_key: The Key of the application used to authenticate against Microsoft + Fabric Warehouse. + :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string + (or Expression with resultType string). + :vartype tenant: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + :ivar service_principal_credential_type: The service principal credential type to use in + Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' + for certificate. Type: string (or Expression with resultType string). + :vartype service_principal_credential_type: any + :ivar service_principal_credential: The credential of the service principal object in Azure + Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', + servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If + servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only + be AzureKeyVaultSecretReference. + :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + artifact_id: Any = rest_field(name="artifactId", visibility=["read", "create", "update", "delete", "query"]) + """The ID of Microsoft Fabric Warehouse artifact. Type: string (or Expression with resultType + string). Required.""" + endpoint: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The endpoint of Microsoft Fabric Warehouse server. Type: string (or Expression with resultType + string). Required.""" + workspace_id: Optional[Any] = rest_field( + name="workspaceId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of Microsoft Fabric workspace. Type: string (or Expression with resultType string).""" + authentication_type: Optional[Union[str, "_models.WarehouseAuthenticationType"]] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to use. Known values are: \"ServicePrincipal\", + \"SystemAssignedManagedIdentity\", and \"UserAssignedManagedIdentity\".""" + service_principal_id: Optional[Any] = rest_field( + name="servicePrincipalId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of the application used to authenticate against Microsoft Fabric Warehouse. Type: string + (or Expression with resultType string).""" + service_principal_key: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The Key of the application used to authenticate against Microsoft Fabric Warehouse.""" + tenant: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name or ID of the tenant to which the service principal belongs. Type: string (or + Expression with resultType string).""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + service_principal_credential_type: Optional[Any] = rest_field( + name="servicePrincipalCredentialType", visibility=["read", "create", "update", "delete", "query"] + ) + """The service principal credential type to use in Server-To-Server authentication. + 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + Expression with resultType string).""" + service_principal_credential: Optional["_models.SecretBase"] = rest_field( + name="servicePrincipalCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The credential of the service principal object in Azure Active Directory. If + servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be + SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is + 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( + self, + *, + artifact_id: Any, + endpoint: Any, + workspace_id: Optional[Any] = None, + authentication_type: Optional[Union[str, "_models.WarehouseAuthenticationType"]] = None, + service_principal_id: Optional[Any] = None, + service_principal_key: Optional["_models.SecretBase"] = None, + tenant: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + service_principal_credential_type: Optional[Any] = None, + service_principal_credential: Optional["_models.SecretBase"] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class WarehouseSink(CopySink, discriminator="WarehouseSink"): + """A copy activity Microsoft Fabric Warehouse sink. + + :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType + integer), minimum: 0. + :vartype write_batch_size: any + :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype write_batch_timeout: any + :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType + integer). + :vartype sink_retry_count: any + :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype sink_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType + string). + :vartype pre_copy_script: any + :ivar allow_copy_command: Indicates to use Copy Command to copy data into SQL Data Warehouse. + Type: boolean (or Expression with resultType boolean). + :vartype allow_copy_command: any + :ivar copy_command_settings: Specifies Copy Command related settings when allowCopyCommand is + true. + :vartype copy_command_settings: ~azure.mgmt.datafactory.models.DWCopyCommandSettings + :ivar table_option: The option to handle sink table, such as autoCreate. For now only + 'autoCreate' value is supported. Type: string (or Expression with resultType string). + :vartype table_option: any + :ivar write_behavior: Write behavior when copying data into azure Microsoft Fabric Data + Warehouse. Type: DWWriteBehaviorEnum (or Expression with resultType DWWriteBehaviorEnum). + :vartype write_behavior: any + :ivar type: Copy sink type. Required. Default value is "WarehouseSink". + :vartype type: str + """ + + pre_copy_script: Optional[Any] = rest_field( + name="preCopyScript", visibility=["read", "create", "update", "delete", "query"] + ) + """SQL pre-copy script. Type: string (or Expression with resultType string).""" + allow_copy_command: Optional[Any] = rest_field( + name="allowCopyCommand", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or + Expression with resultType boolean).""" + copy_command_settings: Optional["_models.DWCopyCommandSettings"] = rest_field( + name="copyCommandSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies Copy Command related settings when allowCopyCommand is true.""" + table_option: Optional[Any] = rest_field( + name="tableOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is + supported. Type: string (or Expression with resultType string).""" + write_behavior: Optional[Any] = rest_field( + name="writeBehavior", visibility=["read", "create", "update", "delete", "query"] + ) + """Write behavior when copying data into azure Microsoft Fabric Data Warehouse. Type: + DWWriteBehaviorEnum (or Expression with resultType DWWriteBehaviorEnum).""" + type: Literal["WarehouseSink"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy sink type. Required. Default value is \"WarehouseSink\".""" + + @overload + def __init__( + self, + *, + write_batch_size: Optional[Any] = None, + write_batch_timeout: Optional[Any] = None, + sink_retry_count: Optional[Any] = None, + sink_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + pre_copy_script: Optional[Any] = None, + allow_copy_command: Optional[Any] = None, + copy_command_settings: Optional["_models.DWCopyCommandSettings"] = None, + table_option: Optional[Any] = None, + write_behavior: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "WarehouseSink" # type: ignore + + +class WarehouseSource(TabularSource, discriminator="WarehouseSource"): + """A copy activity Microsoft Fabric Warehouse source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar sql_reader_query: Microsoft Fabric Warehouse reader query. Type: string (or Expression + with resultType string). + :vartype sql_reader_query: any + :ivar sql_reader_stored_procedure_name: Name of the stored procedure for a Microsoft Fabric + Warehouse source. This cannot be used at the same time as SqlReaderQuery. Type: string (or + Expression with resultType string). + :vartype sql_reader_stored_procedure_name: any + :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. + Example: "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression with resultType + object), itemType: StoredProcedureParameter. + :vartype stored_procedure_parameters: any + :ivar isolation_level: Specifies the transaction locking behavior for the Microsoft Fabric + Warehouse source. Allowed values: + ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is + ReadCommitted. Type: string (or Expression with resultType string). + :vartype isolation_level: any + :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. + Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". + :vartype partition_option: any + :ivar partition_settings: The settings that will be leveraged for Sql source partitioning. + :vartype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings + :ivar type: Copy source type. Required. Default value is "WarehouseSource". + :vartype type: str + """ + + sql_reader_query: Optional[Any] = rest_field( + name="sqlReaderQuery", visibility=["read", "create", "update", "delete", "query"] + ) + """Microsoft Fabric Warehouse reader query. Type: string (or Expression with resultType string).""" + sql_reader_stored_procedure_name: Optional[Any] = rest_field( + name="sqlReaderStoredProcedureName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the stored procedure for a Microsoft Fabric Warehouse source. This cannot be used at + the same time as SqlReaderQuery. Type: string (or Expression with resultType string).""" + stored_procedure_parameters: Optional[Any] = rest_field( + name="storedProcedureParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """Value and type setting for stored procedure parameters. Example: \"{Parameter1: {value: \"1\", + type: \"int\"}}\". Type: object (or Expression with resultType object), itemType: + StoredProcedureParameter.""" + isolation_level: Optional[Any] = rest_field( + name="isolationLevel", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the transaction locking behavior for the Microsoft Fabric Warehouse source. Allowed + values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value + is ReadCommitted. Type: string (or Expression with resultType string).""" + partition_option: Optional[Any] = rest_field( + name="partitionOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The partition mechanism that will be used for Sql read in parallel. Possible values include: + \"None\", \"PhysicalPartitionsOfTable\", \"DynamicRange\".""" + partition_settings: Optional["_models.SqlPartitionSettings"] = rest_field( + name="partitionSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The settings that will be leveraged for Sql source partitioning.""" + type: Literal["WarehouseSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"WarehouseSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + sql_reader_query: Optional[Any] = None, + sql_reader_stored_procedure_name: Optional[Any] = None, + stored_procedure_parameters: Optional[Any] = None, + isolation_level: Optional[Any] = None, + partition_option: Optional[Any] = None, + partition_settings: Optional["_models.SqlPartitionSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "WarehouseSource" # type: ignore + + +class WarehouseTableDataset(Dataset, discriminator="WarehouseTable"): + """Microsoft Fabric Warehouse dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Microsoft Fabric Warehouse dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.WarehouseTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "WarehouseTable". + :vartype type: str + """ + + type_properties: Optional["_models.WarehouseTableDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Microsoft Fabric Warehouse dataset properties.""" + type: Literal["WarehouseTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"WarehouseTable\".""" + + __flattened_items = ["schema", "table"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.WarehouseTableDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class WarehouseTableDatasetTypeProperties(_Model): + """Microsoft Fabric Warehouse dataset properties. + + :ivar schema: The schema name of the Microsoft Fabric Warehouse. Type: string (or Expression + with resultType string). + :vartype schema: any + :ivar table: The table name of the Microsoft Fabric Warehouse. Type: string (or Expression with + resultType string). + :vartype table: any + """ + + schema: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The schema name of the Microsoft Fabric Warehouse. Type: string (or Expression with resultType + string).""" + table: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The table name of the Microsoft Fabric Warehouse. Type: string (or Expression with resultType + string).""" + + @overload + def __init__( + self, + *, + schema: Optional[Any] = None, + table: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class WebActivity(ExecutionActivity, discriminator="WebActivity"): + """Web activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar linked_service_name: Linked service reference. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy + :ivar type_properties: Web activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.WebActivityTypeProperties + :ivar type: Type of activity. Required. Default value is "WebActivity". + :vartype type: str + """ + + type_properties: "_models.WebActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Web activity properties. Required.""" + type: Literal["WebActivity"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"WebActivity\".""" + + __flattened_items = [ + "method", + "url", + "headers", + "body", + "authentication", + "disable_cert_validation", + "http_request_timeout", + "turn_off_async", + "datasets", + "linked_services", + "connect_via", + ] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.WebActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + linked_service_name: Optional["_models.LinkedServiceReference"] = None, + policy: Optional["_models.ActivityPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class WebActivityAuthentication(_Model): + """Web activity authentication properties. + + :ivar type: Web activity authentication (Basic/ClientCertificate/MSI/ServicePrincipal). + :vartype type: str + :ivar pfx: Base64-encoded contents of a PFX file or Certificate when used for ServicePrincipal. + :vartype pfx: ~azure.mgmt.datafactory.models.SecretBase + :ivar username: Web activity authentication user name for basic authentication or ClientID when + used for ServicePrincipal. Type: string (or Expression with resultType string). + :vartype username: any + :ivar password: Password for the PFX file or basic authentication / Secret when used for + ServicePrincipal. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar resource: Resource for which Azure Auth token will be requested when using MSI + Authentication. Type: string (or Expression with resultType string). + :vartype resource: any + :ivar user_tenant: TenantId for which Azure Auth token will be requested when using + ServicePrincipal Authentication. Type: string (or Expression with resultType string). + :vartype user_tenant: any + :ivar credential: The credential reference containing authentication information. + :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference + """ + + type: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Web activity authentication (Basic/ClientCertificate/MSI/ServicePrincipal).""" + pfx: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Base64-encoded contents of a PFX file or Certificate when used for ServicePrincipal.""" + username: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Web activity authentication user name for basic authentication or ClientID when used for + ServicePrincipal. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password for the PFX file or basic authentication / Secret when used for ServicePrincipal.""" + resource: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource for which Azure Auth token will be requested when using MSI Authentication. Type: + string (or Expression with resultType string).""" + user_tenant: Optional[Any] = rest_field( + name="userTenant", visibility=["read", "create", "update", "delete", "query"] + ) + """TenantId for which Azure Auth token will be requested when using ServicePrincipal + Authentication. Type: string (or Expression with resultType string).""" + credential: Optional["_models.CredentialReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The credential reference containing authentication information.""" + + @overload + def __init__( + self, + *, + type: Optional[str] = None, + pfx: Optional["_models.SecretBase"] = None, + username: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + resource: Optional[Any] = None, + user_tenant: Optional[Any] = None, + credential: Optional["_models.CredentialReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class WebActivityTypeProperties(_Model): + """Web activity type properties. + + :ivar method: Rest API method for target endpoint. Required. Known values are: "GET", "POST", + "PUT", and "DELETE". + :vartype method: str or ~azure.mgmt.datafactory.models.WebActivityMethod + :ivar url: Web activity target endpoint and path. Type: string (or Expression with resultType + string). Required. + :vartype url: any + :ivar headers: Represents the headers that will be sent to the request. For example, to set the + language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": + "application/json" }. Type: string (or Expression with resultType string). + :vartype headers: dict[str, any] + :ivar body: Represents the payload that will be sent to the endpoint. Required for POST/PUT + method, not allowed for GET method Type: string (or Expression with resultType string). + :vartype body: any + :ivar authentication: Authentication method used for calling the endpoint. + :vartype authentication: ~azure.mgmt.datafactory.models.WebActivityAuthentication + :ivar disable_cert_validation: When set to true, Certificate validation will be disabled. + :vartype disable_cert_validation: bool + :ivar http_request_timeout: Timeout for the HTTP request to get a response. Format is in + TimeSpan (hh:mm:ss). This value is the timeout to get a response, not the activity timeout. The + default value is 00:01:00 (1 minute). The range is from 1 to 10 minutes. + :vartype http_request_timeout: any + :ivar turn_off_async: Option to disable invoking HTTP GET on location given in response header + of a HTTP 202 Response. If set true, it stops invoking HTTP GET on http location given in + response header. If set false then continues to invoke HTTP GET call on location given in http + response headers. + :vartype turn_off_async: bool + :ivar datasets: List of datasets passed to web endpoint. + :vartype datasets: list[~azure.mgmt.datafactory.models.DatasetReference] + :ivar linked_services: List of linked services passed to web endpoint. + :vartype linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceReference] + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + """ + + method: Union[str, "_models.WebActivityMethod"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Rest API method for target endpoint. Required. Known values are: \"GET\", \"POST\", \"PUT\", + and \"DELETE\".""" + url: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Web activity target endpoint and path. Type: string (or Expression with resultType string). + Required.""" + headers: Optional[dict[str, Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Represents the headers that will be sent to the request. For example, to set the language and + type on a request: \"headers\" : { \"Accept-Language\": \"en-us\", \"Content-Type\": + \"application/json\" }. Type: string (or Expression with resultType string).""" + body: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not + allowed for GET method Type: string (or Expression with resultType string).""" + authentication: Optional["_models.WebActivityAuthentication"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Authentication method used for calling the endpoint.""" + disable_cert_validation: Optional[bool] = rest_field( + name="disableCertValidation", visibility=["read", "create", "update", "delete", "query"] + ) + """When set to true, Certificate validation will be disabled.""" + http_request_timeout: Optional[Any] = rest_field( + name="httpRequestTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """Timeout for the HTTP request to get a response. Format is in TimeSpan (hh:mm:ss). This value is + the timeout to get a response, not the activity timeout. The default value is 00:01:00 (1 + minute). The range is from 1 to 10 minutes.""" + turn_off_async: Optional[bool] = rest_field( + name="turnOffAsync", visibility=["read", "create", "update", "delete", "query"] + ) + """Option to disable invoking HTTP GET on location given in response header of a HTTP 202 + Response. If set true, it stops invoking HTTP GET on http location given in response header. If + set false then continues to invoke HTTP GET call on location given in http response headers.""" + datasets: Optional[list["_models.DatasetReference"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of datasets passed to web endpoint.""" + linked_services: Optional[list["_models.LinkedServiceReference"]] = rest_field( + name="linkedServices", visibility=["read", "create", "update", "delete", "query"] + ) + """List of linked services passed to web endpoint.""" + connect_via: Optional["_models.IntegrationRuntimeReference"] = rest_field( + name="connectVia", visibility=["read", "create", "update", "delete", "query"] + ) + """The integration runtime reference.""" + + @overload + def __init__( + self, + *, + method: Union[str, "_models.WebActivityMethod"], + url: Any, + headers: Optional[dict[str, Any]] = None, + body: Optional[Any] = None, + authentication: Optional["_models.WebActivityAuthentication"] = None, + disable_cert_validation: Optional[bool] = None, + http_request_timeout: Optional[Any] = None, + turn_off_async: Optional[bool] = None, + datasets: Optional[list["_models.DatasetReference"]] = None, + linked_services: Optional[list["_models.LinkedServiceReference"]] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class WebLinkedServiceTypeProperties(_Model): + """Base definition of WebLinkedServiceTypeProperties, this typeProperties is polymorphic based on + authenticationType, so not flattened in SDK models. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + WebAnonymousAuthentication, WebBasicAuthentication, WebClientCertificateAuthentication + + :ivar url: The URL of the web service endpoint, e.g. `https://www.microsoft.com + `_ . Type: string (or Expression with resultType string). Required. + :vartype url: any + :ivar authentication_type: Type of authentication used to connect to the web table source. + Required. Known values are: "Basic", "Anonymous", and "ClientCertificate". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.WebAuthenticationType + """ + + __mapping__: dict[str, _Model] = {} + url: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The URL of the web service endpoint, e.g. `https://www.microsoft.com + `_ . Type: string (or Expression with resultType string). Required.""" + authentication_type: str = rest_discriminator( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """Type of authentication used to connect to the web table source. Required. Known values are: + \"Basic\", \"Anonymous\", and \"ClientCertificate\".""" + + @overload + def __init__( + self, + *, + url: Any, + authentication_type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class WebAnonymousAuthentication(WebLinkedServiceTypeProperties, discriminator="Anonymous"): + """A WebLinkedService that uses anonymous authentication to communicate with an HTTP endpoint. + + :ivar url: The URL of the web service endpoint, e.g. `https://www.microsoft.com + `_ . Type: string (or Expression with resultType string). Required. + :vartype url: any + :ivar authentication_type: Type of authentication used to connect to the web table source. + Required. Anonymous. + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.ANONYMOUS + """ + + authentication_type: Literal[WebAuthenticationType.ANONYMOUS] = rest_discriminator(name="authenticationType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of authentication used to connect to the web table source. Required. Anonymous.""" + + @overload + def __init__( + self, + *, + url: Any, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.authentication_type = WebAuthenticationType.ANONYMOUS # type: ignore + + +class WebBasicAuthentication(WebLinkedServiceTypeProperties, discriminator="Basic"): + """A WebLinkedService that uses basic authentication to communicate with an HTTP endpoint. + + :ivar url: The URL of the web service endpoint, e.g. `https://www.microsoft.com + `_ . Type: string (or Expression with resultType string). Required. + :vartype url: any + :ivar username: User name for Basic authentication. Type: string (or Expression with resultType + string). Required. + :vartype username: any + :ivar password: The password for Basic authentication. Required. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar authentication_type: Type of authentication used to connect to the web table source. + Required. Basic. + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.BASIC + """ + + username: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """User name for Basic authentication. Type: string (or Expression with resultType string). + Required.""" + password: "_models.SecretBase" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password for Basic authentication. Required.""" + authentication_type: Literal[WebAuthenticationType.BASIC] = rest_discriminator(name="authenticationType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of authentication used to connect to the web table source. Required. Basic.""" + + @overload + def __init__( + self, + *, + url: Any, + username: Any, + password: "_models.SecretBase", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.authentication_type = WebAuthenticationType.BASIC # type: ignore + + +class WebClientCertificateAuthentication(WebLinkedServiceTypeProperties, discriminator="ClientCertificate"): + """A WebLinkedService that uses client certificate based authentication to communicate with an + HTTP endpoint. This scheme follows mutual authentication; the server must also provide valid + credentials to the client. + + :ivar url: The URL of the web service endpoint, e.g. `https://www.microsoft.com + `_ . Type: string (or Expression with resultType string). Required. + :vartype url: any + :ivar pfx: Base64-encoded contents of a PFX file. Required. + :vartype pfx: ~azure.mgmt.datafactory.models.SecretBase + :ivar password: Password for the PFX file. Required. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar authentication_type: Type of authentication used to connect to the web table source. + Required. ClientCertificate. + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.CLIENT_CERTIFICATE + """ + + pfx: "_models.SecretBase" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Base64-encoded contents of a PFX file. Required.""" + password: "_models.SecretBase" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password for the PFX file. Required.""" + authentication_type: Literal[WebAuthenticationType.CLIENT_CERTIFICATE] = rest_discriminator(name="authenticationType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of authentication used to connect to the web table source. Required. ClientCertificate.""" + + @overload + def __init__( + self, + *, + url: Any, + pfx: "_models.SecretBase", + password: "_models.SecretBase", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.authentication_type = WebAuthenticationType.CLIENT_CERTIFICATE # type: ignore + + +class WebHookActivity(ControlActivity, discriminator="WebHook"): + """WebHook activity. + + :ivar name: Activity name. Required. + :vartype name: str + :ivar description: Activity description. + :vartype description: str + :ivar state: Activity state. This is an optional property and if not provided, the state will + be Active by default. Known values are: "Active" and "Inactive". + :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState + :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. + This is an optional property and if not provided when the activity is inactive, the status will + be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". + :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs + :ivar depends_on: Activity depends on condition. + :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] + :ivar user_properties: Activity user properties. + :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] + :ivar type_properties: WebHook activity properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.WebHookActivityTypeProperties + :ivar policy: Activity policy. + :vartype policy: ~azure.mgmt.datafactory.models.SecureInputOutputPolicy + :ivar type: Type of activity. Required. Default value is "WebHook". + :vartype type: str + """ + + type_properties: "_models.WebHookActivityTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """WebHook activity properties. Required.""" + policy: Optional["_models.SecureInputOutputPolicy"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Activity policy.""" + type: Literal["WebHook"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of activity. Required. Default value is \"WebHook\".""" + + __flattened_items = ["method", "url", "timeout", "headers", "body", "authentication", "report_status_on_call_back"] + + @overload + def __init__( + self, + *, + name: str, + type_properties: "_models.WebHookActivityTypeProperties", + description: Optional[str] = None, + state: Optional[Union[str, "_models.ActivityState"]] = None, + on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, + depends_on: Optional[list["_models.ActivityDependency"]] = None, + user_properties: Optional[list["_models.UserProperty"]] = None, + policy: Optional["_models.SecureInputOutputPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class WebHookActivityTypeProperties(_Model): + """WebHook activity type properties. + + :ivar method: Rest API method for target endpoint. Required. "POST" + :vartype method: str or ~azure.mgmt.datafactory.models.WebHookActivityMethod + :ivar url: WebHook activity target endpoint and path. Type: string (or Expression with + resultType string). Required. + :vartype url: any + :ivar timeout: The timeout within which the webhook should be called back. If there is no value + specified, it defaults to 10 minutes. Type: string. Pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype timeout: str + :ivar headers: Represents the headers that will be sent to the request. For example, to set the + language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": + "application/json" }. Type: string (or Expression with resultType string). + :vartype headers: dict[str, any] + :ivar body: Represents the payload that will be sent to the endpoint. Required for POST/PUT + method, not allowed for GET method Type: string (or Expression with resultType string). + :vartype body: any + :ivar authentication: Authentication method used for calling the endpoint. + :vartype authentication: ~azure.mgmt.datafactory.models.WebActivityAuthentication + :ivar report_status_on_call_back: When set to true, statusCode, output and error in callback + request body will be consumed by activity. The activity can be marked as failed by setting + statusCode >= 400 in callback request. Default is false. Type: boolean (or Expression with + resultType boolean). + :vartype report_status_on_call_back: any + """ + + method: Union[str, "_models.WebHookActivityMethod"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Rest API method for target endpoint. Required. \"POST\"""" + url: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """WebHook activity target endpoint and path. Type: string (or Expression with resultType string). + Required.""" + timeout: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The timeout within which the webhook should be called back. If there is no value specified, it + defaults to 10 minutes. Type: string. Pattern: + ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).""" + headers: Optional[dict[str, Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Represents the headers that will be sent to the request. For example, to set the language and + type on a request: \"headers\" : { \"Accept-Language\": \"en-us\", \"Content-Type\": + \"application/json\" }. Type: string (or Expression with resultType string).""" + body: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not + allowed for GET method Type: string (or Expression with resultType string).""" + authentication: Optional["_models.WebActivityAuthentication"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Authentication method used for calling the endpoint.""" + report_status_on_call_back: Optional[Any] = rest_field( + name="reportStatusOnCallBack", visibility=["read", "create", "update", "delete", "query"] + ) + """When set to true, statusCode, output and error in callback request body will be consumed by + activity. The activity can be marked as failed by setting statusCode >= 400 in callback + request. Default is false. Type: boolean (or Expression with resultType boolean).""" + + @overload + def __init__( + self, + *, + method: Union[str, "_models.WebHookActivityMethod"], + url: Any, + timeout: Optional[str] = None, + headers: Optional[dict[str, Any]] = None, + body: Optional[Any] = None, + authentication: Optional["_models.WebActivityAuthentication"] = None, + report_status_on_call_back: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class WebLinkedService(LinkedService, discriminator="Web"): + """Web linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Web linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.WebLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Web". + :vartype type: str + """ + + type_properties: "_models.WebLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Web linked service properties. Required.""" + type: Literal["Web"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Web\".""" + + @overload + def __init__( + self, + *, + type_properties: "_models.WebLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "Web" # type: ignore + + +class WebSource(CopySource, discriminator="WebSource"): + """A copy activity source for web page table. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "WebSource". + :vartype type: str + """ + + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["WebSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"WebSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "WebSource" # type: ignore + + +class WebTableDataset(Dataset, discriminator="WebTable"): + """The dataset points to a HTML table in the web page. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Web table dataset properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.WebTableDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "WebTable". + :vartype type: str + """ + + type_properties: "_models.WebTableDatasetTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Web table dataset properties. Required.""" + type: Literal["WebTable"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"WebTable\".""" + + __flattened_items = ["index", "path"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + type_properties: "_models.WebTableDatasetTypeProperties", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class WebTableDatasetTypeProperties(_Model): + """Web table dataset properties. + + :ivar index: The zero-based index of the table in the web page. Type: integer (or Expression + with resultType integer), minimum: 0. Required. + :vartype index: any + :ivar path: The relative URL to the web page from the linked service URL. Type: string (or + Expression with resultType string). + :vartype path: any + """ + + index: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The zero-based index of the table in the web page. Type: integer (or Expression with resultType + integer), minimum: 0. Required.""" + path: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The relative URL to the web page from the linked service URL. Type: string (or Expression with + resultType string).""" + + @overload + def __init__( + self, + *, + index: Any, + path: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class WranglingDataFlow(DataFlow, discriminator="WranglingDataFlow"): + """Power Query data flow. + + :ivar description: The description of the data flow. + :vartype description: str + :ivar annotations: List of tags that can be used for describing the data flow. + :vartype annotations: list[any] + :ivar folder: The folder that this data flow is in. If not specified, Data flow will appear at + the root level. + :vartype folder: ~azure.mgmt.datafactory.models.DataFlowFolder + :ivar type_properties: PowerQuery data flow type properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.PowerQueryTypeProperties + :ivar type: Type of data flow. Required. Default value is "WranglingDataFlow". + :vartype type: str + """ + + type_properties: Optional["_models.PowerQueryTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """PowerQuery data flow type properties.""" + type: Literal["WranglingDataFlow"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of data flow. Required. Default value is \"WranglingDataFlow\".""" + + __flattened_items = ["sources", "script", "document_locale"] + + @overload + def __init__( + self, + *, + description: Optional[str] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DataFlowFolder"] = None, + type_properties: Optional["_models.PowerQueryTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class XeroLinkedService(LinkedService, discriminator="Xero"): + """Xero Service linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Xero Service linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.XeroLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Xero". + :vartype type: str + """ + + type_properties: "_models.XeroLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Xero Service linked service properties. Required.""" + type: Literal["Xero"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Xero\".""" + + __flattened_items = [ + "connection_properties", + "host", + "consumer_key", + "private_key", + "use_encrypted_endpoints", + "use_host_verification", + "use_peer_verification", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.XeroLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class XeroLinkedServiceTypeProperties(_Model): + """Xero Service linked service properties. + + :ivar connection_properties: Properties used to connect to Xero. It is mutually exclusive with + any other properties in the linked service. Type: object. + :vartype connection_properties: any + :ivar host: The endpoint of the Xero server. (i.e. api.xero.com). + :vartype host: any + :ivar consumer_key: The consumer key associated with the Xero application. + :vartype consumer_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar private_key: The private key from the .pem file that was generated for your Xero private + application. You must include all the text from the .pem file, including the Unix line endings( + ). + :vartype private_key: ~azure.mgmt.datafactory.models.SecretBase + :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using + HTTPS. The default value is true. + :vartype use_encrypted_endpoints: any + :ivar use_host_verification: Specifies whether to require the host name in the server's + certificate to match the host name of the server when connecting over SSL. The default value is + true. + :vartype use_host_verification: any + :ivar use_peer_verification: Specifies whether to verify the identity of the server when + connecting over SSL. The default value is true. + :vartype use_peer_verification: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_properties: Optional[Any] = rest_field( + name="connectionProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties used to connect to Xero. It is mutually exclusive with any other properties in the + linked service. Type: object.""" + host: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The endpoint of the Xero server. (i.e. api.xero.com).""" + consumer_key: Optional["_models.SecretBase"] = rest_field( + name="consumerKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The consumer key associated with the Xero application.""" + private_key: Optional["_models.SecretBase"] = rest_field( + name="privateKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The private key from the .pem file that was generated for your Xero private application. You + must include all the text from the .pem file, including the Unix line endings( ).""" + use_encrypted_endpoints: Optional[Any] = rest_field( + name="useEncryptedEndpoints", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the data source endpoints are encrypted using HTTPS. The default value is + true.""" + use_host_verification: Optional[Any] = rest_field( + name="useHostVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require the host name in the server's certificate to match the host name + of the server when connecting over SSL. The default value is true.""" + use_peer_verification: Optional[Any] = rest_field( + name="usePeerVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to verify the identity of the server when connecting over SSL. The default + value is true.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_properties: Optional[Any] = None, + host: Optional[Any] = None, + consumer_key: Optional["_models.SecretBase"] = None, + private_key: Optional["_models.SecretBase"] = None, + use_encrypted_endpoints: Optional[Any] = None, + use_host_verification: Optional[Any] = None, + use_peer_verification: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class XeroObjectDataset(Dataset, discriminator="XeroObject"): + """Xero Service dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "XeroObject". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["XeroObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"XeroObject\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class XeroSource(TabularSource, discriminator="XeroSource"): + """A copy activity Xero Service source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "XeroSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["XeroSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"XeroSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "XeroSource" # type: ignore + + +class XmlDataset(Dataset, discriminator="Xml"): + """Xml dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Xml dataset properties. + :vartype type_properties: ~azure.mgmt.datafactory.models.XmlDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "Xml". + :vartype type: str + """ + + type_properties: Optional["_models.XmlDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Xml dataset properties.""" + type: Literal["Xml"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"Xml\".""" + + __flattened_items = ["location", "encoding_name", "null_value", "compression"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.XmlDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class XmlDatasetTypeProperties(_Model): + """Xml dataset properties. + + :ivar location: The location of the json data storage. Required. + :vartype location: ~azure.mgmt.datafactory.models.DatasetLocation + :ivar encoding_name: The code page name of the preferred encoding. If not specified, the + default value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column + of the table in the following link to set supported values: + `https://msdn.microsoft.com/library/system.text.encoding.aspx + `_. Type: string (or Expression + with resultType string). + :vartype encoding_name: any + :ivar null_value: The null value string. Type: string (or Expression with resultType string). + :vartype null_value: any + :ivar compression: The data compression method used for the json dataset. + :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression + """ + + location: "_models.DatasetLocation" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The location of the json data storage. Required.""" + encoding_name: Optional[Any] = rest_field( + name="encodingName", visibility=["read", "create", "update", "delete", "query"] + ) + """The code page name of the preferred encoding. If not specified, the default value is UTF-8, + unless BOM denotes another Unicode encoding. Refer to the name column of the table in the + following link to set supported values: + `https://msdn.microsoft.com/library/system.text.encoding.aspx + `_. Type: string (or Expression + with resultType string).""" + null_value: Optional[Any] = rest_field(name="nullValue", visibility=["read", "create", "update", "delete", "query"]) + """The null value string. Type: string (or Expression with resultType string).""" + compression: Optional["_models.DatasetCompression"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The data compression method used for the json dataset.""" + + @overload + def __init__( + self, + *, + location: "_models.DatasetLocation", + encoding_name: Optional[Any] = None, + null_value: Optional[Any] = None, + compression: Optional["_models.DatasetCompression"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class XmlReadSettings(FormatReadSettings, discriminator="XmlReadSettings"): + """Xml read settings. + + :ivar compression_properties: Compression settings. + :vartype compression_properties: ~azure.mgmt.datafactory.models.CompressionReadSettings + :ivar validation_mode: Indicates what validation method is used when reading the xml files. + Allowed values: 'none', 'xsd', or 'dtd'. Type: string (or Expression with resultType string). + :vartype validation_mode: any + :ivar detect_data_type: Indicates whether type detection is enabled when reading the xml files. + Type: boolean (or Expression with resultType boolean). + :vartype detect_data_type: any + :ivar namespaces: Indicates whether namespace is enabled when reading the xml files. Type: + boolean (or Expression with resultType boolean). + :vartype namespaces: any + :ivar namespace_prefixes: Namespace uri to prefix mappings to override the prefixes in column + names when namespace is enabled, if no prefix is defined for a namespace uri, the prefix of xml + element/attribute name in the xml data file will be used. Example: + "{"`http://www.example.com/xml":"prefix"} `_" Type: + object (or Expression with resultType object). + :vartype namespace_prefixes: any + :ivar type: The read setting type. Required. Default value is "XmlReadSettings". + :vartype type: str + """ + + compression_properties: Optional["_models.CompressionReadSettings"] = rest_field( + name="compressionProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Compression settings.""" + validation_mode: Optional[Any] = rest_field( + name="validationMode", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates what validation method is used when reading the xml files. Allowed values: 'none', + 'xsd', or 'dtd'. Type: string (or Expression with resultType string).""" + detect_data_type: Optional[Any] = rest_field( + name="detectDataType", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether type detection is enabled when reading the xml files. Type: boolean (or + Expression with resultType boolean).""" + namespaces: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Indicates whether namespace is enabled when reading the xml files. Type: boolean (or Expression + with resultType boolean).""" + namespace_prefixes: Optional[Any] = rest_field( + name="namespacePrefixes", visibility=["read", "create", "update", "delete", "query"] + ) + """Namespace uri to prefix mappings to override the prefixes in column names when namespace is + enabled, if no prefix is defined for a namespace uri, the prefix of xml element/attribute name + in the xml data file will be used. Example: \"{\"`http://www.example.com/xml\":\"prefix\"} + `_\" Type: object (or Expression with resultType + object).""" + type: Literal["XmlReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The read setting type. Required. Default value is \"XmlReadSettings\".""" + + @overload + def __init__( + self, + *, + compression_properties: Optional["_models.CompressionReadSettings"] = None, + validation_mode: Optional[Any] = None, + detect_data_type: Optional[Any] = None, + namespaces: Optional[Any] = None, + namespace_prefixes: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "XmlReadSettings" # type: ignore + + +class XmlSource(CopySource, discriminator="XmlSource"): + """A copy activity Xml source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar store_settings: Xml store settings. + :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings + :ivar format_settings: Xml format settings. + :vartype format_settings: ~azure.mgmt.datafactory.models.XmlReadSettings + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar type: Copy source type. Required. Default value is "XmlSource". + :vartype type: str + """ + + store_settings: Optional["_models.StoreReadSettings"] = rest_field( + name="storeSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Xml store settings.""" + format_settings: Optional["_models.XmlReadSettings"] = rest_field( + name="formatSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Xml format settings.""" + additional_columns: Optional[Any] = rest_field( + name="additionalColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the additional columns to be added to source data. Type: array of + objects(AdditionalColumns) (or Expression with resultType array of objects).""" + type: Literal["XmlSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"XmlSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + store_settings: Optional["_models.StoreReadSettings"] = None, + format_settings: Optional["_models.XmlReadSettings"] = None, + additional_columns: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "XmlSource" # type: ignore + + +class ZendeskLinkedService(LinkedService, discriminator="Zendesk"): + """Linked service for Zendesk. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Zendesk linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.ZendeskLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Zendesk". + :vartype type: str + """ + + type_properties: "_models.ZendeskLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Zendesk linked service properties. Required.""" + type: Literal["Zendesk"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Zendesk\".""" + + __flattened_items = ["authentication_type", "url", "user_name", "password", "api_token", "encrypted_credential"] + + @overload + def __init__( + self, + *, + type_properties: "_models.ZendeskLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ZendeskLinkedServiceTypeProperties(_Model): + """Zendesk linked service type properties. + + :ivar authentication_type: The authentication type to use. Required. Known values are: "Basic" + and "Token". + :vartype authentication_type: str or ~azure.mgmt.datafactory.models.ZendeskAuthenticationType + :ivar url: The url to connect Zendesk source. Type: string (or Expression with resultType + string). Required. + :vartype url: any + :ivar user_name: The username of the Zendesk source. Type: string (or Expression with + resultType string). + :vartype user_name: any + :ivar password: The password of the Zendesk source. + :vartype password: ~azure.mgmt.datafactory.models.SecretBase + :ivar api_token: The api token for the Zendesk source. + :vartype api_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + authentication_type: Union[str, "_models.ZendeskAuthenticationType"] = rest_field( + name="authenticationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication type to use. Required. Known values are: \"Basic\" and \"Token\".""" + url: Any = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The url to connect Zendesk source. Type: string (or Expression with resultType string). + Required.""" + user_name: Optional[Any] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """The username of the Zendesk source. Type: string (or Expression with resultType string).""" + password: Optional["_models.SecretBase"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password of the Zendesk source.""" + api_token: Optional["_models.SecretBase"] = rest_field( + name="apiToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The api token for the Zendesk source.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + authentication_type: Union[str, "_models.ZendeskAuthenticationType"], + url: Any, + user_name: Optional[Any] = None, + password: Optional["_models.SecretBase"] = None, + api_token: Optional["_models.SecretBase"] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ZipDeflateReadSettings(CompressionReadSettings, discriminator="ZipDeflateReadSettings"): + """The ZipDeflate compression read settings. + + :ivar preserve_zip_file_name_as_folder: Preserve the zip file name as folder path. Type: + boolean (or Expression with resultType boolean). + :vartype preserve_zip_file_name_as_folder: any + :ivar type: The Compression setting type. Required. Default value is "ZipDeflateReadSettings". + :vartype type: str + """ + + preserve_zip_file_name_as_folder: Optional[Any] = rest_field( + name="preserveZipFileNameAsFolder", visibility=["read", "create", "update", "delete", "query"] + ) + """Preserve the zip file name as folder path. Type: boolean (or Expression with resultType + boolean).""" + type: Literal["ZipDeflateReadSettings"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The Compression setting type. Required. Default value is \"ZipDeflateReadSettings\".""" + + @overload + def __init__( + self, + *, + preserve_zip_file_name_as_folder: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "ZipDeflateReadSettings" # type: ignore + + +class ZohoLinkedService(LinkedService, discriminator="Zoho"): + """Zoho server linked service. + + :ivar version: Version of the linked service. + :vartype version: str + :ivar connect_via: The integration runtime reference. + :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference + :ivar description: Linked service description. + :vartype description: str + :ivar parameters: Parameters for linked service. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the linked service. + :vartype annotations: list[any] + :ivar type_properties: Zoho server linked service properties. Required. + :vartype type_properties: ~azure.mgmt.datafactory.models.ZohoLinkedServiceTypeProperties + :ivar type: Type of linked service. Required. Default value is "Zoho". + :vartype type: str + """ + + type_properties: "_models.ZohoLinkedServiceTypeProperties" = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Zoho server linked service properties. Required.""" + type: Literal["Zoho"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of linked service. Required. Default value is \"Zoho\".""" + + __flattened_items = [ + "connection_properties", + "endpoint", + "access_token", + "use_encrypted_endpoints", + "use_host_verification", + "use_peer_verification", + "encrypted_credential", + ] + + @overload + def __init__( + self, + *, + type_properties: "_models.ZohoLinkedServiceTypeProperties", + version: Optional[str] = None, + connect_via: Optional["_models.IntegrationRuntimeReference"] = None, + description: Optional[str] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ZohoLinkedServiceTypeProperties(_Model): + """Zoho server linked service properties. + + :ivar connection_properties: Properties used to connect to Zoho. It is mutually exclusive with + any other properties in the linked service. Type: object. + :vartype connection_properties: any + :ivar endpoint: The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private). + :vartype endpoint: any + :ivar access_token: The access token for Zoho authentication. + :vartype access_token: ~azure.mgmt.datafactory.models.SecretBase + :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using + HTTPS. The default value is true. + :vartype use_encrypted_endpoints: any + :ivar use_host_verification: Specifies whether to require the host name in the server's + certificate to match the host name of the server when connecting over SSL. The default value is + true. + :vartype use_host_verification: any + :ivar use_peer_verification: Specifies whether to verify the identity of the server when + connecting over SSL. The default value is true. + :vartype use_peer_verification: any + :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str + """ + + connection_properties: Optional[Any] = rest_field( + name="connectionProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties used to connect to Zoho. It is mutually exclusive with any other properties in the + linked service. Type: object.""" + endpoint: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private).""" + access_token: Optional["_models.SecretBase"] = rest_field( + name="accessToken", visibility=["read", "create", "update", "delete", "query"] + ) + """The access token for Zoho authentication.""" + use_encrypted_endpoints: Optional[Any] = rest_field( + name="useEncryptedEndpoints", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the data source endpoints are encrypted using HTTPS. The default value is + true.""" + use_host_verification: Optional[Any] = rest_field( + name="useHostVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to require the host name in the server's certificate to match the host name + of the server when connecting over SSL. The default value is true.""" + use_peer_verification: Optional[Any] = rest_field( + name="usePeerVerification", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether to verify the identity of the server when connecting over SSL. The default + value is true.""" + encrypted_credential: Optional[str] = rest_field( + name="encryptedCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The encrypted credential used for authentication. Credentials are encrypted using the + integration runtime credential manager. Type: string.""" + + @overload + def __init__( + self, + *, + connection_properties: Optional[Any] = None, + endpoint: Optional[Any] = None, + access_token: Optional["_models.SecretBase"] = None, + use_encrypted_endpoints: Optional[Any] = None, + use_host_verification: Optional[Any] = None, + use_peer_verification: Optional[Any] = None, + encrypted_credential: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ZohoObjectDataset(Dataset, discriminator="ZohoObject"): + """Zoho server dataset. + + :ivar description: Dataset description. + :vartype description: str + :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression + with resultType array), itemType: DatasetDataElement. + :vartype structure: any + :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or + Expression with resultType array), itemType: DatasetSchemaDataElement. + :vartype schema: any + :ivar linked_service_name: Linked service reference. Required. + :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference + :ivar parameters: Parameters for dataset. + :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] + :ivar annotations: List of tags that can be used for describing the Dataset. + :vartype annotations: list[any] + :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the + root level. + :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder + :ivar type_properties: Properties specific to this dataset type. + :vartype type_properties: ~azure.mgmt.datafactory.models.GenericDatasetTypeProperties + :ivar type: Type of dataset. Required. Default value is "ZohoObject". + :vartype type: str + """ + + type_properties: Optional["_models.GenericDatasetTypeProperties"] = rest_field( + name="typeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties specific to this dataset type.""" + type: Literal["ZohoObject"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of dataset. Required. Default value is \"ZohoObject\".""" + + __flattened_items = ["table_name"] + + @overload + def __init__( + self, + *, + linked_service_name: "_models.LinkedServiceReference", + description: Optional[str] = None, + structure: Optional[Any] = None, + schema: Optional[Any] = None, + parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, + annotations: Optional[list[Any]] = None, + folder: Optional["_models.DatasetFolder"] = None, + type_properties: Optional["_models.GenericDatasetTypeProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.type_properties is None: + return None + return getattr(self.type_properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.type_properties is None: + self.type_properties = self._attr_to_rest_field["type_properties"]._class_type() + setattr(self.type_properties, key, value) + else: + super().__setattr__(key, value) + + +class ZohoSource(TabularSource, discriminator="ZohoSource"): + """A copy activity Zoho server source. + + :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType + integer). + :vartype source_retry_count: any + :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType + string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype source_retry_wait: any + :ivar max_concurrent_connections: The maximum concurrent connection count for the source data + store. Type: integer (or Expression with resultType integer). + :vartype max_concurrent_connections: any + :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is + false. Type: boolean (or Expression with resultType boolean). + :vartype disable_metrics_collection: any + :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), + pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + :vartype query_timeout: any + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: any + :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType + string). + :vartype query: any + :ivar type: Copy source type. Required. Default value is "ZohoSource". + :vartype type: str + """ + + query: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A query to retrieve data from source. Type: string (or Expression with resultType string).""" + type: Literal["ZohoSource"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Copy source type. Required. Default value is \"ZohoSource\".""" + + @overload + def __init__( + self, + *, + source_retry_count: Optional[Any] = None, + source_retry_wait: Optional[Any] = None, + max_concurrent_connections: Optional[Any] = None, + disable_metrics_collection: Optional[Any] = None, + query_timeout: Optional[Any] = None, + additional_columns: Optional[Any] = None, + query: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "ZohoSource" # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models_py3.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models_py3.py deleted file mode 100644 index 4ace0d52fcbf..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models_py3.py +++ /dev/null @@ -1,77369 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# 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 collections.abc import MutableMapping -import datetime -from typing import Any, Optional, TYPE_CHECKING, Union - -from .._utils import serialization as _serialization - -if TYPE_CHECKING: - from .. import models as _models -JSON = MutableMapping[str, Any] - - -class AccessPolicyResponse(_serialization.Model): - """Get Data Plane read only token response definition. - - :ivar policy: The user access policy. - :vartype policy: ~azure.mgmt.datafactory.models.UserAccessPolicy - :ivar access_token: Data Plane read only access token. - :vartype access_token: str - :ivar data_plane_url: Data Plane service base URL. - :vartype data_plane_url: str - """ - - _attribute_map = { - "policy": {"key": "policy", "type": "UserAccessPolicy"}, - "access_token": {"key": "accessToken", "type": "str"}, - "data_plane_url": {"key": "dataPlaneUrl", "type": "str"}, - } - - def __init__( - self, - *, - policy: Optional["_models.UserAccessPolicy"] = None, - access_token: Optional[str] = None, - data_plane_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword policy: The user access policy. - :paramtype policy: ~azure.mgmt.datafactory.models.UserAccessPolicy - :keyword access_token: Data Plane read only access token. - :paramtype access_token: str - :keyword data_plane_url: Data Plane service base URL. - :paramtype data_plane_url: str - """ - super().__init__(**kwargs) - self.policy = policy - self.access_token = access_token - self.data_plane_url = data_plane_url - - -class Activity(_serialization.Model): - """A pipeline activity. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ControlActivity, ExecuteWranglingDataflowActivity, ExecutionActivity - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - } - - _subtype_map = { - "type": { - "Container": "ControlActivity", - "ExecuteWranglingDataflow": "ExecuteWranglingDataflowActivity", - "Execution": "ExecutionActivity", - } - } - - def __init__( - self, - *, - name: str, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.name = name - self.type: Optional[str] = None - self.description = description - self.state = state - self.on_inactive_mark_as = on_inactive_mark_as - self.depends_on = depends_on - self.user_properties = user_properties - - -class ActivityDependency(_serialization.Model): - """Activity dependency information. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar activity: Activity name. Required. - :vartype activity: str - :ivar dependency_conditions: Match-Condition for the dependency. Required. - :vartype dependency_conditions: list[str or ~azure.mgmt.datafactory.models.DependencyCondition] - """ - - _validation = { - "activity": {"required": True}, - "dependency_conditions": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "activity": {"key": "activity", "type": "str"}, - "dependency_conditions": {"key": "dependencyConditions", "type": "[str]"}, - } - - def __init__( - self, - *, - activity: str, - dependency_conditions: list[Union[str, "_models.DependencyCondition"]], - additional_properties: Optional[dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword activity: Activity name. Required. - :paramtype activity: str - :keyword dependency_conditions: Match-Condition for the dependency. Required. - :paramtype dependency_conditions: list[str or - ~azure.mgmt.datafactory.models.DependencyCondition] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.activity = activity - self.dependency_conditions = dependency_conditions - - -class ActivityPolicy(_serialization.Model): - """Execution policy for an activity. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar timeout: Specifies the timeout for the activity to run. The default timeout is 7 days. - Type: string (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype timeout: JSON - :ivar retry: Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with - resultType integer), minimum: 0. - :vartype retry: JSON - :ivar retry_interval_in_seconds: Interval between each retry attempt (in seconds). The default - is 30 sec. - :vartype retry_interval_in_seconds: int - :ivar secure_input: When set to true, Input from activity is considered as secure and will not - be logged to monitoring. - :vartype secure_input: bool - :ivar secure_output: When set to true, Output from activity is considered as secure and will - not be logged to monitoring. - :vartype secure_output: bool - """ - - _validation = { - "retry_interval_in_seconds": {"maximum": 86400, "minimum": 30}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "timeout": {"key": "timeout", "type": "object"}, - "retry": {"key": "retry", "type": "object"}, - "retry_interval_in_seconds": {"key": "retryIntervalInSeconds", "type": "int"}, - "secure_input": {"key": "secureInput", "type": "bool"}, - "secure_output": {"key": "secureOutput", "type": "bool"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - timeout: Optional[JSON] = None, - retry: Optional[JSON] = None, - retry_interval_in_seconds: Optional[int] = None, - secure_input: Optional[bool] = None, - secure_output: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword timeout: Specifies the timeout for the activity to run. The default timeout is 7 days. - Type: string (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype timeout: JSON - :keyword retry: Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression - with resultType integer), minimum: 0. - :paramtype retry: JSON - :keyword retry_interval_in_seconds: Interval between each retry attempt (in seconds). The - default is 30 sec. - :paramtype retry_interval_in_seconds: int - :keyword secure_input: When set to true, Input from activity is considered as secure and will - not be logged to monitoring. - :paramtype secure_input: bool - :keyword secure_output: When set to true, Output from activity is considered as secure and will - not be logged to monitoring. - :paramtype secure_output: bool - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.timeout = timeout - self.retry = retry - self.retry_interval_in_seconds = retry_interval_in_seconds - self.secure_input = secure_input - self.secure_output = secure_output - - -class ActivityRun(_serialization.Model): - """Information about an activity run in a pipeline. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar pipeline_name: The name of the pipeline. - :vartype pipeline_name: str - :ivar pipeline_run_id: The id of the pipeline run. - :vartype pipeline_run_id: str - :ivar activity_name: The name of the activity. - :vartype activity_name: str - :ivar activity_type: The type of the activity. - :vartype activity_type: str - :ivar activity_run_id: The id of the activity run. - :vartype activity_run_id: str - :ivar linked_service_name: The name of the compute linked service. - :vartype linked_service_name: str - :ivar status: The status of the activity run. - :vartype status: str - :ivar activity_run_start: The start time of the activity run in 'ISO 8601' format. - :vartype activity_run_start: ~datetime.datetime - :ivar activity_run_end: The end time of the activity run in 'ISO 8601' format. - :vartype activity_run_end: ~datetime.datetime - :ivar duration_in_ms: The duration of the activity run. - :vartype duration_in_ms: int - :ivar input: The input for the activity. - :vartype input: JSON - :ivar output: The output for the activity. - :vartype output: JSON - :ivar error: The error if any from the activity run. - :vartype error: JSON - """ - - _validation = { - "pipeline_name": {"readonly": True}, - "pipeline_run_id": {"readonly": True}, - "activity_name": {"readonly": True}, - "activity_type": {"readonly": True}, - "activity_run_id": {"readonly": True}, - "linked_service_name": {"readonly": True}, - "status": {"readonly": True}, - "activity_run_start": {"readonly": True}, - "activity_run_end": {"readonly": True}, - "duration_in_ms": {"readonly": True}, - "input": {"readonly": True}, - "output": {"readonly": True}, - "error": {"readonly": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "pipeline_name": {"key": "pipelineName", "type": "str"}, - "pipeline_run_id": {"key": "pipelineRunId", "type": "str"}, - "activity_name": {"key": "activityName", "type": "str"}, - "activity_type": {"key": "activityType", "type": "str"}, - "activity_run_id": {"key": "activityRunId", "type": "str"}, - "linked_service_name": {"key": "linkedServiceName", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "activity_run_start": {"key": "activityRunStart", "type": "iso-8601"}, - "activity_run_end": {"key": "activityRunEnd", "type": "iso-8601"}, - "duration_in_ms": {"key": "durationInMs", "type": "int"}, - "input": {"key": "input", "type": "object"}, - "output": {"key": "output", "type": "object"}, - "error": {"key": "error", "type": "object"}, - } - - def __init__(self, *, additional_properties: Optional[dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.pipeline_name: Optional[str] = None - self.pipeline_run_id: Optional[str] = None - self.activity_name: Optional[str] = None - self.activity_type: Optional[str] = None - self.activity_run_id: Optional[str] = None - self.linked_service_name: Optional[str] = None - self.status: Optional[str] = None - self.activity_run_start: Optional[datetime.datetime] = None - self.activity_run_end: Optional[datetime.datetime] = None - self.duration_in_ms: Optional[int] = None - self.input: Optional[JSON] = None - self.output: Optional[JSON] = None - self.error: Optional[JSON] = None - - -class ActivityRunsQueryResponse(_serialization.Model): - """A list activity runs. - - All required parameters must be populated in order to send to server. - - :ivar value: List of activity runs. Required. - :vartype value: list[~azure.mgmt.datafactory.models.ActivityRun] - :ivar continuation_token: The continuation token for getting the next page of results, if any - remaining results exist, null otherwise. - :vartype continuation_token: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[ActivityRun]"}, - "continuation_token": {"key": "continuationToken", "type": "str"}, - } - - def __init__( - self, *, value: list["_models.ActivityRun"], continuation_token: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: List of activity runs. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.ActivityRun] - :keyword continuation_token: The continuation token for getting the next page of results, if - any remaining results exist, null otherwise. - :paramtype continuation_token: str - """ - super().__init__(**kwargs) - self.value = value - self.continuation_token = continuation_token - - -class AddDataFlowToDebugSessionResponse(_serialization.Model): - """Response body structure for starting data flow debug session. - - :ivar job_version: The ID of data flow debug job version. - :vartype job_version: str - """ - - _attribute_map = { - "job_version": {"key": "jobVersion", "type": "str"}, - } - - def __init__(self, *, job_version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword job_version: The ID of data flow debug job version. - :paramtype job_version: str - """ - super().__init__(**kwargs) - self.job_version = job_version - - -class AdditionalColumns(_serialization.Model): - """Specify the column name and value of additional columns. - - :ivar name: Additional column name. Type: string (or Expression with resultType string). - :vartype name: JSON - :ivar value: Additional column value. Type: string (or Expression with resultType string). - :vartype value: JSON - """ - - _attribute_map = { - "name": {"key": "name", "type": "object"}, - "value": {"key": "value", "type": "object"}, - } - - def __init__(self, *, name: Optional[JSON] = None, value: Optional[JSON] = None, **kwargs: Any) -> None: - """ - :keyword name: Additional column name. Type: string (or Expression with resultType string). - :paramtype name: JSON - :keyword value: Additional column value. Type: string (or Expression with resultType string). - :paramtype value: JSON - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class LinkedService(_serialization.Model): - """The nested object which contains the information and credential which can be used to connect - with related store or compute resource. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AmazonMWSLinkedService, AmazonRdsForOracleLinkedService, AmazonRdsForSqlServerLinkedService, - AmazonRedshiftLinkedService, AmazonS3LinkedService, AmazonS3CompatibleLinkedService, - AppFiguresLinkedService, AsanaLinkedService, AzureBatchLinkedService, AzureBlobFSLinkedService, - AzureBlobStorageLinkedService, AzureDataExplorerLinkedService, - AzureDataLakeAnalyticsLinkedService, AzureDataLakeStoreLinkedService, - AzureDatabricksLinkedService, AzureDatabricksDeltaLakeLinkedService, - AzureFileStorageLinkedService, AzureFunctionLinkedService, AzureKeyVaultLinkedService, - AzureMLLinkedService, AzureMLServiceLinkedService, AzureMariaDBLinkedService, - AzureMySqlLinkedService, AzurePostgreSqlLinkedService, AzureSearchLinkedService, - AzureSqlDWLinkedService, AzureSqlDatabaseLinkedService, AzureSqlMILinkedService, - AzureStorageLinkedService, AzureSynapseArtifactsLinkedService, AzureTableStorageLinkedService, - CassandraLinkedService, CommonDataServiceForAppsLinkedService, ConcurLinkedService, - CosmosDbLinkedService, CosmosDbMongoDbApiLinkedService, CouchbaseLinkedService, - CustomDataSourceLinkedService, DataworldLinkedService, Db2LinkedService, DrillLinkedService, - DynamicsLinkedService, DynamicsAXLinkedService, DynamicsCrmLinkedService, EloquaLinkedService, - FileServerLinkedService, FtpServerLinkedService, GoogleAdWordsLinkedService, - GoogleBigQueryLinkedService, GoogleBigQueryV2LinkedService, GoogleCloudStorageLinkedService, - GoogleSheetsLinkedService, GreenplumLinkedService, HBaseLinkedService, HDInsightLinkedService, - HDInsightOnDemandLinkedService, HdfsLinkedService, HiveLinkedService, HttpLinkedService, - HubspotLinkedService, ImpalaLinkedService, InformixLinkedService, JiraLinkedService, - LakeHouseLinkedService, MagentoLinkedService, MariaDBLinkedService, MarketoLinkedService, - MicrosoftAccessLinkedService, MongoDbLinkedService, MongoDbAtlasLinkedService, - MongoDbV2LinkedService, MySqlLinkedService, NetezzaLinkedService, ODataLinkedService, - OdbcLinkedService, Office365LinkedService, OracleLinkedService, - OracleCloudStorageLinkedService, OracleServiceCloudLinkedService, PaypalLinkedService, - PhoenixLinkedService, PostgreSqlLinkedService, PostgreSqlV2LinkedService, PrestoLinkedService, - QuickBooksLinkedService, QuickbaseLinkedService, ResponsysLinkedService, - RestServiceLinkedService, SalesforceLinkedService, SalesforceMarketingCloudLinkedService, - SalesforceServiceCloudLinkedService, SalesforceServiceCloudV2LinkedService, - SalesforceV2LinkedService, SapBWLinkedService, SapCloudForCustomerLinkedService, - SapEccLinkedService, SapHanaLinkedService, SapOdpLinkedService, SapOpenHubLinkedService, - SapTableLinkedService, ServiceNowLinkedService, ServiceNowV2LinkedService, - SftpServerLinkedService, SharePointOnlineListLinkedService, ShopifyLinkedService, - SmartsheetLinkedService, SnowflakeLinkedService, SnowflakeV2LinkedService, SparkLinkedService, - SqlServerLinkedService, SquareLinkedService, SybaseLinkedService, TeamDeskLinkedService, - TeradataLinkedService, TwilioLinkedService, VerticaLinkedService, WarehouseLinkedService, - WebLinkedService, XeroLinkedService, ZendeskLinkedService, ZohoLinkedService - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - } - - _subtype_map = { - "type": { - "AmazonMWS": "AmazonMWSLinkedService", - "AmazonRdsForOracle": "AmazonRdsForOracleLinkedService", - "AmazonRdsForSqlServer": "AmazonRdsForSqlServerLinkedService", - "AmazonRedshift": "AmazonRedshiftLinkedService", - "AmazonS3": "AmazonS3LinkedService", - "AmazonS3Compatible": "AmazonS3CompatibleLinkedService", - "AppFigures": "AppFiguresLinkedService", - "Asana": "AsanaLinkedService", - "AzureBatch": "AzureBatchLinkedService", - "AzureBlobFS": "AzureBlobFSLinkedService", - "AzureBlobStorage": "AzureBlobStorageLinkedService", - "AzureDataExplorer": "AzureDataExplorerLinkedService", - "AzureDataLakeAnalytics": "AzureDataLakeAnalyticsLinkedService", - "AzureDataLakeStore": "AzureDataLakeStoreLinkedService", - "AzureDatabricks": "AzureDatabricksLinkedService", - "AzureDatabricksDeltaLake": "AzureDatabricksDeltaLakeLinkedService", - "AzureFileStorage": "AzureFileStorageLinkedService", - "AzureFunction": "AzureFunctionLinkedService", - "AzureKeyVault": "AzureKeyVaultLinkedService", - "AzureML": "AzureMLLinkedService", - "AzureMLService": "AzureMLServiceLinkedService", - "AzureMariaDB": "AzureMariaDBLinkedService", - "AzureMySql": "AzureMySqlLinkedService", - "AzurePostgreSql": "AzurePostgreSqlLinkedService", - "AzureSearch": "AzureSearchLinkedService", - "AzureSqlDW": "AzureSqlDWLinkedService", - "AzureSqlDatabase": "AzureSqlDatabaseLinkedService", - "AzureSqlMI": "AzureSqlMILinkedService", - "AzureStorage": "AzureStorageLinkedService", - "AzureSynapseArtifacts": "AzureSynapseArtifactsLinkedService", - "AzureTableStorage": "AzureTableStorageLinkedService", - "Cassandra": "CassandraLinkedService", - "CommonDataServiceForApps": "CommonDataServiceForAppsLinkedService", - "Concur": "ConcurLinkedService", - "CosmosDb": "CosmosDbLinkedService", - "CosmosDbMongoDbApi": "CosmosDbMongoDbApiLinkedService", - "Couchbase": "CouchbaseLinkedService", - "CustomDataSource": "CustomDataSourceLinkedService", - "Dataworld": "DataworldLinkedService", - "Db2": "Db2LinkedService", - "Drill": "DrillLinkedService", - "Dynamics": "DynamicsLinkedService", - "DynamicsAX": "DynamicsAXLinkedService", - "DynamicsCrm": "DynamicsCrmLinkedService", - "Eloqua": "EloquaLinkedService", - "FileServer": "FileServerLinkedService", - "FtpServer": "FtpServerLinkedService", - "GoogleAdWords": "GoogleAdWordsLinkedService", - "GoogleBigQuery": "GoogleBigQueryLinkedService", - "GoogleBigQueryV2": "GoogleBigQueryV2LinkedService", - "GoogleCloudStorage": "GoogleCloudStorageLinkedService", - "GoogleSheets": "GoogleSheetsLinkedService", - "Greenplum": "GreenplumLinkedService", - "HBase": "HBaseLinkedService", - "HDInsight": "HDInsightLinkedService", - "HDInsightOnDemand": "HDInsightOnDemandLinkedService", - "Hdfs": "HdfsLinkedService", - "Hive": "HiveLinkedService", - "HttpServer": "HttpLinkedService", - "Hubspot": "HubspotLinkedService", - "Impala": "ImpalaLinkedService", - "Informix": "InformixLinkedService", - "Jira": "JiraLinkedService", - "Lakehouse": "LakeHouseLinkedService", - "Magento": "MagentoLinkedService", - "MariaDB": "MariaDBLinkedService", - "Marketo": "MarketoLinkedService", - "MicrosoftAccess": "MicrosoftAccessLinkedService", - "MongoDb": "MongoDbLinkedService", - "MongoDbAtlas": "MongoDbAtlasLinkedService", - "MongoDbV2": "MongoDbV2LinkedService", - "MySql": "MySqlLinkedService", - "Netezza": "NetezzaLinkedService", - "OData": "ODataLinkedService", - "Odbc": "OdbcLinkedService", - "Office365": "Office365LinkedService", - "Oracle": "OracleLinkedService", - "OracleCloudStorage": "OracleCloudStorageLinkedService", - "OracleServiceCloud": "OracleServiceCloudLinkedService", - "Paypal": "PaypalLinkedService", - "Phoenix": "PhoenixLinkedService", - "PostgreSql": "PostgreSqlLinkedService", - "PostgreSqlV2": "PostgreSqlV2LinkedService", - "Presto": "PrestoLinkedService", - "QuickBooks": "QuickBooksLinkedService", - "Quickbase": "QuickbaseLinkedService", - "Responsys": "ResponsysLinkedService", - "RestService": "RestServiceLinkedService", - "Salesforce": "SalesforceLinkedService", - "SalesforceMarketingCloud": "SalesforceMarketingCloudLinkedService", - "SalesforceServiceCloud": "SalesforceServiceCloudLinkedService", - "SalesforceServiceCloudV2": "SalesforceServiceCloudV2LinkedService", - "SalesforceV2": "SalesforceV2LinkedService", - "SapBW": "SapBWLinkedService", - "SapCloudForCustomer": "SapCloudForCustomerLinkedService", - "SapEcc": "SapEccLinkedService", - "SapHana": "SapHanaLinkedService", - "SapOdp": "SapOdpLinkedService", - "SapOpenHub": "SapOpenHubLinkedService", - "SapTable": "SapTableLinkedService", - "ServiceNow": "ServiceNowLinkedService", - "ServiceNowV2": "ServiceNowV2LinkedService", - "Sftp": "SftpServerLinkedService", - "SharePointOnlineList": "SharePointOnlineListLinkedService", - "Shopify": "ShopifyLinkedService", - "Smartsheet": "SmartsheetLinkedService", - "Snowflake": "SnowflakeLinkedService", - "SnowflakeV2": "SnowflakeV2LinkedService", - "Spark": "SparkLinkedService", - "SqlServer": "SqlServerLinkedService", - "Square": "SquareLinkedService", - "Sybase": "SybaseLinkedService", - "TeamDesk": "TeamDeskLinkedService", - "Teradata": "TeradataLinkedService", - "Twilio": "TwilioLinkedService", - "Vertica": "VerticaLinkedService", - "Warehouse": "WarehouseLinkedService", - "Web": "WebLinkedService", - "Xero": "XeroLinkedService", - "Zendesk": "ZendeskLinkedService", - "Zoho": "ZohoLinkedService", - } - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - self.version = version - self.connect_via = connect_via - self.description = description - self.parameters = parameters - self.annotations = annotations - - -class AmazonMWSLinkedService(LinkedService): - """Amazon Marketplace Web Service linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar endpoint: The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com). Required. - :vartype endpoint: JSON - :ivar marketplace_id: The Amazon Marketplace ID you want to retrieve data from. To retrieve - data from multiple Marketplace IDs, separate them with a comma (,). (i.e. A2EUQ1WTGCTBG2). - Required. - :vartype marketplace_id: JSON - :ivar seller_id: The Amazon seller ID. Required. - :vartype seller_id: JSON - :ivar mws_auth_token: The Amazon MWS authentication token. - :vartype mws_auth_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar access_key_id: The access key id used to access data. Required. - :vartype access_key_id: JSON - :ivar secret_key: The secret key used to access data. - :vartype secret_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using - HTTPS. The default value is true. - :vartype use_encrypted_endpoints: JSON - :ivar use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :vartype use_host_verification: JSON - :ivar use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :vartype use_peer_verification: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "endpoint": {"required": True}, - "marketplace_id": {"required": True}, - "seller_id": {"required": True}, - "access_key_id": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "endpoint": {"key": "typeProperties.endpoint", "type": "object"}, - "marketplace_id": {"key": "typeProperties.marketplaceID", "type": "object"}, - "seller_id": {"key": "typeProperties.sellerID", "type": "object"}, - "mws_auth_token": {"key": "typeProperties.mwsAuthToken", "type": "SecretBase"}, - "access_key_id": {"key": "typeProperties.accessKeyId", "type": "object"}, - "secret_key": {"key": "typeProperties.secretKey", "type": "SecretBase"}, - "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, - "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, - "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - endpoint: JSON, - marketplace_id: JSON, - seller_id: JSON, - access_key_id: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - mws_auth_token: Optional["_models.SecretBase"] = None, - secret_key: Optional["_models.SecretBase"] = None, - use_encrypted_endpoints: Optional[JSON] = None, - use_host_verification: Optional[JSON] = None, - use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword endpoint: The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com). - Required. - :paramtype endpoint: JSON - :keyword marketplace_id: The Amazon Marketplace ID you want to retrieve data from. To retrieve - data from multiple Marketplace IDs, separate them with a comma (,). (i.e. A2EUQ1WTGCTBG2). - Required. - :paramtype marketplace_id: JSON - :keyword seller_id: The Amazon seller ID. Required. - :paramtype seller_id: JSON - :keyword mws_auth_token: The Amazon MWS authentication token. - :paramtype mws_auth_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword access_key_id: The access key id used to access data. Required. - :paramtype access_key_id: JSON - :keyword secret_key: The secret key used to access data. - :paramtype secret_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted - using HTTPS. The default value is true. - :paramtype use_encrypted_endpoints: JSON - :keyword use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :paramtype use_host_verification: JSON - :keyword use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :paramtype use_peer_verification: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AmazonMWS" - self.endpoint = endpoint - self.marketplace_id = marketplace_id - self.seller_id = seller_id - self.mws_auth_token = mws_auth_token - self.access_key_id = access_key_id - self.secret_key = secret_key - self.use_encrypted_endpoints = use_encrypted_endpoints - self.use_host_verification = use_host_verification - self.use_peer_verification = use_peer_verification - self.encrypted_credential = encrypted_credential - - -class Dataset(_serialization.Model): - """The Azure Data Factory nested object which identifies data within different data stores, such - as tables, files, folders, and documents. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AmazonMWSObjectDataset, AmazonRdsForOracleTableDataset, AmazonRdsForSqlServerTableDataset, - AmazonRedshiftTableDataset, AmazonS3Dataset, AvroDataset, AzureBlobDataset, AzureBlobFSDataset, - AzureDataExplorerTableDataset, AzureDataLakeStoreDataset, AzureDatabricksDeltaLakeDataset, - AzureMariaDBTableDataset, AzureMySqlTableDataset, AzurePostgreSqlTableDataset, - AzureSearchIndexDataset, AzureSqlDWTableDataset, AzureSqlMITableDataset, AzureSqlTableDataset, - AzureTableDataset, BinaryDataset, CassandraTableDataset, CommonDataServiceForAppsEntityDataset, - ConcurObjectDataset, CosmosDbMongoDbApiCollectionDataset, CosmosDbSqlApiCollectionDataset, - CouchbaseTableDataset, CustomDataset, Db2TableDataset, DelimitedTextDataset, - DocumentDbCollectionDataset, DrillTableDataset, DynamicsAXResourceDataset, - DynamicsCrmEntityDataset, DynamicsEntityDataset, EloquaObjectDataset, ExcelDataset, - FileShareDataset, GoogleAdWordsObjectDataset, GoogleBigQueryObjectDataset, - GoogleBigQueryV2ObjectDataset, GreenplumTableDataset, HBaseObjectDataset, HiveObjectDataset, - HttpDataset, HubspotObjectDataset, IcebergDataset, ImpalaObjectDataset, InformixTableDataset, - JiraObjectDataset, JsonDataset, LakeHouseTableDataset, MagentoObjectDataset, - MariaDBTableDataset, MarketoObjectDataset, MicrosoftAccessTableDataset, - MongoDbAtlasCollectionDataset, MongoDbCollectionDataset, MongoDbV2CollectionDataset, - MySqlTableDataset, NetezzaTableDataset, ODataResourceDataset, OdbcTableDataset, - Office365Dataset, OracleServiceCloudObjectDataset, OracleTableDataset, OrcDataset, - ParquetDataset, PaypalObjectDataset, PhoenixObjectDataset, PostgreSqlTableDataset, - PostgreSqlV2TableDataset, PrestoObjectDataset, QuickBooksObjectDataset, RelationalTableDataset, - ResponsysObjectDataset, RestResourceDataset, SalesforceMarketingCloudObjectDataset, - SalesforceObjectDataset, SalesforceServiceCloudObjectDataset, - SalesforceServiceCloudV2ObjectDataset, SalesforceV2ObjectDataset, SapBwCubeDataset, - SapCloudForCustomerResourceDataset, SapEccResourceDataset, SapHanaTableDataset, - SapOdpResourceDataset, SapOpenHubTableDataset, SapTableResourceDataset, - ServiceNowObjectDataset, ServiceNowV2ObjectDataset, SharePointOnlineListResourceDataset, - ShopifyObjectDataset, SnowflakeDataset, SnowflakeV2Dataset, SparkObjectDataset, - SqlServerTableDataset, SquareObjectDataset, SybaseTableDataset, TeradataTableDataset, - VerticaTableDataset, WarehouseTableDataset, WebTableDataset, XeroObjectDataset, XmlDataset, - ZohoObjectDataset - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - } - - _subtype_map = { - "type": { - "AmazonMWSObject": "AmazonMWSObjectDataset", - "AmazonRdsForOracleTable": "AmazonRdsForOracleTableDataset", - "AmazonRdsForSqlServerTable": "AmazonRdsForSqlServerTableDataset", - "AmazonRedshiftTable": "AmazonRedshiftTableDataset", - "AmazonS3Object": "AmazonS3Dataset", - "Avro": "AvroDataset", - "AzureBlob": "AzureBlobDataset", - "AzureBlobFSFile": "AzureBlobFSDataset", - "AzureDataExplorerTable": "AzureDataExplorerTableDataset", - "AzureDataLakeStoreFile": "AzureDataLakeStoreDataset", - "AzureDatabricksDeltaLakeDataset": "AzureDatabricksDeltaLakeDataset", - "AzureMariaDBTable": "AzureMariaDBTableDataset", - "AzureMySqlTable": "AzureMySqlTableDataset", - "AzurePostgreSqlTable": "AzurePostgreSqlTableDataset", - "AzureSearchIndex": "AzureSearchIndexDataset", - "AzureSqlDWTable": "AzureSqlDWTableDataset", - "AzureSqlMITable": "AzureSqlMITableDataset", - "AzureSqlTable": "AzureSqlTableDataset", - "AzureTable": "AzureTableDataset", - "Binary": "BinaryDataset", - "CassandraTable": "CassandraTableDataset", - "CommonDataServiceForAppsEntity": "CommonDataServiceForAppsEntityDataset", - "ConcurObject": "ConcurObjectDataset", - "CosmosDbMongoDbApiCollection": "CosmosDbMongoDbApiCollectionDataset", - "CosmosDbSqlApiCollection": "CosmosDbSqlApiCollectionDataset", - "CouchbaseTable": "CouchbaseTableDataset", - "CustomDataset": "CustomDataset", - "Db2Table": "Db2TableDataset", - "DelimitedText": "DelimitedTextDataset", - "DocumentDbCollection": "DocumentDbCollectionDataset", - "DrillTable": "DrillTableDataset", - "DynamicsAXResource": "DynamicsAXResourceDataset", - "DynamicsCrmEntity": "DynamicsCrmEntityDataset", - "DynamicsEntity": "DynamicsEntityDataset", - "EloquaObject": "EloquaObjectDataset", - "Excel": "ExcelDataset", - "FileShare": "FileShareDataset", - "GoogleAdWordsObject": "GoogleAdWordsObjectDataset", - "GoogleBigQueryObject": "GoogleBigQueryObjectDataset", - "GoogleBigQueryV2Object": "GoogleBigQueryV2ObjectDataset", - "GreenplumTable": "GreenplumTableDataset", - "HBaseObject": "HBaseObjectDataset", - "HiveObject": "HiveObjectDataset", - "HttpFile": "HttpDataset", - "HubspotObject": "HubspotObjectDataset", - "Iceberg": "IcebergDataset", - "ImpalaObject": "ImpalaObjectDataset", - "InformixTable": "InformixTableDataset", - "JiraObject": "JiraObjectDataset", - "Json": "JsonDataset", - "LakehouseTable": "LakeHouseTableDataset", - "MagentoObject": "MagentoObjectDataset", - "MariaDBTable": "MariaDBTableDataset", - "MarketoObject": "MarketoObjectDataset", - "MicrosoftAccessTable": "MicrosoftAccessTableDataset", - "MongoDbAtlasCollection": "MongoDbAtlasCollectionDataset", - "MongoDbCollection": "MongoDbCollectionDataset", - "MongoDbV2Collection": "MongoDbV2CollectionDataset", - "MySqlTable": "MySqlTableDataset", - "NetezzaTable": "NetezzaTableDataset", - "ODataResource": "ODataResourceDataset", - "OdbcTable": "OdbcTableDataset", - "Office365Table": "Office365Dataset", - "OracleServiceCloudObject": "OracleServiceCloudObjectDataset", - "OracleTable": "OracleTableDataset", - "Orc": "OrcDataset", - "Parquet": "ParquetDataset", - "PaypalObject": "PaypalObjectDataset", - "PhoenixObject": "PhoenixObjectDataset", - "PostgreSqlTable": "PostgreSqlTableDataset", - "PostgreSqlV2Table": "PostgreSqlV2TableDataset", - "PrestoObject": "PrestoObjectDataset", - "QuickBooksObject": "QuickBooksObjectDataset", - "RelationalTable": "RelationalTableDataset", - "ResponsysObject": "ResponsysObjectDataset", - "RestResource": "RestResourceDataset", - "SalesforceMarketingCloudObject": "SalesforceMarketingCloudObjectDataset", - "SalesforceObject": "SalesforceObjectDataset", - "SalesforceServiceCloudObject": "SalesforceServiceCloudObjectDataset", - "SalesforceServiceCloudV2Object": "SalesforceServiceCloudV2ObjectDataset", - "SalesforceV2Object": "SalesforceV2ObjectDataset", - "SapBwCube": "SapBwCubeDataset", - "SapCloudForCustomerResource": "SapCloudForCustomerResourceDataset", - "SapEccResource": "SapEccResourceDataset", - "SapHanaTable": "SapHanaTableDataset", - "SapOdpResource": "SapOdpResourceDataset", - "SapOpenHubTable": "SapOpenHubTableDataset", - "SapTableResource": "SapTableResourceDataset", - "ServiceNowObject": "ServiceNowObjectDataset", - "ServiceNowV2Object": "ServiceNowV2ObjectDataset", - "SharePointOnlineListResource": "SharePointOnlineListResourceDataset", - "ShopifyObject": "ShopifyObjectDataset", - "SnowflakeTable": "SnowflakeDataset", - "SnowflakeV2Table": "SnowflakeV2Dataset", - "SparkObject": "SparkObjectDataset", - "SqlServerTable": "SqlServerTableDataset", - "SquareObject": "SquareObjectDataset", - "SybaseTable": "SybaseTableDataset", - "TeradataTable": "TeradataTableDataset", - "VerticaTable": "VerticaTableDataset", - "WarehouseTable": "WarehouseTableDataset", - "WebTable": "WebTableDataset", - "XeroObject": "XeroObjectDataset", - "Xml": "XmlDataset", - "ZohoObject": "ZohoObjectDataset", - } - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - self.description = description - self.structure = structure - self.schema = schema - self.linked_service_name = linked_service_name - self.parameters = parameters - self.annotations = annotations - self.folder = folder - - -class AmazonMWSObjectDataset(Dataset): - """Amazon Marketplace Web Service dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "AmazonMWSObject" - self.table_name = table_name - - -class CopySource(_serialization.Model): - """A copy activity source. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AmazonRdsForOracleSource, AvroSource, AzureBlobFSSource, AzureDataExplorerSource, - AzureDataLakeStoreSource, AzureDatabricksDeltaLakeSource, BinarySource, BlobSource, - CommonDataServiceForAppsSource, CosmosDbMongoDbApiSource, CosmosDbSqlApiSource, - DelimitedTextSource, DocumentDbCollectionSource, DynamicsCrmSource, DynamicsSource, - ExcelSource, FileSystemSource, HdfsSource, HttpSource, JsonSource, LakeHouseTableSource, - MicrosoftAccessSource, MongoDbAtlasSource, MongoDbSource, MongoDbV2Source, ODataSource, - Office365Source, OracleSource, OrcSource, ParquetSource, RelationalSource, RestSource, - SalesforceServiceCloudSource, SalesforceServiceCloudV2Source, SharePointOnlineListSource, - SnowflakeSource, SnowflakeV2Source, TabularSource, WebSource, XmlSource - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - } - - _subtype_map = { - "type": { - "AmazonRdsForOracleSource": "AmazonRdsForOracleSource", - "AvroSource": "AvroSource", - "AzureBlobFSSource": "AzureBlobFSSource", - "AzureDataExplorerSource": "AzureDataExplorerSource", - "AzureDataLakeStoreSource": "AzureDataLakeStoreSource", - "AzureDatabricksDeltaLakeSource": "AzureDatabricksDeltaLakeSource", - "BinarySource": "BinarySource", - "BlobSource": "BlobSource", - "CommonDataServiceForAppsSource": "CommonDataServiceForAppsSource", - "CosmosDbMongoDbApiSource": "CosmosDbMongoDbApiSource", - "CosmosDbSqlApiSource": "CosmosDbSqlApiSource", - "DelimitedTextSource": "DelimitedTextSource", - "DocumentDbCollectionSource": "DocumentDbCollectionSource", - "DynamicsCrmSource": "DynamicsCrmSource", - "DynamicsSource": "DynamicsSource", - "ExcelSource": "ExcelSource", - "FileSystemSource": "FileSystemSource", - "HdfsSource": "HdfsSource", - "HttpSource": "HttpSource", - "JsonSource": "JsonSource", - "LakeHouseTableSource": "LakeHouseTableSource", - "MicrosoftAccessSource": "MicrosoftAccessSource", - "MongoDbAtlasSource": "MongoDbAtlasSource", - "MongoDbSource": "MongoDbSource", - "MongoDbV2Source": "MongoDbV2Source", - "ODataSource": "ODataSource", - "Office365Source": "Office365Source", - "OracleSource": "OracleSource", - "OrcSource": "OrcSource", - "ParquetSource": "ParquetSource", - "RelationalSource": "RelationalSource", - "RestSource": "RestSource", - "SalesforceServiceCloudSource": "SalesforceServiceCloudSource", - "SalesforceServiceCloudV2Source": "SalesforceServiceCloudV2Source", - "SharePointOnlineListSource": "SharePointOnlineListSource", - "SnowflakeSource": "SnowflakeSource", - "SnowflakeV2Source": "SnowflakeV2Source", - "TabularSource": "TabularSource", - "WebSource": "WebSource", - "XmlSource": "XmlSource", - } - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - self.source_retry_count = source_retry_count - self.source_retry_wait = source_retry_wait - self.max_concurrent_connections = max_concurrent_connections - self.disable_metrics_collection = disable_metrics_collection - - -class TabularSource(CopySource): - """Copy activity sources of tabular type. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AmazonMWSSource, AmazonRdsForSqlServerSource, AmazonRedshiftSource, AzureMariaDBSource, - AzureMySqlSource, AzurePostgreSqlSource, AzureSqlSource, AzureTableSource, CassandraSource, - ConcurSource, CouchbaseSource, Db2Source, DrillSource, DynamicsAXSource, EloquaSource, - GoogleAdWordsSource, GoogleBigQuerySource, GoogleBigQueryV2Source, GreenplumSource, - HBaseSource, HiveSource, HubspotSource, ImpalaSource, InformixSource, JiraSource, - MagentoSource, MariaDBSource, MarketoSource, MySqlSource, NetezzaSource, OdbcSource, - OracleServiceCloudSource, PaypalSource, PhoenixSource, PostgreSqlSource, PostgreSqlV2Source, - PrestoSource, QuickBooksSource, ResponsysSource, SalesforceMarketingCloudSource, - SalesforceSource, SalesforceV2Source, SapBwSource, SapCloudForCustomerSource, SapEccSource, - SapHanaSource, SapOdpSource, SapOpenHubSource, SapTableSource, ServiceNowSource, - ServiceNowV2Source, ShopifySource, SparkSource, SqlDWSource, SqlMISource, SqlServerSource, - SqlSource, SquareSource, SybaseSource, TeradataSource, VerticaSource, WarehouseSource, - XeroSource, ZohoSource - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - _subtype_map = { - "type": { - "AmazonMWSSource": "AmazonMWSSource", - "AmazonRdsForSqlServerSource": "AmazonRdsForSqlServerSource", - "AmazonRedshiftSource": "AmazonRedshiftSource", - "AzureMariaDBSource": "AzureMariaDBSource", - "AzureMySqlSource": "AzureMySqlSource", - "AzurePostgreSqlSource": "AzurePostgreSqlSource", - "AzureSqlSource": "AzureSqlSource", - "AzureTableSource": "AzureTableSource", - "CassandraSource": "CassandraSource", - "ConcurSource": "ConcurSource", - "CouchbaseSource": "CouchbaseSource", - "Db2Source": "Db2Source", - "DrillSource": "DrillSource", - "DynamicsAXSource": "DynamicsAXSource", - "EloquaSource": "EloquaSource", - "GoogleAdWordsSource": "GoogleAdWordsSource", - "GoogleBigQuerySource": "GoogleBigQuerySource", - "GoogleBigQueryV2Source": "GoogleBigQueryV2Source", - "GreenplumSource": "GreenplumSource", - "HBaseSource": "HBaseSource", - "HiveSource": "HiveSource", - "HubspotSource": "HubspotSource", - "ImpalaSource": "ImpalaSource", - "InformixSource": "InformixSource", - "JiraSource": "JiraSource", - "MagentoSource": "MagentoSource", - "MariaDBSource": "MariaDBSource", - "MarketoSource": "MarketoSource", - "MySqlSource": "MySqlSource", - "NetezzaSource": "NetezzaSource", - "OdbcSource": "OdbcSource", - "OracleServiceCloudSource": "OracleServiceCloudSource", - "PaypalSource": "PaypalSource", - "PhoenixSource": "PhoenixSource", - "PostgreSqlSource": "PostgreSqlSource", - "PostgreSqlV2Source": "PostgreSqlV2Source", - "PrestoSource": "PrestoSource", - "QuickBooksSource": "QuickBooksSource", - "ResponsysSource": "ResponsysSource", - "SalesforceMarketingCloudSource": "SalesforceMarketingCloudSource", - "SalesforceSource": "SalesforceSource", - "SalesforceV2Source": "SalesforceV2Source", - "SapBwSource": "SapBwSource", - "SapCloudForCustomerSource": "SapCloudForCustomerSource", - "SapEccSource": "SapEccSource", - "SapHanaSource": "SapHanaSource", - "SapOdpSource": "SapOdpSource", - "SapOpenHubSource": "SapOpenHubSource", - "SapTableSource": "SapTableSource", - "ServiceNowSource": "ServiceNowSource", - "ServiceNowV2Source": "ServiceNowV2Source", - "ShopifySource": "ShopifySource", - "SparkSource": "SparkSource", - "SqlDWSource": "SqlDWSource", - "SqlMISource": "SqlMISource", - "SqlServerSource": "SqlServerSource", - "SqlSource": "SqlSource", - "SquareSource": "SquareSource", - "SybaseSource": "SybaseSource", - "TeradataSource": "TeradataSource", - "VerticaSource": "VerticaSource", - "WarehouseSource": "WarehouseSource", - "XeroSource": "XeroSource", - "ZohoSource": "ZohoSource", - } - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "TabularSource" - self.query_timeout = query_timeout - self.additional_columns = additional_columns - - -class AmazonMWSSource(TabularSource): - """A copy activity Amazon Marketplace Web Service source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "AmazonMWSSource" - self.query = query - - -class AmazonRdsForOracleLinkedService(LinkedService): - """AmazonRdsForOracle database. This linked service has supported version property. The Version - 1.0 is scheduled for deprecation while your pipeline will continue to run after EOL but without - any bug fix or new features. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. Only used for Version 1.0. - :vartype connection_string: JSON - :ivar server: The location of AmazonRdsForOracle database you want to connect to, the supported - forms include connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name - (Only self-hosted IR). Type: string. Only used for Version 2.0. - :vartype server: JSON - :ivar authentication_type: Authentication type for connecting to the AmazonRdsForOracle - database. Only used for Version 2.0. "Basic" - :vartype authentication_type: str or - ~azure.mgmt.datafactory.models.AmazonRdsForOracleAuthenticationType - :ivar username: The AmazonRdsForOracle database username. Type: string. Only used for Version - 2.0. - :vartype username: JSON - :ivar password: The Azure key vault secret reference of password in connection string. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encryption_client: Specifies the encryption client behavior. Supported values are - accepted, rejected, requested or required, default value is required. Type: string. Only used - for Version 2.0. - :vartype encryption_client: JSON - :ivar encryption_types_client: Specifies the encryption algorithms that client can use. - Supported values are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: - string. Only used for Version 2.0. - :vartype encryption_types_client: JSON - :ivar crypto_checksum_client: Specifies the desired data integrity behavior when this client - connects to a server. Supported values are accepted, rejected, requested or required, default - value is required. Type: string. Only used for Version 2.0. - :vartype crypto_checksum_client: JSON - :ivar crypto_checksum_types_client: Specifies the crypto-checksum algorithms that client can - use. Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: - string. Only used for Version 2.0. - :vartype crypto_checksum_types_client: JSON - :ivar initial_lob_fetch_size: Specifies the amount that the source initially fetches for LOB - columns, default value is 0. Type: integer. Only used for Version 2.0. - :vartype initial_lob_fetch_size: JSON - :ivar fetch_size: Specifies the number of bytes that the driver allocates to fetch the data in - one database round-trip, default value is 10485760. Type: integer. Only used for Version 2.0. - :vartype fetch_size: JSON - :ivar statement_cache_size: Specifies the number of cursors or statements to be cached for each - database connection, default value is 0. Type: integer. Only used for Version 2.0. - :vartype statement_cache_size: JSON - :ivar initialization_string: Specifies a command that is issued immediately after connecting to - the database to manage session settings. Type: string. Only used for Version 2.0. - :vartype initialization_string: JSON - :ivar enable_bulk_load: Specifies whether to use bulk copy or batch insert when loading data - into the database, default value is true. Type: boolean. Only used for Version 2.0. - :vartype enable_bulk_load: JSON - :ivar support_v1_data_types: Specifies whether to use the Version 1.0 data type mappings. Do - not set this to true unless you want to keep backward compatibility with Version 1.0's data - type mappings, default value is false. Type: boolean. Only used for Version 2.0. - :vartype support_v1_data_types: JSON - :ivar fetch_tswtz_as_timestamp: Specifies whether the driver returns column value with the - TIMESTAMP WITH TIME ZONE data type as DateTime or string. This setting is ignored if - supportV1DataTypes is not true, default value is true. Type: boolean. Only used for Version - 2.0. - :vartype fetch_tswtz_as_timestamp: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encryption_client": {"key": "typeProperties.encryptionClient", "type": "object"}, - "encryption_types_client": {"key": "typeProperties.encryptionTypesClient", "type": "object"}, - "crypto_checksum_client": {"key": "typeProperties.cryptoChecksumClient", "type": "object"}, - "crypto_checksum_types_client": {"key": "typeProperties.cryptoChecksumTypesClient", "type": "object"}, - "initial_lob_fetch_size": {"key": "typeProperties.initialLobFetchSize", "type": "object"}, - "fetch_size": {"key": "typeProperties.fetchSize", "type": "object"}, - "statement_cache_size": {"key": "typeProperties.statementCacheSize", "type": "object"}, - "initialization_string": {"key": "typeProperties.initializationString", "type": "object"}, - "enable_bulk_load": {"key": "typeProperties.enableBulkLoad", "type": "object"}, - "support_v1_data_types": {"key": "typeProperties.supportV1DataTypes", "type": "object"}, - "fetch_tswtz_as_timestamp": {"key": "typeProperties.fetchTswtzAsTimestamp", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_string: Optional[JSON] = None, - server: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.AmazonRdsForOracleAuthenticationType"]] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - encryption_client: Optional[JSON] = None, - encryption_types_client: Optional[JSON] = None, - crypto_checksum_client: Optional[JSON] = None, - crypto_checksum_types_client: Optional[JSON] = None, - initial_lob_fetch_size: Optional[JSON] = None, - fetch_size: Optional[JSON] = None, - statement_cache_size: Optional[JSON] = None, - initialization_string: Optional[JSON] = None, - enable_bulk_load: Optional[JSON] = None, - support_v1_data_types: Optional[JSON] = None, - fetch_tswtz_as_timestamp: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. Only used for Version 1.0. - :paramtype connection_string: JSON - :keyword server: The location of AmazonRdsForOracle database you want to connect to, the - supported forms include connector descriptor, Easy Connect (Plus) Naming and Oracle Net - Services Name (Only self-hosted IR). Type: string. Only used for Version 2.0. - :paramtype server: JSON - :keyword authentication_type: Authentication type for connecting to the AmazonRdsForOracle - database. Only used for Version 2.0. "Basic" - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.AmazonRdsForOracleAuthenticationType - :keyword username: The AmazonRdsForOracle database username. Type: string. Only used for - Version 2.0. - :paramtype username: JSON - :keyword password: The Azure key vault secret reference of password in connection string. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encryption_client: Specifies the encryption client behavior. Supported values are - accepted, rejected, requested or required, default value is required. Type: string. Only used - for Version 2.0. - :paramtype encryption_client: JSON - :keyword encryption_types_client: Specifies the encryption algorithms that client can use. - Supported values are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: - string. Only used for Version 2.0. - :paramtype encryption_types_client: JSON - :keyword crypto_checksum_client: Specifies the desired data integrity behavior when this client - connects to a server. Supported values are accepted, rejected, requested or required, default - value is required. Type: string. Only used for Version 2.0. - :paramtype crypto_checksum_client: JSON - :keyword crypto_checksum_types_client: Specifies the crypto-checksum algorithms that client can - use. Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: - string. Only used for Version 2.0. - :paramtype crypto_checksum_types_client: JSON - :keyword initial_lob_fetch_size: Specifies the amount that the source initially fetches for LOB - columns, default value is 0. Type: integer. Only used for Version 2.0. - :paramtype initial_lob_fetch_size: JSON - :keyword fetch_size: Specifies the number of bytes that the driver allocates to fetch the data - in one database round-trip, default value is 10485760. Type: integer. Only used for Version - 2.0. - :paramtype fetch_size: JSON - :keyword statement_cache_size: Specifies the number of cursors or statements to be cached for - each database connection, default value is 0. Type: integer. Only used for Version 2.0. - :paramtype statement_cache_size: JSON - :keyword initialization_string: Specifies a command that is issued immediately after connecting - to the database to manage session settings. Type: string. Only used for Version 2.0. - :paramtype initialization_string: JSON - :keyword enable_bulk_load: Specifies whether to use bulk copy or batch insert when loading data - into the database, default value is true. Type: boolean. Only used for Version 2.0. - :paramtype enable_bulk_load: JSON - :keyword support_v1_data_types: Specifies whether to use the Version 1.0 data type mappings. Do - not set this to true unless you want to keep backward compatibility with Version 1.0's data - type mappings, default value is false. Type: boolean. Only used for Version 2.0. - :paramtype support_v1_data_types: JSON - :keyword fetch_tswtz_as_timestamp: Specifies whether the driver returns column value with the - TIMESTAMP WITH TIME ZONE data type as DateTime or string. This setting is ignored if - supportV1DataTypes is not true, default value is true. Type: boolean. Only used for Version - 2.0. - :paramtype fetch_tswtz_as_timestamp: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AmazonRdsForOracle" - self.connection_string = connection_string - self.server = server - self.authentication_type = authentication_type - self.username = username - self.password = password - self.encryption_client = encryption_client - self.encryption_types_client = encryption_types_client - self.crypto_checksum_client = crypto_checksum_client - self.crypto_checksum_types_client = crypto_checksum_types_client - self.initial_lob_fetch_size = initial_lob_fetch_size - self.fetch_size = fetch_size - self.statement_cache_size = statement_cache_size - self.initialization_string = initialization_string - self.enable_bulk_load = enable_bulk_load - self.support_v1_data_types = support_v1_data_types - self.fetch_tswtz_as_timestamp = fetch_tswtz_as_timestamp - self.encrypted_credential = encrypted_credential - - -class AmazonRdsForOraclePartitionSettings(_serialization.Model): - """The settings that will be leveraged for AmazonRdsForOracle source partitioning. - - :ivar partition_names: Names of the physical partitions of AmazonRdsForOracle table. - :vartype partition_names: JSON - :ivar partition_column_name: The name of the column in integer type that will be used for - proceeding range partitioning. Type: string (or Expression with resultType string). - :vartype partition_column_name: JSON - :ivar partition_upper_bound: The maximum value of column specified in partitionColumnName that - will be used for proceeding range partitioning. Type: string (or Expression with resultType - string). - :vartype partition_upper_bound: JSON - :ivar partition_lower_bound: The minimum value of column specified in partitionColumnName that - will be used for proceeding range partitioning. Type: string (or Expression with resultType - string). - :vartype partition_lower_bound: JSON - """ - - _attribute_map = { - "partition_names": {"key": "partitionNames", "type": "object"}, - "partition_column_name": {"key": "partitionColumnName", "type": "object"}, - "partition_upper_bound": {"key": "partitionUpperBound", "type": "object"}, - "partition_lower_bound": {"key": "partitionLowerBound", "type": "object"}, - } - - def __init__( - self, - *, - partition_names: Optional[JSON] = None, - partition_column_name: Optional[JSON] = None, - partition_upper_bound: Optional[JSON] = None, - partition_lower_bound: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword partition_names: Names of the physical partitions of AmazonRdsForOracle table. - :paramtype partition_names: JSON - :keyword partition_column_name: The name of the column in integer type that will be used for - proceeding range partitioning. Type: string (or Expression with resultType string). - :paramtype partition_column_name: JSON - :keyword partition_upper_bound: The maximum value of column specified in partitionColumnName - that will be used for proceeding range partitioning. Type: string (or Expression with - resultType string). - :paramtype partition_upper_bound: JSON - :keyword partition_lower_bound: The minimum value of column specified in partitionColumnName - that will be used for proceeding range partitioning. Type: string (or Expression with - resultType string). - :paramtype partition_lower_bound: JSON - """ - super().__init__(**kwargs) - self.partition_names = partition_names - self.partition_column_name = partition_column_name - self.partition_upper_bound = partition_upper_bound - self.partition_lower_bound = partition_lower_bound - - -class AmazonRdsForOracleSource(CopySource): - """A copy activity AmazonRdsForOracle source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar oracle_reader_query: AmazonRdsForOracle reader query. Type: string (or Expression with - resultType string). - :vartype oracle_reader_query: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar partition_option: The partition mechanism that will be used for AmazonRdsForOracle read - in parallel. Type: string (or Expression with resultType string). - :vartype partition_option: JSON - :ivar partition_settings: The settings that will be leveraged for AmazonRdsForOracle source - partitioning. - :vartype partition_settings: ~azure.mgmt.datafactory.models.AmazonRdsForOraclePartitionSettings - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar number_precision: The decimal precision used to represent Oracle NUMBER type without - precision and scale. The range is 1 to 256 and default value is 256 if not specified. Type: - integer (or Expression with resultType integer). Only used for Version 2.0. - :vartype number_precision: JSON - :ivar number_scale: The decimal scale used to represent Oracle NUMBER type without precision - and scale. The range is 0 to 130 and default value is 130 if not specified. Type: integer (or - Expression with resultType integer). Only used for Version 2.0. - :vartype number_scale: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "oracle_reader_query": {"key": "oracleReaderQuery", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "partition_option": {"key": "partitionOption", "type": "object"}, - "partition_settings": {"key": "partitionSettings", "type": "AmazonRdsForOraclePartitionSettings"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "number_precision": {"key": "numberPrecision", "type": "object"}, - "number_scale": {"key": "numberScale", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - oracle_reader_query: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - partition_option: Optional[JSON] = None, - partition_settings: Optional["_models.AmazonRdsForOraclePartitionSettings"] = None, - additional_columns: Optional[JSON] = None, - number_precision: Optional[JSON] = None, - number_scale: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword oracle_reader_query: AmazonRdsForOracle reader query. Type: string (or Expression with - resultType string). - :paramtype oracle_reader_query: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword partition_option: The partition mechanism that will be used for AmazonRdsForOracle - read in parallel. Type: string (or Expression with resultType string). - :paramtype partition_option: JSON - :keyword partition_settings: The settings that will be leveraged for AmazonRdsForOracle source - partitioning. - :paramtype partition_settings: - ~azure.mgmt.datafactory.models.AmazonRdsForOraclePartitionSettings - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword number_precision: The decimal precision used to represent Oracle NUMBER type without - precision and scale. The range is 1 to 256 and default value is 256 if not specified. Type: - integer (or Expression with resultType integer). Only used for Version 2.0. - :paramtype number_precision: JSON - :keyword number_scale: The decimal scale used to represent Oracle NUMBER type without precision - and scale. The range is 0 to 130 and default value is 130 if not specified. Type: integer (or - Expression with resultType integer). Only used for Version 2.0. - :paramtype number_scale: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AmazonRdsForOracleSource" - self.oracle_reader_query = oracle_reader_query - self.query_timeout = query_timeout - self.partition_option = partition_option - self.partition_settings = partition_settings - self.additional_columns = additional_columns - self.number_precision = number_precision - self.number_scale = number_scale - - -class AmazonRdsForOracleTableDataset(Dataset): - """The AmazonRdsForOracle database dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar schema_type_properties_schema: The schema name of the AmazonRdsForOracle database. Type: - string (or Expression with resultType string). - :vartype schema_type_properties_schema: JSON - :ivar table: The table name of the AmazonRdsForOracle database. Type: string (or Expression - with resultType string). - :vartype table: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - schema_type_properties_schema: Optional[JSON] = None, - table: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword schema_type_properties_schema: The schema name of the AmazonRdsForOracle database. - Type: string (or Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - :keyword table: The table name of the AmazonRdsForOracle database. Type: string (or Expression - with resultType string). - :paramtype table: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "AmazonRdsForOracleTable" - self.schema_type_properties_schema = schema_type_properties_schema - self.table = table - - -class AmazonRdsForSqlServerLinkedService(LinkedService): - """Amazon RDS for SQL Server linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :vartype server: JSON - :ivar database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :vartype database: JSON - :ivar encrypt: Indicate whether TLS encryption is required for all data sent between the client - and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :vartype encrypt: JSON - :ivar trust_server_certificate: Indicate whether the channel will be encrypted while bypassing - walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype trust_server_certificate: JSON - :ivar host_name_in_certificate: The host name to use when validating the server certificate for - the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :vartype host_name_in_certificate: JSON - :ivar application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :vartype application_intent: JSON - :ivar connect_timeout: The length of time (in seconds) to wait for a connection to the server - before terminating the attempt and generating an error, used by recommended version. Type: - integer (or Expression with resultType integer). - :vartype connect_timeout: JSON - :ivar connect_retry_count: The number of re-connections attempted after identifying that there - was an idle connection failure, used by recommended version. This must be an integer between 0 - and 255. Type: integer (or Expression with resultType integer). - :vartype connect_retry_count: JSON - :ivar connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :vartype connect_retry_interval: JSON - :ivar load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype load_balance_timeout: JSON - :ivar command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype command_timeout: JSON - :ivar integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :vartype integrated_security: JSON - :ivar failover_partner: The name or address of the partner server to connect to if the primary - server is down, used by recommended version. Type: string (or Expression with resultType - string). - :vartype failover_partner: JSON - :ivar max_pool_size: The maximum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype max_pool_size: JSON - :ivar min_pool_size: The minimum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype min_pool_size: JSON - :ivar multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :vartype multiple_active_result_sets: JSON - :ivar multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype multi_subnet_failover: JSON - :ivar packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :vartype packet_size: JSON - :ivar pooling: Indicate whether the connection will be pooled or explicitly opened every time - that the connection is requested, used by recommended version. Type: Boolean (or Expression - with resultType boolean). - :vartype pooling: JSON - :ivar connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar authentication_type: The type used for authentication. Type: string. Known values are: - "SQL" and "Windows". - :vartype authentication_type: str or - ~azure.mgmt.datafactory.models.AmazonRdsForSqlAuthenticationType - :ivar user_name: The on-premises Windows authentication user name. Type: string (or Expression - with resultType string). - :vartype user_name: JSON - :ivar password: The on-premises Windows authentication password. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar always_encrypted_settings: Sql always encrypted properties. - :vartype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "encrypt": {"key": "typeProperties.encrypt", "type": "object"}, - "trust_server_certificate": {"key": "typeProperties.trustServerCertificate", "type": "object"}, - "host_name_in_certificate": {"key": "typeProperties.hostNameInCertificate", "type": "object"}, - "application_intent": {"key": "typeProperties.applicationIntent", "type": "object"}, - "connect_timeout": {"key": "typeProperties.connectTimeout", "type": "object"}, - "connect_retry_count": {"key": "typeProperties.connectRetryCount", "type": "object"}, - "connect_retry_interval": {"key": "typeProperties.connectRetryInterval", "type": "object"}, - "load_balance_timeout": {"key": "typeProperties.loadBalanceTimeout", "type": "object"}, - "command_timeout": {"key": "typeProperties.commandTimeout", "type": "object"}, - "integrated_security": {"key": "typeProperties.integratedSecurity", "type": "object"}, - "failover_partner": {"key": "typeProperties.failoverPartner", "type": "object"}, - "max_pool_size": {"key": "typeProperties.maxPoolSize", "type": "object"}, - "min_pool_size": {"key": "typeProperties.minPoolSize", "type": "object"}, - "multiple_active_result_sets": {"key": "typeProperties.multipleActiveResultSets", "type": "object"}, - "multi_subnet_failover": {"key": "typeProperties.multiSubnetFailover", "type": "object"}, - "packet_size": {"key": "typeProperties.packetSize", "type": "object"}, - "pooling": {"key": "typeProperties.pooling", "type": "object"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "always_encrypted_settings": { - "key": "typeProperties.alwaysEncryptedSettings", - "type": "SqlAlwaysEncryptedProperties", - }, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - server: Optional[JSON] = None, - database: Optional[JSON] = None, - encrypt: Optional[JSON] = None, - trust_server_certificate: Optional[JSON] = None, - host_name_in_certificate: Optional[JSON] = None, - application_intent: Optional[JSON] = None, - connect_timeout: Optional[JSON] = None, - connect_retry_count: Optional[JSON] = None, - connect_retry_interval: Optional[JSON] = None, - load_balance_timeout: Optional[JSON] = None, - command_timeout: Optional[JSON] = None, - integrated_security: Optional[JSON] = None, - failover_partner: Optional[JSON] = None, - max_pool_size: Optional[JSON] = None, - min_pool_size: Optional[JSON] = None, - multiple_active_result_sets: Optional[JSON] = None, - multi_subnet_failover: Optional[JSON] = None, - packet_size: Optional[JSON] = None, - pooling: Optional[JSON] = None, - connection_string: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.AmazonRdsForSqlAuthenticationType"]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :paramtype server: JSON - :keyword database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :paramtype database: JSON - :keyword encrypt: Indicate whether TLS encryption is required for all data sent between the - client and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :paramtype encrypt: JSON - :keyword trust_server_certificate: Indicate whether the channel will be encrypted while - bypassing walking the certificate chain to validate trust, used by recommended version. Type: - Boolean (or Expression with resultType boolean). - :paramtype trust_server_certificate: JSON - :keyword host_name_in_certificate: The host name to use when validating the server certificate - for the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype host_name_in_certificate: JSON - :keyword application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :paramtype application_intent: JSON - :keyword connect_timeout: The length of time (in seconds) to wait for a connection to the - server before terminating the attempt and generating an error, used by recommended version. - Type: integer (or Expression with resultType integer). - :paramtype connect_timeout: JSON - :keyword connect_retry_count: The number of re-connections attempted after identifying that - there was an idle connection failure, used by recommended version. This must be an integer - between 0 and 255. Type: integer (or Expression with resultType integer). - :paramtype connect_retry_count: JSON - :keyword connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :paramtype connect_retry_interval: JSON - :keyword load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype load_balance_timeout: JSON - :keyword command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype command_timeout: JSON - :keyword integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :paramtype integrated_security: JSON - :keyword failover_partner: The name or address of the partner server to connect to if the - primary server is down, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype failover_partner: JSON - :keyword max_pool_size: The maximum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype max_pool_size: JSON - :keyword min_pool_size: The minimum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype min_pool_size: JSON - :keyword multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :paramtype multiple_active_result_sets: JSON - :keyword multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype multi_subnet_failover: JSON - :keyword packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :paramtype packet_size: JSON - :keyword pooling: Indicate whether the connection will be pooled or explicitly opened every - time that the connection is requested, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype pooling: JSON - :keyword connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword authentication_type: The type used for authentication. Type: string. Known values are: - "SQL" and "Windows". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.AmazonRdsForSqlAuthenticationType - :keyword user_name: The on-premises Windows authentication user name. Type: string (or - Expression with resultType string). - :paramtype user_name: JSON - :keyword password: The on-premises Windows authentication password. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword always_encrypted_settings: Sql always encrypted properties. - :paramtype always_encrypted_settings: - ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AmazonRdsForSqlServer" - self.server = server - self.database = database - self.encrypt = encrypt - self.trust_server_certificate = trust_server_certificate - self.host_name_in_certificate = host_name_in_certificate - self.application_intent = application_intent - self.connect_timeout = connect_timeout - self.connect_retry_count = connect_retry_count - self.connect_retry_interval = connect_retry_interval - self.load_balance_timeout = load_balance_timeout - self.command_timeout = command_timeout - self.integrated_security = integrated_security - self.failover_partner = failover_partner - self.max_pool_size = max_pool_size - self.min_pool_size = min_pool_size - self.multiple_active_result_sets = multiple_active_result_sets - self.multi_subnet_failover = multi_subnet_failover - self.packet_size = packet_size - self.pooling = pooling - self.connection_string = connection_string - self.authentication_type = authentication_type - self.user_name = user_name - self.password = password - self.encrypted_credential = encrypted_credential - self.always_encrypted_settings = always_encrypted_settings - - -class SqlServerBaseLinkedServiceTypeProperties(_serialization.Model): - """Sql Server family connector common linked service properties. - - :ivar server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :vartype server: JSON - :ivar database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :vartype database: JSON - :ivar encrypt: Indicate whether TLS encryption is required for all data sent between the client - and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :vartype encrypt: JSON - :ivar trust_server_certificate: Indicate whether the channel will be encrypted while bypassing - walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype trust_server_certificate: JSON - :ivar host_name_in_certificate: The host name to use when validating the server certificate for - the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :vartype host_name_in_certificate: JSON - :ivar application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :vartype application_intent: JSON - :ivar connect_timeout: The length of time (in seconds) to wait for a connection to the server - before terminating the attempt and generating an error, used by recommended version. Type: - integer (or Expression with resultType integer). - :vartype connect_timeout: JSON - :ivar connect_retry_count: The number of re-connections attempted after identifying that there - was an idle connection failure, used by recommended version. This must be an integer between 0 - and 255. Type: integer (or Expression with resultType integer). - :vartype connect_retry_count: JSON - :ivar connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :vartype connect_retry_interval: JSON - :ivar load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype load_balance_timeout: JSON - :ivar command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype command_timeout: JSON - :ivar integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :vartype integrated_security: JSON - :ivar failover_partner: The name or address of the partner server to connect to if the primary - server is down, used by recommended version. Type: string (or Expression with resultType - string). - :vartype failover_partner: JSON - :ivar max_pool_size: The maximum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype max_pool_size: JSON - :ivar min_pool_size: The minimum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype min_pool_size: JSON - :ivar multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :vartype multiple_active_result_sets: JSON - :ivar multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype multi_subnet_failover: JSON - :ivar packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :vartype packet_size: JSON - :ivar pooling: Indicate whether the connection will be pooled or explicitly opened every time - that the connection is requested, used by recommended version. Type: Boolean (or Expression - with resultType boolean). - :vartype pooling: JSON - """ - - _attribute_map = { - "server": {"key": "server", "type": "object"}, - "database": {"key": "database", "type": "object"}, - "encrypt": {"key": "encrypt", "type": "object"}, - "trust_server_certificate": {"key": "trustServerCertificate", "type": "object"}, - "host_name_in_certificate": {"key": "hostNameInCertificate", "type": "object"}, - "application_intent": {"key": "applicationIntent", "type": "object"}, - "connect_timeout": {"key": "connectTimeout", "type": "object"}, - "connect_retry_count": {"key": "connectRetryCount", "type": "object"}, - "connect_retry_interval": {"key": "connectRetryInterval", "type": "object"}, - "load_balance_timeout": {"key": "loadBalanceTimeout", "type": "object"}, - "command_timeout": {"key": "commandTimeout", "type": "object"}, - "integrated_security": {"key": "integratedSecurity", "type": "object"}, - "failover_partner": {"key": "failoverPartner", "type": "object"}, - "max_pool_size": {"key": "maxPoolSize", "type": "object"}, - "min_pool_size": {"key": "minPoolSize", "type": "object"}, - "multiple_active_result_sets": {"key": "multipleActiveResultSets", "type": "object"}, - "multi_subnet_failover": {"key": "multiSubnetFailover", "type": "object"}, - "packet_size": {"key": "packetSize", "type": "object"}, - "pooling": {"key": "pooling", "type": "object"}, - } - - def __init__( - self, - *, - server: Optional[JSON] = None, - database: Optional[JSON] = None, - encrypt: Optional[JSON] = None, - trust_server_certificate: Optional[JSON] = None, - host_name_in_certificate: Optional[JSON] = None, - application_intent: Optional[JSON] = None, - connect_timeout: Optional[JSON] = None, - connect_retry_count: Optional[JSON] = None, - connect_retry_interval: Optional[JSON] = None, - load_balance_timeout: Optional[JSON] = None, - command_timeout: Optional[JSON] = None, - integrated_security: Optional[JSON] = None, - failover_partner: Optional[JSON] = None, - max_pool_size: Optional[JSON] = None, - min_pool_size: Optional[JSON] = None, - multiple_active_result_sets: Optional[JSON] = None, - multi_subnet_failover: Optional[JSON] = None, - packet_size: Optional[JSON] = None, - pooling: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :paramtype server: JSON - :keyword database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :paramtype database: JSON - :keyword encrypt: Indicate whether TLS encryption is required for all data sent between the - client and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :paramtype encrypt: JSON - :keyword trust_server_certificate: Indicate whether the channel will be encrypted while - bypassing walking the certificate chain to validate trust, used by recommended version. Type: - Boolean (or Expression with resultType boolean). - :paramtype trust_server_certificate: JSON - :keyword host_name_in_certificate: The host name to use when validating the server certificate - for the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype host_name_in_certificate: JSON - :keyword application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :paramtype application_intent: JSON - :keyword connect_timeout: The length of time (in seconds) to wait for a connection to the - server before terminating the attempt and generating an error, used by recommended version. - Type: integer (or Expression with resultType integer). - :paramtype connect_timeout: JSON - :keyword connect_retry_count: The number of re-connections attempted after identifying that - there was an idle connection failure, used by recommended version. This must be an integer - between 0 and 255. Type: integer (or Expression with resultType integer). - :paramtype connect_retry_count: JSON - :keyword connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :paramtype connect_retry_interval: JSON - :keyword load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype load_balance_timeout: JSON - :keyword command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype command_timeout: JSON - :keyword integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :paramtype integrated_security: JSON - :keyword failover_partner: The name or address of the partner server to connect to if the - primary server is down, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype failover_partner: JSON - :keyword max_pool_size: The maximum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype max_pool_size: JSON - :keyword min_pool_size: The minimum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype min_pool_size: JSON - :keyword multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :paramtype multiple_active_result_sets: JSON - :keyword multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype multi_subnet_failover: JSON - :keyword packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :paramtype packet_size: JSON - :keyword pooling: Indicate whether the connection will be pooled or explicitly opened every - time that the connection is requested, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype pooling: JSON - """ - super().__init__(**kwargs) - self.server = server - self.database = database - self.encrypt = encrypt - self.trust_server_certificate = trust_server_certificate - self.host_name_in_certificate = host_name_in_certificate - self.application_intent = application_intent - self.connect_timeout = connect_timeout - self.connect_retry_count = connect_retry_count - self.connect_retry_interval = connect_retry_interval - self.load_balance_timeout = load_balance_timeout - self.command_timeout = command_timeout - self.integrated_security = integrated_security - self.failover_partner = failover_partner - self.max_pool_size = max_pool_size - self.min_pool_size = min_pool_size - self.multiple_active_result_sets = multiple_active_result_sets - self.multi_subnet_failover = multi_subnet_failover - self.packet_size = packet_size - self.pooling = pooling - - -class AmazonRdsForSqlServerLinkedServiceTypeProperties( - SqlServerBaseLinkedServiceTypeProperties -): # pylint: disable=name-too-long - """Amazon Rds for SQL Server linked service properties. - - :ivar server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :vartype server: JSON - :ivar database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :vartype database: JSON - :ivar encrypt: Indicate whether TLS encryption is required for all data sent between the client - and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :vartype encrypt: JSON - :ivar trust_server_certificate: Indicate whether the channel will be encrypted while bypassing - walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype trust_server_certificate: JSON - :ivar host_name_in_certificate: The host name to use when validating the server certificate for - the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :vartype host_name_in_certificate: JSON - :ivar application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :vartype application_intent: JSON - :ivar connect_timeout: The length of time (in seconds) to wait for a connection to the server - before terminating the attempt and generating an error, used by recommended version. Type: - integer (or Expression with resultType integer). - :vartype connect_timeout: JSON - :ivar connect_retry_count: The number of re-connections attempted after identifying that there - was an idle connection failure, used by recommended version. This must be an integer between 0 - and 255. Type: integer (or Expression with resultType integer). - :vartype connect_retry_count: JSON - :ivar connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :vartype connect_retry_interval: JSON - :ivar load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype load_balance_timeout: JSON - :ivar command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype command_timeout: JSON - :ivar integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :vartype integrated_security: JSON - :ivar failover_partner: The name or address of the partner server to connect to if the primary - server is down, used by recommended version. Type: string (or Expression with resultType - string). - :vartype failover_partner: JSON - :ivar max_pool_size: The maximum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype max_pool_size: JSON - :ivar min_pool_size: The minimum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype min_pool_size: JSON - :ivar multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :vartype multiple_active_result_sets: JSON - :ivar multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype multi_subnet_failover: JSON - :ivar packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :vartype packet_size: JSON - :ivar pooling: Indicate whether the connection will be pooled or explicitly opened every time - that the connection is requested, used by recommended version. Type: Boolean (or Expression - with resultType boolean). - :vartype pooling: JSON - :ivar connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar authentication_type: The type used for authentication. Type: string. Known values are: - "SQL" and "Windows". - :vartype authentication_type: str or - ~azure.mgmt.datafactory.models.AmazonRdsForSqlAuthenticationType - :ivar user_name: The on-premises Windows authentication user name. Type: string (or Expression - with resultType string). - :vartype user_name: JSON - :ivar password: The on-premises Windows authentication password. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar always_encrypted_settings: Sql always encrypted properties. - :vartype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties - """ - - _attribute_map = { - "server": {"key": "server", "type": "object"}, - "database": {"key": "database", "type": "object"}, - "encrypt": {"key": "encrypt", "type": "object"}, - "trust_server_certificate": {"key": "trustServerCertificate", "type": "object"}, - "host_name_in_certificate": {"key": "hostNameInCertificate", "type": "object"}, - "application_intent": {"key": "applicationIntent", "type": "object"}, - "connect_timeout": {"key": "connectTimeout", "type": "object"}, - "connect_retry_count": {"key": "connectRetryCount", "type": "object"}, - "connect_retry_interval": {"key": "connectRetryInterval", "type": "object"}, - "load_balance_timeout": {"key": "loadBalanceTimeout", "type": "object"}, - "command_timeout": {"key": "commandTimeout", "type": "object"}, - "integrated_security": {"key": "integratedSecurity", "type": "object"}, - "failover_partner": {"key": "failoverPartner", "type": "object"}, - "max_pool_size": {"key": "maxPoolSize", "type": "object"}, - "min_pool_size": {"key": "minPoolSize", "type": "object"}, - "multiple_active_result_sets": {"key": "multipleActiveResultSets", "type": "object"}, - "multi_subnet_failover": {"key": "multiSubnetFailover", "type": "object"}, - "packet_size": {"key": "packetSize", "type": "object"}, - "pooling": {"key": "pooling", "type": "object"}, - "connection_string": {"key": "connectionString", "type": "object"}, - "authentication_type": {"key": "authenticationType", "type": "str"}, - "user_name": {"key": "userName", "type": "object"}, - "password": {"key": "password", "type": "SecretBase"}, - "encrypted_credential": {"key": "encryptedCredential", "type": "str"}, - "always_encrypted_settings": {"key": "alwaysEncryptedSettings", "type": "SqlAlwaysEncryptedProperties"}, - } - - def __init__( - self, - *, - server: Optional[JSON] = None, - database: Optional[JSON] = None, - encrypt: Optional[JSON] = None, - trust_server_certificate: Optional[JSON] = None, - host_name_in_certificate: Optional[JSON] = None, - application_intent: Optional[JSON] = None, - connect_timeout: Optional[JSON] = None, - connect_retry_count: Optional[JSON] = None, - connect_retry_interval: Optional[JSON] = None, - load_balance_timeout: Optional[JSON] = None, - command_timeout: Optional[JSON] = None, - integrated_security: Optional[JSON] = None, - failover_partner: Optional[JSON] = None, - max_pool_size: Optional[JSON] = None, - min_pool_size: Optional[JSON] = None, - multiple_active_result_sets: Optional[JSON] = None, - multi_subnet_failover: Optional[JSON] = None, - packet_size: Optional[JSON] = None, - pooling: Optional[JSON] = None, - connection_string: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.AmazonRdsForSqlAuthenticationType"]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :paramtype server: JSON - :keyword database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :paramtype database: JSON - :keyword encrypt: Indicate whether TLS encryption is required for all data sent between the - client and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :paramtype encrypt: JSON - :keyword trust_server_certificate: Indicate whether the channel will be encrypted while - bypassing walking the certificate chain to validate trust, used by recommended version. Type: - Boolean (or Expression with resultType boolean). - :paramtype trust_server_certificate: JSON - :keyword host_name_in_certificate: The host name to use when validating the server certificate - for the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype host_name_in_certificate: JSON - :keyword application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :paramtype application_intent: JSON - :keyword connect_timeout: The length of time (in seconds) to wait for a connection to the - server before terminating the attempt and generating an error, used by recommended version. - Type: integer (or Expression with resultType integer). - :paramtype connect_timeout: JSON - :keyword connect_retry_count: The number of re-connections attempted after identifying that - there was an idle connection failure, used by recommended version. This must be an integer - between 0 and 255. Type: integer (or Expression with resultType integer). - :paramtype connect_retry_count: JSON - :keyword connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :paramtype connect_retry_interval: JSON - :keyword load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype load_balance_timeout: JSON - :keyword command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype command_timeout: JSON - :keyword integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :paramtype integrated_security: JSON - :keyword failover_partner: The name or address of the partner server to connect to if the - primary server is down, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype failover_partner: JSON - :keyword max_pool_size: The maximum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype max_pool_size: JSON - :keyword min_pool_size: The minimum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype min_pool_size: JSON - :keyword multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :paramtype multiple_active_result_sets: JSON - :keyword multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype multi_subnet_failover: JSON - :keyword packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :paramtype packet_size: JSON - :keyword pooling: Indicate whether the connection will be pooled or explicitly opened every - time that the connection is requested, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype pooling: JSON - :keyword connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword authentication_type: The type used for authentication. Type: string. Known values are: - "SQL" and "Windows". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.AmazonRdsForSqlAuthenticationType - :keyword user_name: The on-premises Windows authentication user name. Type: string (or - Expression with resultType string). - :paramtype user_name: JSON - :keyword password: The on-premises Windows authentication password. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword always_encrypted_settings: Sql always encrypted properties. - :paramtype always_encrypted_settings: - ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties - """ - super().__init__( - server=server, - database=database, - encrypt=encrypt, - trust_server_certificate=trust_server_certificate, - host_name_in_certificate=host_name_in_certificate, - application_intent=application_intent, - connect_timeout=connect_timeout, - connect_retry_count=connect_retry_count, - connect_retry_interval=connect_retry_interval, - load_balance_timeout=load_balance_timeout, - command_timeout=command_timeout, - integrated_security=integrated_security, - failover_partner=failover_partner, - max_pool_size=max_pool_size, - min_pool_size=min_pool_size, - multiple_active_result_sets=multiple_active_result_sets, - multi_subnet_failover=multi_subnet_failover, - packet_size=packet_size, - pooling=pooling, - **kwargs - ) - self.connection_string = connection_string - self.authentication_type = authentication_type - self.user_name = user_name - self.password = password - self.encrypted_credential = encrypted_credential - self.always_encrypted_settings = always_encrypted_settings - - -class AmazonRdsForSqlServerSource(TabularSource): - """A copy activity Amazon RDS for SQL Server source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar sql_reader_query: SQL reader query. Type: string (or Expression with resultType string). - :vartype sql_reader_query: JSON - :ivar sql_reader_stored_procedure_name: Name of the stored procedure for a SQL Database source. - This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with - resultType string). - :vartype sql_reader_stored_procedure_name: JSON - :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. - Example: "{Parameter1: {value: "1", type: "int"}}". - :vartype stored_procedure_parameters: JSON - :ivar isolation_level: Specifies the transaction locking behavior for the SQL source. Allowed - values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value - is ReadCommitted. Type: string (or Expression with resultType string). - :vartype isolation_level: JSON - :ivar produce_additional_types: Which additional types to produce. - :vartype produce_additional_types: JSON - :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. - Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - :vartype partition_option: JSON - :ivar partition_settings: The settings that will be leveraged for Sql source partitioning. - :vartype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "sql_reader_query": {"key": "sqlReaderQuery", "type": "object"}, - "sql_reader_stored_procedure_name": {"key": "sqlReaderStoredProcedureName", "type": "object"}, - "stored_procedure_parameters": {"key": "storedProcedureParameters", "type": "object"}, - "isolation_level": {"key": "isolationLevel", "type": "object"}, - "produce_additional_types": {"key": "produceAdditionalTypes", "type": "object"}, - "partition_option": {"key": "partitionOption", "type": "object"}, - "partition_settings": {"key": "partitionSettings", "type": "SqlPartitionSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - sql_reader_query: Optional[JSON] = None, - sql_reader_stored_procedure_name: Optional[JSON] = None, - stored_procedure_parameters: Optional[JSON] = None, - isolation_level: Optional[JSON] = None, - produce_additional_types: Optional[JSON] = None, - partition_option: Optional[JSON] = None, - partition_settings: Optional["_models.SqlPartitionSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword sql_reader_query: SQL reader query. Type: string (or Expression with resultType - string). - :paramtype sql_reader_query: JSON - :keyword sql_reader_stored_procedure_name: Name of the stored procedure for a SQL Database - source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression - with resultType string). - :paramtype sql_reader_stored_procedure_name: JSON - :keyword stored_procedure_parameters: Value and type setting for stored procedure parameters. - Example: "{Parameter1: {value: "1", type: "int"}}". - :paramtype stored_procedure_parameters: JSON - :keyword isolation_level: Specifies the transaction locking behavior for the SQL source. - Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default - value is ReadCommitted. Type: string (or Expression with resultType string). - :paramtype isolation_level: JSON - :keyword produce_additional_types: Which additional types to produce. - :paramtype produce_additional_types: JSON - :keyword partition_option: The partition mechanism that will be used for Sql read in parallel. - Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - :paramtype partition_option: JSON - :keyword partition_settings: The settings that will be leveraged for Sql source partitioning. - :paramtype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "AmazonRdsForSqlServerSource" - self.sql_reader_query = sql_reader_query - self.sql_reader_stored_procedure_name = sql_reader_stored_procedure_name - self.stored_procedure_parameters = stored_procedure_parameters - self.isolation_level = isolation_level - self.produce_additional_types = produce_additional_types - self.partition_option = partition_option - self.partition_settings = partition_settings - - -class AmazonRdsForSqlServerTableDataset(Dataset): - """The Amazon RDS for SQL Server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar schema_type_properties_schema: The schema name of the SQL Server dataset. Type: string - (or Expression with resultType string). - :vartype schema_type_properties_schema: JSON - :ivar table: The table name of the SQL Server dataset. Type: string (or Expression with - resultType string). - :vartype table: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - schema_type_properties_schema: Optional[JSON] = None, - table: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword schema_type_properties_schema: The schema name of the SQL Server dataset. Type: string - (or Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - :keyword table: The table name of the SQL Server dataset. Type: string (or Expression with - resultType string). - :paramtype table: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "AmazonRdsForSqlServerTable" - self.schema_type_properties_schema = schema_type_properties_schema - self.table = table - - -class AmazonRedshiftLinkedService(LinkedService): - """Linked service for Amazon Redshift. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar server: The name of the Amazon Redshift server. Type: string (or Expression with - resultType string). Required. - :vartype server: JSON - :ivar username: The username of the Amazon Redshift source. Type: string (or Expression with - resultType string). - :vartype username: JSON - :ivar password: The password of the Amazon Redshift source. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar database: The database name of the Amazon Redshift source. Type: string (or Expression - with resultType string). Required. - :vartype database: JSON - :ivar port: The TCP port number that the Amazon Redshift server uses to listen for client - connections. The default value is 5439. Type: integer (or Expression with resultType integer). - :vartype port: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "server": {"required": True}, - "database": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - server: JSON, - database: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - port: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword server: The name of the Amazon Redshift server. Type: string (or Expression with - resultType string). Required. - :paramtype server: JSON - :keyword username: The username of the Amazon Redshift source. Type: string (or Expression with - resultType string). - :paramtype username: JSON - :keyword password: The password of the Amazon Redshift source. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword database: The database name of the Amazon Redshift source. Type: string (or Expression - with resultType string). Required. - :paramtype database: JSON - :keyword port: The TCP port number that the Amazon Redshift server uses to listen for client - connections. The default value is 5439. Type: integer (or Expression with resultType integer). - :paramtype port: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AmazonRedshift" - self.server = server - self.username = username - self.password = password - self.database = database - self.port = port - self.encrypted_credential = encrypted_credential - - -class AmazonRedshiftSource(TabularSource): - """A copy activity source for Amazon Redshift Source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: Database query. Type: string (or Expression with resultType string). - :vartype query: JSON - :ivar redshift_unload_settings: The Amazon S3 settings needed for the interim Amazon S3 when - copying from Amazon Redshift with unload. With this, data from Amazon Redshift source will be - unloaded into S3 first and then copied into the targeted sink from the interim S3. - :vartype redshift_unload_settings: ~azure.mgmt.datafactory.models.RedshiftUnloadSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "redshift_unload_settings": {"key": "redshiftUnloadSettings", "type": "RedshiftUnloadSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - redshift_unload_settings: Optional["_models.RedshiftUnloadSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: Database query. Type: string (or Expression with resultType string). - :paramtype query: JSON - :keyword redshift_unload_settings: The Amazon S3 settings needed for the interim Amazon S3 when - copying from Amazon Redshift with unload. With this, data from Amazon Redshift source will be - unloaded into S3 first and then copied into the targeted sink from the interim S3. - :paramtype redshift_unload_settings: ~azure.mgmt.datafactory.models.RedshiftUnloadSettings - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "AmazonRedshiftSource" - self.query = query - self.redshift_unload_settings = redshift_unload_settings - - -class AmazonRedshiftTableDataset(Dataset): - """The Amazon Redshift table dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property will be retired. Please consider using schema + table - properties instead. - :vartype table_name: JSON - :ivar table: The Amazon Redshift table name. Type: string (or Expression with resultType - string). - :vartype table: JSON - :ivar schema_type_properties_schema: The Amazon Redshift schema name. Type: string (or - Expression with resultType string). - :vartype schema_type_properties_schema: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - table: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property will be retired. Please consider using schema + table - properties instead. - :paramtype table_name: JSON - :keyword table: The Amazon Redshift table name. Type: string (or Expression with resultType - string). - :paramtype table: JSON - :keyword schema_type_properties_schema: The Amazon Redshift schema name. Type: string (or - Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "AmazonRedshiftTable" - self.table_name = table_name - self.table = table - self.schema_type_properties_schema = schema_type_properties_schema - - -class AmazonS3CompatibleLinkedService(LinkedService): - """Linked service for Amazon S3 Compatible. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar access_key_id: The access key identifier of the Amazon S3 Compatible Identity and Access - Management (IAM) user. Type: string (or Expression with resultType string). - :vartype access_key_id: JSON - :ivar secret_access_key: The secret access key of the Amazon S3 Compatible Identity and Access - Management (IAM) user. - :vartype secret_access_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_url: This value specifies the endpoint to access with the Amazon S3 Compatible - Connector. This is an optional property; change it only if you want to try a different service - endpoint or want to switch between https and http. Type: string (or Expression with resultType - string). - :vartype service_url: JSON - :ivar force_path_style: If true, use S3 path-style access instead of virtual hosted-style - access. Default value is false. Type: boolean (or Expression with resultType boolean). - :vartype force_path_style: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "access_key_id": {"key": "typeProperties.accessKeyId", "type": "object"}, - "secret_access_key": {"key": "typeProperties.secretAccessKey", "type": "SecretBase"}, - "service_url": {"key": "typeProperties.serviceUrl", "type": "object"}, - "force_path_style": {"key": "typeProperties.forcePathStyle", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - access_key_id: Optional[JSON] = None, - secret_access_key: Optional["_models.SecretBase"] = None, - service_url: Optional[JSON] = None, - force_path_style: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword access_key_id: The access key identifier of the Amazon S3 Compatible Identity and - Access Management (IAM) user. Type: string (or Expression with resultType string). - :paramtype access_key_id: JSON - :keyword secret_access_key: The secret access key of the Amazon S3 Compatible Identity and - Access Management (IAM) user. - :paramtype secret_access_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_url: This value specifies the endpoint to access with the Amazon S3 Compatible - Connector. This is an optional property; change it only if you want to try a different service - endpoint or want to switch between https and http. Type: string (or Expression with resultType - string). - :paramtype service_url: JSON - :keyword force_path_style: If true, use S3 path-style access instead of virtual hosted-style - access. Default value is false. Type: boolean (or Expression with resultType boolean). - :paramtype force_path_style: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AmazonS3Compatible" - self.access_key_id = access_key_id - self.secret_access_key = secret_access_key - self.service_url = service_url - self.force_path_style = force_path_style - self.encrypted_credential = encrypted_credential - - -class DatasetLocation(_serialization.Model): - """Dataset location. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AmazonS3CompatibleLocation, AmazonS3Location, AzureBlobFSLocation, AzureBlobStorageLocation, - AzureDataLakeStoreLocation, AzureFileStorageLocation, FileServerLocation, FtpServerLocation, - GoogleCloudStorageLocation, HdfsLocation, HttpServerLocation, LakeHouseLocation, - OracleCloudStorageLocation, SftpLocation - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage location. Required. - :vartype type: str - :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :vartype folder_path: JSON - :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType - string). - :vartype file_name: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "folder_path": {"key": "folderPath", "type": "object"}, - "file_name": {"key": "fileName", "type": "object"}, - } - - _subtype_map = { - "type": { - "AmazonS3CompatibleLocation": "AmazonS3CompatibleLocation", - "AmazonS3Location": "AmazonS3Location", - "AzureBlobFSLocation": "AzureBlobFSLocation", - "AzureBlobStorageLocation": "AzureBlobStorageLocation", - "AzureDataLakeStoreLocation": "AzureDataLakeStoreLocation", - "AzureFileStorageLocation": "AzureFileStorageLocation", - "FileServerLocation": "FileServerLocation", - "FtpServerLocation": "FtpServerLocation", - "GoogleCloudStorageLocation": "GoogleCloudStorageLocation", - "HdfsLocation": "HdfsLocation", - "HttpServerLocation": "HttpServerLocation", - "LakeHouseLocation": "LakeHouseLocation", - "OracleCloudStorageLocation": "OracleCloudStorageLocation", - "SftpLocation": "SftpLocation", - } - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - folder_path: Optional[JSON] = None, - file_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :paramtype folder_path: JSON - :keyword file_name: Specify the file name of dataset. Type: string (or Expression with - resultType string). - :paramtype file_name: JSON - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - self.folder_path = folder_path - self.file_name = file_name - - -class AmazonS3CompatibleLocation(DatasetLocation): - """The location of Amazon S3 Compatible dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage location. Required. - :vartype type: str - :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :vartype folder_path: JSON - :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType - string). - :vartype file_name: JSON - :ivar bucket_name: Specify the bucketName of Amazon S3 Compatible. Type: string (or Expression - with resultType string). - :vartype bucket_name: JSON - :ivar version: Specify the version of Amazon S3 Compatible. Type: string (or Expression with - resultType string). - :vartype version: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "folder_path": {"key": "folderPath", "type": "object"}, - "file_name": {"key": "fileName", "type": "object"}, - "bucket_name": {"key": "bucketName", "type": "object"}, - "version": {"key": "version", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - folder_path: Optional[JSON] = None, - file_name: Optional[JSON] = None, - bucket_name: Optional[JSON] = None, - version: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :paramtype folder_path: JSON - :keyword file_name: Specify the file name of dataset. Type: string (or Expression with - resultType string). - :paramtype file_name: JSON - :keyword bucket_name: Specify the bucketName of Amazon S3 Compatible. Type: string (or - Expression with resultType string). - :paramtype bucket_name: JSON - :keyword version: Specify the version of Amazon S3 Compatible. Type: string (or Expression with - resultType string). - :paramtype version: JSON - """ - super().__init__( - additional_properties=additional_properties, folder_path=folder_path, file_name=file_name, **kwargs - ) - self.type: str = "AmazonS3CompatibleLocation" - self.bucket_name = bucket_name - self.version = version - - -class StoreReadSettings(_serialization.Model): - """Connector read setting. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AmazonS3CompatibleReadSettings, AmazonS3ReadSettings, AzureBlobFSReadSettings, - AzureBlobStorageReadSettings, AzureDataLakeStoreReadSettings, AzureFileStorageReadSettings, - FileServerReadSettings, FtpReadSettings, GoogleCloudStorageReadSettings, HdfsReadSettings, - HttpReadSettings, LakeHouseReadSettings, OracleCloudStorageReadSettings, SftpReadSettings - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - } - - _subtype_map = { - "type": { - "AmazonS3CompatibleReadSettings": "AmazonS3CompatibleReadSettings", - "AmazonS3ReadSettings": "AmazonS3ReadSettings", - "AzureBlobFSReadSettings": "AzureBlobFSReadSettings", - "AzureBlobStorageReadSettings": "AzureBlobStorageReadSettings", - "AzureDataLakeStoreReadSettings": "AzureDataLakeStoreReadSettings", - "AzureFileStorageReadSettings": "AzureFileStorageReadSettings", - "FileServerReadSettings": "FileServerReadSettings", - "FtpReadSettings": "FtpReadSettings", - "GoogleCloudStorageReadSettings": "GoogleCloudStorageReadSettings", - "HdfsReadSettings": "HdfsReadSettings", - "HttpReadSettings": "HttpReadSettings", - "LakeHouseReadSettings": "LakeHouseReadSettings", - "OracleCloudStorageReadSettings": "OracleCloudStorageReadSettings", - "SftpReadSettings": "SftpReadSettings", - } - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - self.max_concurrent_connections = max_concurrent_connections - self.disable_metrics_collection = disable_metrics_collection - - -class AmazonS3CompatibleReadSettings(StoreReadSettings): - """Amazon S3 Compatible read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - :ivar wildcard_folder_path: Amazon S3 Compatible wildcardFolderPath. Type: string (or - Expression with resultType string). - :vartype wildcard_folder_path: JSON - :ivar wildcard_file_name: Amazon S3 Compatible wildcardFileName. Type: string (or Expression - with resultType string). - :vartype wildcard_file_name: JSON - :ivar prefix: The prefix filter for the S3 Compatible object name. Type: string (or Expression - with resultType string). - :vartype prefix: JSON - :ivar file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :vartype enable_partition_discovery: JSON - :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: - string (or Expression with resultType string). - :vartype partition_root_path: JSON - :ivar delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :vartype delete_files_after_completion: JSON - :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :vartype modified_datetime_start: JSON - :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression - with resultType string). - :vartype modified_datetime_end: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "recursive": {"key": "recursive", "type": "object"}, - "wildcard_folder_path": {"key": "wildcardFolderPath", "type": "object"}, - "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, - "prefix": {"key": "prefix", "type": "object"}, - "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, - "partition_root_path": {"key": "partitionRootPath", "type": "object"}, - "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, - "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, - "modified_datetime_end": {"key": "modifiedDatetimeEnd", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - recursive: Optional[JSON] = None, - wildcard_folder_path: Optional[JSON] = None, - wildcard_file_name: Optional[JSON] = None, - prefix: Optional[JSON] = None, - file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[JSON] = None, - partition_root_path: Optional[JSON] = None, - delete_files_after_completion: Optional[JSON] = None, - modified_datetime_start: Optional[JSON] = None, - modified_datetime_end: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - :keyword wildcard_folder_path: Amazon S3 Compatible wildcardFolderPath. Type: string (or - Expression with resultType string). - :paramtype wildcard_folder_path: JSON - :keyword wildcard_file_name: Amazon S3 Compatible wildcardFileName. Type: string (or Expression - with resultType string). - :paramtype wildcard_file_name: JSON - :keyword prefix: The prefix filter for the S3 Compatible object name. Type: string (or - Expression with resultType string). - :paramtype prefix: JSON - :keyword file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :paramtype enable_partition_discovery: JSON - :keyword partition_root_path: Specify the root path where partition discovery starts from. - Type: string (or Expression with resultType string). - :paramtype partition_root_path: JSON - :keyword delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :paramtype delete_files_after_completion: JSON - :keyword modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_start: JSON - :keyword modified_datetime_end: The end of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_end: JSON - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AmazonS3CompatibleReadSettings" - self.recursive = recursive - self.wildcard_folder_path = wildcard_folder_path - self.wildcard_file_name = wildcard_file_name - self.prefix = prefix - self.file_list_path = file_list_path - self.enable_partition_discovery = enable_partition_discovery - self.partition_root_path = partition_root_path - self.delete_files_after_completion = delete_files_after_completion - self.modified_datetime_start = modified_datetime_start - self.modified_datetime_end = modified_datetime_end - - -class AmazonS3Dataset(Dataset): - """A single Amazon Simple Storage Service (S3) object or a set of S3 objects. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar bucket_name: The name of the Amazon S3 bucket. Type: string (or Expression with - resultType string). Required. - :vartype bucket_name: JSON - :ivar key: The key of the Amazon S3 object. Type: string (or Expression with resultType - string). - :vartype key: JSON - :ivar prefix: The prefix filter for the S3 object name. Type: string (or Expression with - resultType string). - :vartype prefix: JSON - :ivar version: The version for the S3 object. Type: string (or Expression with resultType - string). - :vartype version: JSON - :ivar modified_datetime_start: The start of S3 object's modified datetime. Type: string (or - Expression with resultType string). - :vartype modified_datetime_start: JSON - :ivar modified_datetime_end: The end of S3 object's modified datetime. Type: string (or - Expression with resultType string). - :vartype modified_datetime_end: JSON - :ivar format: The format of files. - :vartype format: ~azure.mgmt.datafactory.models.DatasetStorageFormat - :ivar compression: The data compression method used for the Amazon S3 object. - :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - "bucket_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "bucket_name": {"key": "typeProperties.bucketName", "type": "object"}, - "key": {"key": "typeProperties.key", "type": "object"}, - "prefix": {"key": "typeProperties.prefix", "type": "object"}, - "version": {"key": "typeProperties.version", "type": "object"}, - "modified_datetime_start": {"key": "typeProperties.modifiedDatetimeStart", "type": "object"}, - "modified_datetime_end": {"key": "typeProperties.modifiedDatetimeEnd", "type": "object"}, - "format": {"key": "typeProperties.format", "type": "DatasetStorageFormat"}, - "compression": {"key": "typeProperties.compression", "type": "DatasetCompression"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - bucket_name: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - key: Optional[JSON] = None, - prefix: Optional[JSON] = None, - version: Optional[JSON] = None, - modified_datetime_start: Optional[JSON] = None, - modified_datetime_end: Optional[JSON] = None, - format: Optional["_models.DatasetStorageFormat"] = None, - compression: Optional["_models.DatasetCompression"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword bucket_name: The name of the Amazon S3 bucket. Type: string (or Expression with - resultType string). Required. - :paramtype bucket_name: JSON - :keyword key: The key of the Amazon S3 object. Type: string (or Expression with resultType - string). - :paramtype key: JSON - :keyword prefix: The prefix filter for the S3 object name. Type: string (or Expression with - resultType string). - :paramtype prefix: JSON - :keyword version: The version for the S3 object. Type: string (or Expression with resultType - string). - :paramtype version: JSON - :keyword modified_datetime_start: The start of S3 object's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_start: JSON - :keyword modified_datetime_end: The end of S3 object's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_end: JSON - :keyword format: The format of files. - :paramtype format: ~azure.mgmt.datafactory.models.DatasetStorageFormat - :keyword compression: The data compression method used for the Amazon S3 object. - :paramtype compression: ~azure.mgmt.datafactory.models.DatasetCompression - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "AmazonS3Object" - self.bucket_name = bucket_name - self.key = key - self.prefix = prefix - self.version = version - self.modified_datetime_start = modified_datetime_start - self.modified_datetime_end = modified_datetime_end - self.format = format - self.compression = compression - - -class AmazonS3LinkedService(LinkedService): - """Linked service for Amazon S3. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar authentication_type: The authentication type of S3. Allowed value: AccessKey (default) or - TemporarySecurityCredentials. Type: string (or Expression with resultType string). - :vartype authentication_type: JSON - :ivar access_key_id: The access key identifier of the Amazon S3 Identity and Access Management - (IAM) user. Type: string (or Expression with resultType string). - :vartype access_key_id: JSON - :ivar secret_access_key: The secret access key of the Amazon S3 Identity and Access Management - (IAM) user. - :vartype secret_access_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_url: This value specifies the endpoint to access with the S3 Connector. This is - an optional property; change it only if you want to try a different service endpoint or want to - switch between https and http. Type: string (or Expression with resultType string). - :vartype service_url: JSON - :ivar session_token: The session token for the S3 temporary security credential. - :vartype session_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "object"}, - "access_key_id": {"key": "typeProperties.accessKeyId", "type": "object"}, - "secret_access_key": {"key": "typeProperties.secretAccessKey", "type": "SecretBase"}, - "service_url": {"key": "typeProperties.serviceUrl", "type": "object"}, - "session_token": {"key": "typeProperties.sessionToken", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - authentication_type: Optional[JSON] = None, - access_key_id: Optional[JSON] = None, - secret_access_key: Optional["_models.SecretBase"] = None, - service_url: Optional[JSON] = None, - session_token: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword authentication_type: The authentication type of S3. Allowed value: AccessKey (default) - or TemporarySecurityCredentials. Type: string (or Expression with resultType string). - :paramtype authentication_type: JSON - :keyword access_key_id: The access key identifier of the Amazon S3 Identity and Access - Management (IAM) user. Type: string (or Expression with resultType string). - :paramtype access_key_id: JSON - :keyword secret_access_key: The secret access key of the Amazon S3 Identity and Access - Management (IAM) user. - :paramtype secret_access_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_url: This value specifies the endpoint to access with the S3 Connector. This - is an optional property; change it only if you want to try a different service endpoint or want - to switch between https and http. Type: string (or Expression with resultType string). - :paramtype service_url: JSON - :keyword session_token: The session token for the S3 temporary security credential. - :paramtype session_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AmazonS3" - self.authentication_type = authentication_type - self.access_key_id = access_key_id - self.secret_access_key = secret_access_key - self.service_url = service_url - self.session_token = session_token - self.encrypted_credential = encrypted_credential - - -class AmazonS3Location(DatasetLocation): - """The location of amazon S3 dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage location. Required. - :vartype type: str - :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :vartype folder_path: JSON - :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType - string). - :vartype file_name: JSON - :ivar bucket_name: Specify the bucketName of amazon S3. Type: string (or Expression with - resultType string). - :vartype bucket_name: JSON - :ivar version: Specify the version of amazon S3. Type: string (or Expression with resultType - string). - :vartype version: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "folder_path": {"key": "folderPath", "type": "object"}, - "file_name": {"key": "fileName", "type": "object"}, - "bucket_name": {"key": "bucketName", "type": "object"}, - "version": {"key": "version", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - folder_path: Optional[JSON] = None, - file_name: Optional[JSON] = None, - bucket_name: Optional[JSON] = None, - version: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :paramtype folder_path: JSON - :keyword file_name: Specify the file name of dataset. Type: string (or Expression with - resultType string). - :paramtype file_name: JSON - :keyword bucket_name: Specify the bucketName of amazon S3. Type: string (or Expression with - resultType string). - :paramtype bucket_name: JSON - :keyword version: Specify the version of amazon S3. Type: string (or Expression with resultType - string). - :paramtype version: JSON - """ - super().__init__( - additional_properties=additional_properties, folder_path=folder_path, file_name=file_name, **kwargs - ) - self.type: str = "AmazonS3Location" - self.bucket_name = bucket_name - self.version = version - - -class AmazonS3ReadSettings(StoreReadSettings): - """Amazon S3 read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - :ivar wildcard_folder_path: AmazonS3 wildcardFolderPath. Type: string (or Expression with - resultType string). - :vartype wildcard_folder_path: JSON - :ivar wildcard_file_name: AmazonS3 wildcardFileName. Type: string (or Expression with - resultType string). - :vartype wildcard_file_name: JSON - :ivar prefix: The prefix filter for the S3 object name. Type: string (or Expression with - resultType string). - :vartype prefix: JSON - :ivar file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :vartype enable_partition_discovery: JSON - :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: - string (or Expression with resultType string). - :vartype partition_root_path: JSON - :ivar delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :vartype delete_files_after_completion: JSON - :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :vartype modified_datetime_start: JSON - :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression - with resultType string). - :vartype modified_datetime_end: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "recursive": {"key": "recursive", "type": "object"}, - "wildcard_folder_path": {"key": "wildcardFolderPath", "type": "object"}, - "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, - "prefix": {"key": "prefix", "type": "object"}, - "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, - "partition_root_path": {"key": "partitionRootPath", "type": "object"}, - "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, - "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, - "modified_datetime_end": {"key": "modifiedDatetimeEnd", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - recursive: Optional[JSON] = None, - wildcard_folder_path: Optional[JSON] = None, - wildcard_file_name: Optional[JSON] = None, - prefix: Optional[JSON] = None, - file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[JSON] = None, - partition_root_path: Optional[JSON] = None, - delete_files_after_completion: Optional[JSON] = None, - modified_datetime_start: Optional[JSON] = None, - modified_datetime_end: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - :keyword wildcard_folder_path: AmazonS3 wildcardFolderPath. Type: string (or Expression with - resultType string). - :paramtype wildcard_folder_path: JSON - :keyword wildcard_file_name: AmazonS3 wildcardFileName. Type: string (or Expression with - resultType string). - :paramtype wildcard_file_name: JSON - :keyword prefix: The prefix filter for the S3 object name. Type: string (or Expression with - resultType string). - :paramtype prefix: JSON - :keyword file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :paramtype enable_partition_discovery: JSON - :keyword partition_root_path: Specify the root path where partition discovery starts from. - Type: string (or Expression with resultType string). - :paramtype partition_root_path: JSON - :keyword delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :paramtype delete_files_after_completion: JSON - :keyword modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_start: JSON - :keyword modified_datetime_end: The end of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_end: JSON - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AmazonS3ReadSettings" - self.recursive = recursive - self.wildcard_folder_path = wildcard_folder_path - self.wildcard_file_name = wildcard_file_name - self.prefix = prefix - self.file_list_path = file_list_path - self.enable_partition_discovery = enable_partition_discovery - self.partition_root_path = partition_root_path - self.delete_files_after_completion = delete_files_after_completion - self.modified_datetime_start = modified_datetime_start - self.modified_datetime_end = modified_datetime_end - - -class ControlActivity(Activity): - """Base class for all control activities like IfCondition, ForEach , Until. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AppendVariableActivity, ExecutePipelineActivity, FailActivity, FilterActivity, ForEachActivity, - IfConditionActivity, SetVariableActivity, SwitchActivity, UntilActivity, ValidationActivity, - WaitActivity, WebHookActivity - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - } - - _subtype_map = { - "type": { - "AppendVariable": "AppendVariableActivity", - "ExecutePipeline": "ExecutePipelineActivity", - "Fail": "FailActivity", - "Filter": "FilterActivity", - "ForEach": "ForEachActivity", - "IfCondition": "IfConditionActivity", - "SetVariable": "SetVariableActivity", - "Switch": "SwitchActivity", - "Until": "UntilActivity", - "Validation": "ValidationActivity", - "Wait": "WaitActivity", - "WebHook": "WebHookActivity", - } - } - - def __init__( - self, - *, - name: str, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - **kwargs - ) - self.type: str = "Container" - - -class AppendVariableActivity(ControlActivity): - """Append value for a Variable of type Array. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar variable_name: Name of the variable whose value needs to be appended to. - :vartype variable_name: str - :ivar value: Value to be appended. Type: could be a static value matching type of the variable - item or Expression with resultType matching type of the variable item. - :vartype value: JSON - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "variable_name": {"key": "typeProperties.variableName", "type": "str"}, - "value": {"key": "typeProperties.value", "type": "object"}, - } - - def __init__( - self, - *, - name: str, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - variable_name: Optional[str] = None, - value: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword variable_name: Name of the variable whose value needs to be appended to. - :paramtype variable_name: str - :keyword value: Value to be appended. Type: could be a static value matching type of the - variable item or Expression with resultType matching type of the variable item. - :paramtype value: JSON - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - **kwargs - ) - self.type: str = "AppendVariable" - self.variable_name = variable_name - self.value = value - - -class AppFiguresLinkedService(LinkedService): - """Linked service for AppFigures. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar user_name: The username of the Appfigures source. Type: string (or Expression with - resultType string). Required. - :vartype user_name: JSON - :ivar password: The password of the AppFigures source. Required. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar client_key: The client key for the AppFigures source. Required. - :vartype client_key: ~azure.mgmt.datafactory.models.SecretBase - """ - - _validation = { - "type": {"required": True}, - "user_name": {"required": True}, - "password": {"required": True}, - "client_key": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "client_key": {"key": "typeProperties.clientKey", "type": "SecretBase"}, - } - - def __init__( - self, - *, - user_name: JSON, - password: "_models.SecretBase", - client_key: "_models.SecretBase", - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword user_name: The username of the Appfigures source. Type: string (or Expression with - resultType string). Required. - :paramtype user_name: JSON - :keyword password: The password of the AppFigures source. Required. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword client_key: The client key for the AppFigures source. Required. - :paramtype client_key: ~azure.mgmt.datafactory.models.SecretBase - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AppFigures" - self.user_name = user_name - self.password = password - self.client_key = client_key - - -class ArmIdWrapper(_serialization.Model): - """A wrapper for an ARM resource id. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: - :vartype id: str - """ - - _validation = { - "id": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - - -class AsanaLinkedService(LinkedService): - """Linked service for Asana. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar api_token: The api token for the Asana source. Required. - :vartype api_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "api_token": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "api_token": {"key": "typeProperties.apiToken", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - api_token: "_models.SecretBase", - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword api_token: The api token for the Asana source. Required. - :paramtype api_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Asana" - self.api_token = api_token - self.encrypted_credential = encrypted_credential - - -class AvroDataset(Dataset): - """Avro dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar location: The location of the avro storage. - :vartype location: ~azure.mgmt.datafactory.models.DatasetLocation - :ivar avro_compression_codec: The data avroCompressionCodec. Type: string (or Expression with - resultType string). - :vartype avro_compression_codec: JSON - :ivar avro_compression_level: - :vartype avro_compression_level: int - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - "avro_compression_level": {"maximum": 9, "minimum": 1}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "location": {"key": "typeProperties.location", "type": "DatasetLocation"}, - "avro_compression_codec": {"key": "typeProperties.avroCompressionCodec", "type": "object"}, - "avro_compression_level": {"key": "typeProperties.avroCompressionLevel", "type": "int"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - location: Optional["_models.DatasetLocation"] = None, - avro_compression_codec: Optional[JSON] = None, - avro_compression_level: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword location: The location of the avro storage. - :paramtype location: ~azure.mgmt.datafactory.models.DatasetLocation - :keyword avro_compression_codec: The data avroCompressionCodec. Type: string (or Expression - with resultType string). - :paramtype avro_compression_codec: JSON - :keyword avro_compression_level: - :paramtype avro_compression_level: int - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "Avro" - self.location = location - self.avro_compression_codec = avro_compression_codec - self.avro_compression_level = avro_compression_level - - -class DatasetStorageFormat(_serialization.Model): - """The format definition of a storage. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AvroFormat, JsonFormat, OrcFormat, ParquetFormat, TextFormat - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage format. Required. - :vartype type: str - :ivar serializer: Serializer. Type: string (or Expression with resultType string). - :vartype serializer: JSON - :ivar deserializer: Deserializer. Type: string (or Expression with resultType string). - :vartype deserializer: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "serializer": {"key": "serializer", "type": "object"}, - "deserializer": {"key": "deserializer", "type": "object"}, - } - - _subtype_map = { - "type": { - "AvroFormat": "AvroFormat", - "JsonFormat": "JsonFormat", - "OrcFormat": "OrcFormat", - "ParquetFormat": "ParquetFormat", - "TextFormat": "TextFormat", - } - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - serializer: Optional[JSON] = None, - deserializer: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword serializer: Serializer. Type: string (or Expression with resultType string). - :paramtype serializer: JSON - :keyword deserializer: Deserializer. Type: string (or Expression with resultType string). - :paramtype deserializer: JSON - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - self.serializer = serializer - self.deserializer = deserializer - - -class AvroFormat(DatasetStorageFormat): - """The data stored in Avro format. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage format. Required. - :vartype type: str - :ivar serializer: Serializer. Type: string (or Expression with resultType string). - :vartype serializer: JSON - :ivar deserializer: Deserializer. Type: string (or Expression with resultType string). - :vartype deserializer: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "serializer": {"key": "serializer", "type": "object"}, - "deserializer": {"key": "deserializer", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - serializer: Optional[JSON] = None, - deserializer: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword serializer: Serializer. Type: string (or Expression with resultType string). - :paramtype serializer: JSON - :keyword deserializer: Deserializer. Type: string (or Expression with resultType string). - :paramtype deserializer: JSON - """ - super().__init__( - additional_properties=additional_properties, serializer=serializer, deserializer=deserializer, **kwargs - ) - self.type: str = "AvroFormat" - - -class CopySink(_serialization.Model): - """A copy activity sink. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AvroSink, AzureBlobFSSink, AzureDataExplorerSink, AzureDataLakeStoreSink, - AzureDatabricksDeltaLakeSink, AzureMySqlSink, AzurePostgreSqlSink, AzureQueueSink, - AzureSearchIndexSink, AzureSqlSink, AzureTableSink, BinarySink, BlobSink, - CommonDataServiceForAppsSink, CosmosDbMongoDbApiSink, CosmosDbSqlApiSink, DelimitedTextSink, - DocumentDbCollectionSink, DynamicsCrmSink, DynamicsSink, FileSystemSink, IcebergSink, - InformixSink, JsonSink, LakeHouseTableSink, MicrosoftAccessSink, MongoDbAtlasSink, - MongoDbV2Sink, OdbcSink, OracleSink, OrcSink, ParquetSink, RestSink, - SalesforceServiceCloudSink, SalesforceServiceCloudV2Sink, SalesforceSink, SalesforceV2Sink, - SapCloudForCustomerSink, SnowflakeSink, SnowflakeV2Sink, SqlDWSink, SqlMISink, SqlServerSink, - SqlSink, TeradataSink, WarehouseSink - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - } - - _subtype_map = { - "type": { - "AvroSink": "AvroSink", - "AzureBlobFSSink": "AzureBlobFSSink", - "AzureDataExplorerSink": "AzureDataExplorerSink", - "AzureDataLakeStoreSink": "AzureDataLakeStoreSink", - "AzureDatabricksDeltaLakeSink": "AzureDatabricksDeltaLakeSink", - "AzureMySqlSink": "AzureMySqlSink", - "AzurePostgreSqlSink": "AzurePostgreSqlSink", - "AzureQueueSink": "AzureQueueSink", - "AzureSearchIndexSink": "AzureSearchIndexSink", - "AzureSqlSink": "AzureSqlSink", - "AzureTableSink": "AzureTableSink", - "BinarySink": "BinarySink", - "BlobSink": "BlobSink", - "CommonDataServiceForAppsSink": "CommonDataServiceForAppsSink", - "CosmosDbMongoDbApiSink": "CosmosDbMongoDbApiSink", - "CosmosDbSqlApiSink": "CosmosDbSqlApiSink", - "DelimitedTextSink": "DelimitedTextSink", - "DocumentDbCollectionSink": "DocumentDbCollectionSink", - "DynamicsCrmSink": "DynamicsCrmSink", - "DynamicsSink": "DynamicsSink", - "FileSystemSink": "FileSystemSink", - "IcebergSink": "IcebergSink", - "InformixSink": "InformixSink", - "JsonSink": "JsonSink", - "LakeHouseTableSink": "LakeHouseTableSink", - "MicrosoftAccessSink": "MicrosoftAccessSink", - "MongoDbAtlasSink": "MongoDbAtlasSink", - "MongoDbV2Sink": "MongoDbV2Sink", - "OdbcSink": "OdbcSink", - "OracleSink": "OracleSink", - "OrcSink": "OrcSink", - "ParquetSink": "ParquetSink", - "RestSink": "RestSink", - "SalesforceServiceCloudSink": "SalesforceServiceCloudSink", - "SalesforceServiceCloudV2Sink": "SalesforceServiceCloudV2Sink", - "SalesforceSink": "SalesforceSink", - "SalesforceV2Sink": "SalesforceV2Sink", - "SapCloudForCustomerSink": "SapCloudForCustomerSink", - "SnowflakeSink": "SnowflakeSink", - "SnowflakeV2Sink": "SnowflakeV2Sink", - "SqlDWSink": "SqlDWSink", - "SqlMISink": "SqlMISink", - "SqlServerSink": "SqlServerSink", - "SqlSink": "SqlSink", - "TeradataSink": "TeradataSink", - "WarehouseSink": "WarehouseSink", - } - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - self.write_batch_size = write_batch_size - self.write_batch_timeout = write_batch_timeout - self.sink_retry_count = sink_retry_count - self.sink_retry_wait = sink_retry_wait - self.max_concurrent_connections = max_concurrent_connections - self.disable_metrics_collection = disable_metrics_collection - - -class AvroSink(CopySink): - """A copy activity Avro sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar store_settings: Avro store settings. - :vartype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings - :ivar format_settings: Avro format settings. - :vartype format_settings: ~azure.mgmt.datafactory.models.AvroWriteSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "store_settings": {"key": "storeSettings", "type": "StoreWriteSettings"}, - "format_settings": {"key": "formatSettings", "type": "AvroWriteSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - store_settings: Optional["_models.StoreWriteSettings"] = None, - format_settings: Optional["_models.AvroWriteSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword store_settings: Avro store settings. - :paramtype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings - :keyword format_settings: Avro format settings. - :paramtype format_settings: ~azure.mgmt.datafactory.models.AvroWriteSettings - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AvroSink" - self.store_settings = store_settings - self.format_settings = format_settings - - -class AvroSource(CopySource): - """A copy activity Avro source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar store_settings: Avro store settings. - :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "store_settings": {"key": "storeSettings", "type": "StoreReadSettings"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - store_settings: Optional["_models.StoreReadSettings"] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword store_settings: Avro store settings. - :paramtype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AvroSource" - self.store_settings = store_settings - self.additional_columns = additional_columns - - -class FormatWriteSettings(_serialization.Model): - """Format write settings. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AvroWriteSettings, DelimitedTextWriteSettings, IcebergWriteSettings, JsonWriteSettings, - OrcWriteSettings, ParquetWriteSettings - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The write setting type. Required. - :vartype type: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = { - "type": { - "AvroWriteSettings": "AvroWriteSettings", - "DelimitedTextWriteSettings": "DelimitedTextWriteSettings", - "IcebergWriteSettings": "IcebergWriteSettings", - "JsonWriteSettings": "JsonWriteSettings", - "OrcWriteSettings": "OrcWriteSettings", - "ParquetWriteSettings": "ParquetWriteSettings", - } - } - - def __init__(self, *, additional_properties: Optional[dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - - -class AvroWriteSettings(FormatWriteSettings): - """Avro write settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The write setting type. Required. - :vartype type: str - :ivar record_name: Top level record name in write result, which is required in AVRO spec. - :vartype record_name: str - :ivar record_namespace: Record namespace in the write result. - :vartype record_namespace: str - :ivar max_rows_per_file: Limit the written file's row count to be smaller than or equal to the - specified count. Type: integer (or Expression with resultType integer). - :vartype max_rows_per_file: JSON - :ivar file_name_prefix: Specifies the file name pattern :code:``_\\ - :code:``.\\ :code:`` when copy from non-file based store without - partitionOptions. Type: string (or Expression with resultType string). - :vartype file_name_prefix: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "record_name": {"key": "recordName", "type": "str"}, - "record_namespace": {"key": "recordNamespace", "type": "str"}, - "max_rows_per_file": {"key": "maxRowsPerFile", "type": "object"}, - "file_name_prefix": {"key": "fileNamePrefix", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - record_name: Optional[str] = None, - record_namespace: Optional[str] = None, - max_rows_per_file: Optional[JSON] = None, - file_name_prefix: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword record_name: Top level record name in write result, which is required in AVRO spec. - :paramtype record_name: str - :keyword record_namespace: Record namespace in the write result. - :paramtype record_namespace: str - :keyword max_rows_per_file: Limit the written file's row count to be smaller than or equal to - the specified count. Type: integer (or Expression with resultType integer). - :paramtype max_rows_per_file: JSON - :keyword file_name_prefix: Specifies the file name pattern :code:``_\\ - :code:``.\\ :code:`` when copy from non-file based store without - partitionOptions. Type: string (or Expression with resultType string). - :paramtype file_name_prefix: JSON - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "AvroWriteSettings" - self.record_name = record_name - self.record_namespace = record_namespace - self.max_rows_per_file = max_rows_per_file - self.file_name_prefix = file_name_prefix - - -class CustomSetupBase(_serialization.Model): - """The base definition of the custom setup. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzPowerShellSetup, CmdkeySetup, ComponentSetup, EnvironmentVariableSetup - - All required parameters must be populated in order to send to server. - - :ivar type: The type of custom setup. Required. - :vartype type: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = { - "type": { - "AzPowerShellSetup": "AzPowerShellSetup", - "CmdkeySetup": "CmdkeySetup", - "ComponentSetup": "ComponentSetup", - "EnvironmentVariableSetup": "EnvironmentVariableSetup", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class AzPowerShellSetup(CustomSetupBase): - """The express custom setup of installing Azure PowerShell. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of custom setup. Required. - :vartype type: str - :ivar version: The required version of Azure PowerShell to install. Required. - :vartype version: str - """ - - _validation = { - "type": {"required": True}, - "version": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "typeProperties.version", "type": "str"}, - } - - def __init__(self, *, version: str, **kwargs: Any) -> None: - """ - :keyword version: The required version of Azure PowerShell to install. Required. - :paramtype version: str - """ - super().__init__(**kwargs) - self.type: str = "AzPowerShellSetup" - self.version = version - - -class AzureBatchLinkedService(LinkedService): - """Azure Batch linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar account_name: The Azure Batch account name. Type: string (or Expression with resultType - string). Required. - :vartype account_name: JSON - :ivar access_key: The Azure Batch account access key. - :vartype access_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar batch_uri: The Azure Batch URI. Type: string (or Expression with resultType string). - Required. - :vartype batch_uri: JSON - :ivar pool_name: The Azure Batch pool name. Type: string (or Expression with resultType - string). Required. - :vartype pool_name: JSON - :ivar linked_service_name: The Azure Storage linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "type": {"required": True}, - "account_name": {"required": True}, - "batch_uri": {"required": True}, - "pool_name": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "account_name": {"key": "typeProperties.accountName", "type": "object"}, - "access_key": {"key": "typeProperties.accessKey", "type": "SecretBase"}, - "batch_uri": {"key": "typeProperties.batchUri", "type": "object"}, - "pool_name": {"key": "typeProperties.poolName", "type": "object"}, - "linked_service_name": {"key": "typeProperties.linkedServiceName", "type": "LinkedServiceReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - } - - def __init__( - self, - *, - account_name: JSON, - batch_uri: JSON, - pool_name: JSON, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - access_key: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword account_name: The Azure Batch account name. Type: string (or Expression with - resultType string). Required. - :paramtype account_name: JSON - :keyword access_key: The Azure Batch account access key. - :paramtype access_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword batch_uri: The Azure Batch URI. Type: string (or Expression with resultType string). - Required. - :paramtype batch_uri: JSON - :keyword pool_name: The Azure Batch pool name. Type: string (or Expression with resultType - string). Required. - :paramtype pool_name: JSON - :keyword linked_service_name: The Azure Storage linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureBatch" - self.account_name = account_name - self.access_key = access_key - self.batch_uri = batch_uri - self.pool_name = pool_name - self.linked_service_name = linked_service_name - self.encrypted_credential = encrypted_credential - self.credential = credential - - -class AzureBlobDataset(Dataset): - """The Azure Blob storage. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar folder_path: The path of the Azure Blob storage. Type: string (or Expression with - resultType string). - :vartype folder_path: JSON - :ivar table_root_location: The root of blob path. Type: string (or Expression with resultType - string). - :vartype table_root_location: JSON - :ivar file_name: The name of the Azure Blob. Type: string (or Expression with resultType - string). - :vartype file_name: JSON - :ivar modified_datetime_start: The start of Azure Blob's modified datetime. Type: string (or - Expression with resultType string). - :vartype modified_datetime_start: JSON - :ivar modified_datetime_end: The end of Azure Blob's modified datetime. Type: string (or - Expression with resultType string). - :vartype modified_datetime_end: JSON - :ivar format: The format of the Azure Blob storage. - :vartype format: ~azure.mgmt.datafactory.models.DatasetStorageFormat - :ivar compression: The data compression method used for the blob storage. - :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "folder_path": {"key": "typeProperties.folderPath", "type": "object"}, - "table_root_location": {"key": "typeProperties.tableRootLocation", "type": "object"}, - "file_name": {"key": "typeProperties.fileName", "type": "object"}, - "modified_datetime_start": {"key": "typeProperties.modifiedDatetimeStart", "type": "object"}, - "modified_datetime_end": {"key": "typeProperties.modifiedDatetimeEnd", "type": "object"}, - "format": {"key": "typeProperties.format", "type": "DatasetStorageFormat"}, - "compression": {"key": "typeProperties.compression", "type": "DatasetCompression"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - folder_path: Optional[JSON] = None, - table_root_location: Optional[JSON] = None, - file_name: Optional[JSON] = None, - modified_datetime_start: Optional[JSON] = None, - modified_datetime_end: Optional[JSON] = None, - format: Optional["_models.DatasetStorageFormat"] = None, - compression: Optional["_models.DatasetCompression"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword folder_path: The path of the Azure Blob storage. Type: string (or Expression with - resultType string). - :paramtype folder_path: JSON - :keyword table_root_location: The root of blob path. Type: string (or Expression with - resultType string). - :paramtype table_root_location: JSON - :keyword file_name: The name of the Azure Blob. Type: string (or Expression with resultType - string). - :paramtype file_name: JSON - :keyword modified_datetime_start: The start of Azure Blob's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_start: JSON - :keyword modified_datetime_end: The end of Azure Blob's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_end: JSON - :keyword format: The format of the Azure Blob storage. - :paramtype format: ~azure.mgmt.datafactory.models.DatasetStorageFormat - :keyword compression: The data compression method used for the blob storage. - :paramtype compression: ~azure.mgmt.datafactory.models.DatasetCompression - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "AzureBlob" - self.folder_path = folder_path - self.table_root_location = table_root_location - self.file_name = file_name - self.modified_datetime_start = modified_datetime_start - self.modified_datetime_end = modified_datetime_end - self.format = format - self.compression = compression - - -class AzureBlobFSDataset(Dataset): - """The Azure Data Lake Storage Gen2 storage. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar folder_path: The path of the Azure Data Lake Storage Gen2 storage. Type: string (or - Expression with resultType string). - :vartype folder_path: JSON - :ivar file_name: The name of the Azure Data Lake Storage Gen2. Type: string (or Expression with - resultType string). - :vartype file_name: JSON - :ivar format: The format of the Azure Data Lake Storage Gen2 storage. - :vartype format: ~azure.mgmt.datafactory.models.DatasetStorageFormat - :ivar compression: The data compression method used for the blob storage. - :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "folder_path": {"key": "typeProperties.folderPath", "type": "object"}, - "file_name": {"key": "typeProperties.fileName", "type": "object"}, - "format": {"key": "typeProperties.format", "type": "DatasetStorageFormat"}, - "compression": {"key": "typeProperties.compression", "type": "DatasetCompression"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - folder_path: Optional[JSON] = None, - file_name: Optional[JSON] = None, - format: Optional["_models.DatasetStorageFormat"] = None, - compression: Optional["_models.DatasetCompression"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword folder_path: The path of the Azure Data Lake Storage Gen2 storage. Type: string (or - Expression with resultType string). - :paramtype folder_path: JSON - :keyword file_name: The name of the Azure Data Lake Storage Gen2. Type: string (or Expression - with resultType string). - :paramtype file_name: JSON - :keyword format: The format of the Azure Data Lake Storage Gen2 storage. - :paramtype format: ~azure.mgmt.datafactory.models.DatasetStorageFormat - :keyword compression: The data compression method used for the blob storage. - :paramtype compression: ~azure.mgmt.datafactory.models.DatasetCompression - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "AzureBlobFSFile" - self.folder_path = folder_path - self.file_name = file_name - self.format = format - self.compression = compression - - -class AzureBlobFSLinkedService(LinkedService): - """Azure Data Lake Storage Gen2 linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar url: Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression - with resultType string). - :vartype url: JSON - :ivar account_key: Account key for the Azure Data Lake Storage Gen2 service. Type: string (or - Expression with resultType string). - :vartype account_key: JSON - :ivar service_principal_id: The ID of the application used to authenticate against the Azure - Data Lake Storage Gen2 account. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The Key of the application used to authenticate against the Azure - Data Lake Storage Gen2 account. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string - (or Expression with resultType string). - :vartype tenant: JSON - :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed - values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data - factory regions’ cloud type. Type: string (or Expression with resultType string). - :vartype azure_cloud_type: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - :ivar service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :vartype service_principal_credential_type: JSON - :ivar service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :ivar sas_uri: SAS URI of the Azure Data Lake Storage Gen2 service. Type: string, SecureString - or AzureKeyVaultSecretReference. - :vartype sas_uri: JSON - :ivar sas_token: The Azure key vault secret reference of sasToken in sas uri. - :vartype sas_token: ~azure.mgmt.datafactory.models.SecretBase - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "url": {"key": "typeProperties.url", "type": "object"}, - "account_key": {"key": "typeProperties.accountKey", "type": "object"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "azure_cloud_type": {"key": "typeProperties.azureCloudType", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, - "service_principal_credential": {"key": "typeProperties.servicePrincipalCredential", "type": "SecretBase"}, - "sas_uri": {"key": "typeProperties.sasUri", "type": "object"}, - "sas_token": {"key": "typeProperties.sasToken", "type": "SecretBase"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - url: Optional[JSON] = None, - account_key: Optional[JSON] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - tenant: Optional[JSON] = None, - azure_cloud_type: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - credential: Optional["_models.CredentialReference"] = None, - service_principal_credential_type: Optional[JSON] = None, - service_principal_credential: Optional["_models.SecretBase"] = None, - sas_uri: Optional[JSON] = None, - sas_token: Optional["_models.SecretBase"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword url: Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or - Expression with resultType string). - :paramtype url: JSON - :keyword account_key: Account key for the Azure Data Lake Storage Gen2 service. Type: string - (or Expression with resultType string). - :paramtype account_key: JSON - :keyword service_principal_id: The ID of the application used to authenticate against the Azure - Data Lake Storage Gen2 account. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The Key of the application used to authenticate against the - Azure Data Lake Storage Gen2 account. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: The name or ID of the tenant to which the service principal belongs. Type: - string (or Expression with resultType string). - :paramtype tenant: JSON - :keyword azure_cloud_type: Indicates the azure cloud type of the service principle auth. - Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is - the data factory regions’ cloud type. Type: string (or Expression with resultType string). - :paramtype azure_cloud_type: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - :keyword service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :paramtype service_principal_credential_type: JSON - :keyword service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :paramtype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :keyword sas_uri: SAS URI of the Azure Data Lake Storage Gen2 service. Type: string, - SecureString or AzureKeyVaultSecretReference. - :paramtype sas_uri: JSON - :keyword sas_token: The Azure key vault secret reference of sasToken in sas uri. - :paramtype sas_token: ~azure.mgmt.datafactory.models.SecretBase - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureBlobFS" - self.url = url - self.account_key = account_key - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.tenant = tenant - self.azure_cloud_type = azure_cloud_type - self.encrypted_credential = encrypted_credential - self.credential = credential - self.service_principal_credential_type = service_principal_credential_type - self.service_principal_credential = service_principal_credential - self.sas_uri = sas_uri - self.sas_token = sas_token - - -class AzureBlobFSLocation(DatasetLocation): - """The location of azure blobFS dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage location. Required. - :vartype type: str - :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :vartype folder_path: JSON - :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType - string). - :vartype file_name: JSON - :ivar file_system: Specify the fileSystem of azure blobFS. Type: string (or Expression with - resultType string). - :vartype file_system: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "folder_path": {"key": "folderPath", "type": "object"}, - "file_name": {"key": "fileName", "type": "object"}, - "file_system": {"key": "fileSystem", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - folder_path: Optional[JSON] = None, - file_name: Optional[JSON] = None, - file_system: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :paramtype folder_path: JSON - :keyword file_name: Specify the file name of dataset. Type: string (or Expression with - resultType string). - :paramtype file_name: JSON - :keyword file_system: Specify the fileSystem of azure blobFS. Type: string (or Expression with - resultType string). - :paramtype file_system: JSON - """ - super().__init__( - additional_properties=additional_properties, folder_path=folder_path, file_name=file_name, **kwargs - ) - self.type: str = "AzureBlobFSLocation" - self.file_system = file_system - - -class AzureBlobFSReadSettings(StoreReadSettings): - """Azure blobFS read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - :ivar wildcard_folder_path: Azure blobFS wildcardFolderPath. Type: string (or Expression with - resultType string). - :vartype wildcard_folder_path: JSON - :ivar wildcard_file_name: Azure blobFS wildcardFileName. Type: string (or Expression with - resultType string). - :vartype wildcard_file_name: JSON - :ivar file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :vartype enable_partition_discovery: JSON - :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: - string (or Expression with resultType string). - :vartype partition_root_path: JSON - :ivar delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :vartype delete_files_after_completion: JSON - :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :vartype modified_datetime_start: JSON - :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression - with resultType string). - :vartype modified_datetime_end: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "recursive": {"key": "recursive", "type": "object"}, - "wildcard_folder_path": {"key": "wildcardFolderPath", "type": "object"}, - "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, - "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, - "partition_root_path": {"key": "partitionRootPath", "type": "object"}, - "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, - "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, - "modified_datetime_end": {"key": "modifiedDatetimeEnd", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - recursive: Optional[JSON] = None, - wildcard_folder_path: Optional[JSON] = None, - wildcard_file_name: Optional[JSON] = None, - file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[JSON] = None, - partition_root_path: Optional[JSON] = None, - delete_files_after_completion: Optional[JSON] = None, - modified_datetime_start: Optional[JSON] = None, - modified_datetime_end: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - :keyword wildcard_folder_path: Azure blobFS wildcardFolderPath. Type: string (or Expression - with resultType string). - :paramtype wildcard_folder_path: JSON - :keyword wildcard_file_name: Azure blobFS wildcardFileName. Type: string (or Expression with - resultType string). - :paramtype wildcard_file_name: JSON - :keyword file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :paramtype enable_partition_discovery: JSON - :keyword partition_root_path: Specify the root path where partition discovery starts from. - Type: string (or Expression with resultType string). - :paramtype partition_root_path: JSON - :keyword delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :paramtype delete_files_after_completion: JSON - :keyword modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_start: JSON - :keyword modified_datetime_end: The end of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_end: JSON - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AzureBlobFSReadSettings" - self.recursive = recursive - self.wildcard_folder_path = wildcard_folder_path - self.wildcard_file_name = wildcard_file_name - self.file_list_path = file_list_path - self.enable_partition_discovery = enable_partition_discovery - self.partition_root_path = partition_root_path - self.delete_files_after_completion = delete_files_after_completion - self.modified_datetime_start = modified_datetime_start - self.modified_datetime_end = modified_datetime_end - - -class AzureBlobFSSink(CopySink): - """A copy activity Azure Data Lake Storage Gen2 sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar copy_behavior: The type of copy behavior for copy sink. Type: string (or Expression with - resultType string). - :vartype copy_behavior: JSON - :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "copy_behavior": {"key": "copyBehavior", "type": "object"}, - "metadata": {"key": "metadata", "type": "[MetadataItem]"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - copy_behavior: Optional[JSON] = None, - metadata: Optional[list["_models.MetadataItem"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword copy_behavior: The type of copy behavior for copy sink. Type: string (or Expression - with resultType string). - :paramtype copy_behavior: JSON - :keyword metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :paramtype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AzureBlobFSSink" - self.copy_behavior = copy_behavior - self.metadata = metadata - - -class AzureBlobFSSource(CopySource): - """A copy activity Azure BlobFS source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar treat_empty_as_null: Treat empty as null. Type: boolean (or Expression with resultType - boolean). - :vartype treat_empty_as_null: JSON - :ivar skip_header_line_count: Number of header lines to skip from each blob. Type: integer (or - Expression with resultType integer). - :vartype skip_header_line_count: JSON - :ivar recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "treat_empty_as_null": {"key": "treatEmptyAsNull", "type": "object"}, - "skip_header_line_count": {"key": "skipHeaderLineCount", "type": "object"}, - "recursive": {"key": "recursive", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - treat_empty_as_null: Optional[JSON] = None, - skip_header_line_count: Optional[JSON] = None, - recursive: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword treat_empty_as_null: Treat empty as null. Type: boolean (or Expression with resultType - boolean). - :paramtype treat_empty_as_null: JSON - :keyword skip_header_line_count: Number of header lines to skip from each blob. Type: integer - (or Expression with resultType integer). - :paramtype skip_header_line_count: JSON - :keyword recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AzureBlobFSSource" - self.treat_empty_as_null = treat_empty_as_null - self.skip_header_line_count = skip_header_line_count - self.recursive = recursive - - -class StoreWriteSettings(_serialization.Model): - """Connector write settings. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureBlobFSWriteSettings, AzureBlobStorageWriteSettings, AzureDataLakeStoreWriteSettings, - AzureFileStorageWriteSettings, FileServerWriteSettings, LakeHouseWriteSettings, - SftpWriteSettings - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The write setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar copy_behavior: The type of copy behavior for copy sink. - :vartype copy_behavior: JSON - :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "copy_behavior": {"key": "copyBehavior", "type": "object"}, - "metadata": {"key": "metadata", "type": "[MetadataItem]"}, - } - - _subtype_map = { - "type": { - "AzureBlobFSWriteSettings": "AzureBlobFSWriteSettings", - "AzureBlobStorageWriteSettings": "AzureBlobStorageWriteSettings", - "AzureDataLakeStoreWriteSettings": "AzureDataLakeStoreWriteSettings", - "AzureFileStorageWriteSettings": "AzureFileStorageWriteSettings", - "FileServerWriteSettings": "FileServerWriteSettings", - "LakeHouseWriteSettings": "LakeHouseWriteSettings", - "SftpWriteSettings": "SftpWriteSettings", - } - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - copy_behavior: Optional[JSON] = None, - metadata: Optional[list["_models.MetadataItem"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword copy_behavior: The type of copy behavior for copy sink. - :paramtype copy_behavior: JSON - :keyword metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :paramtype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - self.max_concurrent_connections = max_concurrent_connections - self.disable_metrics_collection = disable_metrics_collection - self.copy_behavior = copy_behavior - self.metadata = metadata - - -class AzureBlobFSWriteSettings(StoreWriteSettings): - """Azure blobFS write settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The write setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar copy_behavior: The type of copy behavior for copy sink. - :vartype copy_behavior: JSON - :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - :ivar block_size_in_mb: Indicates the block size(MB) when writing data to blob. Type: integer - (or Expression with resultType integer). - :vartype block_size_in_mb: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "copy_behavior": {"key": "copyBehavior", "type": "object"}, - "metadata": {"key": "metadata", "type": "[MetadataItem]"}, - "block_size_in_mb": {"key": "blockSizeInMB", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - copy_behavior: Optional[JSON] = None, - metadata: Optional[list["_models.MetadataItem"]] = None, - block_size_in_mb: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword copy_behavior: The type of copy behavior for copy sink. - :paramtype copy_behavior: JSON - :keyword metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :paramtype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - :keyword block_size_in_mb: Indicates the block size(MB) when writing data to blob. Type: - integer (or Expression with resultType integer). - :paramtype block_size_in_mb: JSON - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - copy_behavior=copy_behavior, - metadata=metadata, - **kwargs - ) - self.type: str = "AzureBlobFSWriteSettings" - self.block_size_in_mb = block_size_in_mb - - -class AzureBlobStorageLinkedService(LinkedService): - """The azure blob storage linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: The connection string. It is mutually exclusive with sasUri, - serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar account_key: The Azure key vault secret reference of accountKey in connection string. - :vartype account_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar sas_uri: SAS URI of the Azure Blob Storage resource. It is mutually exclusive with - connectionString, serviceEndpoint property. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype sas_uri: JSON - :ivar sas_token: The Azure key vault secret reference of sasToken in sas uri. - :vartype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar service_endpoint: Blob service endpoint of the Azure Blob Storage resource. It is - mutually exclusive with connectionString, sasUri property. - :vartype service_endpoint: JSON - :ivar service_principal_id: The ID of the service principal used to authenticate against Azure - SQL Data Warehouse. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The key of the service principal used to authenticate against - Azure SQL Data Warehouse. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string - (or Expression with resultType string). - :vartype tenant: JSON - :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed - values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data - factory regions’ cloud type. Type: string (or Expression with resultType string). - :vartype azure_cloud_type: JSON - :ivar account_kind: Specify the kind of your storage account. Allowed values are: Storage - (general purpose v1), StorageV2 (general purpose v2), BlobStorage, or BlockBlobStorage. Type: - string (or Expression with resultType string). - :vartype account_kind: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - :ivar authentication_type: The type used for authentication. Type: string. Known values are: - "Anonymous", "AccountKey", "SasUri", "ServicePrincipal", and "Msi". - :vartype authentication_type: str or - ~azure.mgmt.datafactory.models.AzureStorageAuthenticationType - :ivar container_uri: Container uri of the Azure Blob Storage resource only support for - anonymous access. Type: string (or Expression with resultType string). - :vartype container_uri: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "account_key": {"key": "typeProperties.accountKey", "type": "AzureKeyVaultSecretReference"}, - "sas_uri": {"key": "typeProperties.sasUri", "type": "object"}, - "sas_token": {"key": "typeProperties.sasToken", "type": "AzureKeyVaultSecretReference"}, - "service_endpoint": {"key": "typeProperties.serviceEndpoint", "type": "object"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "azure_cloud_type": {"key": "typeProperties.azureCloudType", "type": "object"}, - "account_kind": {"key": "typeProperties.accountKind", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "container_uri": {"key": "typeProperties.containerUri", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_string: Optional[JSON] = None, - account_key: Optional["_models.AzureKeyVaultSecretReference"] = None, - sas_uri: Optional[JSON] = None, - sas_token: Optional["_models.AzureKeyVaultSecretReference"] = None, - service_endpoint: Optional[JSON] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - tenant: Optional[JSON] = None, - azure_cloud_type: Optional[JSON] = None, - account_kind: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - credential: Optional["_models.CredentialReference"] = None, - authentication_type: Optional[Union[str, "_models.AzureStorageAuthenticationType"]] = None, - container_uri: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: The connection string. It is mutually exclusive with sasUri, - serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword account_key: The Azure key vault secret reference of accountKey in connection string. - :paramtype account_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword sas_uri: SAS URI of the Azure Blob Storage resource. It is mutually exclusive with - connectionString, serviceEndpoint property. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype sas_uri: JSON - :keyword sas_token: The Azure key vault secret reference of sasToken in sas uri. - :paramtype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword service_endpoint: Blob service endpoint of the Azure Blob Storage resource. It is - mutually exclusive with connectionString, sasUri property. - :paramtype service_endpoint: JSON - :keyword service_principal_id: The ID of the service principal used to authenticate against - Azure SQL Data Warehouse. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The key of the service principal used to authenticate against - Azure SQL Data Warehouse. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: The name or ID of the tenant to which the service principal belongs. Type: - string (or Expression with resultType string). - :paramtype tenant: JSON - :keyword azure_cloud_type: Indicates the azure cloud type of the service principle auth. - Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is - the data factory regions’ cloud type. Type: string (or Expression with resultType string). - :paramtype azure_cloud_type: JSON - :keyword account_kind: Specify the kind of your storage account. Allowed values are: Storage - (general purpose v1), StorageV2 (general purpose v2), BlobStorage, or BlockBlobStorage. Type: - string (or Expression with resultType string). - :paramtype account_kind: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - :keyword authentication_type: The type used for authentication. Type: string. Known values are: - "Anonymous", "AccountKey", "SasUri", "ServicePrincipal", and "Msi". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.AzureStorageAuthenticationType - :keyword container_uri: Container uri of the Azure Blob Storage resource only support for - anonymous access. Type: string (or Expression with resultType string). - :paramtype container_uri: JSON - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureBlobStorage" - self.connection_string = connection_string - self.account_key = account_key - self.sas_uri = sas_uri - self.sas_token = sas_token - self.service_endpoint = service_endpoint - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.tenant = tenant - self.azure_cloud_type = azure_cloud_type - self.account_kind = account_kind - self.encrypted_credential = encrypted_credential - self.credential = credential - self.authentication_type = authentication_type - self.container_uri = container_uri - - -class AzureBlobStorageLocation(DatasetLocation): - """The location of azure blob dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage location. Required. - :vartype type: str - :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :vartype folder_path: JSON - :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType - string). - :vartype file_name: JSON - :ivar container: Specify the container of azure blob. Type: string (or Expression with - resultType string). - :vartype container: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "folder_path": {"key": "folderPath", "type": "object"}, - "file_name": {"key": "fileName", "type": "object"}, - "container": {"key": "container", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - folder_path: Optional[JSON] = None, - file_name: Optional[JSON] = None, - container: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :paramtype folder_path: JSON - :keyword file_name: Specify the file name of dataset. Type: string (or Expression with - resultType string). - :paramtype file_name: JSON - :keyword container: Specify the container of azure blob. Type: string (or Expression with - resultType string). - :paramtype container: JSON - """ - super().__init__( - additional_properties=additional_properties, folder_path=folder_path, file_name=file_name, **kwargs - ) - self.type: str = "AzureBlobStorageLocation" - self.container = container - - -class AzureBlobStorageReadSettings(StoreReadSettings): - """Azure blob read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - :ivar wildcard_folder_path: Azure blob wildcardFolderPath. Type: string (or Expression with - resultType string). - :vartype wildcard_folder_path: JSON - :ivar wildcard_file_name: Azure blob wildcardFileName. Type: string (or Expression with - resultType string). - :vartype wildcard_file_name: JSON - :ivar prefix: The prefix filter for the Azure Blob name. Type: string (or Expression with - resultType string). - :vartype prefix: JSON - :ivar file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :vartype enable_partition_discovery: JSON - :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: - string (or Expression with resultType string). - :vartype partition_root_path: JSON - :ivar delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :vartype delete_files_after_completion: JSON - :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :vartype modified_datetime_start: JSON - :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression - with resultType string). - :vartype modified_datetime_end: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "recursive": {"key": "recursive", "type": "object"}, - "wildcard_folder_path": {"key": "wildcardFolderPath", "type": "object"}, - "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, - "prefix": {"key": "prefix", "type": "object"}, - "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, - "partition_root_path": {"key": "partitionRootPath", "type": "object"}, - "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, - "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, - "modified_datetime_end": {"key": "modifiedDatetimeEnd", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - recursive: Optional[JSON] = None, - wildcard_folder_path: Optional[JSON] = None, - wildcard_file_name: Optional[JSON] = None, - prefix: Optional[JSON] = None, - file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[JSON] = None, - partition_root_path: Optional[JSON] = None, - delete_files_after_completion: Optional[JSON] = None, - modified_datetime_start: Optional[JSON] = None, - modified_datetime_end: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - :keyword wildcard_folder_path: Azure blob wildcardFolderPath. Type: string (or Expression with - resultType string). - :paramtype wildcard_folder_path: JSON - :keyword wildcard_file_name: Azure blob wildcardFileName. Type: string (or Expression with - resultType string). - :paramtype wildcard_file_name: JSON - :keyword prefix: The prefix filter for the Azure Blob name. Type: string (or Expression with - resultType string). - :paramtype prefix: JSON - :keyword file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :paramtype enable_partition_discovery: JSON - :keyword partition_root_path: Specify the root path where partition discovery starts from. - Type: string (or Expression with resultType string). - :paramtype partition_root_path: JSON - :keyword delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :paramtype delete_files_after_completion: JSON - :keyword modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_start: JSON - :keyword modified_datetime_end: The end of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_end: JSON - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AzureBlobStorageReadSettings" - self.recursive = recursive - self.wildcard_folder_path = wildcard_folder_path - self.wildcard_file_name = wildcard_file_name - self.prefix = prefix - self.file_list_path = file_list_path - self.enable_partition_discovery = enable_partition_discovery - self.partition_root_path = partition_root_path - self.delete_files_after_completion = delete_files_after_completion - self.modified_datetime_start = modified_datetime_start - self.modified_datetime_end = modified_datetime_end - - -class AzureBlobStorageWriteSettings(StoreWriteSettings): - """Azure blob write settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The write setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar copy_behavior: The type of copy behavior for copy sink. - :vartype copy_behavior: JSON - :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - :ivar block_size_in_mb: Indicates the block size(MB) when writing data to blob. Type: integer - (or Expression with resultType integer). - :vartype block_size_in_mb: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "copy_behavior": {"key": "copyBehavior", "type": "object"}, - "metadata": {"key": "metadata", "type": "[MetadataItem]"}, - "block_size_in_mb": {"key": "blockSizeInMB", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - copy_behavior: Optional[JSON] = None, - metadata: Optional[list["_models.MetadataItem"]] = None, - block_size_in_mb: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword copy_behavior: The type of copy behavior for copy sink. - :paramtype copy_behavior: JSON - :keyword metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :paramtype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - :keyword block_size_in_mb: Indicates the block size(MB) when writing data to blob. Type: - integer (or Expression with resultType integer). - :paramtype block_size_in_mb: JSON - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - copy_behavior=copy_behavior, - metadata=metadata, - **kwargs - ) - self.type: str = "AzureBlobStorageWriteSettings" - self.block_size_in_mb = block_size_in_mb - - -class AzureDatabricksDeltaLakeDataset(Dataset): - """Azure Databricks Delta Lake dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table: The name of delta table. Type: string (or Expression with resultType string). - :vartype table: JSON - :ivar database: The database name of delta table. Type: string (or Expression with resultType - string). - :vartype database: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table": {"key": "typeProperties.table", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table: Optional[JSON] = None, - database: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table: The name of delta table. Type: string (or Expression with resultType string). - :paramtype table: JSON - :keyword database: The database name of delta table. Type: string (or Expression with - resultType string). - :paramtype database: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "AzureDatabricksDeltaLakeDataset" - self.table = table - self.database = database - - -class ExportSettings(_serialization.Model): - """Export command settings. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureDatabricksDeltaLakeExportCommand, SnowflakeExportCopyCommand - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The export setting type. Required. - :vartype type: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = { - "type": { - "AzureDatabricksDeltaLakeExportCommand": "AzureDatabricksDeltaLakeExportCommand", - "SnowflakeExportCopyCommand": "SnowflakeExportCopyCommand", - } - } - - def __init__(self, *, additional_properties: Optional[dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - - -class AzureDatabricksDeltaLakeExportCommand(ExportSettings): - """Azure Databricks Delta Lake export command settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The export setting type. Required. - :vartype type: str - :ivar date_format: Specify the date format for the csv in Azure Databricks Delta Lake Copy. - Type: string (or Expression with resultType string). - :vartype date_format: JSON - :ivar timestamp_format: Specify the timestamp format for the csv in Azure Databricks Delta Lake - Copy. Type: string (or Expression with resultType string). - :vartype timestamp_format: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "date_format": {"key": "dateFormat", "type": "object"}, - "timestamp_format": {"key": "timestampFormat", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - date_format: Optional[JSON] = None, - timestamp_format: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword date_format: Specify the date format for the csv in Azure Databricks Delta Lake Copy. - Type: string (or Expression with resultType string). - :paramtype date_format: JSON - :keyword timestamp_format: Specify the timestamp format for the csv in Azure Databricks Delta - Lake Copy. Type: string (or Expression with resultType string). - :paramtype timestamp_format: JSON - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "AzureDatabricksDeltaLakeExportCommand" - self.date_format = date_format - self.timestamp_format = timestamp_format - - -class ImportSettings(_serialization.Model): - """Import command settings. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureDatabricksDeltaLakeImportCommand, SnowflakeImportCopyCommand, TeradataImportCommand - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The import setting type. Required. - :vartype type: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = { - "type": { - "AzureDatabricksDeltaLakeImportCommand": "AzureDatabricksDeltaLakeImportCommand", - "SnowflakeImportCopyCommand": "SnowflakeImportCopyCommand", - "TeradataImportCommand": "TeradataImportCommand", - } - } - - def __init__(self, *, additional_properties: Optional[dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - - -class AzureDatabricksDeltaLakeImportCommand(ImportSettings): - """Azure Databricks Delta Lake import command settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The import setting type. Required. - :vartype type: str - :ivar date_format: Specify the date format for csv in Azure Databricks Delta Lake Copy. Type: - string (or Expression with resultType string). - :vartype date_format: JSON - :ivar timestamp_format: Specify the timestamp format for csv in Azure Databricks Delta Lake - Copy. Type: string (or Expression with resultType string). - :vartype timestamp_format: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "date_format": {"key": "dateFormat", "type": "object"}, - "timestamp_format": {"key": "timestampFormat", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - date_format: Optional[JSON] = None, - timestamp_format: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword date_format: Specify the date format for csv in Azure Databricks Delta Lake Copy. - Type: string (or Expression with resultType string). - :paramtype date_format: JSON - :keyword timestamp_format: Specify the timestamp format for csv in Azure Databricks Delta Lake - Copy. Type: string (or Expression with resultType string). - :paramtype timestamp_format: JSON - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "AzureDatabricksDeltaLakeImportCommand" - self.date_format = date_format - self.timestamp_format = timestamp_format - - -class AzureDatabricksDeltaLakeLinkedService(LinkedService): - """Azure Databricks Delta Lake linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar domain: :code:``.azuredatabricks.net, domain name of your Databricks deployment. - Type: string (or Expression with resultType string). Required. - :vartype domain: JSON - :ivar access_token: Access token for databricks REST API. Refer to - https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype access_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar cluster_id: The id of an existing interactive cluster that will be used for all runs of - this job. Type: string (or Expression with resultType string). - :vartype cluster_id: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - :ivar workspace_resource_id: Workspace resource id for databricks REST API. Type: string (or - Expression with resultType string). - :vartype workspace_resource_id: JSON - """ - - _validation = { - "type": {"required": True}, - "domain": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "domain": {"key": "typeProperties.domain", "type": "object"}, - "access_token": {"key": "typeProperties.accessToken", "type": "SecretBase"}, - "cluster_id": {"key": "typeProperties.clusterId", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - "workspace_resource_id": {"key": "typeProperties.workspaceResourceId", "type": "object"}, - } - - def __init__( - self, - *, - domain: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - access_token: Optional["_models.SecretBase"] = None, - cluster_id: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - credential: Optional["_models.CredentialReference"] = None, - workspace_resource_id: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword domain: :code:``.azuredatabricks.net, domain name of your Databricks - deployment. Type: string (or Expression with resultType string). Required. - :paramtype domain: JSON - :keyword access_token: Access token for databricks REST API. Refer to - https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype access_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword cluster_id: The id of an existing interactive cluster that will be used for all runs - of this job. Type: string (or Expression with resultType string). - :paramtype cluster_id: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - :keyword workspace_resource_id: Workspace resource id for databricks REST API. Type: string (or - Expression with resultType string). - :paramtype workspace_resource_id: JSON - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureDatabricksDeltaLake" - self.domain = domain - self.access_token = access_token - self.cluster_id = cluster_id - self.encrypted_credential = encrypted_credential - self.credential = credential - self.workspace_resource_id = workspace_resource_id - - -class AzureDatabricksDeltaLakeSink(CopySink): - """A copy activity Azure Databricks Delta Lake sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :vartype pre_copy_script: JSON - :ivar import_settings: Azure Databricks Delta Lake import settings. - :vartype import_settings: ~azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeImportCommand - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "pre_copy_script": {"key": "preCopyScript", "type": "object"}, - "import_settings": {"key": "importSettings", "type": "AzureDatabricksDeltaLakeImportCommand"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - pre_copy_script: Optional[JSON] = None, - import_settings: Optional["_models.AzureDatabricksDeltaLakeImportCommand"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :paramtype pre_copy_script: JSON - :keyword import_settings: Azure Databricks Delta Lake import settings. - :paramtype import_settings: - ~azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeImportCommand - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AzureDatabricksDeltaLakeSink" - self.pre_copy_script = pre_copy_script - self.import_settings = import_settings - - -class AzureDatabricksDeltaLakeSource(CopySource): - """A copy activity Azure Databricks Delta Lake source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query: Azure Databricks Delta Lake Sql query. Type: string (or Expression with resultType - string). - :vartype query: JSON - :ivar export_settings: Azure Databricks Delta Lake export settings. - :vartype export_settings: ~azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeExportCommand - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "export_settings": {"key": "exportSettings", "type": "AzureDatabricksDeltaLakeExportCommand"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query: Optional[JSON] = None, - export_settings: Optional["_models.AzureDatabricksDeltaLakeExportCommand"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query: Azure Databricks Delta Lake Sql query. Type: string (or Expression with - resultType string). - :paramtype query: JSON - :keyword export_settings: Azure Databricks Delta Lake export settings. - :paramtype export_settings: - ~azure.mgmt.datafactory.models.AzureDatabricksDeltaLakeExportCommand - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AzureDatabricksDeltaLakeSource" - self.query = query - self.export_settings = export_settings - - -class AzureDatabricksLinkedService(LinkedService): - """Azure Databricks linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar domain: :code:``.azuredatabricks.net, domain name of your Databricks deployment. - Type: string (or Expression with resultType string). Required. - :vartype domain: JSON - :ivar access_token: Access token for databricks REST API. Refer to - https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string (or Expression - with resultType string). - :vartype access_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar authentication: Required to specify MSI, if using Workspace resource id for databricks - REST API. Type: string (or Expression with resultType string). - :vartype authentication: JSON - :ivar workspace_resource_id: Workspace resource id for databricks REST API. Type: string (or - Expression with resultType string). - :vartype workspace_resource_id: JSON - :ivar existing_cluster_id: The id of an existing interactive cluster that will be used for all - runs of this activity. Type: string (or Expression with resultType string). - :vartype existing_cluster_id: JSON - :ivar instance_pool_id: The id of an existing instance pool that will be used for all runs of - this activity. Type: string (or Expression with resultType string). - :vartype instance_pool_id: JSON - :ivar new_cluster_version: If not using an existing interactive cluster, this specifies the - Spark version of a new job cluster or instance pool nodes created for each run of this - activity. Required if instancePoolId is specified. Type: string (or Expression with resultType - string). - :vartype new_cluster_version: JSON - :ivar new_cluster_num_of_worker: If not using an existing interactive cluster, this specifies - the number of worker nodes to use for the new job cluster or instance pool. For new job - clusters, this a string-formatted Int32, like '1' means numOfWorker is 1 or '1:10' means - auto-scale from 1 (min) to 10 (max). For instance pools, this is a string-formatted Int32, and - can only specify a fixed number of worker nodes, such as '2'. Required if newClusterVersion is - specified. Type: string (or Expression with resultType string). - :vartype new_cluster_num_of_worker: JSON - :ivar new_cluster_node_type: The node type of the new job cluster. This property is required if - newClusterVersion is specified and instancePoolId is not specified. If instancePoolId is - specified, this property is ignored. Type: string (or Expression with resultType string). - :vartype new_cluster_node_type: JSON - :ivar new_cluster_spark_conf: A set of optional, user-specified Spark configuration key-value - pairs. - :vartype new_cluster_spark_conf: dict[str, JSON] - :ivar new_cluster_spark_env_vars: A set of optional, user-specified Spark environment variables - key-value pairs. - :vartype new_cluster_spark_env_vars: dict[str, JSON] - :ivar new_cluster_custom_tags: Additional tags for cluster resources. This property is ignored - in instance pool configurations. - :vartype new_cluster_custom_tags: dict[str, JSON] - :ivar new_cluster_log_destination: Specify a location to deliver Spark driver, worker, and - event logs. Type: string (or Expression with resultType string). - :vartype new_cluster_log_destination: JSON - :ivar new_cluster_driver_node_type: The driver node type for the new job cluster. This property - is ignored in instance pool configurations. Type: string (or Expression with resultType - string). - :vartype new_cluster_driver_node_type: JSON - :ivar new_cluster_init_scripts: User-defined initialization scripts for the new cluster. Type: - array of strings (or Expression with resultType array of strings). - :vartype new_cluster_init_scripts: JSON - :ivar new_cluster_enable_elastic_disk: Enable the elastic disk on the new cluster. This - property is now ignored, and takes the default elastic disk behavior in Databricks (elastic - disks are always enabled). Type: boolean (or Expression with resultType boolean). - :vartype new_cluster_enable_elastic_disk: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar policy_id: The policy id for limiting the ability to configure clusters based on a user - defined set of rules. Type: string (or Expression with resultType string). - :vartype policy_id: JSON - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - :ivar data_security_mode: The data security mode for the Databricks Cluster. Type: string (or - Expression with resultType string). - :vartype data_security_mode: JSON - """ - - _validation = { - "type": {"required": True}, - "domain": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "domain": {"key": "typeProperties.domain", "type": "object"}, - "access_token": {"key": "typeProperties.accessToken", "type": "SecretBase"}, - "authentication": {"key": "typeProperties.authentication", "type": "object"}, - "workspace_resource_id": {"key": "typeProperties.workspaceResourceId", "type": "object"}, - "existing_cluster_id": {"key": "typeProperties.existingClusterId", "type": "object"}, - "instance_pool_id": {"key": "typeProperties.instancePoolId", "type": "object"}, - "new_cluster_version": {"key": "typeProperties.newClusterVersion", "type": "object"}, - "new_cluster_num_of_worker": {"key": "typeProperties.newClusterNumOfWorker", "type": "object"}, - "new_cluster_node_type": {"key": "typeProperties.newClusterNodeType", "type": "object"}, - "new_cluster_spark_conf": {"key": "typeProperties.newClusterSparkConf", "type": "{object}"}, - "new_cluster_spark_env_vars": {"key": "typeProperties.newClusterSparkEnvVars", "type": "{object}"}, - "new_cluster_custom_tags": {"key": "typeProperties.newClusterCustomTags", "type": "{object}"}, - "new_cluster_log_destination": {"key": "typeProperties.newClusterLogDestination", "type": "object"}, - "new_cluster_driver_node_type": {"key": "typeProperties.newClusterDriverNodeType", "type": "object"}, - "new_cluster_init_scripts": {"key": "typeProperties.newClusterInitScripts", "type": "object"}, - "new_cluster_enable_elastic_disk": {"key": "typeProperties.newClusterEnableElasticDisk", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "policy_id": {"key": "typeProperties.policyId", "type": "object"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - "data_security_mode": {"key": "typeProperties.dataSecurityMode", "type": "object"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - domain: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - access_token: Optional["_models.SecretBase"] = None, - authentication: Optional[JSON] = None, - workspace_resource_id: Optional[JSON] = None, - existing_cluster_id: Optional[JSON] = None, - instance_pool_id: Optional[JSON] = None, - new_cluster_version: Optional[JSON] = None, - new_cluster_num_of_worker: Optional[JSON] = None, - new_cluster_node_type: Optional[JSON] = None, - new_cluster_spark_conf: Optional[dict[str, JSON]] = None, - new_cluster_spark_env_vars: Optional[dict[str, JSON]] = None, - new_cluster_custom_tags: Optional[dict[str, JSON]] = None, - new_cluster_log_destination: Optional[JSON] = None, - new_cluster_driver_node_type: Optional[JSON] = None, - new_cluster_init_scripts: Optional[JSON] = None, - new_cluster_enable_elastic_disk: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - policy_id: Optional[JSON] = None, - credential: Optional["_models.CredentialReference"] = None, - data_security_mode: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword domain: :code:``.azuredatabricks.net, domain name of your Databricks - deployment. Type: string (or Expression with resultType string). Required. - :paramtype domain: JSON - :keyword access_token: Access token for databricks REST API. Refer to - https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string (or Expression - with resultType string). - :paramtype access_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword authentication: Required to specify MSI, if using Workspace resource id for databricks - REST API. Type: string (or Expression with resultType string). - :paramtype authentication: JSON - :keyword workspace_resource_id: Workspace resource id for databricks REST API. Type: string (or - Expression with resultType string). - :paramtype workspace_resource_id: JSON - :keyword existing_cluster_id: The id of an existing interactive cluster that will be used for - all runs of this activity. Type: string (or Expression with resultType string). - :paramtype existing_cluster_id: JSON - :keyword instance_pool_id: The id of an existing instance pool that will be used for all runs - of this activity. Type: string (or Expression with resultType string). - :paramtype instance_pool_id: JSON - :keyword new_cluster_version: If not using an existing interactive cluster, this specifies the - Spark version of a new job cluster or instance pool nodes created for each run of this - activity. Required if instancePoolId is specified. Type: string (or Expression with resultType - string). - :paramtype new_cluster_version: JSON - :keyword new_cluster_num_of_worker: If not using an existing interactive cluster, this - specifies the number of worker nodes to use for the new job cluster or instance pool. For new - job clusters, this a string-formatted Int32, like '1' means numOfWorker is 1 or '1:10' means - auto-scale from 1 (min) to 10 (max). For instance pools, this is a string-formatted Int32, and - can only specify a fixed number of worker nodes, such as '2'. Required if newClusterVersion is - specified. Type: string (or Expression with resultType string). - :paramtype new_cluster_num_of_worker: JSON - :keyword new_cluster_node_type: The node type of the new job cluster. This property is required - if newClusterVersion is specified and instancePoolId is not specified. If instancePoolId is - specified, this property is ignored. Type: string (or Expression with resultType string). - :paramtype new_cluster_node_type: JSON - :keyword new_cluster_spark_conf: A set of optional, user-specified Spark configuration - key-value pairs. - :paramtype new_cluster_spark_conf: dict[str, JSON] - :keyword new_cluster_spark_env_vars: A set of optional, user-specified Spark environment - variables key-value pairs. - :paramtype new_cluster_spark_env_vars: dict[str, JSON] - :keyword new_cluster_custom_tags: Additional tags for cluster resources. This property is - ignored in instance pool configurations. - :paramtype new_cluster_custom_tags: dict[str, JSON] - :keyword new_cluster_log_destination: Specify a location to deliver Spark driver, worker, and - event logs. Type: string (or Expression with resultType string). - :paramtype new_cluster_log_destination: JSON - :keyword new_cluster_driver_node_type: The driver node type for the new job cluster. This - property is ignored in instance pool configurations. Type: string (or Expression with - resultType string). - :paramtype new_cluster_driver_node_type: JSON - :keyword new_cluster_init_scripts: User-defined initialization scripts for the new cluster. - Type: array of strings (or Expression with resultType array of strings). - :paramtype new_cluster_init_scripts: JSON - :keyword new_cluster_enable_elastic_disk: Enable the elastic disk on the new cluster. This - property is now ignored, and takes the default elastic disk behavior in Databricks (elastic - disks are always enabled). Type: boolean (or Expression with resultType boolean). - :paramtype new_cluster_enable_elastic_disk: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword policy_id: The policy id for limiting the ability to configure clusters based on a - user defined set of rules. Type: string (or Expression with resultType string). - :paramtype policy_id: JSON - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - :keyword data_security_mode: The data security mode for the Databricks Cluster. Type: string - (or Expression with resultType string). - :paramtype data_security_mode: JSON - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureDatabricks" - self.domain = domain - self.access_token = access_token - self.authentication = authentication - self.workspace_resource_id = workspace_resource_id - self.existing_cluster_id = existing_cluster_id - self.instance_pool_id = instance_pool_id - self.new_cluster_version = new_cluster_version - self.new_cluster_num_of_worker = new_cluster_num_of_worker - self.new_cluster_node_type = new_cluster_node_type - self.new_cluster_spark_conf = new_cluster_spark_conf - self.new_cluster_spark_env_vars = new_cluster_spark_env_vars - self.new_cluster_custom_tags = new_cluster_custom_tags - self.new_cluster_log_destination = new_cluster_log_destination - self.new_cluster_driver_node_type = new_cluster_driver_node_type - self.new_cluster_init_scripts = new_cluster_init_scripts - self.new_cluster_enable_elastic_disk = new_cluster_enable_elastic_disk - self.encrypted_credential = encrypted_credential - self.policy_id = policy_id - self.credential = credential - self.data_security_mode = data_security_mode - - -class ExecutionActivity(Activity): - """Base class for all execution activities. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureDataExplorerCommandActivity, AzureFunctionActivity, AzureMLBatchExecutionActivity, - AzureMLExecutePipelineActivity, AzureMLUpdateResourceActivity, CopyActivity, CustomActivity, - DataLakeAnalyticsUSQLActivity, DatabricksJobActivity, DatabricksNotebookActivity, - DatabricksSparkJarActivity, DatabricksSparkPythonActivity, DeleteActivity, - ExecuteDataFlowActivity, ExecuteSSISPackageActivity, GetMetadataActivity, - HDInsightHiveActivity, HDInsightMapReduceActivity, HDInsightPigActivity, - HDInsightSparkActivity, HDInsightStreamingActivity, LookupActivity, ScriptActivity, - SynapseSparkJobDefinitionActivity, SqlServerStoredProcedureActivity, SynapseNotebookActivity, - WebActivity - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - } - - _subtype_map = { - "type": { - "AzureDataExplorerCommand": "AzureDataExplorerCommandActivity", - "AzureFunctionActivity": "AzureFunctionActivity", - "AzureMLBatchExecution": "AzureMLBatchExecutionActivity", - "AzureMLExecutePipeline": "AzureMLExecutePipelineActivity", - "AzureMLUpdateResource": "AzureMLUpdateResourceActivity", - "Copy": "CopyActivity", - "Custom": "CustomActivity", - "DataLakeAnalyticsU-SQL": "DataLakeAnalyticsUSQLActivity", - "DatabricksJob": "DatabricksJobActivity", - "DatabricksNotebook": "DatabricksNotebookActivity", - "DatabricksSparkJar": "DatabricksSparkJarActivity", - "DatabricksSparkPython": "DatabricksSparkPythonActivity", - "Delete": "DeleteActivity", - "ExecuteDataFlow": "ExecuteDataFlowActivity", - "ExecuteSSISPackage": "ExecuteSSISPackageActivity", - "GetMetadata": "GetMetadataActivity", - "HDInsightHive": "HDInsightHiveActivity", - "HDInsightMapReduce": "HDInsightMapReduceActivity", - "HDInsightPig": "HDInsightPigActivity", - "HDInsightSpark": "HDInsightSparkActivity", - "HDInsightStreaming": "HDInsightStreamingActivity", - "Lookup": "LookupActivity", - "Script": "ScriptActivity", - "SparkJob": "SynapseSparkJobDefinitionActivity", - "SqlServerStoredProcedure": "SqlServerStoredProcedureActivity", - "SynapseNotebook": "SynapseNotebookActivity", - "WebActivity": "WebActivity", - } - } - - def __init__( - self, - *, - name: str, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - **kwargs - ) - self.type: str = "Execution" - self.linked_service_name = linked_service_name - self.policy = policy - - -class AzureDataExplorerCommandActivity(ExecutionActivity): - """Azure Data Explorer command activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar command: A control command, according to the Azure Data Explorer command syntax. Type: - string (or Expression with resultType string). Required. - :vartype command: JSON - :ivar command_timeout: Control command timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..). - :vartype command_timeout: JSON - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "command": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "command": {"key": "typeProperties.command", "type": "object"}, - "command_timeout": {"key": "typeProperties.commandTimeout", "type": "object"}, - } - - def __init__( - self, - *, - name: str, - command: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - command_timeout: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword command: A control command, according to the Azure Data Explorer command syntax. Type: - string (or Expression with resultType string). Required. - :paramtype command: JSON - :keyword command_timeout: Control command timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..). - :paramtype command_timeout: JSON - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "AzureDataExplorerCommand" - self.command = command - self.command_timeout = command_timeout - - -class AzureDataExplorerLinkedService(LinkedService): - """Azure Data Explorer (Kusto) linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar endpoint: The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the - format https://\\ :code:``.\\ :code:``.kusto.windows.net. Type: string - (or Expression with resultType string). Required. - :vartype endpoint: JSON - :ivar service_principal_id: The ID of the service principal used to authenticate against Azure - Data Explorer. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The key of the service principal used to authenticate against - Kusto. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar database: Database name for connection. Type: string (or Expression with resultType - string). Required. - :vartype database: JSON - :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string - (or Expression with resultType string). - :vartype tenant: JSON - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "type": {"required": True}, - "endpoint": {"required": True}, - "database": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "endpoint": {"key": "typeProperties.endpoint", "type": "object"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - } - - def __init__( - self, - *, - endpoint: JSON, - database: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - tenant: Optional[JSON] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword endpoint: The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in - the format https://\\ :code:``.\\ :code:``.kusto.windows.net. Type: - string (or Expression with resultType string). Required. - :paramtype endpoint: JSON - :keyword service_principal_id: The ID of the service principal used to authenticate against - Azure Data Explorer. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The key of the service principal used to authenticate against - Kusto. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword database: Database name for connection. Type: string (or Expression with resultType - string). Required. - :paramtype database: JSON - :keyword tenant: The name or ID of the tenant to which the service principal belongs. Type: - string (or Expression with resultType string). - :paramtype tenant: JSON - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureDataExplorer" - self.endpoint = endpoint - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.database = database - self.tenant = tenant - self.credential = credential - - -class AzureDataExplorerSink(CopySink): - """A copy activity Azure Data Explorer sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar ingestion_mapping_name: A name of a pre-created csv mapping that was defined on the - target Kusto table. Type: string. - :vartype ingestion_mapping_name: JSON - :ivar ingestion_mapping_as_json: An explicit column mapping description provided in a json - format. Type: string. - :vartype ingestion_mapping_as_json: JSON - :ivar flush_immediately: If set to true, any aggregation will be skipped. Default is false. - Type: boolean. - :vartype flush_immediately: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "ingestion_mapping_name": {"key": "ingestionMappingName", "type": "object"}, - "ingestion_mapping_as_json": {"key": "ingestionMappingAsJson", "type": "object"}, - "flush_immediately": {"key": "flushImmediately", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - ingestion_mapping_name: Optional[JSON] = None, - ingestion_mapping_as_json: Optional[JSON] = None, - flush_immediately: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword ingestion_mapping_name: A name of a pre-created csv mapping that was defined on the - target Kusto table. Type: string. - :paramtype ingestion_mapping_name: JSON - :keyword ingestion_mapping_as_json: An explicit column mapping description provided in a json - format. Type: string. - :paramtype ingestion_mapping_as_json: JSON - :keyword flush_immediately: If set to true, any aggregation will be skipped. Default is false. - Type: boolean. - :paramtype flush_immediately: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AzureDataExplorerSink" - self.ingestion_mapping_name = ingestion_mapping_name - self.ingestion_mapping_as_json = ingestion_mapping_as_json - self.flush_immediately = flush_immediately - - -class AzureDataExplorerSource(CopySource): - """A copy activity Azure Data Explorer (Kusto) source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query: Database query. Should be a Kusto Query Language (KQL) query. Type: string (or - Expression with resultType string). Required. - :vartype query: JSON - :ivar no_truncation: The name of the Boolean option that controls whether truncation is applied - to result-sets that go beyond a certain row-count limit. - :vartype no_truncation: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).. - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - "query": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "no_truncation": {"key": "noTruncation", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - query: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - no_truncation: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query: Database query. Should be a Kusto Query Language (KQL) query. Type: string (or - Expression with resultType string). Required. - :paramtype query: JSON - :keyword no_truncation: The name of the Boolean option that controls whether truncation is - applied to result-sets that go beyond a certain row-count limit. - :paramtype no_truncation: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).. - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AzureDataExplorerSource" - self.query = query - self.no_truncation = no_truncation - self.query_timeout = query_timeout - self.additional_columns = additional_columns - - -class AzureDataExplorerTableDataset(Dataset): - """The Azure Data Explorer (Kusto) dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table: The table name of the Azure Data Explorer database. Type: string (or Expression - with resultType string). - :vartype table: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table": {"key": "typeProperties.table", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table: The table name of the Azure Data Explorer database. Type: string (or Expression - with resultType string). - :paramtype table: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "AzureDataExplorerTable" - self.table = table - - -class AzureDataLakeAnalyticsLinkedService(LinkedService): - """Azure Data Lake Analytics linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar account_name: The Azure Data Lake Analytics account name. Type: string (or Expression - with resultType string). Required. - :vartype account_name: JSON - :ivar service_principal_id: The ID of the application used to authenticate against the Azure - Data Lake Analytics account. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The Key of the application used to authenticate against the Azure - Data Lake Analytics account. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string - (or Expression with resultType string). Required. - :vartype tenant: JSON - :ivar subscription_id: Data Lake Analytics account subscription ID (if different from Data - Factory account). Type: string (or Expression with resultType string). - :vartype subscription_id: JSON - :ivar resource_group_name: Data Lake Analytics account resource group name (if different from - Data Factory account). Type: string (or Expression with resultType string). - :vartype resource_group_name: JSON - :ivar data_lake_analytics_uri: Azure Data Lake Analytics URI Type: string (or Expression with - resultType string). - :vartype data_lake_analytics_uri: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "account_name": {"required": True}, - "tenant": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "account_name": {"key": "typeProperties.accountName", "type": "object"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "subscription_id": {"key": "typeProperties.subscriptionId", "type": "object"}, - "resource_group_name": {"key": "typeProperties.resourceGroupName", "type": "object"}, - "data_lake_analytics_uri": {"key": "typeProperties.dataLakeAnalyticsUri", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - account_name: JSON, - tenant: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - subscription_id: Optional[JSON] = None, - resource_group_name: Optional[JSON] = None, - data_lake_analytics_uri: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword account_name: The Azure Data Lake Analytics account name. Type: string (or Expression - with resultType string). Required. - :paramtype account_name: JSON - :keyword service_principal_id: The ID of the application used to authenticate against the Azure - Data Lake Analytics account. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The Key of the application used to authenticate against the - Azure Data Lake Analytics account. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: The name or ID of the tenant to which the service principal belongs. Type: - string (or Expression with resultType string). Required. - :paramtype tenant: JSON - :keyword subscription_id: Data Lake Analytics account subscription ID (if different from Data - Factory account). Type: string (or Expression with resultType string). - :paramtype subscription_id: JSON - :keyword resource_group_name: Data Lake Analytics account resource group name (if different - from Data Factory account). Type: string (or Expression with resultType string). - :paramtype resource_group_name: JSON - :keyword data_lake_analytics_uri: Azure Data Lake Analytics URI Type: string (or Expression - with resultType string). - :paramtype data_lake_analytics_uri: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureDataLakeAnalytics" - self.account_name = account_name - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.tenant = tenant - self.subscription_id = subscription_id - self.resource_group_name = resource_group_name - self.data_lake_analytics_uri = data_lake_analytics_uri - self.encrypted_credential = encrypted_credential - - -class AzureDataLakeStoreDataset(Dataset): - """Azure Data Lake Store dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar folder_path: Path to the folder in the Azure Data Lake Store. Type: string (or Expression - with resultType string). - :vartype folder_path: JSON - :ivar file_name: The name of the file in the Azure Data Lake Store. Type: string (or Expression - with resultType string). - :vartype file_name: JSON - :ivar format: The format of the Data Lake Store. - :vartype format: ~azure.mgmt.datafactory.models.DatasetStorageFormat - :ivar compression: The data compression method used for the item(s) in the Azure Data Lake - Store. - :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "folder_path": {"key": "typeProperties.folderPath", "type": "object"}, - "file_name": {"key": "typeProperties.fileName", "type": "object"}, - "format": {"key": "typeProperties.format", "type": "DatasetStorageFormat"}, - "compression": {"key": "typeProperties.compression", "type": "DatasetCompression"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - folder_path: Optional[JSON] = None, - file_name: Optional[JSON] = None, - format: Optional["_models.DatasetStorageFormat"] = None, - compression: Optional["_models.DatasetCompression"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword folder_path: Path to the folder in the Azure Data Lake Store. Type: string (or - Expression with resultType string). - :paramtype folder_path: JSON - :keyword file_name: The name of the file in the Azure Data Lake Store. Type: string (or - Expression with resultType string). - :paramtype file_name: JSON - :keyword format: The format of the Data Lake Store. - :paramtype format: ~azure.mgmt.datafactory.models.DatasetStorageFormat - :keyword compression: The data compression method used for the item(s) in the Azure Data Lake - Store. - :paramtype compression: ~azure.mgmt.datafactory.models.DatasetCompression - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "AzureDataLakeStoreFile" - self.folder_path = folder_path - self.file_name = file_name - self.format = format - self.compression = compression - - -class AzureDataLakeStoreLinkedService(LinkedService): - """Azure Data Lake Store linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar data_lake_store_uri: Data Lake Store service URI. Type: string (or Expression with - resultType string). Required. - :vartype data_lake_store_uri: JSON - :ivar service_principal_id: The ID of the application used to authenticate against the Azure - Data Lake Store account. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The Key of the application used to authenticate against the Azure - Data Lake Store account. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string - (or Expression with resultType string). - :vartype tenant: JSON - :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed - values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data - factory regions’ cloud type. Type: string (or Expression with resultType string). - :vartype azure_cloud_type: JSON - :ivar account_name: Data Lake Store account name. Type: string (or Expression with resultType - string). - :vartype account_name: JSON - :ivar subscription_id: Data Lake Store account subscription ID (if different from Data Factory - account). Type: string (or Expression with resultType string). - :vartype subscription_id: JSON - :ivar resource_group_name: Data Lake Store account resource group name (if different from Data - Factory account). Type: string (or Expression with resultType string). - :vartype resource_group_name: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "type": {"required": True}, - "data_lake_store_uri": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "data_lake_store_uri": {"key": "typeProperties.dataLakeStoreUri", "type": "object"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "azure_cloud_type": {"key": "typeProperties.azureCloudType", "type": "object"}, - "account_name": {"key": "typeProperties.accountName", "type": "object"}, - "subscription_id": {"key": "typeProperties.subscriptionId", "type": "object"}, - "resource_group_name": {"key": "typeProperties.resourceGroupName", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - } - - def __init__( - self, - *, - data_lake_store_uri: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - tenant: Optional[JSON] = None, - azure_cloud_type: Optional[JSON] = None, - account_name: Optional[JSON] = None, - subscription_id: Optional[JSON] = None, - resource_group_name: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword data_lake_store_uri: Data Lake Store service URI. Type: string (or Expression with - resultType string). Required. - :paramtype data_lake_store_uri: JSON - :keyword service_principal_id: The ID of the application used to authenticate against the Azure - Data Lake Store account. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The Key of the application used to authenticate against the - Azure Data Lake Store account. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: The name or ID of the tenant to which the service principal belongs. Type: - string (or Expression with resultType string). - :paramtype tenant: JSON - :keyword azure_cloud_type: Indicates the azure cloud type of the service principle auth. - Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is - the data factory regions’ cloud type. Type: string (or Expression with resultType string). - :paramtype azure_cloud_type: JSON - :keyword account_name: Data Lake Store account name. Type: string (or Expression with - resultType string). - :paramtype account_name: JSON - :keyword subscription_id: Data Lake Store account subscription ID (if different from Data - Factory account). Type: string (or Expression with resultType string). - :paramtype subscription_id: JSON - :keyword resource_group_name: Data Lake Store account resource group name (if different from - Data Factory account). Type: string (or Expression with resultType string). - :paramtype resource_group_name: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureDataLakeStore" - self.data_lake_store_uri = data_lake_store_uri - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.tenant = tenant - self.azure_cloud_type = azure_cloud_type - self.account_name = account_name - self.subscription_id = subscription_id - self.resource_group_name = resource_group_name - self.encrypted_credential = encrypted_credential - self.credential = credential - - -class AzureDataLakeStoreLocation(DatasetLocation): - """The location of azure data lake store dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage location. Required. - :vartype type: str - :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :vartype folder_path: JSON - :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType - string). - :vartype file_name: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "folder_path": {"key": "folderPath", "type": "object"}, - "file_name": {"key": "fileName", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - folder_path: Optional[JSON] = None, - file_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :paramtype folder_path: JSON - :keyword file_name: Specify the file name of dataset. Type: string (or Expression with - resultType string). - :paramtype file_name: JSON - """ - super().__init__( - additional_properties=additional_properties, folder_path=folder_path, file_name=file_name, **kwargs - ) - self.type: str = "AzureDataLakeStoreLocation" - - -class AzureDataLakeStoreReadSettings(StoreReadSettings): - """Azure data lake store read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - :ivar wildcard_folder_path: ADLS wildcardFolderPath. Type: string (or Expression with - resultType string). - :vartype wildcard_folder_path: JSON - :ivar wildcard_file_name: ADLS wildcardFileName. Type: string (or Expression with resultType - string). - :vartype wildcard_file_name: JSON - :ivar file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :vartype file_list_path: JSON - :ivar list_after: Lists files after the value (exclusive) based on file/folder names’ - lexicographical order. Applies under the folderPath in data set, and filter files/sub-folders - under the folderPath. Type: string (or Expression with resultType string). - :vartype list_after: JSON - :ivar list_before: Lists files before the value (inclusive) based on file/folder names’ - lexicographical order. Applies under the folderPath in data set, and filter files/sub-folders - under the folderPath. Type: string (or Expression with resultType string). - :vartype list_before: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :vartype enable_partition_discovery: JSON - :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: - string (or Expression with resultType string). - :vartype partition_root_path: JSON - :ivar delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :vartype delete_files_after_completion: JSON - :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :vartype modified_datetime_start: JSON - :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression - with resultType string). - :vartype modified_datetime_end: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "recursive": {"key": "recursive", "type": "object"}, - "wildcard_folder_path": {"key": "wildcardFolderPath", "type": "object"}, - "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, - "file_list_path": {"key": "fileListPath", "type": "object"}, - "list_after": {"key": "listAfter", "type": "object"}, - "list_before": {"key": "listBefore", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, - "partition_root_path": {"key": "partitionRootPath", "type": "object"}, - "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, - "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, - "modified_datetime_end": {"key": "modifiedDatetimeEnd", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - recursive: Optional[JSON] = None, - wildcard_folder_path: Optional[JSON] = None, - wildcard_file_name: Optional[JSON] = None, - file_list_path: Optional[JSON] = None, - list_after: Optional[JSON] = None, - list_before: Optional[JSON] = None, - enable_partition_discovery: Optional[JSON] = None, - partition_root_path: Optional[JSON] = None, - delete_files_after_completion: Optional[JSON] = None, - modified_datetime_start: Optional[JSON] = None, - modified_datetime_end: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - :keyword wildcard_folder_path: ADLS wildcardFolderPath. Type: string (or Expression with - resultType string). - :paramtype wildcard_folder_path: JSON - :keyword wildcard_file_name: ADLS wildcardFileName. Type: string (or Expression with resultType - string). - :paramtype wildcard_file_name: JSON - :keyword file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :paramtype file_list_path: JSON - :keyword list_after: Lists files after the value (exclusive) based on file/folder names’ - lexicographical order. Applies under the folderPath in data set, and filter files/sub-folders - under the folderPath. Type: string (or Expression with resultType string). - :paramtype list_after: JSON - :keyword list_before: Lists files before the value (inclusive) based on file/folder names’ - lexicographical order. Applies under the folderPath in data set, and filter files/sub-folders - under the folderPath. Type: string (or Expression with resultType string). - :paramtype list_before: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :paramtype enable_partition_discovery: JSON - :keyword partition_root_path: Specify the root path where partition discovery starts from. - Type: string (or Expression with resultType string). - :paramtype partition_root_path: JSON - :keyword delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :paramtype delete_files_after_completion: JSON - :keyword modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_start: JSON - :keyword modified_datetime_end: The end of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_end: JSON - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AzureDataLakeStoreReadSettings" - self.recursive = recursive - self.wildcard_folder_path = wildcard_folder_path - self.wildcard_file_name = wildcard_file_name - self.file_list_path = file_list_path - self.list_after = list_after - self.list_before = list_before - self.enable_partition_discovery = enable_partition_discovery - self.partition_root_path = partition_root_path - self.delete_files_after_completion = delete_files_after_completion - self.modified_datetime_start = modified_datetime_start - self.modified_datetime_end = modified_datetime_end - - -class AzureDataLakeStoreSink(CopySink): - """A copy activity Azure Data Lake Store sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar copy_behavior: The type of copy behavior for copy sink. Type: string (or Expression with - resultType string). - :vartype copy_behavior: JSON - :ivar enable_adls_single_file_parallel: Single File Parallel. - :vartype enable_adls_single_file_parallel: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "copy_behavior": {"key": "copyBehavior", "type": "object"}, - "enable_adls_single_file_parallel": {"key": "enableAdlsSingleFileParallel", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - copy_behavior: Optional[JSON] = None, - enable_adls_single_file_parallel: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword copy_behavior: The type of copy behavior for copy sink. Type: string (or Expression - with resultType string). - :paramtype copy_behavior: JSON - :keyword enable_adls_single_file_parallel: Single File Parallel. - :paramtype enable_adls_single_file_parallel: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AzureDataLakeStoreSink" - self.copy_behavior = copy_behavior - self.enable_adls_single_file_parallel = enable_adls_single_file_parallel - - -class AzureDataLakeStoreSource(CopySource): - """A copy activity Azure Data Lake source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "recursive": {"key": "recursive", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - recursive: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AzureDataLakeStoreSource" - self.recursive = recursive - - -class AzureDataLakeStoreWriteSettings(StoreWriteSettings): - """Azure data lake store write settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The write setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar copy_behavior: The type of copy behavior for copy sink. - :vartype copy_behavior: JSON - :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - :ivar expiry_date_time: Specifies the expiry time of the written files. The time is applied to - the UTC time zone in the format of "2018-12-01T05:00:00Z". Default value is NULL. Type: string - (or Expression with resultType string). - :vartype expiry_date_time: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "copy_behavior": {"key": "copyBehavior", "type": "object"}, - "metadata": {"key": "metadata", "type": "[MetadataItem]"}, - "expiry_date_time": {"key": "expiryDateTime", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - copy_behavior: Optional[JSON] = None, - metadata: Optional[list["_models.MetadataItem"]] = None, - expiry_date_time: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword copy_behavior: The type of copy behavior for copy sink. - :paramtype copy_behavior: JSON - :keyword metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :paramtype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - :keyword expiry_date_time: Specifies the expiry time of the written files. The time is applied - to the UTC time zone in the format of "2018-12-01T05:00:00Z". Default value is NULL. Type: - string (or Expression with resultType string). - :paramtype expiry_date_time: JSON - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - copy_behavior=copy_behavior, - metadata=metadata, - **kwargs - ) - self.type: str = "AzureDataLakeStoreWriteSettings" - self.expiry_date_time = expiry_date_time - - -class AzureFileStorageLinkedService(LinkedService): - """Azure File Storage linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar host: Host name of the server. Type: string (or Expression with resultType string). - :vartype host: JSON - :ivar user_id: User ID to logon the server. Type: string (or Expression with resultType - string). - :vartype user_id: JSON - :ivar password: Password to logon the server. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar connection_string: The connection string. It is mutually exclusive with sasUri property. - Type: string, SecureString or AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar account_key: The Azure key vault secret reference of accountKey in connection string. - :vartype account_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar sas_uri: SAS URI of the Azure File resource. It is mutually exclusive with - connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. - :vartype sas_uri: JSON - :ivar sas_token: The Azure key vault secret reference of sasToken in sas uri. - :vartype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar file_share: The azure file share name. It is required when auth with accountKey/sasToken. - Type: string (or Expression with resultType string). - :vartype file_share: JSON - :ivar snapshot: The azure file share snapshot version. Type: string (or Expression with - resultType string). - :vartype snapshot: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar service_endpoint: File service endpoint of the Azure File Storage resource. It is - mutually exclusive with connectionString, sasUri property. - :vartype service_endpoint: JSON - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "user_id": {"key": "typeProperties.userId", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "account_key": {"key": "typeProperties.accountKey", "type": "AzureKeyVaultSecretReference"}, - "sas_uri": {"key": "typeProperties.sasUri", "type": "object"}, - "sas_token": {"key": "typeProperties.sasToken", "type": "AzureKeyVaultSecretReference"}, - "file_share": {"key": "typeProperties.fileShare", "type": "object"}, - "snapshot": {"key": "typeProperties.snapshot", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "service_endpoint": {"key": "typeProperties.serviceEndpoint", "type": "object"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - host: Optional[JSON] = None, - user_id: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - connection_string: Optional[JSON] = None, - account_key: Optional["_models.AzureKeyVaultSecretReference"] = None, - sas_uri: Optional[JSON] = None, - sas_token: Optional["_models.AzureKeyVaultSecretReference"] = None, - file_share: Optional[JSON] = None, - snapshot: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - service_endpoint: Optional[JSON] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword host: Host name of the server. Type: string (or Expression with resultType string). - :paramtype host: JSON - :keyword user_id: User ID to logon the server. Type: string (or Expression with resultType - string). - :paramtype user_id: JSON - :keyword password: Password to logon the server. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword connection_string: The connection string. It is mutually exclusive with sasUri - property. Type: string, SecureString or AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword account_key: The Azure key vault secret reference of accountKey in connection string. - :paramtype account_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword sas_uri: SAS URI of the Azure File resource. It is mutually exclusive with - connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. - :paramtype sas_uri: JSON - :keyword sas_token: The Azure key vault secret reference of sasToken in sas uri. - :paramtype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword file_share: The azure file share name. It is required when auth with - accountKey/sasToken. Type: string (or Expression with resultType string). - :paramtype file_share: JSON - :keyword snapshot: The azure file share snapshot version. Type: string (or Expression with - resultType string). - :paramtype snapshot: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword service_endpoint: File service endpoint of the Azure File Storage resource. It is - mutually exclusive with connectionString, sasUri property. - :paramtype service_endpoint: JSON - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureFileStorage" - self.host = host - self.user_id = user_id - self.password = password - self.connection_string = connection_string - self.account_key = account_key - self.sas_uri = sas_uri - self.sas_token = sas_token - self.file_share = file_share - self.snapshot = snapshot - self.encrypted_credential = encrypted_credential - self.service_endpoint = service_endpoint - self.credential = credential - - -class AzureFileStorageLocation(DatasetLocation): - """The location of file server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage location. Required. - :vartype type: str - :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :vartype folder_path: JSON - :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType - string). - :vartype file_name: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "folder_path": {"key": "folderPath", "type": "object"}, - "file_name": {"key": "fileName", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - folder_path: Optional[JSON] = None, - file_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :paramtype folder_path: JSON - :keyword file_name: Specify the file name of dataset. Type: string (or Expression with - resultType string). - :paramtype file_name: JSON - """ - super().__init__( - additional_properties=additional_properties, folder_path=folder_path, file_name=file_name, **kwargs - ) - self.type: str = "AzureFileStorageLocation" - - -class AzureFileStorageReadSettings(StoreReadSettings): - """Azure File Storage read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - :ivar wildcard_folder_path: Azure File Storage wildcardFolderPath. Type: string (or Expression - with resultType string). - :vartype wildcard_folder_path: JSON - :ivar wildcard_file_name: Azure File Storage wildcardFileName. Type: string (or Expression with - resultType string). - :vartype wildcard_file_name: JSON - :ivar prefix: The prefix filter for the Azure File name starting from root path. Type: string - (or Expression with resultType string). - :vartype prefix: JSON - :ivar file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :vartype enable_partition_discovery: JSON - :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: - string (or Expression with resultType string). - :vartype partition_root_path: JSON - :ivar delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :vartype delete_files_after_completion: JSON - :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :vartype modified_datetime_start: JSON - :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression - with resultType string). - :vartype modified_datetime_end: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "recursive": {"key": "recursive", "type": "object"}, - "wildcard_folder_path": {"key": "wildcardFolderPath", "type": "object"}, - "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, - "prefix": {"key": "prefix", "type": "object"}, - "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, - "partition_root_path": {"key": "partitionRootPath", "type": "object"}, - "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, - "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, - "modified_datetime_end": {"key": "modifiedDatetimeEnd", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - recursive: Optional[JSON] = None, - wildcard_folder_path: Optional[JSON] = None, - wildcard_file_name: Optional[JSON] = None, - prefix: Optional[JSON] = None, - file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[JSON] = None, - partition_root_path: Optional[JSON] = None, - delete_files_after_completion: Optional[JSON] = None, - modified_datetime_start: Optional[JSON] = None, - modified_datetime_end: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - :keyword wildcard_folder_path: Azure File Storage wildcardFolderPath. Type: string (or - Expression with resultType string). - :paramtype wildcard_folder_path: JSON - :keyword wildcard_file_name: Azure File Storage wildcardFileName. Type: string (or Expression - with resultType string). - :paramtype wildcard_file_name: JSON - :keyword prefix: The prefix filter for the Azure File name starting from root path. Type: - string (or Expression with resultType string). - :paramtype prefix: JSON - :keyword file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :paramtype enable_partition_discovery: JSON - :keyword partition_root_path: Specify the root path where partition discovery starts from. - Type: string (or Expression with resultType string). - :paramtype partition_root_path: JSON - :keyword delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :paramtype delete_files_after_completion: JSON - :keyword modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_start: JSON - :keyword modified_datetime_end: The end of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_end: JSON - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AzureFileStorageReadSettings" - self.recursive = recursive - self.wildcard_folder_path = wildcard_folder_path - self.wildcard_file_name = wildcard_file_name - self.prefix = prefix - self.file_list_path = file_list_path - self.enable_partition_discovery = enable_partition_discovery - self.partition_root_path = partition_root_path - self.delete_files_after_completion = delete_files_after_completion - self.modified_datetime_start = modified_datetime_start - self.modified_datetime_end = modified_datetime_end - - -class AzureFileStorageWriteSettings(StoreWriteSettings): - """Azure File Storage write settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The write setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar copy_behavior: The type of copy behavior for copy sink. - :vartype copy_behavior: JSON - :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "copy_behavior": {"key": "copyBehavior", "type": "object"}, - "metadata": {"key": "metadata", "type": "[MetadataItem]"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - copy_behavior: Optional[JSON] = None, - metadata: Optional[list["_models.MetadataItem"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword copy_behavior: The type of copy behavior for copy sink. - :paramtype copy_behavior: JSON - :keyword metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :paramtype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - copy_behavior=copy_behavior, - metadata=metadata, - **kwargs - ) - self.type: str = "AzureFileStorageWriteSettings" - - -class AzureFunctionActivity(ExecutionActivity): - """Azure Function activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar method: Rest API method for target endpoint. Required. Known values are: "GET", "POST", - "PUT", "DELETE", "OPTIONS", "HEAD", and "TRACE". - :vartype method: str or ~azure.mgmt.datafactory.models.AzureFunctionActivityMethod - :ivar function_name: Name of the Function that the Azure Function Activity will call. Type: - string (or Expression with resultType string). Required. - :vartype function_name: JSON - :ivar headers: Represents the headers that will be sent to the request. For example, to set the - language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": - "application/json" }. Type: string (or Expression with resultType string). - :vartype headers: dict[str, JSON] - :ivar body: Represents the payload that will be sent to the endpoint. Required for POST/PUT - method, not allowed for GET method Type: string (or Expression with resultType string). - :vartype body: JSON - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "method": {"required": True}, - "function_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "method": {"key": "typeProperties.method", "type": "str"}, - "function_name": {"key": "typeProperties.functionName", "type": "object"}, - "headers": {"key": "typeProperties.headers", "type": "{object}"}, - "body": {"key": "typeProperties.body", "type": "object"}, - } - - def __init__( - self, - *, - name: str, - method: Union[str, "_models.AzureFunctionActivityMethod"], - function_name: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - headers: Optional[dict[str, JSON]] = None, - body: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword method: Rest API method for target endpoint. Required. Known values are: "GET", - "POST", "PUT", "DELETE", "OPTIONS", "HEAD", and "TRACE". - :paramtype method: str or ~azure.mgmt.datafactory.models.AzureFunctionActivityMethod - :keyword function_name: Name of the Function that the Azure Function Activity will call. Type: - string (or Expression with resultType string). Required. - :paramtype function_name: JSON - :keyword headers: Represents the headers that will be sent to the request. For example, to set - the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": - "application/json" }. Type: string (or Expression with resultType string). - :paramtype headers: dict[str, JSON] - :keyword body: Represents the payload that will be sent to the endpoint. Required for POST/PUT - method, not allowed for GET method Type: string (or Expression with resultType string). - :paramtype body: JSON - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "AzureFunctionActivity" - self.method = method - self.function_name = function_name - self.headers = headers - self.body = body - - -class AzureFunctionLinkedService(LinkedService): - """Azure Function linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar function_app_url: The endpoint of the Azure Function App. URL will be in the format - https://\\ :code:``.azurewebsites.net. Type: string (or Expression with resultType - string). Required. - :vartype function_app_url: JSON - :ivar function_key: Function or Host key for Azure Function App. - :vartype function_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - :ivar resource_id: Allowed token audiences for azure function. Type: string (or Expression with - resultType string). - :vartype resource_id: JSON - :ivar authentication: Type of authentication (Required to specify MSI) used to connect to - AzureFunction. Type: string (or Expression with resultType string). - :vartype authentication: JSON - """ - - _validation = { - "type": {"required": True}, - "function_app_url": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "function_app_url": {"key": "typeProperties.functionAppUrl", "type": "object"}, - "function_key": {"key": "typeProperties.functionKey", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - "resource_id": {"key": "typeProperties.resourceId", "type": "object"}, - "authentication": {"key": "typeProperties.authentication", "type": "object"}, - } - - def __init__( - self, - *, - function_app_url: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - function_key: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - credential: Optional["_models.CredentialReference"] = None, - resource_id: Optional[JSON] = None, - authentication: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword function_app_url: The endpoint of the Azure Function App. URL will be in the format - https://\\ :code:``.azurewebsites.net. Type: string (or Expression with resultType - string). Required. - :paramtype function_app_url: JSON - :keyword function_key: Function or Host key for Azure Function App. - :paramtype function_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - :keyword resource_id: Allowed token audiences for azure function. Type: string (or Expression - with resultType string). - :paramtype resource_id: JSON - :keyword authentication: Type of authentication (Required to specify MSI) used to connect to - AzureFunction. Type: string (or Expression with resultType string). - :paramtype authentication: JSON - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureFunction" - self.function_app_url = function_app_url - self.function_key = function_key - self.encrypted_credential = encrypted_credential - self.credential = credential - self.resource_id = resource_id - self.authentication = authentication - - -class AzureKeyVaultLinkedService(LinkedService): - """Azure Key Vault linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar base_url: The base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net Type: - string (or Expression with resultType string). Required. - :vartype base_url: JSON - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "type": {"required": True}, - "base_url": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "base_url": {"key": "typeProperties.baseUrl", "type": "object"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - } - - def __init__( - self, - *, - base_url: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword base_url: The base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net - Type: string (or Expression with resultType string). Required. - :paramtype base_url: JSON - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureKeyVault" - self.base_url = base_url - self.credential = credential - - -class SecretBase(_serialization.Model): - """The base definition of a secret type. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureKeyVaultSecretReference, SecureString - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the secret. Required. - :vartype type: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = {"type": {"AzureKeyVaultSecret": "AzureKeyVaultSecretReference", "SecureString": "SecureString"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class AzureKeyVaultSecretReference(SecretBase): - """Azure Key Vault secret reference. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the secret. Required. - :vartype type: str - :ivar store: The Azure Key Vault linked service reference. Required. - :vartype store: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar secret_name: The name of the secret in Azure Key Vault. Type: string (or Expression with - resultType string). Required. - :vartype secret_name: JSON - :ivar secret_version: The version of the secret in Azure Key Vault. The default value is the - latest version of the secret. Type: string (or Expression with resultType string). - :vartype secret_version: JSON - """ - - _validation = { - "type": {"required": True}, - "store": {"required": True}, - "secret_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "store": {"key": "store", "type": "LinkedServiceReference"}, - "secret_name": {"key": "secretName", "type": "object"}, - "secret_version": {"key": "secretVersion", "type": "object"}, - } - - def __init__( - self, - *, - store: "_models.LinkedServiceReference", - secret_name: JSON, - secret_version: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword store: The Azure Key Vault linked service reference. Required. - :paramtype store: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword secret_name: The name of the secret in Azure Key Vault. Type: string (or Expression - with resultType string). Required. - :paramtype secret_name: JSON - :keyword secret_version: The version of the secret in Azure Key Vault. The default value is the - latest version of the secret. Type: string (or Expression with resultType string). - :paramtype secret_version: JSON - """ - super().__init__(**kwargs) - self.type: str = "AzureKeyVaultSecret" - self.store = store - self.secret_name = secret_name - self.secret_version = secret_version - - -class AzureMariaDBLinkedService(LinkedService): - """Azure Database for MariaDB linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: An ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar pwd: The Azure key vault secret reference of password in connection string. - :vartype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "pwd": {"key": "typeProperties.pwd", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_string: Optional[JSON] = None, - pwd: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: An ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword pwd: The Azure key vault secret reference of password in connection string. - :paramtype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureMariaDB" - self.connection_string = connection_string - self.pwd = pwd - self.encrypted_credential = encrypted_credential - - -class AzureMariaDBSource(TabularSource): - """A copy activity Azure MariaDB source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "AzureMariaDBSource" - self.query = query - - -class AzureMariaDBTableDataset(Dataset): - """Azure Database for MariaDB dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "AzureMariaDBTable" - self.table_name = table_name - - -class AzureMLBatchExecutionActivity(ExecutionActivity): - """Azure ML Batch Execution activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar global_parameters: Key,Value pairs to be passed to the Azure ML Batch Execution Service - endpoint. Keys must match the names of web service parameters defined in the published Azure ML - web service. Values will be passed in the GlobalParameters property of the Azure ML batch - execution request. - :vartype global_parameters: dict[str, JSON] - :ivar web_service_outputs: Key,Value pairs, mapping the names of Azure ML endpoint's Web - Service Outputs to AzureMLWebServiceFile objects specifying the output Blob locations. This - information will be passed in the WebServiceOutputs property of the Azure ML batch execution - request. - :vartype web_service_outputs: dict[str, ~azure.mgmt.datafactory.models.AzureMLWebServiceFile] - :ivar web_service_inputs: Key,Value pairs, mapping the names of Azure ML endpoint's Web Service - Inputs to AzureMLWebServiceFile objects specifying the input Blob locations.. This information - will be passed in the WebServiceInputs property of the Azure ML batch execution request. - :vartype web_service_inputs: dict[str, ~azure.mgmt.datafactory.models.AzureMLWebServiceFile] - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "global_parameters": {"key": "typeProperties.globalParameters", "type": "{object}"}, - "web_service_outputs": {"key": "typeProperties.webServiceOutputs", "type": "{AzureMLWebServiceFile}"}, - "web_service_inputs": {"key": "typeProperties.webServiceInputs", "type": "{AzureMLWebServiceFile}"}, - } - - def __init__( - self, - *, - name: str, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - global_parameters: Optional[dict[str, JSON]] = None, - web_service_outputs: Optional[dict[str, "_models.AzureMLWebServiceFile"]] = None, - web_service_inputs: Optional[dict[str, "_models.AzureMLWebServiceFile"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword global_parameters: Key,Value pairs to be passed to the Azure ML Batch Execution - Service endpoint. Keys must match the names of web service parameters defined in the published - Azure ML web service. Values will be passed in the GlobalParameters property of the Azure ML - batch execution request. - :paramtype global_parameters: dict[str, JSON] - :keyword web_service_outputs: Key,Value pairs, mapping the names of Azure ML endpoint's Web - Service Outputs to AzureMLWebServiceFile objects specifying the output Blob locations. This - information will be passed in the WebServiceOutputs property of the Azure ML batch execution - request. - :paramtype web_service_outputs: dict[str, ~azure.mgmt.datafactory.models.AzureMLWebServiceFile] - :keyword web_service_inputs: Key,Value pairs, mapping the names of Azure ML endpoint's Web - Service Inputs to AzureMLWebServiceFile objects specifying the input Blob locations.. This - information will be passed in the WebServiceInputs property of the Azure ML batch execution - request. - :paramtype web_service_inputs: dict[str, ~azure.mgmt.datafactory.models.AzureMLWebServiceFile] - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "AzureMLBatchExecution" - self.global_parameters = global_parameters - self.web_service_outputs = web_service_outputs - self.web_service_inputs = web_service_inputs - - -class AzureMLExecutePipelineActivity(ExecutionActivity): - """Azure ML Execute Pipeline activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar ml_pipeline_id: ID of the published Azure ML pipeline. Type: string (or Expression with - resultType string). - :vartype ml_pipeline_id: JSON - :ivar ml_pipeline_endpoint_id: ID of the published Azure ML pipeline endpoint. Type: string (or - Expression with resultType string). - :vartype ml_pipeline_endpoint_id: JSON - :ivar version: Version of the published Azure ML pipeline endpoint. Type: string (or Expression - with resultType string). - :vartype version: JSON - :ivar experiment_name: Run history experiment name of the pipeline run. This information will - be passed in the ExperimentName property of the published pipeline execution request. Type: - string (or Expression with resultType string). - :vartype experiment_name: JSON - :ivar ml_pipeline_parameters: Key,Value pairs to be passed to the published Azure ML pipeline - endpoint. Keys must match the names of pipeline parameters defined in the published pipeline. - Values will be passed in the ParameterAssignments property of the published pipeline execution - request. Type: object with key value pairs (or Expression with resultType object). - :vartype ml_pipeline_parameters: JSON - :ivar data_path_assignments: Dictionary used for changing data path assignments without - retraining. Values will be passed in the dataPathAssignments property of the published pipeline - execution request. Type: object (or Expression with resultType object). - :vartype data_path_assignments: JSON - :ivar ml_parent_run_id: The parent Azure ML Service pipeline run id. This information will be - passed in the ParentRunId property of the published pipeline execution request. Type: string - (or Expression with resultType string). - :vartype ml_parent_run_id: JSON - :ivar continue_on_step_failure: Whether to continue execution of other steps in the PipelineRun - if a step fails. This information will be passed in the continueOnStepFailure property of the - published pipeline execution request. Type: boolean (or Expression with resultType boolean). - :vartype continue_on_step_failure: JSON - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "ml_pipeline_id": {"key": "typeProperties.mlPipelineId", "type": "object"}, - "ml_pipeline_endpoint_id": {"key": "typeProperties.mlPipelineEndpointId", "type": "object"}, - "version": {"key": "typeProperties.version", "type": "object"}, - "experiment_name": {"key": "typeProperties.experimentName", "type": "object"}, - "ml_pipeline_parameters": {"key": "typeProperties.mlPipelineParameters", "type": "object"}, - "data_path_assignments": {"key": "typeProperties.dataPathAssignments", "type": "object"}, - "ml_parent_run_id": {"key": "typeProperties.mlParentRunId", "type": "object"}, - "continue_on_step_failure": {"key": "typeProperties.continueOnStepFailure", "type": "object"}, - } - - def __init__( - self, - *, - name: str, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - ml_pipeline_id: Optional[JSON] = None, - ml_pipeline_endpoint_id: Optional[JSON] = None, - version: Optional[JSON] = None, - experiment_name: Optional[JSON] = None, - ml_pipeline_parameters: Optional[JSON] = None, - data_path_assignments: Optional[JSON] = None, - ml_parent_run_id: Optional[JSON] = None, - continue_on_step_failure: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword ml_pipeline_id: ID of the published Azure ML pipeline. Type: string (or Expression - with resultType string). - :paramtype ml_pipeline_id: JSON - :keyword ml_pipeline_endpoint_id: ID of the published Azure ML pipeline endpoint. Type: string - (or Expression with resultType string). - :paramtype ml_pipeline_endpoint_id: JSON - :keyword version: Version of the published Azure ML pipeline endpoint. Type: string (or - Expression with resultType string). - :paramtype version: JSON - :keyword experiment_name: Run history experiment name of the pipeline run. This information - will be passed in the ExperimentName property of the published pipeline execution request. - Type: string (or Expression with resultType string). - :paramtype experiment_name: JSON - :keyword ml_pipeline_parameters: Key,Value pairs to be passed to the published Azure ML - pipeline endpoint. Keys must match the names of pipeline parameters defined in the published - pipeline. Values will be passed in the ParameterAssignments property of the published pipeline - execution request. Type: object with key value pairs (or Expression with resultType object). - :paramtype ml_pipeline_parameters: JSON - :keyword data_path_assignments: Dictionary used for changing data path assignments without - retraining. Values will be passed in the dataPathAssignments property of the published pipeline - execution request. Type: object (or Expression with resultType object). - :paramtype data_path_assignments: JSON - :keyword ml_parent_run_id: The parent Azure ML Service pipeline run id. This information will - be passed in the ParentRunId property of the published pipeline execution request. Type: string - (or Expression with resultType string). - :paramtype ml_parent_run_id: JSON - :keyword continue_on_step_failure: Whether to continue execution of other steps in the - PipelineRun if a step fails. This information will be passed in the continueOnStepFailure - property of the published pipeline execution request. Type: boolean (or Expression with - resultType boolean). - :paramtype continue_on_step_failure: JSON - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "AzureMLExecutePipeline" - self.ml_pipeline_id = ml_pipeline_id - self.ml_pipeline_endpoint_id = ml_pipeline_endpoint_id - self.version = version - self.experiment_name = experiment_name - self.ml_pipeline_parameters = ml_pipeline_parameters - self.data_path_assignments = data_path_assignments - self.ml_parent_run_id = ml_parent_run_id - self.continue_on_step_failure = continue_on_step_failure - - -class AzureMLLinkedService(LinkedService): - """Azure ML Studio Web Service linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar ml_endpoint: The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. - Type: string (or Expression with resultType string). Required. - :vartype ml_endpoint: JSON - :ivar api_key: The API key for accessing the Azure ML model endpoint. Required. - :vartype api_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar update_resource_endpoint: The Update Resource REST URL for an Azure ML Studio Web Service - endpoint. Type: string (or Expression with resultType string). - :vartype update_resource_endpoint: JSON - :ivar service_principal_id: The ID of the service principal used to authenticate against the - ARM-based updateResourceEndpoint of an Azure ML Studio web service. Type: string (or Expression - with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The key of the service principal used to authenticate against the - ARM-based updateResourceEndpoint of an Azure ML Studio web service. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string - (or Expression with resultType string). - :vartype tenant: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar authentication: Type of authentication (Required to specify MSI) used to connect to - AzureML. Type: string (or Expression with resultType string). - :vartype authentication: JSON - """ - - _validation = { - "type": {"required": True}, - "ml_endpoint": {"required": True}, - "api_key": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "ml_endpoint": {"key": "typeProperties.mlEndpoint", "type": "object"}, - "api_key": {"key": "typeProperties.apiKey", "type": "SecretBase"}, - "update_resource_endpoint": {"key": "typeProperties.updateResourceEndpoint", "type": "object"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "authentication": {"key": "typeProperties.authentication", "type": "object"}, - } - - def __init__( - self, - *, - ml_endpoint: JSON, - api_key: "_models.SecretBase", - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - update_resource_endpoint: Optional[JSON] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - tenant: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - authentication: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword ml_endpoint: The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. - Type: string (or Expression with resultType string). Required. - :paramtype ml_endpoint: JSON - :keyword api_key: The API key for accessing the Azure ML model endpoint. Required. - :paramtype api_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword update_resource_endpoint: The Update Resource REST URL for an Azure ML Studio Web - Service endpoint. Type: string (or Expression with resultType string). - :paramtype update_resource_endpoint: JSON - :keyword service_principal_id: The ID of the service principal used to authenticate against the - ARM-based updateResourceEndpoint of an Azure ML Studio web service. Type: string (or Expression - with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The key of the service principal used to authenticate against - the ARM-based updateResourceEndpoint of an Azure ML Studio web service. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: The name or ID of the tenant to which the service principal belongs. Type: - string (or Expression with resultType string). - :paramtype tenant: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword authentication: Type of authentication (Required to specify MSI) used to connect to - AzureML. Type: string (or Expression with resultType string). - :paramtype authentication: JSON - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureML" - self.ml_endpoint = ml_endpoint - self.api_key = api_key - self.update_resource_endpoint = update_resource_endpoint - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.tenant = tenant - self.encrypted_credential = encrypted_credential - self.authentication = authentication - - -class AzureMLServiceLinkedService(LinkedService): - """Azure ML Service linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar subscription_id: Azure ML Service workspace subscription ID. Type: string (or Expression - with resultType string). Required. - :vartype subscription_id: JSON - :ivar resource_group_name: Azure ML Service workspace resource group name. Type: string (or - Expression with resultType string). Required. - :vartype resource_group_name: JSON - :ivar ml_workspace_name: Azure ML Service workspace name. Type: string (or Expression with - resultType string). Required. - :vartype ml_workspace_name: JSON - :ivar authentication: Type of authentication (Required to specify MSI) used to connect to - AzureML. Type: string (or Expression with resultType string). - :vartype authentication: JSON - :ivar service_principal_id: The ID of the service principal used to authenticate against the - endpoint of a published Azure ML Service pipeline. Type: string (or Expression with resultType - string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The key of the service principal used to authenticate against the - endpoint of a published Azure ML Service pipeline. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string - (or Expression with resultType string). - :vartype tenant: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "subscription_id": {"required": True}, - "resource_group_name": {"required": True}, - "ml_workspace_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "subscription_id": {"key": "typeProperties.subscriptionId", "type": "object"}, - "resource_group_name": {"key": "typeProperties.resourceGroupName", "type": "object"}, - "ml_workspace_name": {"key": "typeProperties.mlWorkspaceName", "type": "object"}, - "authentication": {"key": "typeProperties.authentication", "type": "object"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - subscription_id: JSON, - resource_group_name: JSON, - ml_workspace_name: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - authentication: Optional[JSON] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - tenant: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword subscription_id: Azure ML Service workspace subscription ID. Type: string (or - Expression with resultType string). Required. - :paramtype subscription_id: JSON - :keyword resource_group_name: Azure ML Service workspace resource group name. Type: string (or - Expression with resultType string). Required. - :paramtype resource_group_name: JSON - :keyword ml_workspace_name: Azure ML Service workspace name. Type: string (or Expression with - resultType string). Required. - :paramtype ml_workspace_name: JSON - :keyword authentication: Type of authentication (Required to specify MSI) used to connect to - AzureML. Type: string (or Expression with resultType string). - :paramtype authentication: JSON - :keyword service_principal_id: The ID of the service principal used to authenticate against the - endpoint of a published Azure ML Service pipeline. Type: string (or Expression with resultType - string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The key of the service principal used to authenticate against - the endpoint of a published Azure ML Service pipeline. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: The name or ID of the tenant to which the service principal belongs. Type: - string (or Expression with resultType string). - :paramtype tenant: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureMLService" - self.subscription_id = subscription_id - self.resource_group_name = resource_group_name - self.ml_workspace_name = ml_workspace_name - self.authentication = authentication - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.tenant = tenant - self.encrypted_credential = encrypted_credential - - -class AzureMLUpdateResourceActivity(ExecutionActivity): - """Azure ML Update Resource management activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar trained_model_name: Name of the Trained Model module in the Web Service experiment to be - updated. Type: string (or Expression with resultType string). Required. - :vartype trained_model_name: JSON - :ivar trained_model_linked_service_name: Name of Azure Storage linked service holding the - .ilearner file that will be uploaded by the update operation. Required. - :vartype trained_model_linked_service_name: - ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar trained_model_file_path: The relative file path in trainedModelLinkedService to represent - the .ilearner file that will be uploaded by the update operation. Type: string (or Expression - with resultType string). Required. - :vartype trained_model_file_path: JSON - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "trained_model_name": {"required": True}, - "trained_model_linked_service_name": {"required": True}, - "trained_model_file_path": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "trained_model_name": {"key": "typeProperties.trainedModelName", "type": "object"}, - "trained_model_linked_service_name": { - "key": "typeProperties.trainedModelLinkedServiceName", - "type": "LinkedServiceReference", - }, - "trained_model_file_path": {"key": "typeProperties.trainedModelFilePath", "type": "object"}, - } - - def __init__( - self, - *, - name: str, - trained_model_name: JSON, - trained_model_linked_service_name: "_models.LinkedServiceReference", - trained_model_file_path: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword trained_model_name: Name of the Trained Model module in the Web Service experiment to - be updated. Type: string (or Expression with resultType string). Required. - :paramtype trained_model_name: JSON - :keyword trained_model_linked_service_name: Name of Azure Storage linked service holding the - .ilearner file that will be uploaded by the update operation. Required. - :paramtype trained_model_linked_service_name: - ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword trained_model_file_path: The relative file path in trainedModelLinkedService to - represent the .ilearner file that will be uploaded by the update operation. Type: string (or - Expression with resultType string). Required. - :paramtype trained_model_file_path: JSON - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "AzureMLUpdateResource" - self.trained_model_name = trained_model_name - self.trained_model_linked_service_name = trained_model_linked_service_name - self.trained_model_file_path = trained_model_file_path - - -class AzureMLWebServiceFile(_serialization.Model): - """Azure ML WebService Input/Output file. - - All required parameters must be populated in order to send to server. - - :ivar file_path: The relative file path, including container name, in the Azure Blob Storage - specified by the LinkedService. Type: string (or Expression with resultType string). Required. - :vartype file_path: JSON - :ivar linked_service_name: Reference to an Azure Storage LinkedService, where Azure ML - WebService Input/Output file located. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - """ - - _validation = { - "file_path": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "file_path": {"key": "filePath", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - } - - def __init__( - self, *, file_path: JSON, linked_service_name: "_models.LinkedServiceReference", **kwargs: Any - ) -> None: - """ - :keyword file_path: The relative file path, including container name, in the Azure Blob Storage - specified by the LinkedService. Type: string (or Expression with resultType string). Required. - :paramtype file_path: JSON - :keyword linked_service_name: Reference to an Azure Storage LinkedService, where Azure ML - WebService Input/Output file located. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - """ - super().__init__(**kwargs) - self.file_path = file_path - self.linked_service_name = linked_service_name - - -class AzureMySqlLinkedService(LinkedService): - """Azure MySQL database linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. Required. - :vartype connection_string: JSON - :ivar password: The Azure key vault secret reference of password in connection string. - :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "connection_string": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - connection_string: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - password: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. Required. - :paramtype connection_string: JSON - :keyword password: The Azure key vault secret reference of password in connection string. - :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureMySql" - self.connection_string = connection_string - self.password = password - self.encrypted_credential = encrypted_credential - - -class AzureMySqlSink(CopySink): - """A copy activity Azure MySql sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar pre_copy_script: A query to execute before starting the copy. Type: string (or Expression - with resultType string). - :vartype pre_copy_script: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "pre_copy_script": {"key": "preCopyScript", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - pre_copy_script: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword pre_copy_script: A query to execute before starting the copy. Type: string (or - Expression with resultType string). - :paramtype pre_copy_script: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AzureMySqlSink" - self.pre_copy_script = pre_copy_script - - -class AzureMySqlSource(TabularSource): - """A copy activity Azure MySQL source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: Database query. Type: string (or Expression with resultType string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: Database query. Type: string (or Expression with resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "AzureMySqlSource" - self.query = query - - -class AzureMySqlTableDataset(Dataset): - """The Azure MySQL database dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The Azure MySQL database table name. Type: string (or Expression with - resultType string). - :vartype table_name: JSON - :ivar table: The name of Azure MySQL database table. Type: string (or Expression with - resultType string). - :vartype table: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - table: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The Azure MySQL database table name. Type: string (or Expression with - resultType string). - :paramtype table_name: JSON - :keyword table: The name of Azure MySQL database table. Type: string (or Expression with - resultType string). - :paramtype table: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "AzureMySqlTable" - self.table_name = table_name - self.table = table - - -class AzurePostgreSqlLinkedService(LinkedService): - """Azure PostgreSQL linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: An ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar server: Server name for connection. Type: string. - :vartype server: JSON - :ivar port: The port for the connection. Type: integer. - :vartype port: JSON - :ivar username: Username for authentication. Type: string. - :vartype username: JSON - :ivar database: Database name for connection. Type: string. - :vartype database: JSON - :ivar ssl_mode: SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: - require, 4: verify-ca, 5: verify-full. Type: integer. - :vartype ssl_mode: JSON - :ivar timeout: The time to wait (in seconds) while trying to establish a connection before - terminating the attempt and generating an error. Type: integer. - :vartype timeout: JSON - :ivar command_timeout: The time to wait (in seconds) while trying to execute a command before - terminating the attempt and generating an error. Set to zero for infinity. Type: integer. - :vartype command_timeout: JSON - :ivar trust_server_certificate: Whether to trust the server certificate without validating it. - Type: boolean. - :vartype trust_server_certificate: JSON - :ivar read_buffer_size: Determines the size of the internal buffer uses when reading. - Increasing may improve performance if transferring large values from the database. Type: - integer. - :vartype read_buffer_size: JSON - :ivar timezone: Gets or sets the session timezone. Type: string. - :vartype timezone: JSON - :ivar encoding: Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL - string data. Type: string. - :vartype encoding: JSON - :ivar password: The Azure key vault secret reference of password in connection string. - :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar service_principal_id: The ID of the service principal used to authenticate against Azure - Database for PostgreSQL Flexible server. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The key of the service principal used to authenticate against - Azure Database for PostgreSQL Flexible server. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :vartype service_principal_credential_type: JSON - :ivar service_principal_embedded_cert: Specify the base64 encoded certificate of your - application registered in Azure Active Directory. Type: string (or Expression with resultType - string). - :vartype service_principal_embedded_cert: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_embedded_cert_password: Specify the password of your certificate if - your certificate has a password and you are using AadServicePrincipal authentication. Type: - string (or Expression with resultType string). - :vartype service_principal_embedded_cert_password: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string - (or Expression with resultType string). - :vartype tenant: JSON - :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed - values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data - factory regions’ cloud type. Type: string (or Expression with resultType string). - :vartype azure_cloud_type: JSON - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "ssl_mode": {"key": "typeProperties.sslMode", "type": "object"}, - "timeout": {"key": "typeProperties.timeout", "type": "object"}, - "command_timeout": {"key": "typeProperties.commandTimeout", "type": "object"}, - "trust_server_certificate": {"key": "typeProperties.trustServerCertificate", "type": "object"}, - "read_buffer_size": {"key": "typeProperties.readBufferSize", "type": "object"}, - "timezone": {"key": "typeProperties.timezone", "type": "object"}, - "encoding": {"key": "typeProperties.encoding", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, - "service_principal_embedded_cert": {"key": "typeProperties.servicePrincipalEmbeddedCert", "type": "SecretBase"}, - "service_principal_embedded_cert_password": { - "key": "typeProperties.servicePrincipalEmbeddedCertPassword", - "type": "SecretBase", - }, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "azure_cloud_type": {"key": "typeProperties.azureCloudType", "type": "object"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_string: Optional[JSON] = None, - server: Optional[JSON] = None, - port: Optional[JSON] = None, - username: Optional[JSON] = None, - database: Optional[JSON] = None, - ssl_mode: Optional[JSON] = None, - timeout: Optional[JSON] = None, - command_timeout: Optional[JSON] = None, - trust_server_certificate: Optional[JSON] = None, - read_buffer_size: Optional[JSON] = None, - timezone: Optional[JSON] = None, - encoding: Optional[JSON] = None, - password: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[str] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - service_principal_credential_type: Optional[JSON] = None, - service_principal_embedded_cert: Optional["_models.SecretBase"] = None, - service_principal_embedded_cert_password: Optional["_models.SecretBase"] = None, - tenant: Optional[JSON] = None, - azure_cloud_type: Optional[JSON] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: An ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword server: Server name for connection. Type: string. - :paramtype server: JSON - :keyword port: The port for the connection. Type: integer. - :paramtype port: JSON - :keyword username: Username for authentication. Type: string. - :paramtype username: JSON - :keyword database: Database name for connection. Type: string. - :paramtype database: JSON - :keyword ssl_mode: SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: - require, 4: verify-ca, 5: verify-full. Type: integer. - :paramtype ssl_mode: JSON - :keyword timeout: The time to wait (in seconds) while trying to establish a connection before - terminating the attempt and generating an error. Type: integer. - :paramtype timeout: JSON - :keyword command_timeout: The time to wait (in seconds) while trying to execute a command - before terminating the attempt and generating an error. Set to zero for infinity. Type: - integer. - :paramtype command_timeout: JSON - :keyword trust_server_certificate: Whether to trust the server certificate without validating - it. Type: boolean. - :paramtype trust_server_certificate: JSON - :keyword read_buffer_size: Determines the size of the internal buffer uses when reading. - Increasing may improve performance if transferring large values from the database. Type: - integer. - :paramtype read_buffer_size: JSON - :keyword timezone: Gets or sets the session timezone. Type: string. - :paramtype timezone: JSON - :keyword encoding: Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL - string data. Type: string. - :paramtype encoding: JSON - :keyword password: The Azure key vault secret reference of password in connection string. - :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword service_principal_id: The ID of the service principal used to authenticate against - Azure Database for PostgreSQL Flexible server. Type: string (or Expression with resultType - string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The key of the service principal used to authenticate against - Azure Database for PostgreSQL Flexible server. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :paramtype service_principal_credential_type: JSON - :keyword service_principal_embedded_cert: Specify the base64 encoded certificate of your - application registered in Azure Active Directory. Type: string (or Expression with resultType - string). - :paramtype service_principal_embedded_cert: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_embedded_cert_password: Specify the password of your certificate if - your certificate has a password and you are using AadServicePrincipal authentication. Type: - string (or Expression with resultType string). - :paramtype service_principal_embedded_cert_password: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: The name or ID of the tenant to which the service principal belongs. Type: - string (or Expression with resultType string). - :paramtype tenant: JSON - :keyword azure_cloud_type: Indicates the azure cloud type of the service principle auth. - Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is - the data factory regions’ cloud type. Type: string (or Expression with resultType string). - :paramtype azure_cloud_type: JSON - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzurePostgreSql" - self.connection_string = connection_string - self.server = server - self.port = port - self.username = username - self.database = database - self.ssl_mode = ssl_mode - self.timeout = timeout - self.command_timeout = command_timeout - self.trust_server_certificate = trust_server_certificate - self.read_buffer_size = read_buffer_size - self.timezone = timezone - self.encoding = encoding - self.password = password - self.encrypted_credential = encrypted_credential - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.service_principal_credential_type = service_principal_credential_type - self.service_principal_embedded_cert = service_principal_embedded_cert - self.service_principal_embedded_cert_password = service_principal_embedded_cert_password - self.tenant = tenant - self.azure_cloud_type = azure_cloud_type - self.credential = credential - - -class AzurePostgreSqlSink(CopySink): - """A copy activity Azure Database for PostgreSQL sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar pre_copy_script: A query to execute before starting the copy. Type: string (or Expression - with resultType string). - :vartype pre_copy_script: JSON - :ivar write_method: The write behavior for the operation. Default is Bulk Insert. Known values - are: "BulkInsert", "CopyCommand", and "Upsert". - :vartype write_method: str or ~azure.mgmt.datafactory.models.AzurePostgreSqlWriteMethodEnum - :ivar upsert_settings: Azure Database for PostgreSQL upsert option settings. - :vartype upsert_settings: ~azure.mgmt.datafactory.models.AzurePostgreSqlSinkUpsertSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "pre_copy_script": {"key": "preCopyScript", "type": "object"}, - "write_method": {"key": "writeMethod", "type": "str"}, - "upsert_settings": {"key": "upsertSettings", "type": "AzurePostgreSqlSinkUpsertSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - pre_copy_script: Optional[JSON] = None, - write_method: Optional[Union[str, "_models.AzurePostgreSqlWriteMethodEnum"]] = None, - upsert_settings: Optional["_models.AzurePostgreSqlSinkUpsertSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword pre_copy_script: A query to execute before starting the copy. Type: string (or - Expression with resultType string). - :paramtype pre_copy_script: JSON - :keyword write_method: The write behavior for the operation. Default is Bulk Insert. Known - values are: "BulkInsert", "CopyCommand", and "Upsert". - :paramtype write_method: str or ~azure.mgmt.datafactory.models.AzurePostgreSqlWriteMethodEnum - :keyword upsert_settings: Azure Database for PostgreSQL upsert option settings. - :paramtype upsert_settings: ~azure.mgmt.datafactory.models.AzurePostgreSqlSinkUpsertSettings - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AzurePostgreSqlSink" - self.pre_copy_script = pre_copy_script - self.write_method = write_method - self.upsert_settings = upsert_settings - - -class AzurePostgreSqlSinkUpsertSettings(_serialization.Model): - """Azure Database for PostgreSQL upsert option settings. - - :ivar keys: Key column names for unique row identification. Type: array of strings (or - Expression with resultType array of strings). - :vartype keys: JSON - """ - - _attribute_map = { - "keys": {"key": "keys", "type": "object"}, - } - - def __init__(self, *, keys: Optional[JSON] = None, **kwargs: Any) -> None: - """ - :keyword keys: Key column names for unique row identification. Type: array of strings (or - Expression with resultType array of strings). - :paramtype keys: JSON - """ - super().__init__(**kwargs) - self.keys = keys - - -class AzurePostgreSqlSource(TabularSource): - """A copy activity Azure Database for PostgreSQL source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "AzurePostgreSqlSource" - self.query = query - - -class AzurePostgreSqlTableDataset(Dataset): - """Azure PostgreSQL dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name of the Azure PostgreSQL database which includes both schema - and table. Type: string (or Expression with resultType string). - :vartype table_name: JSON - :ivar table: The table name of the Azure PostgreSQL database. Type: string (or Expression with - resultType string). - :vartype table: JSON - :ivar schema_type_properties_schema: The schema name of the Azure PostgreSQL database. Type: - string (or Expression with resultType string). - :vartype schema_type_properties_schema: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - table: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name of the Azure PostgreSQL database which includes both schema - and table. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - :keyword table: The table name of the Azure PostgreSQL database. Type: string (or Expression - with resultType string). - :paramtype table: JSON - :keyword schema_type_properties_schema: The schema name of the Azure PostgreSQL database. Type: - string (or Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "AzurePostgreSqlTable" - self.table_name = table_name - self.table = table - self.schema_type_properties_schema = schema_type_properties_schema - - -class AzureQueueSink(CopySink): - """A copy activity Azure Queue sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AzureQueueSink" - - -class AzureSearchIndexDataset(Dataset): - """The Azure Search Index. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar index_name: The name of the Azure Search Index. Type: string (or Expression with - resultType string). Required. - :vartype index_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - "index_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "index_name": {"key": "typeProperties.indexName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - index_name: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword index_name: The name of the Azure Search Index. Type: string (or Expression with - resultType string). Required. - :paramtype index_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "AzureSearchIndex" - self.index_name = index_name - - -class AzureSearchIndexSink(CopySink): - """A copy activity Azure Search Index sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar write_behavior: Specify the write behavior when upserting documents into Azure Search - Index. Known values are: "Merge" and "Upload". - :vartype write_behavior: str or - ~azure.mgmt.datafactory.models.AzureSearchIndexWriteBehaviorType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - write_behavior: Optional[Union[str, "_models.AzureSearchIndexWriteBehaviorType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword write_behavior: Specify the write behavior when upserting documents into Azure Search - Index. Known values are: "Merge" and "Upload". - :paramtype write_behavior: str or - ~azure.mgmt.datafactory.models.AzureSearchIndexWriteBehaviorType - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AzureSearchIndexSink" - self.write_behavior = write_behavior - - -class AzureSearchLinkedService(LinkedService): - """Linked service for Windows Azure Search Service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar url: URL for Azure Search service. Type: string (or Expression with resultType string). - Required. - :vartype url: JSON - :ivar key: Admin Key for Azure Search service. - :vartype key: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "url": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "url": {"key": "typeProperties.url", "type": "object"}, - "key": {"key": "typeProperties.key", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - url: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - key: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword url: URL for Azure Search service. Type: string (or Expression with resultType - string). Required. - :paramtype url: JSON - :keyword key: Admin Key for Azure Search service. - :paramtype key: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureSearch" - self.url = url - self.key = key - self.encrypted_credential = encrypted_credential - - -class AzureSqlDatabaseLinkedService(LinkedService): - """Microsoft Azure SQL Database linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :vartype server: JSON - :ivar database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :vartype database: JSON - :ivar encrypt: Indicate whether TLS encryption is required for all data sent between the client - and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :vartype encrypt: JSON - :ivar trust_server_certificate: Indicate whether the channel will be encrypted while bypassing - walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype trust_server_certificate: JSON - :ivar host_name_in_certificate: The host name to use when validating the server certificate for - the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :vartype host_name_in_certificate: JSON - :ivar application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :vartype application_intent: JSON - :ivar connect_timeout: The length of time (in seconds) to wait for a connection to the server - before terminating the attempt and generating an error, used by recommended version. Type: - integer (or Expression with resultType integer). - :vartype connect_timeout: JSON - :ivar connect_retry_count: The number of re-connections attempted after identifying that there - was an idle connection failure, used by recommended version. This must be an integer between 0 - and 255. Type: integer (or Expression with resultType integer). - :vartype connect_retry_count: JSON - :ivar connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :vartype connect_retry_interval: JSON - :ivar load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype load_balance_timeout: JSON - :ivar command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype command_timeout: JSON - :ivar integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :vartype integrated_security: JSON - :ivar failover_partner: The name or address of the partner server to connect to if the primary - server is down, used by recommended version. Type: string (or Expression with resultType - string). - :vartype failover_partner: JSON - :ivar max_pool_size: The maximum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype max_pool_size: JSON - :ivar min_pool_size: The minimum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype min_pool_size: JSON - :ivar multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :vartype multiple_active_result_sets: JSON - :ivar multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype multi_subnet_failover: JSON - :ivar packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :vartype packet_size: JSON - :ivar pooling: Indicate whether the connection will be pooled or explicitly opened every time - that the connection is requested, used by recommended version. Type: Boolean (or Expression - with resultType boolean). - :vartype pooling: JSON - :ivar connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar authentication_type: The type used for authentication. Type: string. Known values are: - "SQL", "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". - :vartype authentication_type: str or - ~azure.mgmt.datafactory.models.AzureSqlDatabaseAuthenticationType - :ivar user_name: The user name to be used when connecting to server. Type: string (or - Expression with resultType string). - :vartype user_name: JSON - :ivar password: The Azure key vault secret reference of password in connection string. - :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar service_principal_id: The ID of the service principal used to authenticate against Azure - SQL Database. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The key of the service principal used to authenticate against - Azure SQL Database. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :vartype service_principal_credential_type: JSON - :ivar service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string - (or Expression with resultType string). - :vartype tenant: JSON - :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed - values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data - factory regions’ cloud type. Type: string (or Expression with resultType string). - :vartype azure_cloud_type: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar always_encrypted_settings: Sql always encrypted properties. - :vartype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "encrypt": {"key": "typeProperties.encrypt", "type": "object"}, - "trust_server_certificate": {"key": "typeProperties.trustServerCertificate", "type": "object"}, - "host_name_in_certificate": {"key": "typeProperties.hostNameInCertificate", "type": "object"}, - "application_intent": {"key": "typeProperties.applicationIntent", "type": "object"}, - "connect_timeout": {"key": "typeProperties.connectTimeout", "type": "object"}, - "connect_retry_count": {"key": "typeProperties.connectRetryCount", "type": "object"}, - "connect_retry_interval": {"key": "typeProperties.connectRetryInterval", "type": "object"}, - "load_balance_timeout": {"key": "typeProperties.loadBalanceTimeout", "type": "object"}, - "command_timeout": {"key": "typeProperties.commandTimeout", "type": "object"}, - "integrated_security": {"key": "typeProperties.integratedSecurity", "type": "object"}, - "failover_partner": {"key": "typeProperties.failoverPartner", "type": "object"}, - "max_pool_size": {"key": "typeProperties.maxPoolSize", "type": "object"}, - "min_pool_size": {"key": "typeProperties.minPoolSize", "type": "object"}, - "multiple_active_result_sets": {"key": "typeProperties.multipleActiveResultSets", "type": "object"}, - "multi_subnet_failover": {"key": "typeProperties.multiSubnetFailover", "type": "object"}, - "packet_size": {"key": "typeProperties.packetSize", "type": "object"}, - "pooling": {"key": "typeProperties.pooling", "type": "object"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "AzureKeyVaultSecretReference"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, - "service_principal_credential": {"key": "typeProperties.servicePrincipalCredential", "type": "SecretBase"}, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "azure_cloud_type": {"key": "typeProperties.azureCloudType", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "always_encrypted_settings": { - "key": "typeProperties.alwaysEncryptedSettings", - "type": "SqlAlwaysEncryptedProperties", - }, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - server: Optional[JSON] = None, - database: Optional[JSON] = None, - encrypt: Optional[JSON] = None, - trust_server_certificate: Optional[JSON] = None, - host_name_in_certificate: Optional[JSON] = None, - application_intent: Optional[JSON] = None, - connect_timeout: Optional[JSON] = None, - connect_retry_count: Optional[JSON] = None, - connect_retry_interval: Optional[JSON] = None, - load_balance_timeout: Optional[JSON] = None, - command_timeout: Optional[JSON] = None, - integrated_security: Optional[JSON] = None, - failover_partner: Optional[JSON] = None, - max_pool_size: Optional[JSON] = None, - min_pool_size: Optional[JSON] = None, - multiple_active_result_sets: Optional[JSON] = None, - multi_subnet_failover: Optional[JSON] = None, - packet_size: Optional[JSON] = None, - pooling: Optional[JSON] = None, - connection_string: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.AzureSqlDatabaseAuthenticationType"]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.AzureKeyVaultSecretReference"] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - service_principal_credential_type: Optional[JSON] = None, - service_principal_credential: Optional["_models.SecretBase"] = None, - tenant: Optional[JSON] = None, - azure_cloud_type: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :paramtype server: JSON - :keyword database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :paramtype database: JSON - :keyword encrypt: Indicate whether TLS encryption is required for all data sent between the - client and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :paramtype encrypt: JSON - :keyword trust_server_certificate: Indicate whether the channel will be encrypted while - bypassing walking the certificate chain to validate trust, used by recommended version. Type: - Boolean (or Expression with resultType boolean). - :paramtype trust_server_certificate: JSON - :keyword host_name_in_certificate: The host name to use when validating the server certificate - for the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype host_name_in_certificate: JSON - :keyword application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :paramtype application_intent: JSON - :keyword connect_timeout: The length of time (in seconds) to wait for a connection to the - server before terminating the attempt and generating an error, used by recommended version. - Type: integer (or Expression with resultType integer). - :paramtype connect_timeout: JSON - :keyword connect_retry_count: The number of re-connections attempted after identifying that - there was an idle connection failure, used by recommended version. This must be an integer - between 0 and 255. Type: integer (or Expression with resultType integer). - :paramtype connect_retry_count: JSON - :keyword connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :paramtype connect_retry_interval: JSON - :keyword load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype load_balance_timeout: JSON - :keyword command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype command_timeout: JSON - :keyword integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :paramtype integrated_security: JSON - :keyword failover_partner: The name or address of the partner server to connect to if the - primary server is down, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype failover_partner: JSON - :keyword max_pool_size: The maximum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype max_pool_size: JSON - :keyword min_pool_size: The minimum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype min_pool_size: JSON - :keyword multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :paramtype multiple_active_result_sets: JSON - :keyword multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype multi_subnet_failover: JSON - :keyword packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :paramtype packet_size: JSON - :keyword pooling: Indicate whether the connection will be pooled or explicitly opened every - time that the connection is requested, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype pooling: JSON - :keyword connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword authentication_type: The type used for authentication. Type: string. Known values are: - "SQL", "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.AzureSqlDatabaseAuthenticationType - :keyword user_name: The user name to be used when connecting to server. Type: string (or - Expression with resultType string). - :paramtype user_name: JSON - :keyword password: The Azure key vault secret reference of password in connection string. - :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword service_principal_id: The ID of the service principal used to authenticate against - Azure SQL Database. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The key of the service principal used to authenticate against - Azure SQL Database. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :paramtype service_principal_credential_type: JSON - :keyword service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :paramtype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: The name or ID of the tenant to which the service principal belongs. Type: - string (or Expression with resultType string). - :paramtype tenant: JSON - :keyword azure_cloud_type: Indicates the azure cloud type of the service principle auth. - Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is - the data factory regions’ cloud type. Type: string (or Expression with resultType string). - :paramtype azure_cloud_type: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword always_encrypted_settings: Sql always encrypted properties. - :paramtype always_encrypted_settings: - ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureSqlDatabase" - self.server = server - self.database = database - self.encrypt = encrypt - self.trust_server_certificate = trust_server_certificate - self.host_name_in_certificate = host_name_in_certificate - self.application_intent = application_intent - self.connect_timeout = connect_timeout - self.connect_retry_count = connect_retry_count - self.connect_retry_interval = connect_retry_interval - self.load_balance_timeout = load_balance_timeout - self.command_timeout = command_timeout - self.integrated_security = integrated_security - self.failover_partner = failover_partner - self.max_pool_size = max_pool_size - self.min_pool_size = min_pool_size - self.multiple_active_result_sets = multiple_active_result_sets - self.multi_subnet_failover = multi_subnet_failover - self.packet_size = packet_size - self.pooling = pooling - self.connection_string = connection_string - self.authentication_type = authentication_type - self.user_name = user_name - self.password = password - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.service_principal_credential_type = service_principal_credential_type - self.service_principal_credential = service_principal_credential - self.tenant = tenant - self.azure_cloud_type = azure_cloud_type - self.encrypted_credential = encrypted_credential - self.always_encrypted_settings = always_encrypted_settings - self.credential = credential - - -class AzureSqlDatabaseLinkedServiceTypeProperties( - SqlServerBaseLinkedServiceTypeProperties -): # pylint: disable=name-too-long - """Azure SQL Database linked service properties. - - :ivar server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :vartype server: JSON - :ivar database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :vartype database: JSON - :ivar encrypt: Indicate whether TLS encryption is required for all data sent between the client - and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :vartype encrypt: JSON - :ivar trust_server_certificate: Indicate whether the channel will be encrypted while bypassing - walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype trust_server_certificate: JSON - :ivar host_name_in_certificate: The host name to use when validating the server certificate for - the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :vartype host_name_in_certificate: JSON - :ivar application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :vartype application_intent: JSON - :ivar connect_timeout: The length of time (in seconds) to wait for a connection to the server - before terminating the attempt and generating an error, used by recommended version. Type: - integer (or Expression with resultType integer). - :vartype connect_timeout: JSON - :ivar connect_retry_count: The number of re-connections attempted after identifying that there - was an idle connection failure, used by recommended version. This must be an integer between 0 - and 255. Type: integer (or Expression with resultType integer). - :vartype connect_retry_count: JSON - :ivar connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :vartype connect_retry_interval: JSON - :ivar load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype load_balance_timeout: JSON - :ivar command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype command_timeout: JSON - :ivar integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :vartype integrated_security: JSON - :ivar failover_partner: The name or address of the partner server to connect to if the primary - server is down, used by recommended version. Type: string (or Expression with resultType - string). - :vartype failover_partner: JSON - :ivar max_pool_size: The maximum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype max_pool_size: JSON - :ivar min_pool_size: The minimum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype min_pool_size: JSON - :ivar multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :vartype multiple_active_result_sets: JSON - :ivar multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype multi_subnet_failover: JSON - :ivar packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :vartype packet_size: JSON - :ivar pooling: Indicate whether the connection will be pooled or explicitly opened every time - that the connection is requested, used by recommended version. Type: Boolean (or Expression - with resultType boolean). - :vartype pooling: JSON - :ivar connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar authentication_type: The type used for authentication. Type: string. Known values are: - "SQL", "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". - :vartype authentication_type: str or - ~azure.mgmt.datafactory.models.AzureSqlDatabaseAuthenticationType - :ivar user_name: The user name to be used when connecting to server. Type: string (or - Expression with resultType string). - :vartype user_name: JSON - :ivar password: The Azure key vault secret reference of password in connection string. - :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar service_principal_id: The ID of the service principal used to authenticate against Azure - SQL Database. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The key of the service principal used to authenticate against - Azure SQL Database. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :vartype service_principal_credential_type: JSON - :ivar service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string - (or Expression with resultType string). - :vartype tenant: JSON - :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed - values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data - factory regions’ cloud type. Type: string (or Expression with resultType string). - :vartype azure_cloud_type: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar always_encrypted_settings: Sql always encrypted properties. - :vartype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _attribute_map = { - "server": {"key": "server", "type": "object"}, - "database": {"key": "database", "type": "object"}, - "encrypt": {"key": "encrypt", "type": "object"}, - "trust_server_certificate": {"key": "trustServerCertificate", "type": "object"}, - "host_name_in_certificate": {"key": "hostNameInCertificate", "type": "object"}, - "application_intent": {"key": "applicationIntent", "type": "object"}, - "connect_timeout": {"key": "connectTimeout", "type": "object"}, - "connect_retry_count": {"key": "connectRetryCount", "type": "object"}, - "connect_retry_interval": {"key": "connectRetryInterval", "type": "object"}, - "load_balance_timeout": {"key": "loadBalanceTimeout", "type": "object"}, - "command_timeout": {"key": "commandTimeout", "type": "object"}, - "integrated_security": {"key": "integratedSecurity", "type": "object"}, - "failover_partner": {"key": "failoverPartner", "type": "object"}, - "max_pool_size": {"key": "maxPoolSize", "type": "object"}, - "min_pool_size": {"key": "minPoolSize", "type": "object"}, - "multiple_active_result_sets": {"key": "multipleActiveResultSets", "type": "object"}, - "multi_subnet_failover": {"key": "multiSubnetFailover", "type": "object"}, - "packet_size": {"key": "packetSize", "type": "object"}, - "pooling": {"key": "pooling", "type": "object"}, - "connection_string": {"key": "connectionString", "type": "object"}, - "authentication_type": {"key": "authenticationType", "type": "str"}, - "user_name": {"key": "userName", "type": "object"}, - "password": {"key": "password", "type": "AzureKeyVaultSecretReference"}, - "service_principal_id": {"key": "servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "servicePrincipalKey", "type": "SecretBase"}, - "service_principal_credential_type": {"key": "servicePrincipalCredentialType", "type": "object"}, - "service_principal_credential": {"key": "servicePrincipalCredential", "type": "SecretBase"}, - "tenant": {"key": "tenant", "type": "object"}, - "azure_cloud_type": {"key": "azureCloudType", "type": "object"}, - "encrypted_credential": {"key": "encryptedCredential", "type": "str"}, - "always_encrypted_settings": {"key": "alwaysEncryptedSettings", "type": "SqlAlwaysEncryptedProperties"}, - "credential": {"key": "credential", "type": "CredentialReference"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - server: Optional[JSON] = None, - database: Optional[JSON] = None, - encrypt: Optional[JSON] = None, - trust_server_certificate: Optional[JSON] = None, - host_name_in_certificate: Optional[JSON] = None, - application_intent: Optional[JSON] = None, - connect_timeout: Optional[JSON] = None, - connect_retry_count: Optional[JSON] = None, - connect_retry_interval: Optional[JSON] = None, - load_balance_timeout: Optional[JSON] = None, - command_timeout: Optional[JSON] = None, - integrated_security: Optional[JSON] = None, - failover_partner: Optional[JSON] = None, - max_pool_size: Optional[JSON] = None, - min_pool_size: Optional[JSON] = None, - multiple_active_result_sets: Optional[JSON] = None, - multi_subnet_failover: Optional[JSON] = None, - packet_size: Optional[JSON] = None, - pooling: Optional[JSON] = None, - connection_string: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.AzureSqlDatabaseAuthenticationType"]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.AzureKeyVaultSecretReference"] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - service_principal_credential_type: Optional[JSON] = None, - service_principal_credential: Optional["_models.SecretBase"] = None, - tenant: Optional[JSON] = None, - azure_cloud_type: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :paramtype server: JSON - :keyword database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :paramtype database: JSON - :keyword encrypt: Indicate whether TLS encryption is required for all data sent between the - client and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :paramtype encrypt: JSON - :keyword trust_server_certificate: Indicate whether the channel will be encrypted while - bypassing walking the certificate chain to validate trust, used by recommended version. Type: - Boolean (or Expression with resultType boolean). - :paramtype trust_server_certificate: JSON - :keyword host_name_in_certificate: The host name to use when validating the server certificate - for the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype host_name_in_certificate: JSON - :keyword application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :paramtype application_intent: JSON - :keyword connect_timeout: The length of time (in seconds) to wait for a connection to the - server before terminating the attempt and generating an error, used by recommended version. - Type: integer (or Expression with resultType integer). - :paramtype connect_timeout: JSON - :keyword connect_retry_count: The number of re-connections attempted after identifying that - there was an idle connection failure, used by recommended version. This must be an integer - between 0 and 255. Type: integer (or Expression with resultType integer). - :paramtype connect_retry_count: JSON - :keyword connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :paramtype connect_retry_interval: JSON - :keyword load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype load_balance_timeout: JSON - :keyword command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype command_timeout: JSON - :keyword integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :paramtype integrated_security: JSON - :keyword failover_partner: The name or address of the partner server to connect to if the - primary server is down, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype failover_partner: JSON - :keyword max_pool_size: The maximum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype max_pool_size: JSON - :keyword min_pool_size: The minimum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype min_pool_size: JSON - :keyword multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :paramtype multiple_active_result_sets: JSON - :keyword multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype multi_subnet_failover: JSON - :keyword packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :paramtype packet_size: JSON - :keyword pooling: Indicate whether the connection will be pooled or explicitly opened every - time that the connection is requested, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype pooling: JSON - :keyword connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword authentication_type: The type used for authentication. Type: string. Known values are: - "SQL", "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.AzureSqlDatabaseAuthenticationType - :keyword user_name: The user name to be used when connecting to server. Type: string (or - Expression with resultType string). - :paramtype user_name: JSON - :keyword password: The Azure key vault secret reference of password in connection string. - :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword service_principal_id: The ID of the service principal used to authenticate against - Azure SQL Database. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The key of the service principal used to authenticate against - Azure SQL Database. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :paramtype service_principal_credential_type: JSON - :keyword service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :paramtype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: The name or ID of the tenant to which the service principal belongs. Type: - string (or Expression with resultType string). - :paramtype tenant: JSON - :keyword azure_cloud_type: Indicates the azure cloud type of the service principle auth. - Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is - the data factory regions’ cloud type. Type: string (or Expression with resultType string). - :paramtype azure_cloud_type: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword always_encrypted_settings: Sql always encrypted properties. - :paramtype always_encrypted_settings: - ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - server=server, - database=database, - encrypt=encrypt, - trust_server_certificate=trust_server_certificate, - host_name_in_certificate=host_name_in_certificate, - application_intent=application_intent, - connect_timeout=connect_timeout, - connect_retry_count=connect_retry_count, - connect_retry_interval=connect_retry_interval, - load_balance_timeout=load_balance_timeout, - command_timeout=command_timeout, - integrated_security=integrated_security, - failover_partner=failover_partner, - max_pool_size=max_pool_size, - min_pool_size=min_pool_size, - multiple_active_result_sets=multiple_active_result_sets, - multi_subnet_failover=multi_subnet_failover, - packet_size=packet_size, - pooling=pooling, - **kwargs - ) - self.connection_string = connection_string - self.authentication_type = authentication_type - self.user_name = user_name - self.password = password - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.service_principal_credential_type = service_principal_credential_type - self.service_principal_credential = service_principal_credential - self.tenant = tenant - self.azure_cloud_type = azure_cloud_type - self.encrypted_credential = encrypted_credential - self.always_encrypted_settings = always_encrypted_settings - self.credential = credential - - -class AzureSqlDWLinkedService(LinkedService): - """Azure SQL Data Warehouse linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :vartype server: JSON - :ivar database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :vartype database: JSON - :ivar encrypt: Indicate whether TLS encryption is required for all data sent between the client - and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :vartype encrypt: JSON - :ivar trust_server_certificate: Indicate whether the channel will be encrypted while bypassing - walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype trust_server_certificate: JSON - :ivar host_name_in_certificate: The host name to use when validating the server certificate for - the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :vartype host_name_in_certificate: JSON - :ivar application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :vartype application_intent: JSON - :ivar connect_timeout: The length of time (in seconds) to wait for a connection to the server - before terminating the attempt and generating an error, used by recommended version. Type: - integer (or Expression with resultType integer). - :vartype connect_timeout: JSON - :ivar connect_retry_count: The number of re-connections attempted after identifying that there - was an idle connection failure, used by recommended version. This must be an integer between 0 - and 255. Type: integer (or Expression with resultType integer). - :vartype connect_retry_count: JSON - :ivar connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :vartype connect_retry_interval: JSON - :ivar load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype load_balance_timeout: JSON - :ivar command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype command_timeout: JSON - :ivar integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :vartype integrated_security: JSON - :ivar failover_partner: The name or address of the partner server to connect to if the primary - server is down, used by recommended version. Type: string (or Expression with resultType - string). - :vartype failover_partner: JSON - :ivar max_pool_size: The maximum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype max_pool_size: JSON - :ivar min_pool_size: The minimum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype min_pool_size: JSON - :ivar multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :vartype multiple_active_result_sets: JSON - :ivar multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype multi_subnet_failover: JSON - :ivar packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :vartype packet_size: JSON - :ivar pooling: Indicate whether the connection will be pooled or explicitly opened every time - that the connection is requested, used by recommended version. Type: Boolean (or Expression - with resultType boolean). - :vartype pooling: JSON - :ivar connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar authentication_type: The type used for authentication. Type: string. Known values are: - "SQL", "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". - :vartype authentication_type: str or - ~azure.mgmt.datafactory.models.AzureSqlDWAuthenticationType - :ivar user_name: The user name to be used when connecting to server. Type: string (or - Expression with resultType string). - :vartype user_name: JSON - :ivar password: The Azure key vault secret reference of password in connection string. - :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar service_principal_id: The ID of the service principal used to authenticate against Azure - SQL Data Warehouse. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The key of the service principal used to authenticate against - Azure SQL Data Warehouse. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :vartype service_principal_credential_type: JSON - :ivar service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string - (or Expression with resultType string). - :vartype tenant: JSON - :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed - values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data - factory regions’ cloud type. Type: string (or Expression with resultType string). - :vartype azure_cloud_type: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "encrypt": {"key": "typeProperties.encrypt", "type": "object"}, - "trust_server_certificate": {"key": "typeProperties.trustServerCertificate", "type": "object"}, - "host_name_in_certificate": {"key": "typeProperties.hostNameInCertificate", "type": "object"}, - "application_intent": {"key": "typeProperties.applicationIntent", "type": "object"}, - "connect_timeout": {"key": "typeProperties.connectTimeout", "type": "object"}, - "connect_retry_count": {"key": "typeProperties.connectRetryCount", "type": "object"}, - "connect_retry_interval": {"key": "typeProperties.connectRetryInterval", "type": "object"}, - "load_balance_timeout": {"key": "typeProperties.loadBalanceTimeout", "type": "object"}, - "command_timeout": {"key": "typeProperties.commandTimeout", "type": "object"}, - "integrated_security": {"key": "typeProperties.integratedSecurity", "type": "object"}, - "failover_partner": {"key": "typeProperties.failoverPartner", "type": "object"}, - "max_pool_size": {"key": "typeProperties.maxPoolSize", "type": "object"}, - "min_pool_size": {"key": "typeProperties.minPoolSize", "type": "object"}, - "multiple_active_result_sets": {"key": "typeProperties.multipleActiveResultSets", "type": "object"}, - "multi_subnet_failover": {"key": "typeProperties.multiSubnetFailover", "type": "object"}, - "packet_size": {"key": "typeProperties.packetSize", "type": "object"}, - "pooling": {"key": "typeProperties.pooling", "type": "object"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "AzureKeyVaultSecretReference"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, - "service_principal_credential": {"key": "typeProperties.servicePrincipalCredential", "type": "SecretBase"}, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "azure_cloud_type": {"key": "typeProperties.azureCloudType", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - server: Optional[JSON] = None, - database: Optional[JSON] = None, - encrypt: Optional[JSON] = None, - trust_server_certificate: Optional[JSON] = None, - host_name_in_certificate: Optional[JSON] = None, - application_intent: Optional[JSON] = None, - connect_timeout: Optional[JSON] = None, - connect_retry_count: Optional[JSON] = None, - connect_retry_interval: Optional[JSON] = None, - load_balance_timeout: Optional[JSON] = None, - command_timeout: Optional[JSON] = None, - integrated_security: Optional[JSON] = None, - failover_partner: Optional[JSON] = None, - max_pool_size: Optional[JSON] = None, - min_pool_size: Optional[JSON] = None, - multiple_active_result_sets: Optional[JSON] = None, - multi_subnet_failover: Optional[JSON] = None, - packet_size: Optional[JSON] = None, - pooling: Optional[JSON] = None, - connection_string: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.AzureSqlDWAuthenticationType"]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.AzureKeyVaultSecretReference"] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - service_principal_credential_type: Optional[JSON] = None, - service_principal_credential: Optional["_models.SecretBase"] = None, - tenant: Optional[JSON] = None, - azure_cloud_type: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :paramtype server: JSON - :keyword database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :paramtype database: JSON - :keyword encrypt: Indicate whether TLS encryption is required for all data sent between the - client and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :paramtype encrypt: JSON - :keyword trust_server_certificate: Indicate whether the channel will be encrypted while - bypassing walking the certificate chain to validate trust, used by recommended version. Type: - Boolean (or Expression with resultType boolean). - :paramtype trust_server_certificate: JSON - :keyword host_name_in_certificate: The host name to use when validating the server certificate - for the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype host_name_in_certificate: JSON - :keyword application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :paramtype application_intent: JSON - :keyword connect_timeout: The length of time (in seconds) to wait for a connection to the - server before terminating the attempt and generating an error, used by recommended version. - Type: integer (or Expression with resultType integer). - :paramtype connect_timeout: JSON - :keyword connect_retry_count: The number of re-connections attempted after identifying that - there was an idle connection failure, used by recommended version. This must be an integer - between 0 and 255. Type: integer (or Expression with resultType integer). - :paramtype connect_retry_count: JSON - :keyword connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :paramtype connect_retry_interval: JSON - :keyword load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype load_balance_timeout: JSON - :keyword command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype command_timeout: JSON - :keyword integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :paramtype integrated_security: JSON - :keyword failover_partner: The name or address of the partner server to connect to if the - primary server is down, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype failover_partner: JSON - :keyword max_pool_size: The maximum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype max_pool_size: JSON - :keyword min_pool_size: The minimum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype min_pool_size: JSON - :keyword multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :paramtype multiple_active_result_sets: JSON - :keyword multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype multi_subnet_failover: JSON - :keyword packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :paramtype packet_size: JSON - :keyword pooling: Indicate whether the connection will be pooled or explicitly opened every - time that the connection is requested, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype pooling: JSON - :keyword connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword authentication_type: The type used for authentication. Type: string. Known values are: - "SQL", "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.AzureSqlDWAuthenticationType - :keyword user_name: The user name to be used when connecting to server. Type: string (or - Expression with resultType string). - :paramtype user_name: JSON - :keyword password: The Azure key vault secret reference of password in connection string. - :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword service_principal_id: The ID of the service principal used to authenticate against - Azure SQL Data Warehouse. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The key of the service principal used to authenticate against - Azure SQL Data Warehouse. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :paramtype service_principal_credential_type: JSON - :keyword service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :paramtype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: The name or ID of the tenant to which the service principal belongs. Type: - string (or Expression with resultType string). - :paramtype tenant: JSON - :keyword azure_cloud_type: Indicates the azure cloud type of the service principle auth. - Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is - the data factory regions’ cloud type. Type: string (or Expression with resultType string). - :paramtype azure_cloud_type: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureSqlDW" - self.server = server - self.database = database - self.encrypt = encrypt - self.trust_server_certificate = trust_server_certificate - self.host_name_in_certificate = host_name_in_certificate - self.application_intent = application_intent - self.connect_timeout = connect_timeout - self.connect_retry_count = connect_retry_count - self.connect_retry_interval = connect_retry_interval - self.load_balance_timeout = load_balance_timeout - self.command_timeout = command_timeout - self.integrated_security = integrated_security - self.failover_partner = failover_partner - self.max_pool_size = max_pool_size - self.min_pool_size = min_pool_size - self.multiple_active_result_sets = multiple_active_result_sets - self.multi_subnet_failover = multi_subnet_failover - self.packet_size = packet_size - self.pooling = pooling - self.connection_string = connection_string - self.authentication_type = authentication_type - self.user_name = user_name - self.password = password - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.service_principal_credential_type = service_principal_credential_type - self.service_principal_credential = service_principal_credential - self.tenant = tenant - self.azure_cloud_type = azure_cloud_type - self.encrypted_credential = encrypted_credential - self.credential = credential - - -class AzureSqlDWLinkedServiceTypeProperties(SqlServerBaseLinkedServiceTypeProperties): - """Azure SQL Data Warehouse linked service properties. - - :ivar server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :vartype server: JSON - :ivar database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :vartype database: JSON - :ivar encrypt: Indicate whether TLS encryption is required for all data sent between the client - and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :vartype encrypt: JSON - :ivar trust_server_certificate: Indicate whether the channel will be encrypted while bypassing - walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype trust_server_certificate: JSON - :ivar host_name_in_certificate: The host name to use when validating the server certificate for - the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :vartype host_name_in_certificate: JSON - :ivar application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :vartype application_intent: JSON - :ivar connect_timeout: The length of time (in seconds) to wait for a connection to the server - before terminating the attempt and generating an error, used by recommended version. Type: - integer (or Expression with resultType integer). - :vartype connect_timeout: JSON - :ivar connect_retry_count: The number of re-connections attempted after identifying that there - was an idle connection failure, used by recommended version. This must be an integer between 0 - and 255. Type: integer (or Expression with resultType integer). - :vartype connect_retry_count: JSON - :ivar connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :vartype connect_retry_interval: JSON - :ivar load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype load_balance_timeout: JSON - :ivar command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype command_timeout: JSON - :ivar integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :vartype integrated_security: JSON - :ivar failover_partner: The name or address of the partner server to connect to if the primary - server is down, used by recommended version. Type: string (or Expression with resultType - string). - :vartype failover_partner: JSON - :ivar max_pool_size: The maximum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype max_pool_size: JSON - :ivar min_pool_size: The minimum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype min_pool_size: JSON - :ivar multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :vartype multiple_active_result_sets: JSON - :ivar multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype multi_subnet_failover: JSON - :ivar packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :vartype packet_size: JSON - :ivar pooling: Indicate whether the connection will be pooled or explicitly opened every time - that the connection is requested, used by recommended version. Type: Boolean (or Expression - with resultType boolean). - :vartype pooling: JSON - :ivar connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar authentication_type: The type used for authentication. Type: string. Known values are: - "SQL", "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". - :vartype authentication_type: str or - ~azure.mgmt.datafactory.models.AzureSqlDWAuthenticationType - :ivar user_name: The user name to be used when connecting to server. Type: string (or - Expression with resultType string). - :vartype user_name: JSON - :ivar password: The Azure key vault secret reference of password in connection string. - :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar service_principal_id: The ID of the service principal used to authenticate against Azure - SQL Data Warehouse. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The key of the service principal used to authenticate against - Azure SQL Data Warehouse. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :vartype service_principal_credential_type: JSON - :ivar service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string - (or Expression with resultType string). - :vartype tenant: JSON - :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed - values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data - factory regions’ cloud type. Type: string (or Expression with resultType string). - :vartype azure_cloud_type: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _attribute_map = { - "server": {"key": "server", "type": "object"}, - "database": {"key": "database", "type": "object"}, - "encrypt": {"key": "encrypt", "type": "object"}, - "trust_server_certificate": {"key": "trustServerCertificate", "type": "object"}, - "host_name_in_certificate": {"key": "hostNameInCertificate", "type": "object"}, - "application_intent": {"key": "applicationIntent", "type": "object"}, - "connect_timeout": {"key": "connectTimeout", "type": "object"}, - "connect_retry_count": {"key": "connectRetryCount", "type": "object"}, - "connect_retry_interval": {"key": "connectRetryInterval", "type": "object"}, - "load_balance_timeout": {"key": "loadBalanceTimeout", "type": "object"}, - "command_timeout": {"key": "commandTimeout", "type": "object"}, - "integrated_security": {"key": "integratedSecurity", "type": "object"}, - "failover_partner": {"key": "failoverPartner", "type": "object"}, - "max_pool_size": {"key": "maxPoolSize", "type": "object"}, - "min_pool_size": {"key": "minPoolSize", "type": "object"}, - "multiple_active_result_sets": {"key": "multipleActiveResultSets", "type": "object"}, - "multi_subnet_failover": {"key": "multiSubnetFailover", "type": "object"}, - "packet_size": {"key": "packetSize", "type": "object"}, - "pooling": {"key": "pooling", "type": "object"}, - "connection_string": {"key": "connectionString", "type": "object"}, - "authentication_type": {"key": "authenticationType", "type": "str"}, - "user_name": {"key": "userName", "type": "object"}, - "password": {"key": "password", "type": "AzureKeyVaultSecretReference"}, - "service_principal_id": {"key": "servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "servicePrincipalKey", "type": "SecretBase"}, - "service_principal_credential_type": {"key": "servicePrincipalCredentialType", "type": "object"}, - "service_principal_credential": {"key": "servicePrincipalCredential", "type": "SecretBase"}, - "tenant": {"key": "tenant", "type": "object"}, - "azure_cloud_type": {"key": "azureCloudType", "type": "object"}, - "encrypted_credential": {"key": "encryptedCredential", "type": "str"}, - "credential": {"key": "credential", "type": "CredentialReference"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - server: Optional[JSON] = None, - database: Optional[JSON] = None, - encrypt: Optional[JSON] = None, - trust_server_certificate: Optional[JSON] = None, - host_name_in_certificate: Optional[JSON] = None, - application_intent: Optional[JSON] = None, - connect_timeout: Optional[JSON] = None, - connect_retry_count: Optional[JSON] = None, - connect_retry_interval: Optional[JSON] = None, - load_balance_timeout: Optional[JSON] = None, - command_timeout: Optional[JSON] = None, - integrated_security: Optional[JSON] = None, - failover_partner: Optional[JSON] = None, - max_pool_size: Optional[JSON] = None, - min_pool_size: Optional[JSON] = None, - multiple_active_result_sets: Optional[JSON] = None, - multi_subnet_failover: Optional[JSON] = None, - packet_size: Optional[JSON] = None, - pooling: Optional[JSON] = None, - connection_string: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.AzureSqlDWAuthenticationType"]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.AzureKeyVaultSecretReference"] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - service_principal_credential_type: Optional[JSON] = None, - service_principal_credential: Optional["_models.SecretBase"] = None, - tenant: Optional[JSON] = None, - azure_cloud_type: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :paramtype server: JSON - :keyword database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :paramtype database: JSON - :keyword encrypt: Indicate whether TLS encryption is required for all data sent between the - client and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :paramtype encrypt: JSON - :keyword trust_server_certificate: Indicate whether the channel will be encrypted while - bypassing walking the certificate chain to validate trust, used by recommended version. Type: - Boolean (or Expression with resultType boolean). - :paramtype trust_server_certificate: JSON - :keyword host_name_in_certificate: The host name to use when validating the server certificate - for the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype host_name_in_certificate: JSON - :keyword application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :paramtype application_intent: JSON - :keyword connect_timeout: The length of time (in seconds) to wait for a connection to the - server before terminating the attempt and generating an error, used by recommended version. - Type: integer (or Expression with resultType integer). - :paramtype connect_timeout: JSON - :keyword connect_retry_count: The number of re-connections attempted after identifying that - there was an idle connection failure, used by recommended version. This must be an integer - between 0 and 255. Type: integer (or Expression with resultType integer). - :paramtype connect_retry_count: JSON - :keyword connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :paramtype connect_retry_interval: JSON - :keyword load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype load_balance_timeout: JSON - :keyword command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype command_timeout: JSON - :keyword integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :paramtype integrated_security: JSON - :keyword failover_partner: The name or address of the partner server to connect to if the - primary server is down, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype failover_partner: JSON - :keyword max_pool_size: The maximum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype max_pool_size: JSON - :keyword min_pool_size: The minimum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype min_pool_size: JSON - :keyword multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :paramtype multiple_active_result_sets: JSON - :keyword multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype multi_subnet_failover: JSON - :keyword packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :paramtype packet_size: JSON - :keyword pooling: Indicate whether the connection will be pooled or explicitly opened every - time that the connection is requested, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype pooling: JSON - :keyword connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword authentication_type: The type used for authentication. Type: string. Known values are: - "SQL", "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.AzureSqlDWAuthenticationType - :keyword user_name: The user name to be used when connecting to server. Type: string (or - Expression with resultType string). - :paramtype user_name: JSON - :keyword password: The Azure key vault secret reference of password in connection string. - :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword service_principal_id: The ID of the service principal used to authenticate against - Azure SQL Data Warehouse. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The key of the service principal used to authenticate against - Azure SQL Data Warehouse. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :paramtype service_principal_credential_type: JSON - :keyword service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :paramtype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: The name or ID of the tenant to which the service principal belongs. Type: - string (or Expression with resultType string). - :paramtype tenant: JSON - :keyword azure_cloud_type: Indicates the azure cloud type of the service principle auth. - Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is - the data factory regions’ cloud type. Type: string (or Expression with resultType string). - :paramtype azure_cloud_type: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - server=server, - database=database, - encrypt=encrypt, - trust_server_certificate=trust_server_certificate, - host_name_in_certificate=host_name_in_certificate, - application_intent=application_intent, - connect_timeout=connect_timeout, - connect_retry_count=connect_retry_count, - connect_retry_interval=connect_retry_interval, - load_balance_timeout=load_balance_timeout, - command_timeout=command_timeout, - integrated_security=integrated_security, - failover_partner=failover_partner, - max_pool_size=max_pool_size, - min_pool_size=min_pool_size, - multiple_active_result_sets=multiple_active_result_sets, - multi_subnet_failover=multi_subnet_failover, - packet_size=packet_size, - pooling=pooling, - **kwargs - ) - self.connection_string = connection_string - self.authentication_type = authentication_type - self.user_name = user_name - self.password = password - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.service_principal_credential_type = service_principal_credential_type - self.service_principal_credential = service_principal_credential - self.tenant = tenant - self.azure_cloud_type = azure_cloud_type - self.encrypted_credential = encrypted_credential - self.credential = credential - - -class AzureSqlDWTableDataset(Dataset): - """The Azure SQL Data Warehouse dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property will be retired. Please consider using schema + table - properties instead. - :vartype table_name: JSON - :ivar schema_type_properties_schema: The schema name of the Azure SQL Data Warehouse. Type: - string (or Expression with resultType string). - :vartype schema_type_properties_schema: JSON - :ivar table: The table name of the Azure SQL Data Warehouse. Type: string (or Expression with - resultType string). - :vartype table: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - table: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property will be retired. Please consider using schema + table - properties instead. - :paramtype table_name: JSON - :keyword schema_type_properties_schema: The schema name of the Azure SQL Data Warehouse. Type: - string (or Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - :keyword table: The table name of the Azure SQL Data Warehouse. Type: string (or Expression - with resultType string). - :paramtype table: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "AzureSqlDWTable" - self.table_name = table_name - self.schema_type_properties_schema = schema_type_properties_schema - self.table = table - - -class AzureSqlMILinkedService(LinkedService): - """Azure SQL Managed Instance linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :vartype server: JSON - :ivar database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :vartype database: JSON - :ivar encrypt: Indicate whether TLS encryption is required for all data sent between the client - and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :vartype encrypt: JSON - :ivar trust_server_certificate: Indicate whether the channel will be encrypted while bypassing - walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype trust_server_certificate: JSON - :ivar host_name_in_certificate: The host name to use when validating the server certificate for - the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :vartype host_name_in_certificate: JSON - :ivar application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :vartype application_intent: JSON - :ivar connect_timeout: The length of time (in seconds) to wait for a connection to the server - before terminating the attempt and generating an error, used by recommended version. Type: - integer (or Expression with resultType integer). - :vartype connect_timeout: JSON - :ivar connect_retry_count: The number of re-connections attempted after identifying that there - was an idle connection failure, used by recommended version. This must be an integer between 0 - and 255. Type: integer (or Expression with resultType integer). - :vartype connect_retry_count: JSON - :ivar connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :vartype connect_retry_interval: JSON - :ivar load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype load_balance_timeout: JSON - :ivar command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype command_timeout: JSON - :ivar integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :vartype integrated_security: JSON - :ivar failover_partner: The name or address of the partner server to connect to if the primary - server is down, used by recommended version. Type: string (or Expression with resultType - string). - :vartype failover_partner: JSON - :ivar max_pool_size: The maximum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype max_pool_size: JSON - :ivar min_pool_size: The minimum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype min_pool_size: JSON - :ivar multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :vartype multiple_active_result_sets: JSON - :ivar multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype multi_subnet_failover: JSON - :ivar packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :vartype packet_size: JSON - :ivar pooling: Indicate whether the connection will be pooled or explicitly opened every time - that the connection is requested, used by recommended version. Type: Boolean (or Expression - with resultType boolean). - :vartype pooling: JSON - :ivar connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar authentication_type: The type used for authentication. Type: string. Known values are: - "SQL", "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". - :vartype authentication_type: str or - ~azure.mgmt.datafactory.models.AzureSqlMIAuthenticationType - :ivar user_name: The user name to be used when connecting to server. Type: string (or - Expression with resultType string). - :vartype user_name: JSON - :ivar password: The Azure key vault secret reference of password in connection string. - :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar service_principal_id: The ID of the service principal used to authenticate against Azure - SQL Managed Instance. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The key of the service principal used to authenticate against - Azure SQL Managed Instance. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :vartype service_principal_credential_type: JSON - :ivar service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string - (or Expression with resultType string). - :vartype tenant: JSON - :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed - values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data - factory regions’ cloud type. Type: string (or Expression with resultType string). - :vartype azure_cloud_type: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar always_encrypted_settings: Sql always encrypted properties. - :vartype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "encrypt": {"key": "typeProperties.encrypt", "type": "object"}, - "trust_server_certificate": {"key": "typeProperties.trustServerCertificate", "type": "object"}, - "host_name_in_certificate": {"key": "typeProperties.hostNameInCertificate", "type": "object"}, - "application_intent": {"key": "typeProperties.applicationIntent", "type": "object"}, - "connect_timeout": {"key": "typeProperties.connectTimeout", "type": "object"}, - "connect_retry_count": {"key": "typeProperties.connectRetryCount", "type": "object"}, - "connect_retry_interval": {"key": "typeProperties.connectRetryInterval", "type": "object"}, - "load_balance_timeout": {"key": "typeProperties.loadBalanceTimeout", "type": "object"}, - "command_timeout": {"key": "typeProperties.commandTimeout", "type": "object"}, - "integrated_security": {"key": "typeProperties.integratedSecurity", "type": "object"}, - "failover_partner": {"key": "typeProperties.failoverPartner", "type": "object"}, - "max_pool_size": {"key": "typeProperties.maxPoolSize", "type": "object"}, - "min_pool_size": {"key": "typeProperties.minPoolSize", "type": "object"}, - "multiple_active_result_sets": {"key": "typeProperties.multipleActiveResultSets", "type": "object"}, - "multi_subnet_failover": {"key": "typeProperties.multiSubnetFailover", "type": "object"}, - "packet_size": {"key": "typeProperties.packetSize", "type": "object"}, - "pooling": {"key": "typeProperties.pooling", "type": "object"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "AzureKeyVaultSecretReference"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, - "service_principal_credential": {"key": "typeProperties.servicePrincipalCredential", "type": "SecretBase"}, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "azure_cloud_type": {"key": "typeProperties.azureCloudType", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "always_encrypted_settings": { - "key": "typeProperties.alwaysEncryptedSettings", - "type": "SqlAlwaysEncryptedProperties", - }, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - server: Optional[JSON] = None, - database: Optional[JSON] = None, - encrypt: Optional[JSON] = None, - trust_server_certificate: Optional[JSON] = None, - host_name_in_certificate: Optional[JSON] = None, - application_intent: Optional[JSON] = None, - connect_timeout: Optional[JSON] = None, - connect_retry_count: Optional[JSON] = None, - connect_retry_interval: Optional[JSON] = None, - load_balance_timeout: Optional[JSON] = None, - command_timeout: Optional[JSON] = None, - integrated_security: Optional[JSON] = None, - failover_partner: Optional[JSON] = None, - max_pool_size: Optional[JSON] = None, - min_pool_size: Optional[JSON] = None, - multiple_active_result_sets: Optional[JSON] = None, - multi_subnet_failover: Optional[JSON] = None, - packet_size: Optional[JSON] = None, - pooling: Optional[JSON] = None, - connection_string: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.AzureSqlMIAuthenticationType"]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.AzureKeyVaultSecretReference"] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - service_principal_credential_type: Optional[JSON] = None, - service_principal_credential: Optional["_models.SecretBase"] = None, - tenant: Optional[JSON] = None, - azure_cloud_type: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :paramtype server: JSON - :keyword database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :paramtype database: JSON - :keyword encrypt: Indicate whether TLS encryption is required for all data sent between the - client and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :paramtype encrypt: JSON - :keyword trust_server_certificate: Indicate whether the channel will be encrypted while - bypassing walking the certificate chain to validate trust, used by recommended version. Type: - Boolean (or Expression with resultType boolean). - :paramtype trust_server_certificate: JSON - :keyword host_name_in_certificate: The host name to use when validating the server certificate - for the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype host_name_in_certificate: JSON - :keyword application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :paramtype application_intent: JSON - :keyword connect_timeout: The length of time (in seconds) to wait for a connection to the - server before terminating the attempt and generating an error, used by recommended version. - Type: integer (or Expression with resultType integer). - :paramtype connect_timeout: JSON - :keyword connect_retry_count: The number of re-connections attempted after identifying that - there was an idle connection failure, used by recommended version. This must be an integer - between 0 and 255. Type: integer (or Expression with resultType integer). - :paramtype connect_retry_count: JSON - :keyword connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :paramtype connect_retry_interval: JSON - :keyword load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype load_balance_timeout: JSON - :keyword command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype command_timeout: JSON - :keyword integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :paramtype integrated_security: JSON - :keyword failover_partner: The name or address of the partner server to connect to if the - primary server is down, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype failover_partner: JSON - :keyword max_pool_size: The maximum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype max_pool_size: JSON - :keyword min_pool_size: The minimum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype min_pool_size: JSON - :keyword multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :paramtype multiple_active_result_sets: JSON - :keyword multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype multi_subnet_failover: JSON - :keyword packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :paramtype packet_size: JSON - :keyword pooling: Indicate whether the connection will be pooled or explicitly opened every - time that the connection is requested, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype pooling: JSON - :keyword connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword authentication_type: The type used for authentication. Type: string. Known values are: - "SQL", "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.AzureSqlMIAuthenticationType - :keyword user_name: The user name to be used when connecting to server. Type: string (or - Expression with resultType string). - :paramtype user_name: JSON - :keyword password: The Azure key vault secret reference of password in connection string. - :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword service_principal_id: The ID of the service principal used to authenticate against - Azure SQL Managed Instance. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The key of the service principal used to authenticate against - Azure SQL Managed Instance. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :paramtype service_principal_credential_type: JSON - :keyword service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :paramtype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: The name or ID of the tenant to which the service principal belongs. Type: - string (or Expression with resultType string). - :paramtype tenant: JSON - :keyword azure_cloud_type: Indicates the azure cloud type of the service principle auth. - Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is - the data factory regions’ cloud type. Type: string (or Expression with resultType string). - :paramtype azure_cloud_type: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword always_encrypted_settings: Sql always encrypted properties. - :paramtype always_encrypted_settings: - ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureSqlMI" - self.server = server - self.database = database - self.encrypt = encrypt - self.trust_server_certificate = trust_server_certificate - self.host_name_in_certificate = host_name_in_certificate - self.application_intent = application_intent - self.connect_timeout = connect_timeout - self.connect_retry_count = connect_retry_count - self.connect_retry_interval = connect_retry_interval - self.load_balance_timeout = load_balance_timeout - self.command_timeout = command_timeout - self.integrated_security = integrated_security - self.failover_partner = failover_partner - self.max_pool_size = max_pool_size - self.min_pool_size = min_pool_size - self.multiple_active_result_sets = multiple_active_result_sets - self.multi_subnet_failover = multi_subnet_failover - self.packet_size = packet_size - self.pooling = pooling - self.connection_string = connection_string - self.authentication_type = authentication_type - self.user_name = user_name - self.password = password - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.service_principal_credential_type = service_principal_credential_type - self.service_principal_credential = service_principal_credential - self.tenant = tenant - self.azure_cloud_type = azure_cloud_type - self.encrypted_credential = encrypted_credential - self.always_encrypted_settings = always_encrypted_settings - self.credential = credential - - -class AzureSqlMILinkedServiceTypeProperties(SqlServerBaseLinkedServiceTypeProperties): - """Azure SQL Managed Instance linked service properties. - - :ivar server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :vartype server: JSON - :ivar database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :vartype database: JSON - :ivar encrypt: Indicate whether TLS encryption is required for all data sent between the client - and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :vartype encrypt: JSON - :ivar trust_server_certificate: Indicate whether the channel will be encrypted while bypassing - walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype trust_server_certificate: JSON - :ivar host_name_in_certificate: The host name to use when validating the server certificate for - the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :vartype host_name_in_certificate: JSON - :ivar application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :vartype application_intent: JSON - :ivar connect_timeout: The length of time (in seconds) to wait for a connection to the server - before terminating the attempt and generating an error, used by recommended version. Type: - integer (or Expression with resultType integer). - :vartype connect_timeout: JSON - :ivar connect_retry_count: The number of re-connections attempted after identifying that there - was an idle connection failure, used by recommended version. This must be an integer between 0 - and 255. Type: integer (or Expression with resultType integer). - :vartype connect_retry_count: JSON - :ivar connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :vartype connect_retry_interval: JSON - :ivar load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype load_balance_timeout: JSON - :ivar command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype command_timeout: JSON - :ivar integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :vartype integrated_security: JSON - :ivar failover_partner: The name or address of the partner server to connect to if the primary - server is down, used by recommended version. Type: string (or Expression with resultType - string). - :vartype failover_partner: JSON - :ivar max_pool_size: The maximum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype max_pool_size: JSON - :ivar min_pool_size: The minimum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype min_pool_size: JSON - :ivar multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :vartype multiple_active_result_sets: JSON - :ivar multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype multi_subnet_failover: JSON - :ivar packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :vartype packet_size: JSON - :ivar pooling: Indicate whether the connection will be pooled or explicitly opened every time - that the connection is requested, used by recommended version. Type: Boolean (or Expression - with resultType boolean). - :vartype pooling: JSON - :ivar connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar authentication_type: The type used for authentication. Type: string. Known values are: - "SQL", "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". - :vartype authentication_type: str or - ~azure.mgmt.datafactory.models.AzureSqlMIAuthenticationType - :ivar user_name: The user name to be used when connecting to server. Type: string (or - Expression with resultType string). - :vartype user_name: JSON - :ivar password: The Azure key vault secret reference of password in connection string. - :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar service_principal_id: The ID of the service principal used to authenticate against Azure - SQL Managed Instance. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The key of the service principal used to authenticate against - Azure SQL Managed Instance. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :vartype service_principal_credential_type: JSON - :ivar service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string - (or Expression with resultType string). - :vartype tenant: JSON - :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed - values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data - factory regions’ cloud type. Type: string (or Expression with resultType string). - :vartype azure_cloud_type: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar always_encrypted_settings: Sql always encrypted properties. - :vartype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _attribute_map = { - "server": {"key": "server", "type": "object"}, - "database": {"key": "database", "type": "object"}, - "encrypt": {"key": "encrypt", "type": "object"}, - "trust_server_certificate": {"key": "trustServerCertificate", "type": "object"}, - "host_name_in_certificate": {"key": "hostNameInCertificate", "type": "object"}, - "application_intent": {"key": "applicationIntent", "type": "object"}, - "connect_timeout": {"key": "connectTimeout", "type": "object"}, - "connect_retry_count": {"key": "connectRetryCount", "type": "object"}, - "connect_retry_interval": {"key": "connectRetryInterval", "type": "object"}, - "load_balance_timeout": {"key": "loadBalanceTimeout", "type": "object"}, - "command_timeout": {"key": "commandTimeout", "type": "object"}, - "integrated_security": {"key": "integratedSecurity", "type": "object"}, - "failover_partner": {"key": "failoverPartner", "type": "object"}, - "max_pool_size": {"key": "maxPoolSize", "type": "object"}, - "min_pool_size": {"key": "minPoolSize", "type": "object"}, - "multiple_active_result_sets": {"key": "multipleActiveResultSets", "type": "object"}, - "multi_subnet_failover": {"key": "multiSubnetFailover", "type": "object"}, - "packet_size": {"key": "packetSize", "type": "object"}, - "pooling": {"key": "pooling", "type": "object"}, - "connection_string": {"key": "connectionString", "type": "object"}, - "authentication_type": {"key": "authenticationType", "type": "str"}, - "user_name": {"key": "userName", "type": "object"}, - "password": {"key": "password", "type": "AzureKeyVaultSecretReference"}, - "service_principal_id": {"key": "servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "servicePrincipalKey", "type": "SecretBase"}, - "service_principal_credential_type": {"key": "servicePrincipalCredentialType", "type": "object"}, - "service_principal_credential": {"key": "servicePrincipalCredential", "type": "SecretBase"}, - "tenant": {"key": "tenant", "type": "object"}, - "azure_cloud_type": {"key": "azureCloudType", "type": "object"}, - "encrypted_credential": {"key": "encryptedCredential", "type": "str"}, - "always_encrypted_settings": {"key": "alwaysEncryptedSettings", "type": "SqlAlwaysEncryptedProperties"}, - "credential": {"key": "credential", "type": "CredentialReference"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - server: Optional[JSON] = None, - database: Optional[JSON] = None, - encrypt: Optional[JSON] = None, - trust_server_certificate: Optional[JSON] = None, - host_name_in_certificate: Optional[JSON] = None, - application_intent: Optional[JSON] = None, - connect_timeout: Optional[JSON] = None, - connect_retry_count: Optional[JSON] = None, - connect_retry_interval: Optional[JSON] = None, - load_balance_timeout: Optional[JSON] = None, - command_timeout: Optional[JSON] = None, - integrated_security: Optional[JSON] = None, - failover_partner: Optional[JSON] = None, - max_pool_size: Optional[JSON] = None, - min_pool_size: Optional[JSON] = None, - multiple_active_result_sets: Optional[JSON] = None, - multi_subnet_failover: Optional[JSON] = None, - packet_size: Optional[JSON] = None, - pooling: Optional[JSON] = None, - connection_string: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.AzureSqlMIAuthenticationType"]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.AzureKeyVaultSecretReference"] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - service_principal_credential_type: Optional[JSON] = None, - service_principal_credential: Optional["_models.SecretBase"] = None, - tenant: Optional[JSON] = None, - azure_cloud_type: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :paramtype server: JSON - :keyword database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :paramtype database: JSON - :keyword encrypt: Indicate whether TLS encryption is required for all data sent between the - client and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :paramtype encrypt: JSON - :keyword trust_server_certificate: Indicate whether the channel will be encrypted while - bypassing walking the certificate chain to validate trust, used by recommended version. Type: - Boolean (or Expression with resultType boolean). - :paramtype trust_server_certificate: JSON - :keyword host_name_in_certificate: The host name to use when validating the server certificate - for the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype host_name_in_certificate: JSON - :keyword application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :paramtype application_intent: JSON - :keyword connect_timeout: The length of time (in seconds) to wait for a connection to the - server before terminating the attempt and generating an error, used by recommended version. - Type: integer (or Expression with resultType integer). - :paramtype connect_timeout: JSON - :keyword connect_retry_count: The number of re-connections attempted after identifying that - there was an idle connection failure, used by recommended version. This must be an integer - between 0 and 255. Type: integer (or Expression with resultType integer). - :paramtype connect_retry_count: JSON - :keyword connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :paramtype connect_retry_interval: JSON - :keyword load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype load_balance_timeout: JSON - :keyword command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype command_timeout: JSON - :keyword integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :paramtype integrated_security: JSON - :keyword failover_partner: The name or address of the partner server to connect to if the - primary server is down, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype failover_partner: JSON - :keyword max_pool_size: The maximum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype max_pool_size: JSON - :keyword min_pool_size: The minimum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype min_pool_size: JSON - :keyword multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :paramtype multiple_active_result_sets: JSON - :keyword multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype multi_subnet_failover: JSON - :keyword packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :paramtype packet_size: JSON - :keyword pooling: Indicate whether the connection will be pooled or explicitly opened every - time that the connection is requested, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype pooling: JSON - :keyword connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword authentication_type: The type used for authentication. Type: string. Known values are: - "SQL", "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.AzureSqlMIAuthenticationType - :keyword user_name: The user name to be used when connecting to server. Type: string (or - Expression with resultType string). - :paramtype user_name: JSON - :keyword password: The Azure key vault secret reference of password in connection string. - :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword service_principal_id: The ID of the service principal used to authenticate against - Azure SQL Managed Instance. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The key of the service principal used to authenticate against - Azure SQL Managed Instance. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :paramtype service_principal_credential_type: JSON - :keyword service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :paramtype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: The name or ID of the tenant to which the service principal belongs. Type: - string (or Expression with resultType string). - :paramtype tenant: JSON - :keyword azure_cloud_type: Indicates the azure cloud type of the service principle auth. - Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is - the data factory regions’ cloud type. Type: string (or Expression with resultType string). - :paramtype azure_cloud_type: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword always_encrypted_settings: Sql always encrypted properties. - :paramtype always_encrypted_settings: - ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - server=server, - database=database, - encrypt=encrypt, - trust_server_certificate=trust_server_certificate, - host_name_in_certificate=host_name_in_certificate, - application_intent=application_intent, - connect_timeout=connect_timeout, - connect_retry_count=connect_retry_count, - connect_retry_interval=connect_retry_interval, - load_balance_timeout=load_balance_timeout, - command_timeout=command_timeout, - integrated_security=integrated_security, - failover_partner=failover_partner, - max_pool_size=max_pool_size, - min_pool_size=min_pool_size, - multiple_active_result_sets=multiple_active_result_sets, - multi_subnet_failover=multi_subnet_failover, - packet_size=packet_size, - pooling=pooling, - **kwargs - ) - self.connection_string = connection_string - self.authentication_type = authentication_type - self.user_name = user_name - self.password = password - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.service_principal_credential_type = service_principal_credential_type - self.service_principal_credential = service_principal_credential - self.tenant = tenant - self.azure_cloud_type = azure_cloud_type - self.encrypted_credential = encrypted_credential - self.always_encrypted_settings = always_encrypted_settings - self.credential = credential - - -class AzureSqlMITableDataset(Dataset): - """The Azure SQL Managed Instance dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property will be retired. Please consider using schema + table - properties instead. - :vartype table_name: JSON - :ivar schema_type_properties_schema: The schema name of the Azure SQL Managed Instance. Type: - string (or Expression with resultType string). - :vartype schema_type_properties_schema: JSON - :ivar table: The table name of the Azure SQL Managed Instance dataset. Type: string (or - Expression with resultType string). - :vartype table: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - table: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property will be retired. Please consider using schema + table - properties instead. - :paramtype table_name: JSON - :keyword schema_type_properties_schema: The schema name of the Azure SQL Managed Instance. - Type: string (or Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - :keyword table: The table name of the Azure SQL Managed Instance dataset. Type: string (or - Expression with resultType string). - :paramtype table: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "AzureSqlMITable" - self.table_name = table_name - self.schema_type_properties_schema = schema_type_properties_schema - self.table = table - - -class AzureSqlSink(CopySink): - """A copy activity Azure SQL sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar sql_writer_stored_procedure_name: SQL writer stored procedure name. Type: string (or - Expression with resultType string). - :vartype sql_writer_stored_procedure_name: JSON - :ivar sql_writer_table_type: SQL writer table type. Type: string (or Expression with resultType - string). - :vartype sql_writer_table_type: JSON - :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :vartype pre_copy_script: JSON - :ivar stored_procedure_parameters: SQL stored procedure parameters. - :vartype stored_procedure_parameters: JSON - :ivar stored_procedure_table_type_parameter_name: The stored procedure parameter name of the - table type. Type: string (or Expression with resultType string). - :vartype stored_procedure_table_type_parameter_name: JSON - :ivar table_option: The option to handle sink table, such as autoCreate. For now only - 'autoCreate' value is supported. Type: string (or Expression with resultType string). - :vartype table_option: JSON - :ivar sql_writer_use_table_lock: Whether to use table lock during bulk copy. Type: boolean (or - Expression with resultType boolean). - :vartype sql_writer_use_table_lock: JSON - :ivar write_behavior: Write behavior when copying data into Azure SQL. Type: - SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum). - :vartype write_behavior: JSON - :ivar upsert_settings: SQL upsert settings. - :vartype upsert_settings: ~azure.mgmt.datafactory.models.SqlUpsertSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "sql_writer_stored_procedure_name": {"key": "sqlWriterStoredProcedureName", "type": "object"}, - "sql_writer_table_type": {"key": "sqlWriterTableType", "type": "object"}, - "pre_copy_script": {"key": "preCopyScript", "type": "object"}, - "stored_procedure_parameters": {"key": "storedProcedureParameters", "type": "object"}, - "stored_procedure_table_type_parameter_name": { - "key": "storedProcedureTableTypeParameterName", - "type": "object", - }, - "table_option": {"key": "tableOption", "type": "object"}, - "sql_writer_use_table_lock": {"key": "sqlWriterUseTableLock", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "object"}, - "upsert_settings": {"key": "upsertSettings", "type": "SqlUpsertSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - sql_writer_stored_procedure_name: Optional[JSON] = None, - sql_writer_table_type: Optional[JSON] = None, - pre_copy_script: Optional[JSON] = None, - stored_procedure_parameters: Optional[JSON] = None, - stored_procedure_table_type_parameter_name: Optional[JSON] = None, - table_option: Optional[JSON] = None, - sql_writer_use_table_lock: Optional[JSON] = None, - write_behavior: Optional[JSON] = None, - upsert_settings: Optional["_models.SqlUpsertSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword sql_writer_stored_procedure_name: SQL writer stored procedure name. Type: string (or - Expression with resultType string). - :paramtype sql_writer_stored_procedure_name: JSON - :keyword sql_writer_table_type: SQL writer table type. Type: string (or Expression with - resultType string). - :paramtype sql_writer_table_type: JSON - :keyword pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :paramtype pre_copy_script: JSON - :keyword stored_procedure_parameters: SQL stored procedure parameters. - :paramtype stored_procedure_parameters: JSON - :keyword stored_procedure_table_type_parameter_name: The stored procedure parameter name of the - table type. Type: string (or Expression with resultType string). - :paramtype stored_procedure_table_type_parameter_name: JSON - :keyword table_option: The option to handle sink table, such as autoCreate. For now only - 'autoCreate' value is supported. Type: string (or Expression with resultType string). - :paramtype table_option: JSON - :keyword sql_writer_use_table_lock: Whether to use table lock during bulk copy. Type: boolean - (or Expression with resultType boolean). - :paramtype sql_writer_use_table_lock: JSON - :keyword write_behavior: Write behavior when copying data into Azure SQL. Type: - SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum). - :paramtype write_behavior: JSON - :keyword upsert_settings: SQL upsert settings. - :paramtype upsert_settings: ~azure.mgmt.datafactory.models.SqlUpsertSettings - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AzureSqlSink" - self.sql_writer_stored_procedure_name = sql_writer_stored_procedure_name - self.sql_writer_table_type = sql_writer_table_type - self.pre_copy_script = pre_copy_script - self.stored_procedure_parameters = stored_procedure_parameters - self.stored_procedure_table_type_parameter_name = stored_procedure_table_type_parameter_name - self.table_option = table_option - self.sql_writer_use_table_lock = sql_writer_use_table_lock - self.write_behavior = write_behavior - self.upsert_settings = upsert_settings - - -class AzureSqlSource(TabularSource): - """A copy activity Azure SQL source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar sql_reader_query: SQL reader query. Type: string (or Expression with resultType string). - :vartype sql_reader_query: JSON - :ivar sql_reader_stored_procedure_name: Name of the stored procedure for a SQL Database source. - This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with - resultType string). - :vartype sql_reader_stored_procedure_name: JSON - :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. - Example: "{Parameter1: {value: "1", type: "int"}}". - :vartype stored_procedure_parameters: JSON - :ivar isolation_level: Specifies the transaction locking behavior for the SQL source. Allowed - values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value - is ReadCommitted. Type: string (or Expression with resultType string). - :vartype isolation_level: JSON - :ivar produce_additional_types: Which additional types to produce. - :vartype produce_additional_types: JSON - :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. - Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or - Expression with resultType string). - :vartype partition_option: JSON - :ivar partition_settings: The settings that will be leveraged for Sql source partitioning. - :vartype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "sql_reader_query": {"key": "sqlReaderQuery", "type": "object"}, - "sql_reader_stored_procedure_name": {"key": "sqlReaderStoredProcedureName", "type": "object"}, - "stored_procedure_parameters": {"key": "storedProcedureParameters", "type": "object"}, - "isolation_level": {"key": "isolationLevel", "type": "object"}, - "produce_additional_types": {"key": "produceAdditionalTypes", "type": "object"}, - "partition_option": {"key": "partitionOption", "type": "object"}, - "partition_settings": {"key": "partitionSettings", "type": "SqlPartitionSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - sql_reader_query: Optional[JSON] = None, - sql_reader_stored_procedure_name: Optional[JSON] = None, - stored_procedure_parameters: Optional[JSON] = None, - isolation_level: Optional[JSON] = None, - produce_additional_types: Optional[JSON] = None, - partition_option: Optional[JSON] = None, - partition_settings: Optional["_models.SqlPartitionSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword sql_reader_query: SQL reader query. Type: string (or Expression with resultType - string). - :paramtype sql_reader_query: JSON - :keyword sql_reader_stored_procedure_name: Name of the stored procedure for a SQL Database - source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression - with resultType string). - :paramtype sql_reader_stored_procedure_name: JSON - :keyword stored_procedure_parameters: Value and type setting for stored procedure parameters. - Example: "{Parameter1: {value: "1", type: "int"}}". - :paramtype stored_procedure_parameters: JSON - :keyword isolation_level: Specifies the transaction locking behavior for the SQL source. - Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default - value is ReadCommitted. Type: string (or Expression with resultType string). - :paramtype isolation_level: JSON - :keyword produce_additional_types: Which additional types to produce. - :paramtype produce_additional_types: JSON - :keyword partition_option: The partition mechanism that will be used for Sql read in parallel. - Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or - Expression with resultType string). - :paramtype partition_option: JSON - :keyword partition_settings: The settings that will be leveraged for Sql source partitioning. - :paramtype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "AzureSqlSource" - self.sql_reader_query = sql_reader_query - self.sql_reader_stored_procedure_name = sql_reader_stored_procedure_name - self.stored_procedure_parameters = stored_procedure_parameters - self.isolation_level = isolation_level - self.produce_additional_types = produce_additional_types - self.partition_option = partition_option - self.partition_settings = partition_settings - - -class AzureSqlTableDataset(Dataset): - """The Azure SQL Server database dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property will be retired. Please consider using schema + table - properties instead. - :vartype table_name: JSON - :ivar schema_type_properties_schema: The schema name of the Azure SQL database. Type: string - (or Expression with resultType string). - :vartype schema_type_properties_schema: JSON - :ivar table: The table name of the Azure SQL database. Type: string (or Expression with - resultType string). - :vartype table: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - table: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property will be retired. Please consider using schema + table - properties instead. - :paramtype table_name: JSON - :keyword schema_type_properties_schema: The schema name of the Azure SQL database. Type: string - (or Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - :keyword table: The table name of the Azure SQL database. Type: string (or Expression with - resultType string). - :paramtype table: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "AzureSqlTable" - self.table_name = table_name - self.schema_type_properties_schema = schema_type_properties_schema - self.table = table - - -class AzureStorageLinkedService(LinkedService): - """The storage account linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: The connection string. It is mutually exclusive with sasUri property. - Type: string, SecureString or AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar account_key: The Azure key vault secret reference of accountKey in connection string. - :vartype account_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar sas_uri: SAS URI of the Azure Storage resource. It is mutually exclusive with - connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. - :vartype sas_uri: JSON - :ivar sas_token: The Azure key vault secret reference of sasToken in sas uri. - :vartype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "account_key": {"key": "typeProperties.accountKey", "type": "AzureKeyVaultSecretReference"}, - "sas_uri": {"key": "typeProperties.sasUri", "type": "object"}, - "sas_token": {"key": "typeProperties.sasToken", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_string: Optional[JSON] = None, - account_key: Optional["_models.AzureKeyVaultSecretReference"] = None, - sas_uri: Optional[JSON] = None, - sas_token: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: The connection string. It is mutually exclusive with sasUri - property. Type: string, SecureString or AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword account_key: The Azure key vault secret reference of accountKey in connection string. - :paramtype account_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword sas_uri: SAS URI of the Azure Storage resource. It is mutually exclusive with - connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. - :paramtype sas_uri: JSON - :keyword sas_token: The Azure key vault secret reference of sasToken in sas uri. - :paramtype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureStorage" - self.connection_string = connection_string - self.account_key = account_key - self.sas_uri = sas_uri - self.sas_token = sas_token - self.encrypted_credential = encrypted_credential - - -class AzureStorageLinkedServiceTypeProperties(_serialization.Model): - """Azure Storage linked service properties. - - :ivar connection_string: The connection string. It is mutually exclusive with sasUri property. - Type: string, SecureString or AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar account_key: The Azure key vault secret reference of accountKey in connection string. - :vartype account_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar sas_uri: SAS URI of the Azure Storage resource. It is mutually exclusive with - connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. - :vartype sas_uri: JSON - :ivar sas_token: The Azure key vault secret reference of sasToken in sas uri. - :vartype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _attribute_map = { - "connection_string": {"key": "connectionString", "type": "object"}, - "account_key": {"key": "accountKey", "type": "AzureKeyVaultSecretReference"}, - "sas_uri": {"key": "sasUri", "type": "object"}, - "sas_token": {"key": "sasToken", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - connection_string: Optional[JSON] = None, - account_key: Optional["_models.AzureKeyVaultSecretReference"] = None, - sas_uri: Optional[JSON] = None, - sas_token: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword connection_string: The connection string. It is mutually exclusive with sasUri - property. Type: string, SecureString or AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword account_key: The Azure key vault secret reference of accountKey in connection string. - :paramtype account_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword sas_uri: SAS URI of the Azure Storage resource. It is mutually exclusive with - connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. - :paramtype sas_uri: JSON - :keyword sas_token: The Azure key vault secret reference of sasToken in sas uri. - :paramtype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__(**kwargs) - self.connection_string = connection_string - self.account_key = account_key - self.sas_uri = sas_uri - self.sas_token = sas_token - self.encrypted_credential = encrypted_credential - - -class AzureSynapseArtifactsLinkedService(LinkedService): - """Azure Synapse Analytics (Artifacts) linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar endpoint: https://\\ :code:``.dev.azuresynapse.net, Azure Synapse - Analytics workspace URL. Type: string (or Expression with resultType string). Required. - :vartype endpoint: JSON - :ivar authentication: Required to specify MSI, if using system assigned managed identity as - authentication method. Type: string (or Expression with resultType string). - :vartype authentication: JSON - :ivar workspace_resource_id: The resource ID of the Synapse workspace. The format should be: - /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Synapse/workspaces/{workspaceName}. - Type: string (or Expression with resultType string). - :vartype workspace_resource_id: JSON - """ - - _validation = { - "type": {"required": True}, - "endpoint": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "endpoint": {"key": "typeProperties.endpoint", "type": "object"}, - "authentication": {"key": "typeProperties.authentication", "type": "object"}, - "workspace_resource_id": {"key": "typeProperties.workspaceResourceId", "type": "object"}, - } - - def __init__( - self, - *, - endpoint: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - authentication: Optional[JSON] = None, - workspace_resource_id: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword endpoint: https://\\ :code:``.dev.azuresynapse.net, Azure Synapse - Analytics workspace URL. Type: string (or Expression with resultType string). Required. - :paramtype endpoint: JSON - :keyword authentication: Required to specify MSI, if using system assigned managed identity as - authentication method. Type: string (or Expression with resultType string). - :paramtype authentication: JSON - :keyword workspace_resource_id: The resource ID of the Synapse workspace. The format should be: - /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Synapse/workspaces/{workspaceName}. - Type: string (or Expression with resultType string). - :paramtype workspace_resource_id: JSON - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureSynapseArtifacts" - self.endpoint = endpoint - self.authentication = authentication - self.workspace_resource_id = workspace_resource_id - - -class AzureTableDataset(Dataset): - """The Azure Table storage dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name of the Azure Table storage. Type: string (or Expression with - resultType string). Required. - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - "table_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - table_name: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name of the Azure Table storage. Type: string (or Expression - with resultType string). Required. - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "AzureTable" - self.table_name = table_name - - -class AzureTableSink(CopySink): - """A copy activity Azure Table sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar azure_table_default_partition_key_value: Azure Table default partition key value. Type: - string (or Expression with resultType string). - :vartype azure_table_default_partition_key_value: JSON - :ivar azure_table_partition_key_name: Azure Table partition key name. Type: string (or - Expression with resultType string). - :vartype azure_table_partition_key_name: JSON - :ivar azure_table_row_key_name: Azure Table row key name. Type: string (or Expression with - resultType string). - :vartype azure_table_row_key_name: JSON - :ivar azure_table_insert_type: Azure Table insert type. Type: string (or Expression with - resultType string). - :vartype azure_table_insert_type: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "azure_table_default_partition_key_value": {"key": "azureTableDefaultPartitionKeyValue", "type": "object"}, - "azure_table_partition_key_name": {"key": "azureTablePartitionKeyName", "type": "object"}, - "azure_table_row_key_name": {"key": "azureTableRowKeyName", "type": "object"}, - "azure_table_insert_type": {"key": "azureTableInsertType", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - azure_table_default_partition_key_value: Optional[JSON] = None, - azure_table_partition_key_name: Optional[JSON] = None, - azure_table_row_key_name: Optional[JSON] = None, - azure_table_insert_type: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword azure_table_default_partition_key_value: Azure Table default partition key value. - Type: string (or Expression with resultType string). - :paramtype azure_table_default_partition_key_value: JSON - :keyword azure_table_partition_key_name: Azure Table partition key name. Type: string (or - Expression with resultType string). - :paramtype azure_table_partition_key_name: JSON - :keyword azure_table_row_key_name: Azure Table row key name. Type: string (or Expression with - resultType string). - :paramtype azure_table_row_key_name: JSON - :keyword azure_table_insert_type: Azure Table insert type. Type: string (or Expression with - resultType string). - :paramtype azure_table_insert_type: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "AzureTableSink" - self.azure_table_default_partition_key_value = azure_table_default_partition_key_value - self.azure_table_partition_key_name = azure_table_partition_key_name - self.azure_table_row_key_name = azure_table_row_key_name - self.azure_table_insert_type = azure_table_insert_type - - -class AzureTableSource(TabularSource): - """A copy activity Azure Table source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar azure_table_source_query: Azure Table source query. Type: string (or Expression with - resultType string). - :vartype azure_table_source_query: JSON - :ivar azure_table_source_ignore_table_not_found: Azure Table source ignore table not found. - Type: boolean (or Expression with resultType boolean). - :vartype azure_table_source_ignore_table_not_found: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "azure_table_source_query": {"key": "azureTableSourceQuery", "type": "object"}, - "azure_table_source_ignore_table_not_found": {"key": "azureTableSourceIgnoreTableNotFound", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - azure_table_source_query: Optional[JSON] = None, - azure_table_source_ignore_table_not_found: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword azure_table_source_query: Azure Table source query. Type: string (or Expression with - resultType string). - :paramtype azure_table_source_query: JSON - :keyword azure_table_source_ignore_table_not_found: Azure Table source ignore table not found. - Type: boolean (or Expression with resultType boolean). - :paramtype azure_table_source_ignore_table_not_found: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "AzureTableSource" - self.azure_table_source_query = azure_table_source_query - self.azure_table_source_ignore_table_not_found = azure_table_source_ignore_table_not_found - - -class AzureTableStorageLinkedService(LinkedService): - """The azure table storage linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: The connection string. It is mutually exclusive with sasUri property. - Type: string, SecureString or AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar account_key: The Azure key vault secret reference of accountKey in connection string. - :vartype account_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar sas_uri: SAS URI of the Azure Storage resource. It is mutually exclusive with - connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. - :vartype sas_uri: JSON - :ivar sas_token: The Azure key vault secret reference of sasToken in sas uri. - :vartype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar service_endpoint: Table service endpoint of the Azure Table Storage resource. It is - mutually exclusive with connectionString, sasUri property. - :vartype service_endpoint: JSON - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "account_key": {"key": "typeProperties.accountKey", "type": "AzureKeyVaultSecretReference"}, - "sas_uri": {"key": "typeProperties.sasUri", "type": "object"}, - "sas_token": {"key": "typeProperties.sasToken", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "service_endpoint": {"key": "typeProperties.serviceEndpoint", "type": "object"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_string: Optional[JSON] = None, - account_key: Optional["_models.AzureKeyVaultSecretReference"] = None, - sas_uri: Optional[JSON] = None, - sas_token: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[str] = None, - service_endpoint: Optional[JSON] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: The connection string. It is mutually exclusive with sasUri - property. Type: string, SecureString or AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword account_key: The Azure key vault secret reference of accountKey in connection string. - :paramtype account_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword sas_uri: SAS URI of the Azure Storage resource. It is mutually exclusive with - connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. - :paramtype sas_uri: JSON - :keyword sas_token: The Azure key vault secret reference of sasToken in sas uri. - :paramtype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword service_endpoint: Table service endpoint of the Azure Table Storage resource. It is - mutually exclusive with connectionString, sasUri property. - :paramtype service_endpoint: JSON - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "AzureTableStorage" - self.connection_string = connection_string - self.account_key = account_key - self.sas_uri = sas_uri - self.sas_token = sas_token - self.encrypted_credential = encrypted_credential - self.service_endpoint = service_endpoint - self.credential = credential - - -class AzureTableStorageLinkedServiceTypeProperties( - AzureStorageLinkedServiceTypeProperties -): # pylint: disable=name-too-long - """Azure Table Storage linked service properties. - - :ivar connection_string: The connection string. It is mutually exclusive with sasUri property. - Type: string, SecureString or AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar account_key: The Azure key vault secret reference of accountKey in connection string. - :vartype account_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar sas_uri: SAS URI of the Azure Storage resource. It is mutually exclusive with - connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. - :vartype sas_uri: JSON - :ivar sas_token: The Azure key vault secret reference of sasToken in sas uri. - :vartype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar service_endpoint: Table service endpoint of the Azure Table Storage resource. It is - mutually exclusive with connectionString, sasUri property. - :vartype service_endpoint: JSON - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _attribute_map = { - "connection_string": {"key": "connectionString", "type": "object"}, - "account_key": {"key": "accountKey", "type": "AzureKeyVaultSecretReference"}, - "sas_uri": {"key": "sasUri", "type": "object"}, - "sas_token": {"key": "sasToken", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "encryptedCredential", "type": "str"}, - "service_endpoint": {"key": "serviceEndpoint", "type": "object"}, - "credential": {"key": "credential", "type": "CredentialReference"}, - } - - def __init__( - self, - *, - connection_string: Optional[JSON] = None, - account_key: Optional["_models.AzureKeyVaultSecretReference"] = None, - sas_uri: Optional[JSON] = None, - sas_token: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[str] = None, - service_endpoint: Optional[JSON] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword connection_string: The connection string. It is mutually exclusive with sasUri - property. Type: string, SecureString or AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword account_key: The Azure key vault secret reference of accountKey in connection string. - :paramtype account_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword sas_uri: SAS URI of the Azure Storage resource. It is mutually exclusive with - connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. - :paramtype sas_uri: JSON - :keyword sas_token: The Azure key vault secret reference of sasToken in sas uri. - :paramtype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword service_endpoint: Table service endpoint of the Azure Table Storage resource. It is - mutually exclusive with connectionString, sasUri property. - :paramtype service_endpoint: JSON - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - connection_string=connection_string, - account_key=account_key, - sas_uri=sas_uri, - sas_token=sas_token, - encrypted_credential=encrypted_credential, - **kwargs - ) - self.service_endpoint = service_endpoint - self.credential = credential - - -class BigDataPoolParametrizationReference(_serialization.Model): - """Big data pool reference type. - - All required parameters must be populated in order to send to server. - - :ivar type: Big data pool reference type. Required. "BigDataPoolReference" - :vartype type: str or ~azure.mgmt.datafactory.models.BigDataPoolReferenceType - :ivar reference_name: Reference big data pool name. Type: string (or Expression with resultType - string). Required. - :vartype reference_name: JSON - """ - - _validation = { - "type": {"required": True}, - "reference_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "reference_name": {"key": "referenceName", "type": "object"}, - } - - def __init__( - self, *, type: Union[str, "_models.BigDataPoolReferenceType"], reference_name: JSON, **kwargs: Any - ) -> None: - """ - :keyword type: Big data pool reference type. Required. "BigDataPoolReference" - :paramtype type: str or ~azure.mgmt.datafactory.models.BigDataPoolReferenceType - :keyword reference_name: Reference big data pool name. Type: string (or Expression with - resultType string). Required. - :paramtype reference_name: JSON - """ - super().__init__(**kwargs) - self.type = type - self.reference_name = reference_name - - -class BinaryDataset(Dataset): - """Binary dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar location: The location of the Binary storage. - :vartype location: ~azure.mgmt.datafactory.models.DatasetLocation - :ivar compression: The data compression method used for the binary dataset. - :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "location": {"key": "typeProperties.location", "type": "DatasetLocation"}, - "compression": {"key": "typeProperties.compression", "type": "DatasetCompression"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - location: Optional["_models.DatasetLocation"] = None, - compression: Optional["_models.DatasetCompression"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword location: The location of the Binary storage. - :paramtype location: ~azure.mgmt.datafactory.models.DatasetLocation - :keyword compression: The data compression method used for the binary dataset. - :paramtype compression: ~azure.mgmt.datafactory.models.DatasetCompression - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "Binary" - self.location = location - self.compression = compression - - -class FormatReadSettings(_serialization.Model): - """Format read settings. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - BinaryReadSettings, DelimitedTextReadSettings, JsonReadSettings, ParquetReadSettings, - XmlReadSettings - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = { - "type": { - "BinaryReadSettings": "BinaryReadSettings", - "DelimitedTextReadSettings": "DelimitedTextReadSettings", - "JsonReadSettings": "JsonReadSettings", - "ParquetReadSettings": "ParquetReadSettings", - "XmlReadSettings": "XmlReadSettings", - } - } - - def __init__(self, *, additional_properties: Optional[dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - - -class BinaryReadSettings(FormatReadSettings): - """Binary read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar compression_properties: Compression settings. - :vartype compression_properties: ~azure.mgmt.datafactory.models.CompressionReadSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "compression_properties": {"key": "compressionProperties", "type": "CompressionReadSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - compression_properties: Optional["_models.CompressionReadSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword compression_properties: Compression settings. - :paramtype compression_properties: ~azure.mgmt.datafactory.models.CompressionReadSettings - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "BinaryReadSettings" - self.compression_properties = compression_properties - - -class BinarySink(CopySink): - """A copy activity Binary sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar store_settings: Binary store settings. - :vartype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "store_settings": {"key": "storeSettings", "type": "StoreWriteSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - store_settings: Optional["_models.StoreWriteSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword store_settings: Binary store settings. - :paramtype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "BinarySink" - self.store_settings = store_settings - - -class BinarySource(CopySource): - """A copy activity Binary source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar store_settings: Binary store settings. - :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - :ivar format_settings: Binary format settings. - :vartype format_settings: ~azure.mgmt.datafactory.models.BinaryReadSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "store_settings": {"key": "storeSettings", "type": "StoreReadSettings"}, - "format_settings": {"key": "formatSettings", "type": "BinaryReadSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - store_settings: Optional["_models.StoreReadSettings"] = None, - format_settings: Optional["_models.BinaryReadSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword store_settings: Binary store settings. - :paramtype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - :keyword format_settings: Binary format settings. - :paramtype format_settings: ~azure.mgmt.datafactory.models.BinaryReadSettings - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "BinarySource" - self.store_settings = store_settings - self.format_settings = format_settings - - -class Trigger(_serialization.Model): - """Azure data factory nested object which contains information about creating pipeline run. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ChainingTrigger, MultiplePipelineTrigger, RerunTumblingWindowTrigger, TumblingWindowTrigger - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Trigger type. Required. - :vartype type: str - :ivar description: Trigger description. - :vartype description: str - :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are - called on the Trigger. Known values are: "Started", "Stopped", and "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState - :ivar annotations: List of tags that can be used for describing the trigger. - :vartype annotations: list[JSON] - """ - - _validation = { - "type": {"required": True}, - "runtime_state": {"readonly": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "runtime_state": {"key": "runtimeState", "type": "str"}, - "annotations": {"key": "annotations", "type": "[object]"}, - } - - _subtype_map = { - "type": { - "ChainingTrigger": "ChainingTrigger", - "MultiplePipelineTrigger": "MultiplePipelineTrigger", - "RerunTumblingWindowTrigger": "RerunTumblingWindowTrigger", - "TumblingWindowTrigger": "TumblingWindowTrigger", - } - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - annotations: Optional[list[JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Trigger description. - :paramtype description: str - :keyword annotations: List of tags that can be used for describing the trigger. - :paramtype annotations: list[JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - self.description = description - self.runtime_state: Optional[Union[str, "_models.TriggerRuntimeState"]] = None - self.annotations = annotations - - -class MultiplePipelineTrigger(Trigger): - """Base class for all triggers that support one to many model for trigger to pipeline. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - BlobEventsTrigger, BlobTrigger, CustomEventsTrigger, ScheduleTrigger - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Trigger type. Required. - :vartype type: str - :ivar description: Trigger description. - :vartype description: str - :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are - called on the Trigger. Known values are: "Started", "Stopped", and "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState - :ivar annotations: List of tags that can be used for describing the trigger. - :vartype annotations: list[JSON] - :ivar pipelines: Pipelines that need to be started. - :vartype pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] - """ - - _validation = { - "type": {"required": True}, - "runtime_state": {"readonly": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "runtime_state": {"key": "runtimeState", "type": "str"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "pipelines": {"key": "pipelines", "type": "[TriggerPipelineReference]"}, - } - - _subtype_map = { - "type": { - "BlobEventsTrigger": "BlobEventsTrigger", - "BlobTrigger": "BlobTrigger", - "CustomEventsTrigger": "CustomEventsTrigger", - "ScheduleTrigger": "ScheduleTrigger", - } - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - annotations: Optional[list[JSON]] = None, - pipelines: Optional[list["_models.TriggerPipelineReference"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Trigger description. - :paramtype description: str - :keyword annotations: List of tags that can be used for describing the trigger. - :paramtype annotations: list[JSON] - :keyword pipelines: Pipelines that need to be started. - :paramtype pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] - """ - super().__init__( - additional_properties=additional_properties, description=description, annotations=annotations, **kwargs - ) - self.type: str = "MultiplePipelineTrigger" - self.pipelines = pipelines - - -class BlobEventsTrigger(MultiplePipelineTrigger): - """Trigger that runs every time a Blob event occurs. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Trigger type. Required. - :vartype type: str - :ivar description: Trigger description. - :vartype description: str - :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are - called on the Trigger. Known values are: "Started", "Stopped", and "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState - :ivar annotations: List of tags that can be used for describing the trigger. - :vartype annotations: list[JSON] - :ivar pipelines: Pipelines that need to be started. - :vartype pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] - :ivar blob_path_begins_with: The blob path must begin with the pattern provided for trigger to - fire. For example, '/records/blobs/december/' will only fire the trigger for blobs in the - december folder under the records container. At least one of these must be provided: - blobPathBeginsWith, blobPathEndsWith. - :vartype blob_path_begins_with: str - :ivar blob_path_ends_with: The blob path must end with the pattern provided for trigger to - fire. For example, 'december/boxes.csv' will only fire the trigger for blobs named boxes in a - december folder. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith. - :vartype blob_path_ends_with: str - :ivar ignore_empty_blobs: If set to true, blobs with zero bytes will be ignored. - :vartype ignore_empty_blobs: bool - :ivar events: The type of events that cause this trigger to fire. Required. - :vartype events: list[str or ~azure.mgmt.datafactory.models.BlobEventTypes] - :ivar scope: The ARM resource ID of the Storage Account. Required. - :vartype scope: str - """ - - _validation = { - "type": {"required": True}, - "runtime_state": {"readonly": True}, - "events": {"required": True}, - "scope": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "runtime_state": {"key": "runtimeState", "type": "str"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "pipelines": {"key": "pipelines", "type": "[TriggerPipelineReference]"}, - "blob_path_begins_with": {"key": "typeProperties.blobPathBeginsWith", "type": "str"}, - "blob_path_ends_with": {"key": "typeProperties.blobPathEndsWith", "type": "str"}, - "ignore_empty_blobs": {"key": "typeProperties.ignoreEmptyBlobs", "type": "bool"}, - "events": {"key": "typeProperties.events", "type": "[str]"}, - "scope": {"key": "typeProperties.scope", "type": "str"}, - } - - def __init__( - self, - *, - events: list[Union[str, "_models.BlobEventTypes"]], - scope: str, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - annotations: Optional[list[JSON]] = None, - pipelines: Optional[list["_models.TriggerPipelineReference"]] = None, - blob_path_begins_with: Optional[str] = None, - blob_path_ends_with: Optional[str] = None, - ignore_empty_blobs: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Trigger description. - :paramtype description: str - :keyword annotations: List of tags that can be used for describing the trigger. - :paramtype annotations: list[JSON] - :keyword pipelines: Pipelines that need to be started. - :paramtype pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] - :keyword blob_path_begins_with: The blob path must begin with the pattern provided for trigger - to fire. For example, '/records/blobs/december/' will only fire the trigger for blobs in the - december folder under the records container. At least one of these must be provided: - blobPathBeginsWith, blobPathEndsWith. - :paramtype blob_path_begins_with: str - :keyword blob_path_ends_with: The blob path must end with the pattern provided for trigger to - fire. For example, 'december/boxes.csv' will only fire the trigger for blobs named boxes in a - december folder. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith. - :paramtype blob_path_ends_with: str - :keyword ignore_empty_blobs: If set to true, blobs with zero bytes will be ignored. - :paramtype ignore_empty_blobs: bool - :keyword events: The type of events that cause this trigger to fire. Required. - :paramtype events: list[str or ~azure.mgmt.datafactory.models.BlobEventTypes] - :keyword scope: The ARM resource ID of the Storage Account. Required. - :paramtype scope: str - """ - super().__init__( - additional_properties=additional_properties, - description=description, - annotations=annotations, - pipelines=pipelines, - **kwargs - ) - self.type: str = "BlobEventsTrigger" - self.blob_path_begins_with = blob_path_begins_with - self.blob_path_ends_with = blob_path_ends_with - self.ignore_empty_blobs = ignore_empty_blobs - self.events = events - self.scope = scope - - -class BlobSink(CopySink): - """A copy activity Azure Blob sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar blob_writer_overwrite_files: Blob writer overwrite files. Type: boolean (or Expression - with resultType boolean). - :vartype blob_writer_overwrite_files: JSON - :ivar blob_writer_date_time_format: Blob writer date time format. Type: string (or Expression - with resultType string). - :vartype blob_writer_date_time_format: JSON - :ivar blob_writer_add_header: Blob writer add header. Type: boolean (or Expression with - resultType boolean). - :vartype blob_writer_add_header: JSON - :ivar copy_behavior: The type of copy behavior for copy sink. - :vartype copy_behavior: JSON - :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "blob_writer_overwrite_files": {"key": "blobWriterOverwriteFiles", "type": "object"}, - "blob_writer_date_time_format": {"key": "blobWriterDateTimeFormat", "type": "object"}, - "blob_writer_add_header": {"key": "blobWriterAddHeader", "type": "object"}, - "copy_behavior": {"key": "copyBehavior", "type": "object"}, - "metadata": {"key": "metadata", "type": "[MetadataItem]"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - blob_writer_overwrite_files: Optional[JSON] = None, - blob_writer_date_time_format: Optional[JSON] = None, - blob_writer_add_header: Optional[JSON] = None, - copy_behavior: Optional[JSON] = None, - metadata: Optional[list["_models.MetadataItem"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword blob_writer_overwrite_files: Blob writer overwrite files. Type: boolean (or Expression - with resultType boolean). - :paramtype blob_writer_overwrite_files: JSON - :keyword blob_writer_date_time_format: Blob writer date time format. Type: string (or - Expression with resultType string). - :paramtype blob_writer_date_time_format: JSON - :keyword blob_writer_add_header: Blob writer add header. Type: boolean (or Expression with - resultType boolean). - :paramtype blob_writer_add_header: JSON - :keyword copy_behavior: The type of copy behavior for copy sink. - :paramtype copy_behavior: JSON - :keyword metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :paramtype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "BlobSink" - self.blob_writer_overwrite_files = blob_writer_overwrite_files - self.blob_writer_date_time_format = blob_writer_date_time_format - self.blob_writer_add_header = blob_writer_add_header - self.copy_behavior = copy_behavior - self.metadata = metadata - - -class BlobSource(CopySource): - """A copy activity Azure Blob source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar treat_empty_as_null: Treat empty as null. Type: boolean (or Expression with resultType - boolean). - :vartype treat_empty_as_null: JSON - :ivar skip_header_line_count: Number of header lines to skip from each blob. Type: integer (or - Expression with resultType integer). - :vartype skip_header_line_count: JSON - :ivar recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "treat_empty_as_null": {"key": "treatEmptyAsNull", "type": "object"}, - "skip_header_line_count": {"key": "skipHeaderLineCount", "type": "object"}, - "recursive": {"key": "recursive", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - treat_empty_as_null: Optional[JSON] = None, - skip_header_line_count: Optional[JSON] = None, - recursive: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword treat_empty_as_null: Treat empty as null. Type: boolean (or Expression with resultType - boolean). - :paramtype treat_empty_as_null: JSON - :keyword skip_header_line_count: Number of header lines to skip from each blob. Type: integer - (or Expression with resultType integer). - :paramtype skip_header_line_count: JSON - :keyword recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "BlobSource" - self.treat_empty_as_null = treat_empty_as_null - self.skip_header_line_count = skip_header_line_count - self.recursive = recursive - - -class BlobTrigger(MultiplePipelineTrigger): - """Trigger that runs every time the selected Blob container changes. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Trigger type. Required. - :vartype type: str - :ivar description: Trigger description. - :vartype description: str - :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are - called on the Trigger. Known values are: "Started", "Stopped", and "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState - :ivar annotations: List of tags that can be used for describing the trigger. - :vartype annotations: list[JSON] - :ivar pipelines: Pipelines that need to be started. - :vartype pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] - :ivar folder_path: The path of the container/folder that will trigger the pipeline. Required. - :vartype folder_path: str - :ivar max_concurrency: The max number of parallel files to handle when it is triggered. - Required. - :vartype max_concurrency: int - :ivar linked_service: The Azure Storage linked service reference. Required. - :vartype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - """ - - _validation = { - "type": {"required": True}, - "runtime_state": {"readonly": True}, - "folder_path": {"required": True}, - "max_concurrency": {"required": True}, - "linked_service": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "runtime_state": {"key": "runtimeState", "type": "str"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "pipelines": {"key": "pipelines", "type": "[TriggerPipelineReference]"}, - "folder_path": {"key": "typeProperties.folderPath", "type": "str"}, - "max_concurrency": {"key": "typeProperties.maxConcurrency", "type": "int"}, - "linked_service": {"key": "typeProperties.linkedService", "type": "LinkedServiceReference"}, - } - - def __init__( - self, - *, - folder_path: str, - max_concurrency: int, - linked_service: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - annotations: Optional[list[JSON]] = None, - pipelines: Optional[list["_models.TriggerPipelineReference"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Trigger description. - :paramtype description: str - :keyword annotations: List of tags that can be used for describing the trigger. - :paramtype annotations: list[JSON] - :keyword pipelines: Pipelines that need to be started. - :paramtype pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] - :keyword folder_path: The path of the container/folder that will trigger the pipeline. - Required. - :paramtype folder_path: str - :keyword max_concurrency: The max number of parallel files to handle when it is triggered. - Required. - :paramtype max_concurrency: int - :keyword linked_service: The Azure Storage linked service reference. Required. - :paramtype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - """ - super().__init__( - additional_properties=additional_properties, - description=description, - annotations=annotations, - pipelines=pipelines, - **kwargs - ) - self.type: str = "BlobTrigger" - self.folder_path = folder_path - self.max_concurrency = max_concurrency - self.linked_service = linked_service - - -class CassandraLinkedService(LinkedService): - """Linked service for Cassandra data source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar host: Host name for connection. Type: string (or Expression with resultType string). - Required. - :vartype host: JSON - :ivar authentication_type: AuthenticationType to be used for connection. Type: string (or - Expression with resultType string). - :vartype authentication_type: JSON - :ivar port: The port for the connection. Type: integer (or Expression with resultType integer). - :vartype port: JSON - :ivar username: Username for authentication. Type: string (or Expression with resultType - string). - :vartype username: JSON - :ivar password: Password for authentication. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "host": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - host: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - authentication_type: Optional[JSON] = None, - port: Optional[JSON] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword host: Host name for connection. Type: string (or Expression with resultType string). - Required. - :paramtype host: JSON - :keyword authentication_type: AuthenticationType to be used for connection. Type: string (or - Expression with resultType string). - :paramtype authentication_type: JSON - :keyword port: The port for the connection. Type: integer (or Expression with resultType - integer). - :paramtype port: JSON - :keyword username: Username for authentication. Type: string (or Expression with resultType - string). - :paramtype username: JSON - :keyword password: Password for authentication. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Cassandra" - self.host = host - self.authentication_type = authentication_type - self.port = port - self.username = username - self.password = password - self.encrypted_credential = encrypted_credential - - -class CassandraSource(TabularSource): - """A copy activity source for a Cassandra database. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: Database query. Should be a SQL-92 query expression or Cassandra Query Language - (CQL) command. Type: string (or Expression with resultType string). - :vartype query: JSON - :ivar consistency_level: The consistency level specifies how many Cassandra servers must - respond to a read request before returning data to the client application. Cassandra checks the - specified number of Cassandra servers for data to satisfy the read request. Must be one of - cassandraSourceReadConsistencyLevels. The default value is 'ONE'. It is case-insensitive. Known - values are: "ALL", "EACH_QUORUM", "QUORUM", "LOCAL_QUORUM", "ONE", "TWO", "THREE", "LOCAL_ONE", - "SERIAL", and "LOCAL_SERIAL". - :vartype consistency_level: str or - ~azure.mgmt.datafactory.models.CassandraSourceReadConsistencyLevels - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "consistency_level": {"key": "consistencyLevel", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - consistency_level: Optional[Union[str, "_models.CassandraSourceReadConsistencyLevels"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: Database query. Should be a SQL-92 query expression or Cassandra Query Language - (CQL) command. Type: string (or Expression with resultType string). - :paramtype query: JSON - :keyword consistency_level: The consistency level specifies how many Cassandra servers must - respond to a read request before returning data to the client application. Cassandra checks the - specified number of Cassandra servers for data to satisfy the read request. Must be one of - cassandraSourceReadConsistencyLevels. The default value is 'ONE'. It is case-insensitive. Known - values are: "ALL", "EACH_QUORUM", "QUORUM", "LOCAL_QUORUM", "ONE", "TWO", "THREE", "LOCAL_ONE", - "SERIAL", and "LOCAL_SERIAL". - :paramtype consistency_level: str or - ~azure.mgmt.datafactory.models.CassandraSourceReadConsistencyLevels - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "CassandraSource" - self.query = query - self.consistency_level = consistency_level - - -class CassandraTableDataset(Dataset): - """The Cassandra database dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name of the Cassandra database. Type: string (or Expression with - resultType string). - :vartype table_name: JSON - :ivar keyspace: The keyspace of the Cassandra database. Type: string (or Expression with - resultType string). - :vartype keyspace: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "keyspace": {"key": "typeProperties.keyspace", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - keyspace: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name of the Cassandra database. Type: string (or Expression with - resultType string). - :paramtype table_name: JSON - :keyword keyspace: The keyspace of the Cassandra database. Type: string (or Expression with - resultType string). - :paramtype keyspace: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "CassandraTable" - self.table_name = table_name - self.keyspace = keyspace - - -class ChainingTrigger(Trigger): - """Trigger that allows the referenced pipeline to depend on other pipeline runs based on - runDimension Name/Value pairs. Upstream pipelines should declare the same runDimension Name and - their runs should have the values for those runDimensions. The referenced pipeline run would be - triggered if the values for the runDimension match for all upstream pipeline runs. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Trigger type. Required. - :vartype type: str - :ivar description: Trigger description. - :vartype description: str - :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are - called on the Trigger. Known values are: "Started", "Stopped", and "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState - :ivar annotations: List of tags that can be used for describing the trigger. - :vartype annotations: list[JSON] - :ivar pipeline: Pipeline for which runs are created when all upstream pipelines complete - successfully. Required. - :vartype pipeline: ~azure.mgmt.datafactory.models.TriggerPipelineReference - :ivar depends_on: Upstream Pipelines. Required. - :vartype depends_on: list[~azure.mgmt.datafactory.models.PipelineReference] - :ivar run_dimension: Run Dimension property that needs to be emitted by upstream pipelines. - Required. - :vartype run_dimension: str - """ - - _validation = { - "type": {"required": True}, - "runtime_state": {"readonly": True}, - "pipeline": {"required": True}, - "depends_on": {"required": True}, - "run_dimension": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "runtime_state": {"key": "runtimeState", "type": "str"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "pipeline": {"key": "pipeline", "type": "TriggerPipelineReference"}, - "depends_on": {"key": "typeProperties.dependsOn", "type": "[PipelineReference]"}, - "run_dimension": {"key": "typeProperties.runDimension", "type": "str"}, - } - - def __init__( - self, - *, - pipeline: "_models.TriggerPipelineReference", - depends_on: list["_models.PipelineReference"], - run_dimension: str, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - annotations: Optional[list[JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Trigger description. - :paramtype description: str - :keyword annotations: List of tags that can be used for describing the trigger. - :paramtype annotations: list[JSON] - :keyword pipeline: Pipeline for which runs are created when all upstream pipelines complete - successfully. Required. - :paramtype pipeline: ~azure.mgmt.datafactory.models.TriggerPipelineReference - :keyword depends_on: Upstream Pipelines. Required. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.PipelineReference] - :keyword run_dimension: Run Dimension property that needs to be emitted by upstream pipelines. - Required. - :paramtype run_dimension: str - """ - super().__init__( - additional_properties=additional_properties, description=description, annotations=annotations, **kwargs - ) - self.type: str = "ChainingTrigger" - self.pipeline = pipeline - self.depends_on = depends_on - self.run_dimension = run_dimension - - -class ChangeDataCaptureFolder(_serialization.Model): - """The folder that this CDC is in. If not specified, CDC will appear at the root level. - - :ivar name: The name of the folder that this CDC is in. - :vartype name: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the folder that this CDC is in. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class ChangeDataCaptureListResponse(_serialization.Model): - """A list of change data capture resources. - - All required parameters must be populated in order to send to server. - - :ivar value: Lists all resources of type change data capture. Required. - :vartype value: list[~azure.mgmt.datafactory.models.ChangeDataCaptureResource] - :ivar next_link: The link to the next page of results, if any remaining results exist. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[ChangeDataCaptureResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: list["_models.ChangeDataCaptureResource"], next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Lists all resources of type change data capture. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.ChangeDataCaptureResource] - :keyword next_link: The link to the next page of results, if any remaining results exist. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SubResource(_serialization.Model): - """Azure Data Factory nested resource, which belongs to a factory. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar etag: Etag identifies change in the resource. - :vartype etag: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "etag": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "etag": {"key": "etag", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.name: Optional[str] = None - self.type: Optional[str] = None - self.etag: Optional[str] = None - - -class ChangeDataCaptureResource(SubResource): - """Change data capture resource type. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar etag: Etag identifies change in the resource. - :vartype etag: str - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar folder: The folder that this CDC is in. If not specified, CDC will appear at the root - level. - :vartype folder: ~azure.mgmt.datafactory.models.ChangeDataCaptureFolder - :ivar description: The description of the change data capture. - :vartype description: str - :ivar source_connections_info: List of sources connections that can be used as sources in the - CDC. Required. - :vartype source_connections_info: - list[~azure.mgmt.datafactory.models.MapperSourceConnectionsInfo] - :ivar target_connections_info: List of target connections that can be used as sources in the - CDC. Required. - :vartype target_connections_info: - list[~azure.mgmt.datafactory.models.MapperTargetConnectionsInfo] - :ivar policy: CDC policy. Required. - :vartype policy: ~azure.mgmt.datafactory.models.MapperPolicy - :ivar allow_v_net_override: A boolean to determine if the vnet configuration needs to be - overwritten. - :vartype allow_v_net_override: bool - :ivar status: Status of the CDC as to if it is running or stopped. - :vartype status: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "etag": {"readonly": True}, - "source_connections_info": {"required": True}, - "target_connections_info": {"required": True}, - "policy": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "etag": {"key": "etag", "type": "str"}, - "additional_properties": {"key": "", "type": "{object}"}, - "folder": {"key": "properties.folder", "type": "ChangeDataCaptureFolder"}, - "description": {"key": "properties.description", "type": "str"}, - "source_connections_info": {"key": "properties.sourceConnectionsInfo", "type": "[MapperSourceConnectionsInfo]"}, - "target_connections_info": {"key": "properties.targetConnectionsInfo", "type": "[MapperTargetConnectionsInfo]"}, - "policy": {"key": "properties.policy", "type": "MapperPolicy"}, - "allow_v_net_override": {"key": "properties.allowVNetOverride", "type": "bool"}, - "status": {"key": "properties.status", "type": "str"}, - } - - def __init__( - self, - *, - source_connections_info: list["_models.MapperSourceConnectionsInfo"], - target_connections_info: list["_models.MapperTargetConnectionsInfo"], - policy: "_models.MapperPolicy", - additional_properties: Optional[dict[str, JSON]] = None, - folder: Optional["_models.ChangeDataCaptureFolder"] = None, - description: Optional[str] = None, - allow_v_net_override: Optional[bool] = None, - status: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword folder: The folder that this CDC is in. If not specified, CDC will appear at the root - level. - :paramtype folder: ~azure.mgmt.datafactory.models.ChangeDataCaptureFolder - :keyword description: The description of the change data capture. - :paramtype description: str - :keyword source_connections_info: List of sources connections that can be used as sources in - the CDC. Required. - :paramtype source_connections_info: - list[~azure.mgmt.datafactory.models.MapperSourceConnectionsInfo] - :keyword target_connections_info: List of target connections that can be used as sources in the - CDC. Required. - :paramtype target_connections_info: - list[~azure.mgmt.datafactory.models.MapperTargetConnectionsInfo] - :keyword policy: CDC policy. Required. - :paramtype policy: ~azure.mgmt.datafactory.models.MapperPolicy - :keyword allow_v_net_override: A boolean to determine if the vnet configuration needs to be - overwritten. - :paramtype allow_v_net_override: bool - :keyword status: Status of the CDC as to if it is running or stopped. - :paramtype status: str - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.folder = folder - self.description = description - self.source_connections_info = source_connections_info - self.target_connections_info = target_connections_info - self.policy = policy - self.allow_v_net_override = allow_v_net_override - self.status = status - - -class CloudError(_serialization.Model): - """The object that defines the structure of an Azure Data Factory error response. - - All required parameters must be populated in order to send to server. - - :ivar code: Error code. Required. - :vartype code: str - :ivar message: Error message. Required. - :vartype message: str - :ivar target: Property name/path in request associated with error. - :vartype target: str - :ivar details: Array with additional error details. - :vartype details: list[~azure.mgmt.datafactory.models.CloudError] - """ - - _validation = { - "code": {"required": True}, - "message": {"required": True}, - } - - _attribute_map = { - "code": {"key": "error.code", "type": "str"}, - "message": {"key": "error.message", "type": "str"}, - "target": {"key": "error.target", "type": "str"}, - "details": {"key": "error.details", "type": "[CloudError]"}, - } - - def __init__( - self, - *, - code: str, - message: str, - target: Optional[str] = None, - details: Optional[list["_models.CloudError"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: Error code. Required. - :paramtype code: str - :keyword message: Error message. Required. - :paramtype message: str - :keyword target: Property name/path in request associated with error. - :paramtype target: str - :keyword details: Array with additional error details. - :paramtype details: list[~azure.mgmt.datafactory.models.CloudError] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class CmdkeySetup(CustomSetupBase): - """The custom setup of running cmdkey commands. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of custom setup. Required. - :vartype type: str - :ivar target_name: The server name of data source access. Type: string. Required. - :vartype target_name: JSON - :ivar user_name: The user name of data source access. Type: string. Required. - :vartype user_name: JSON - :ivar password: The password of data source access. Required. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - """ - - _validation = { - "type": {"required": True}, - "target_name": {"required": True}, - "user_name": {"required": True}, - "password": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "target_name": {"key": "typeProperties.targetName", "type": "object"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - } - - def __init__(self, *, target_name: JSON, user_name: JSON, password: "_models.SecretBase", **kwargs: Any) -> None: - """ - :keyword target_name: The server name of data source access. Type: string. Required. - :paramtype target_name: JSON - :keyword user_name: The user name of data source access. Type: string. Required. - :paramtype user_name: JSON - :keyword password: The password of data source access. Required. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - """ - super().__init__(**kwargs) - self.type: str = "CmdkeySetup" - self.target_name = target_name - self.user_name = user_name - self.password = password - - -class CMKIdentityDefinition(_serialization.Model): - """Managed Identity used for CMK. - - :ivar user_assigned_identity: The resource id of the user assigned identity to authenticate to - customer's key vault. - :vartype user_assigned_identity: str - """ - - _attribute_map = { - "user_assigned_identity": {"key": "userAssignedIdentity", "type": "str"}, - } - - def __init__(self, *, user_assigned_identity: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword user_assigned_identity: The resource id of the user assigned identity to authenticate - to customer's key vault. - :paramtype user_assigned_identity: str - """ - super().__init__(**kwargs) - self.user_assigned_identity = user_assigned_identity - - -class CommonDataServiceForAppsEntityDataset(Dataset): - """The Common Data Service for Apps entity dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar entity_name: The logical name of the entity. Type: string (or Expression with resultType - string). - :vartype entity_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "entity_name": {"key": "typeProperties.entityName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - entity_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword entity_name: The logical name of the entity. Type: string (or Expression with - resultType string). - :paramtype entity_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "CommonDataServiceForAppsEntity" - self.entity_name = entity_name - - -class CommonDataServiceForAppsLinkedService(LinkedService): - """Common Data Service for Apps linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar deployment_type: The deployment type of the Common Data Service for Apps instance. - 'Online' for Common Data Service for Apps Online and 'OnPremisesWithIfd' for Common Data - Service for Apps on-premises with Ifd. Type: string (or Expression with resultType string). - Required. - :vartype deployment_type: JSON - :ivar host_name: The host name of the on-premises Common Data Service for Apps server. The - property is required for on-prem and not allowed for online. Type: string (or Expression with - resultType string). - :vartype host_name: JSON - :ivar port: The port of on-premises Common Data Service for Apps server. The property is - required for on-prem and not allowed for online. Default is 443. Type: integer (or Expression - with resultType integer), minimum: 0. - :vartype port: JSON - :ivar service_uri: The URL to the Microsoft Common Data Service for Apps server. The property - is required for on-line and not allowed for on-prem. Type: string (or Expression with - resultType string). - :vartype service_uri: JSON - :ivar organization_name: The organization name of the Common Data Service for Apps instance. - The property is required for on-prem and required for online when there are more than one - Common Data Service for Apps instances associated with the user. Type: string (or Expression - with resultType string). - :vartype organization_name: JSON - :ivar authentication_type: The authentication type to connect to Common Data Service for Apps - server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. - 'AADServicePrincipal' for Server-To-Server authentication in online scenario, 'Active - Directory' for Dynamics on-premises with IFD. Type: string (or Expression with resultType - string). Required. - :vartype authentication_type: JSON - :ivar domain: The Active Directory domain that will verify user credentials. Type: string (or - Expression with resultType string). - :vartype domain: JSON - :ivar username: User name to access the Common Data Service for Apps instance. Type: string (or - Expression with resultType string). - :vartype username: JSON - :ivar password: Password to access the Common Data Service for Apps instance. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_id: The client ID of the application in Azure Active Directory used for - Server-To-Server authentication. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :vartype service_principal_credential_type: JSON - :ivar service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "deployment_type": {"required": True}, - "authentication_type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "deployment_type": {"key": "typeProperties.deploymentType", "type": "object"}, - "host_name": {"key": "typeProperties.hostName", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "service_uri": {"key": "typeProperties.serviceUri", "type": "object"}, - "organization_name": {"key": "typeProperties.organizationName", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "object"}, - "domain": {"key": "typeProperties.domain", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, - "service_principal_credential": {"key": "typeProperties.servicePrincipalCredential", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - deployment_type: JSON, - authentication_type: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - host_name: Optional[JSON] = None, - port: Optional[JSON] = None, - service_uri: Optional[JSON] = None, - organization_name: Optional[JSON] = None, - domain: Optional[JSON] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - service_principal_id: Optional[JSON] = None, - service_principal_credential_type: Optional[JSON] = None, - service_principal_credential: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword deployment_type: The deployment type of the Common Data Service for Apps instance. - 'Online' for Common Data Service for Apps Online and 'OnPremisesWithIfd' for Common Data - Service for Apps on-premises with Ifd. Type: string (or Expression with resultType string). - Required. - :paramtype deployment_type: JSON - :keyword host_name: The host name of the on-premises Common Data Service for Apps server. The - property is required for on-prem and not allowed for online. Type: string (or Expression with - resultType string). - :paramtype host_name: JSON - :keyword port: The port of on-premises Common Data Service for Apps server. The property is - required for on-prem and not allowed for online. Default is 443. Type: integer (or Expression - with resultType integer), minimum: 0. - :paramtype port: JSON - :keyword service_uri: The URL to the Microsoft Common Data Service for Apps server. The - property is required for on-line and not allowed for on-prem. Type: string (or Expression with - resultType string). - :paramtype service_uri: JSON - :keyword organization_name: The organization name of the Common Data Service for Apps instance. - The property is required for on-prem and required for online when there are more than one - Common Data Service for Apps instances associated with the user. Type: string (or Expression - with resultType string). - :paramtype organization_name: JSON - :keyword authentication_type: The authentication type to connect to Common Data Service for - Apps server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. - 'AADServicePrincipal' for Server-To-Server authentication in online scenario, 'Active - Directory' for Dynamics on-premises with IFD. Type: string (or Expression with resultType - string). Required. - :paramtype authentication_type: JSON - :keyword domain: The Active Directory domain that will verify user credentials. Type: string - (or Expression with resultType string). - :paramtype domain: JSON - :keyword username: User name to access the Common Data Service for Apps instance. Type: string - (or Expression with resultType string). - :paramtype username: JSON - :keyword password: Password to access the Common Data Service for Apps instance. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_id: The client ID of the application in Azure Active Directory used - for Server-To-Server authentication. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :paramtype service_principal_credential_type: JSON - :keyword service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :paramtype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "CommonDataServiceForApps" - self.deployment_type = deployment_type - self.host_name = host_name - self.port = port - self.service_uri = service_uri - self.organization_name = organization_name - self.authentication_type = authentication_type - self.domain = domain - self.username = username - self.password = password - self.service_principal_id = service_principal_id - self.service_principal_credential_type = service_principal_credential_type - self.service_principal_credential = service_principal_credential - self.encrypted_credential = encrypted_credential - - -class CommonDataServiceForAppsSink(CopySink): - """A copy activity Common Data Service for Apps sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar write_behavior: The write behavior for the operation. Required. "Upsert" - :vartype write_behavior: str or ~azure.mgmt.datafactory.models.DynamicsSinkWriteBehavior - :ivar ignore_null_values: The flag indicating whether to ignore null values from input dataset - (except key fields) during write operation. Default is false. Type: boolean (or Expression with - resultType boolean). - :vartype ignore_null_values: JSON - :ivar alternate_key_name: The logical name of the alternate key which will be used when - upserting records. Type: string (or Expression with resultType string). - :vartype alternate_key_name: JSON - :ivar bypass_business_logic_execution: Controls the bypass of Dataverse custom business logic. - Type: string (or Expression with resultType string). Type: string (or Expression with - resultType string). - :vartype bypass_business_logic_execution: JSON - :ivar bypass_power_automate_flows: Controls the bypass of Power Automate flows. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype bypass_power_automate_flows: JSON - """ - - _validation = { - "type": {"required": True}, - "write_behavior": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "str"}, - "ignore_null_values": {"key": "ignoreNullValues", "type": "object"}, - "alternate_key_name": {"key": "alternateKeyName", "type": "object"}, - "bypass_business_logic_execution": {"key": "bypassBusinessLogicExecution", "type": "object"}, - "bypass_power_automate_flows": {"key": "bypassPowerAutomateFlows", "type": "object"}, - } - - def __init__( - self, - *, - write_behavior: Union[str, "_models.DynamicsSinkWriteBehavior"], - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - ignore_null_values: Optional[JSON] = None, - alternate_key_name: Optional[JSON] = None, - bypass_business_logic_execution: Optional[JSON] = None, - bypass_power_automate_flows: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword write_behavior: The write behavior for the operation. Required. "Upsert" - :paramtype write_behavior: str or ~azure.mgmt.datafactory.models.DynamicsSinkWriteBehavior - :keyword ignore_null_values: The flag indicating whether to ignore null values from input - dataset (except key fields) during write operation. Default is false. Type: boolean (or - Expression with resultType boolean). - :paramtype ignore_null_values: JSON - :keyword alternate_key_name: The logical name of the alternate key which will be used when - upserting records. Type: string (or Expression with resultType string). - :paramtype alternate_key_name: JSON - :keyword bypass_business_logic_execution: Controls the bypass of Dataverse custom business - logic. Type: string (or Expression with resultType string). Type: string (or Expression with - resultType string). - :paramtype bypass_business_logic_execution: JSON - :keyword bypass_power_automate_flows: Controls the bypass of Power Automate flows. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype bypass_power_automate_flows: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "CommonDataServiceForAppsSink" - self.write_behavior = write_behavior - self.ignore_null_values = ignore_null_values - self.alternate_key_name = alternate_key_name - self.bypass_business_logic_execution = bypass_business_logic_execution - self.bypass_power_automate_flows = bypass_power_automate_flows - - -class CommonDataServiceForAppsSource(CopySource): - """A copy activity Common Data Service for Apps source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query: FetchXML is a proprietary query language that is used in Microsoft Common Data - Service for Apps (online & on-premises). Type: string (or Expression with resultType string). - :vartype query: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query: FetchXML is a proprietary query language that is used in Microsoft Common Data - Service for Apps (online & on-premises). Type: string (or Expression with resultType string). - :paramtype query: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "CommonDataServiceForAppsSource" - self.query = query - self.additional_columns = additional_columns - - -class ComponentSetup(CustomSetupBase): - """The custom setup of installing 3rd party components. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of custom setup. Required. - :vartype type: str - :ivar component_name: The name of the 3rd party component. Required. - :vartype component_name: str - :ivar license_key: The license key to activate the component. - :vartype license_key: ~azure.mgmt.datafactory.models.SecretBase - """ - - _validation = { - "type": {"required": True}, - "component_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "component_name": {"key": "typeProperties.componentName", "type": "str"}, - "license_key": {"key": "typeProperties.licenseKey", "type": "SecretBase"}, - } - - def __init__( - self, *, component_name: str, license_key: Optional["_models.SecretBase"] = None, **kwargs: Any - ) -> None: - """ - :keyword component_name: The name of the 3rd party component. Required. - :paramtype component_name: str - :keyword license_key: The license key to activate the component. - :paramtype license_key: ~azure.mgmt.datafactory.models.SecretBase - """ - super().__init__(**kwargs) - self.type: str = "ComponentSetup" - self.component_name = component_name - self.license_key = license_key - - -class CompressionReadSettings(_serialization.Model): - """Compression read settings. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - TarGZipReadSettings, TarReadSettings, ZipDeflateReadSettings - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The Compression setting type. Required. - :vartype type: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = { - "type": { - "TarGZipReadSettings": "TarGZipReadSettings", - "TarReadSettings": "TarReadSettings", - "ZipDeflateReadSettings": "ZipDeflateReadSettings", - } - } - - def __init__(self, *, additional_properties: Optional[dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - - -class ConcurLinkedService(LinkedService): - """Concur Service linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_properties: Properties used to connect to Concur. It is mutually exclusive - with any other properties in the linked service. Type: object. - :vartype connection_properties: JSON - :ivar client_id: Application client_id supplied by Concur App Management. Required. - :vartype client_id: JSON - :ivar username: The user name that you use to access Concur Service. Required. - :vartype username: JSON - :ivar password: The password corresponding to the user name that you provided in the username - field. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using - HTTPS. The default value is true. - :vartype use_encrypted_endpoints: JSON - :ivar use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :vartype use_host_verification: JSON - :ivar use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :vartype use_peer_verification: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "client_id": {"required": True}, - "username": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_properties": {"key": "typeProperties.connectionProperties", "type": "object"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, - "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, - "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - client_id: JSON, - username: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_properties: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - use_encrypted_endpoints: Optional[JSON] = None, - use_host_verification: Optional[JSON] = None, - use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_properties: Properties used to connect to Concur. It is mutually exclusive - with any other properties in the linked service. Type: object. - :paramtype connection_properties: JSON - :keyword client_id: Application client_id supplied by Concur App Management. Required. - :paramtype client_id: JSON - :keyword username: The user name that you use to access Concur Service. Required. - :paramtype username: JSON - :keyword password: The password corresponding to the user name that you provided in the - username field. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted - using HTTPS. The default value is true. - :paramtype use_encrypted_endpoints: JSON - :keyword use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :paramtype use_host_verification: JSON - :keyword use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :paramtype use_peer_verification: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Concur" - self.connection_properties = connection_properties - self.client_id = client_id - self.username = username - self.password = password - self.use_encrypted_endpoints = use_encrypted_endpoints - self.use_host_verification = use_host_verification - self.use_peer_verification = use_peer_verification - self.encrypted_credential = encrypted_credential - - -class ConcurObjectDataset(Dataset): - """Concur Service dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "ConcurObject" - self.table_name = table_name - - -class ConcurSource(TabularSource): - """A copy activity Concur Service source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "ConcurSource" - self.query = query - - -class ConnectionStateProperties(_serialization.Model): - """The connection state of a managed private endpoint. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar actions_required: The actions required on the managed private endpoint. - :vartype actions_required: str - :ivar description: The managed private endpoint description. - :vartype description: str - :ivar status: The approval status. - :vartype status: str - """ - - _validation = { - "actions_required": {"readonly": True}, - "description": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "actions_required": {"key": "actionsRequired", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.actions_required: Optional[str] = None - self.description: Optional[str] = None - self.status: Optional[str] = None - - -class ContinuationSettingsReference(_serialization.Model): - """Continuation settings for execute data flow activity. - - :ivar continuation_ttl_in_minutes: Continuation TTL in minutes. - :vartype continuation_ttl_in_minutes: JSON - :ivar idle_condition: Idle condition. - :vartype idle_condition: JSON - :ivar customized_checkpoint_key: Customized checkpoint key. - :vartype customized_checkpoint_key: JSON - """ - - _attribute_map = { - "continuation_ttl_in_minutes": {"key": "continuationTtlInMinutes", "type": "object"}, - "idle_condition": {"key": "idleCondition", "type": "object"}, - "customized_checkpoint_key": {"key": "customizedCheckpointKey", "type": "object"}, - } - - def __init__( - self, - *, - continuation_ttl_in_minutes: Optional[JSON] = None, - idle_condition: Optional[JSON] = None, - customized_checkpoint_key: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword continuation_ttl_in_minutes: Continuation TTL in minutes. - :paramtype continuation_ttl_in_minutes: JSON - :keyword idle_condition: Idle condition. - :paramtype idle_condition: JSON - :keyword customized_checkpoint_key: Customized checkpoint key. - :paramtype customized_checkpoint_key: JSON - """ - super().__init__(**kwargs) - self.continuation_ttl_in_minutes = continuation_ttl_in_minutes - self.idle_condition = idle_condition - self.customized_checkpoint_key = customized_checkpoint_key - - -class CopyActivity(ExecutionActivity): - """Copy activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar inputs: List of inputs for the activity. - :vartype inputs: list[~azure.mgmt.datafactory.models.DatasetReference] - :ivar outputs: List of outputs for the activity. - :vartype outputs: list[~azure.mgmt.datafactory.models.DatasetReference] - :ivar source: Copy activity source. Required. - :vartype source: ~azure.mgmt.datafactory.models.CopySource - :ivar sink: Copy activity sink. Required. - :vartype sink: ~azure.mgmt.datafactory.models.CopySink - :ivar translator: Copy activity translator. If not specified, tabular translator is used. - :vartype translator: JSON - :ivar enable_staging: Specifies whether to copy data via an interim staging. Default value is - false. Type: boolean (or Expression with resultType boolean). - :vartype enable_staging: JSON - :ivar staging_settings: Specifies interim staging settings when EnableStaging is true. - :vartype staging_settings: ~azure.mgmt.datafactory.models.StagingSettings - :ivar parallel_copies: Maximum number of concurrent sessions opened on the source or sink to - avoid overloading the data store. Type: integer (or Expression with resultType integer), - minimum: 0. - :vartype parallel_copies: JSON - :ivar data_integration_units: Maximum number of data integration units that can be used to - perform this data movement. Type: integer (or Expression with resultType integer), minimum: 0. - :vartype data_integration_units: JSON - :ivar enable_skip_incompatible_row: Whether to skip incompatible row. Default value is false. - Type: boolean (or Expression with resultType boolean). - :vartype enable_skip_incompatible_row: JSON - :ivar redirect_incompatible_row_settings: Redirect incompatible row settings when - EnableSkipIncompatibleRow is true. - :vartype redirect_incompatible_row_settings: - ~azure.mgmt.datafactory.models.RedirectIncompatibleRowSettings - :ivar log_storage_settings: (Deprecated. Please use LogSettings) Log storage settings customer - need to provide when enabling session log. - :vartype log_storage_settings: ~azure.mgmt.datafactory.models.LogStorageSettings - :ivar log_settings: Log settings customer needs provide when enabling log. - :vartype log_settings: ~azure.mgmt.datafactory.models.LogSettings - :ivar preserve_rules: Preserve Rules. - :vartype preserve_rules: list[JSON] - :ivar preserve: Preserve rules. - :vartype preserve: list[JSON] - :ivar validate_data_consistency: Whether to enable Data Consistency validation. Type: boolean - (or Expression with resultType boolean). - :vartype validate_data_consistency: JSON - :ivar skip_error_file: Specify the fault tolerance for data consistency. - :vartype skip_error_file: ~azure.mgmt.datafactory.models.SkipErrorFile - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "source": {"required": True}, - "sink": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "inputs": {"key": "inputs", "type": "[DatasetReference]"}, - "outputs": {"key": "outputs", "type": "[DatasetReference]"}, - "source": {"key": "typeProperties.source", "type": "CopySource"}, - "sink": {"key": "typeProperties.sink", "type": "CopySink"}, - "translator": {"key": "typeProperties.translator", "type": "object"}, - "enable_staging": {"key": "typeProperties.enableStaging", "type": "object"}, - "staging_settings": {"key": "typeProperties.stagingSettings", "type": "StagingSettings"}, - "parallel_copies": {"key": "typeProperties.parallelCopies", "type": "object"}, - "data_integration_units": {"key": "typeProperties.dataIntegrationUnits", "type": "object"}, - "enable_skip_incompatible_row": {"key": "typeProperties.enableSkipIncompatibleRow", "type": "object"}, - "redirect_incompatible_row_settings": { - "key": "typeProperties.redirectIncompatibleRowSettings", - "type": "RedirectIncompatibleRowSettings", - }, - "log_storage_settings": {"key": "typeProperties.logStorageSettings", "type": "LogStorageSettings"}, - "log_settings": {"key": "typeProperties.logSettings", "type": "LogSettings"}, - "preserve_rules": {"key": "typeProperties.preserveRules", "type": "[object]"}, - "preserve": {"key": "typeProperties.preserve", "type": "[object]"}, - "validate_data_consistency": {"key": "typeProperties.validateDataConsistency", "type": "object"}, - "skip_error_file": {"key": "typeProperties.skipErrorFile", "type": "SkipErrorFile"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - name: str, - source: "_models.CopySource", - sink: "_models.CopySink", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - inputs: Optional[list["_models.DatasetReference"]] = None, - outputs: Optional[list["_models.DatasetReference"]] = None, - translator: Optional[JSON] = None, - enable_staging: Optional[JSON] = None, - staging_settings: Optional["_models.StagingSettings"] = None, - parallel_copies: Optional[JSON] = None, - data_integration_units: Optional[JSON] = None, - enable_skip_incompatible_row: Optional[JSON] = None, - redirect_incompatible_row_settings: Optional["_models.RedirectIncompatibleRowSettings"] = None, - log_storage_settings: Optional["_models.LogStorageSettings"] = None, - log_settings: Optional["_models.LogSettings"] = None, - preserve_rules: Optional[list[JSON]] = None, - preserve: Optional[list[JSON]] = None, - validate_data_consistency: Optional[JSON] = None, - skip_error_file: Optional["_models.SkipErrorFile"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword inputs: List of inputs for the activity. - :paramtype inputs: list[~azure.mgmt.datafactory.models.DatasetReference] - :keyword outputs: List of outputs for the activity. - :paramtype outputs: list[~azure.mgmt.datafactory.models.DatasetReference] - :keyword source: Copy activity source. Required. - :paramtype source: ~azure.mgmt.datafactory.models.CopySource - :keyword sink: Copy activity sink. Required. - :paramtype sink: ~azure.mgmt.datafactory.models.CopySink - :keyword translator: Copy activity translator. If not specified, tabular translator is used. - :paramtype translator: JSON - :keyword enable_staging: Specifies whether to copy data via an interim staging. Default value - is false. Type: boolean (or Expression with resultType boolean). - :paramtype enable_staging: JSON - :keyword staging_settings: Specifies interim staging settings when EnableStaging is true. - :paramtype staging_settings: ~azure.mgmt.datafactory.models.StagingSettings - :keyword parallel_copies: Maximum number of concurrent sessions opened on the source or sink to - avoid overloading the data store. Type: integer (or Expression with resultType integer), - minimum: 0. - :paramtype parallel_copies: JSON - :keyword data_integration_units: Maximum number of data integration units that can be used to - perform this data movement. Type: integer (or Expression with resultType integer), minimum: 0. - :paramtype data_integration_units: JSON - :keyword enable_skip_incompatible_row: Whether to skip incompatible row. Default value is - false. Type: boolean (or Expression with resultType boolean). - :paramtype enable_skip_incompatible_row: JSON - :keyword redirect_incompatible_row_settings: Redirect incompatible row settings when - EnableSkipIncompatibleRow is true. - :paramtype redirect_incompatible_row_settings: - ~azure.mgmt.datafactory.models.RedirectIncompatibleRowSettings - :keyword log_storage_settings: (Deprecated. Please use LogSettings) Log storage settings - customer need to provide when enabling session log. - :paramtype log_storage_settings: ~azure.mgmt.datafactory.models.LogStorageSettings - :keyword log_settings: Log settings customer needs provide when enabling log. - :paramtype log_settings: ~azure.mgmt.datafactory.models.LogSettings - :keyword preserve_rules: Preserve Rules. - :paramtype preserve_rules: list[JSON] - :keyword preserve: Preserve rules. - :paramtype preserve: list[JSON] - :keyword validate_data_consistency: Whether to enable Data Consistency validation. Type: - boolean (or Expression with resultType boolean). - :paramtype validate_data_consistency: JSON - :keyword skip_error_file: Specify the fault tolerance for data consistency. - :paramtype skip_error_file: ~azure.mgmt.datafactory.models.SkipErrorFile - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "Copy" - self.inputs = inputs - self.outputs = outputs - self.source = source - self.sink = sink - self.translator = translator - self.enable_staging = enable_staging - self.staging_settings = staging_settings - self.parallel_copies = parallel_copies - self.data_integration_units = data_integration_units - self.enable_skip_incompatible_row = enable_skip_incompatible_row - self.redirect_incompatible_row_settings = redirect_incompatible_row_settings - self.log_storage_settings = log_storage_settings - self.log_settings = log_settings - self.preserve_rules = preserve_rules - self.preserve = preserve - self.validate_data_consistency = validate_data_consistency - self.skip_error_file = skip_error_file - - -class CopyActivityLogSettings(_serialization.Model): - """Settings for copy activity log. - - :ivar log_level: Gets or sets the log level, support: Info, Warning. Type: string (or - Expression with resultType string). - :vartype log_level: JSON - :ivar enable_reliable_logging: Specifies whether to enable reliable logging. Type: boolean (or - Expression with resultType boolean). - :vartype enable_reliable_logging: JSON - """ - - _attribute_map = { - "log_level": {"key": "logLevel", "type": "object"}, - "enable_reliable_logging": {"key": "enableReliableLogging", "type": "object"}, - } - - def __init__( - self, *, log_level: Optional[JSON] = None, enable_reliable_logging: Optional[JSON] = None, **kwargs: Any - ) -> None: - """ - :keyword log_level: Gets or sets the log level, support: Info, Warning. Type: string (or - Expression with resultType string). - :paramtype log_level: JSON - :keyword enable_reliable_logging: Specifies whether to enable reliable logging. Type: boolean - (or Expression with resultType boolean). - :paramtype enable_reliable_logging: JSON - """ - super().__init__(**kwargs) - self.log_level = log_level - self.enable_reliable_logging = enable_reliable_logging - - -class CopyComputeScaleProperties(_serialization.Model): - """CopyComputeScale properties for managed integration runtime. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar data_integration_unit: DIU number setting reserved for copy activity execution. Supported - values are multiples of 4 in range 4-256. - :vartype data_integration_unit: int - :ivar time_to_live: Time to live (in minutes) setting of integration runtime which will execute - copy activity. - :vartype time_to_live: int - """ - - _validation = { - "data_integration_unit": {"minimum": 4}, - "time_to_live": {"minimum": 5}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "data_integration_unit": {"key": "dataIntegrationUnit", "type": "int"}, - "time_to_live": {"key": "timeToLive", "type": "int"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - data_integration_unit: Optional[int] = None, - time_to_live: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword data_integration_unit: DIU number setting reserved for copy activity execution. - Supported values are multiples of 4 in range 4-256. - :paramtype data_integration_unit: int - :keyword time_to_live: Time to live (in minutes) setting of integration runtime which will - execute copy activity. - :paramtype time_to_live: int - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.data_integration_unit = data_integration_unit - self.time_to_live = time_to_live - - -class CopyTranslator(_serialization.Model): - """A copy activity translator. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - TabularTranslator - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy translator type. Required. - :vartype type: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = {"type": {"TabularTranslator": "TabularTranslator"}} - - def __init__(self, *, additional_properties: Optional[dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - - -class CosmosDbLinkedService(LinkedService): - """Microsoft Azure Cosmos Database (CosmosDB) linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar account_endpoint: The endpoint of the Azure CosmosDB account. Type: string (or Expression - with resultType string). - :vartype account_endpoint: JSON - :ivar database: The name of the database. Type: string (or Expression with resultType string). - :vartype database: JSON - :ivar account_key: The account key of the Azure CosmosDB account. Type: SecureString or - AzureKeyVaultSecretReference. - :vartype account_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_id: The client ID of the application in Azure Active Directory used for - Server-To-Server authentication. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string. - :vartype service_principal_credential_type: JSON - :ivar service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string - (or Expression with resultType string). - :vartype tenant: JSON - :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed - values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data - factory regions’ cloud type. Type: string (or Expression with resultType string). - :vartype azure_cloud_type: JSON - :ivar connection_mode: The connection mode used to access CosmosDB account. Type: string. Known - values are: "Gateway" and "Direct". - :vartype connection_mode: str or ~azure.mgmt.datafactory.models.CosmosDbConnectionMode - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "account_endpoint": {"key": "typeProperties.accountEndpoint", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "account_key": {"key": "typeProperties.accountKey", "type": "SecretBase"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, - "service_principal_credential": {"key": "typeProperties.servicePrincipalCredential", "type": "SecretBase"}, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "azure_cloud_type": {"key": "typeProperties.azureCloudType", "type": "object"}, - "connection_mode": {"key": "typeProperties.connectionMode", "type": "str"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_string: Optional[JSON] = None, - account_endpoint: Optional[JSON] = None, - database: Optional[JSON] = None, - account_key: Optional["_models.SecretBase"] = None, - service_principal_id: Optional[JSON] = None, - service_principal_credential_type: Optional[JSON] = None, - service_principal_credential: Optional["_models.SecretBase"] = None, - tenant: Optional[JSON] = None, - azure_cloud_type: Optional[JSON] = None, - connection_mode: Optional[Union[str, "_models.CosmosDbConnectionMode"]] = None, - encrypted_credential: Optional[str] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword account_endpoint: The endpoint of the Azure CosmosDB account. Type: string (or - Expression with resultType string). - :paramtype account_endpoint: JSON - :keyword database: The name of the database. Type: string (or Expression with resultType - string). - :paramtype database: JSON - :keyword account_key: The account key of the Azure CosmosDB account. Type: SecureString or - AzureKeyVaultSecretReference. - :paramtype account_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_id: The client ID of the application in Azure Active Directory used - for Server-To-Server authentication. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string. - :paramtype service_principal_credential_type: JSON - :keyword service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :paramtype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: The name or ID of the tenant to which the service principal belongs. Type: - string (or Expression with resultType string). - :paramtype tenant: JSON - :keyword azure_cloud_type: Indicates the azure cloud type of the service principle auth. - Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is - the data factory regions’ cloud type. Type: string (or Expression with resultType string). - :paramtype azure_cloud_type: JSON - :keyword connection_mode: The connection mode used to access CosmosDB account. Type: string. - Known values are: "Gateway" and "Direct". - :paramtype connection_mode: str or ~azure.mgmt.datafactory.models.CosmosDbConnectionMode - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "CosmosDb" - self.connection_string = connection_string - self.account_endpoint = account_endpoint - self.database = database - self.account_key = account_key - self.service_principal_id = service_principal_id - self.service_principal_credential_type = service_principal_credential_type - self.service_principal_credential = service_principal_credential - self.tenant = tenant - self.azure_cloud_type = azure_cloud_type - self.connection_mode = connection_mode - self.encrypted_credential = encrypted_credential - self.credential = credential - - -class CosmosDbMongoDbApiCollectionDataset(Dataset): - """The CosmosDB (MongoDB API) database dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar collection: The collection name of the CosmosDB (MongoDB API) database. Type: string (or - Expression with resultType string). Required. - :vartype collection: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - "collection": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "collection": {"key": "typeProperties.collection", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - collection: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword collection: The collection name of the CosmosDB (MongoDB API) database. Type: string - (or Expression with resultType string). Required. - :paramtype collection: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "CosmosDbMongoDbApiCollection" - self.collection = collection - - -class CosmosDbMongoDbApiLinkedService(LinkedService): - """Linked service for CosmosDB (MongoDB API) data source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar is_server_version_above32: Whether the CosmosDB (MongoDB API) server version is higher - than 3.2. The default value is false. Type: boolean (or Expression with resultType boolean). - :vartype is_server_version_above32: JSON - :ivar connection_string: The CosmosDB (MongoDB API) connection string. Type: string, - SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or - AzureKeyVaultSecretReference. Required. - :vartype connection_string: JSON - :ivar database: The name of the CosmosDB (MongoDB API) database that you want to access. Type: - string (or Expression with resultType string). Required. - :vartype database: JSON - """ - - _validation = { - "type": {"required": True}, - "connection_string": {"required": True}, - "database": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "is_server_version_above32": {"key": "typeProperties.isServerVersionAbove32", "type": "object"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - } - - def __init__( - self, - *, - connection_string: JSON, - database: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - is_server_version_above32: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword is_server_version_above32: Whether the CosmosDB (MongoDB API) server version is higher - than 3.2. The default value is false. Type: boolean (or Expression with resultType boolean). - :paramtype is_server_version_above32: JSON - :keyword connection_string: The CosmosDB (MongoDB API) connection string. Type: string, - SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or - AzureKeyVaultSecretReference. Required. - :paramtype connection_string: JSON - :keyword database: The name of the CosmosDB (MongoDB API) database that you want to access. - Type: string (or Expression with resultType string). Required. - :paramtype database: JSON - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "CosmosDbMongoDbApi" - self.is_server_version_above32 = is_server_version_above32 - self.connection_string = connection_string - self.database = database - - -class CosmosDbMongoDbApiSink(CopySink): - """A copy activity sink for a CosmosDB (MongoDB API) database. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar write_behavior: Specifies whether the document with same key to be overwritten (upsert) - rather than throw exception (insert). The default value is "insert". Type: string (or - Expression with resultType string). Type: string (or Expression with resultType string). - :vartype write_behavior: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - write_behavior: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword write_behavior: Specifies whether the document with same key to be overwritten - (upsert) rather than throw exception (insert). The default value is "insert". Type: string (or - Expression with resultType string). Type: string (or Expression with resultType string). - :paramtype write_behavior: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "CosmosDbMongoDbApiSink" - self.write_behavior = write_behavior - - -class CosmosDbMongoDbApiSource(CopySource): - """A copy activity source for a CosmosDB (MongoDB API) database. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar filter: Specifies selection filter using query operators. To return all documents in a - collection, omit this parameter or pass an empty document ({}). Type: string (or Expression - with resultType string). - :vartype filter: JSON - :ivar cursor_methods: Cursor methods for Mongodb query. - :vartype cursor_methods: ~azure.mgmt.datafactory.models.MongoDbCursorMethodsProperties - :ivar batch_size: Specifies the number of documents to return in each batch of the response - from MongoDB instance. In most cases, modifying the batch size will not affect the user or the - application. This property's main purpose is to avoid hit the limitation of response size. - Type: integer (or Expression with resultType integer). - :vartype batch_size: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "filter": {"key": "filter", "type": "object"}, - "cursor_methods": {"key": "cursorMethods", "type": "MongoDbCursorMethodsProperties"}, - "batch_size": {"key": "batchSize", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - filter: Optional[JSON] = None, # pylint: disable=redefined-builtin - cursor_methods: Optional["_models.MongoDbCursorMethodsProperties"] = None, - batch_size: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword filter: Specifies selection filter using query operators. To return all documents in a - collection, omit this parameter or pass an empty document ({}). Type: string (or Expression - with resultType string). - :paramtype filter: JSON - :keyword cursor_methods: Cursor methods for Mongodb query. - :paramtype cursor_methods: ~azure.mgmt.datafactory.models.MongoDbCursorMethodsProperties - :keyword batch_size: Specifies the number of documents to return in each batch of the response - from MongoDB instance. In most cases, modifying the batch size will not affect the user or the - application. This property's main purpose is to avoid hit the limitation of response size. - Type: integer (or Expression with resultType integer). - :paramtype batch_size: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "CosmosDbMongoDbApiSource" - self.filter = filter - self.cursor_methods = cursor_methods - self.batch_size = batch_size - self.query_timeout = query_timeout - self.additional_columns = additional_columns - - -class CosmosDbSqlApiCollectionDataset(Dataset): - """Microsoft Azure CosmosDB (SQL API) Collection dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar collection_name: CosmosDB (SQL API) collection name. Type: string (or Expression with - resultType string). Required. - :vartype collection_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - "collection_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "collection_name": {"key": "typeProperties.collectionName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - collection_name: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword collection_name: CosmosDB (SQL API) collection name. Type: string (or Expression with - resultType string). Required. - :paramtype collection_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "CosmosDbSqlApiCollection" - self.collection_name = collection_name - - -class CosmosDbSqlApiSink(CopySink): - """A copy activity Azure CosmosDB (SQL API) Collection sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar write_behavior: Describes how to write data to Azure Cosmos DB. Type: string (or - Expression with resultType string). Allowed values: insert and upsert. - :vartype write_behavior: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - write_behavior: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword write_behavior: Describes how to write data to Azure Cosmos DB. Type: string (or - Expression with resultType string). Allowed values: insert and upsert. - :paramtype write_behavior: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "CosmosDbSqlApiSink" - self.write_behavior = write_behavior - - -class CosmosDbSqlApiSource(CopySource): - """A copy activity Azure CosmosDB (SQL API) Collection source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query: SQL API query. Type: string (or Expression with resultType string). - :vartype query: JSON - :ivar page_size: Page size of the result. Type: integer (or Expression with resultType - integer). - :vartype page_size: JSON - :ivar preferred_regions: Preferred regions. Type: array of strings (or Expression with - resultType array of strings). - :vartype preferred_regions: JSON - :ivar detect_datetime: Whether detect primitive values as datetime values. Type: boolean (or - Expression with resultType boolean). - :vartype detect_datetime: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "page_size": {"key": "pageSize", "type": "object"}, - "preferred_regions": {"key": "preferredRegions", "type": "object"}, - "detect_datetime": {"key": "detectDatetime", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query: Optional[JSON] = None, - page_size: Optional[JSON] = None, - preferred_regions: Optional[JSON] = None, - detect_datetime: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query: SQL API query. Type: string (or Expression with resultType string). - :paramtype query: JSON - :keyword page_size: Page size of the result. Type: integer (or Expression with resultType - integer). - :paramtype page_size: JSON - :keyword preferred_regions: Preferred regions. Type: array of strings (or Expression with - resultType array of strings). - :paramtype preferred_regions: JSON - :keyword detect_datetime: Whether detect primitive values as datetime values. Type: boolean (or - Expression with resultType boolean). - :paramtype detect_datetime: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "CosmosDbSqlApiSource" - self.query = query - self.page_size = page_size - self.preferred_regions = preferred_regions - self.detect_datetime = detect_datetime - self.additional_columns = additional_columns - - -class CouchbaseLinkedService(LinkedService): - """Couchbase server linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: An ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar cred_string: The Azure key vault secret reference of credString in connection string. - :vartype cred_string: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "cred_string": {"key": "typeProperties.credString", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_string: Optional[JSON] = None, - cred_string: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: An ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword cred_string: The Azure key vault secret reference of credString in connection string. - :paramtype cred_string: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Couchbase" - self.connection_string = connection_string - self.cred_string = cred_string - self.encrypted_credential = encrypted_credential - - -class CouchbaseSource(TabularSource): - """A copy activity Couchbase server source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "CouchbaseSource" - self.query = query - - -class CouchbaseTableDataset(Dataset): - """Couchbase server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "CouchbaseTable" - self.table_name = table_name - - -class CreateDataFlowDebugSessionRequest(_serialization.Model): - """Request body structure for creating data flow debug session. - - :ivar compute_type: Compute type of the cluster. The value will be overwritten by the same - setting in integration runtime if provided. - :vartype compute_type: str - :ivar core_count: Core count of the cluster. The value will be overwritten by the same setting - in integration runtime if provided. - :vartype core_count: int - :ivar time_to_live: Time to live setting of the cluster in minutes. - :vartype time_to_live: int - :ivar integration_runtime: Set to use integration runtime setting for data flow debug session. - :vartype integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeDebugResource - """ - - _attribute_map = { - "compute_type": {"key": "computeType", "type": "str"}, - "core_count": {"key": "coreCount", "type": "int"}, - "time_to_live": {"key": "timeToLive", "type": "int"}, - "integration_runtime": {"key": "integrationRuntime", "type": "IntegrationRuntimeDebugResource"}, - } - - def __init__( - self, - *, - compute_type: Optional[str] = None, - core_count: Optional[int] = None, - time_to_live: Optional[int] = None, - integration_runtime: Optional["_models.IntegrationRuntimeDebugResource"] = None, - **kwargs: Any - ) -> None: - """ - :keyword compute_type: Compute type of the cluster. The value will be overwritten by the same - setting in integration runtime if provided. - :paramtype compute_type: str - :keyword core_count: Core count of the cluster. The value will be overwritten by the same - setting in integration runtime if provided. - :paramtype core_count: int - :keyword time_to_live: Time to live setting of the cluster in minutes. - :paramtype time_to_live: int - :keyword integration_runtime: Set to use integration runtime setting for data flow debug - session. - :paramtype integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeDebugResource - """ - super().__init__(**kwargs) - self.compute_type = compute_type - self.core_count = core_count - self.time_to_live = time_to_live - self.integration_runtime = integration_runtime - - -class CreateDataFlowDebugSessionResponse(_serialization.Model): - """Response body structure for creating data flow debug session. - - :ivar status: The state of the debug session. - :vartype status: str - :ivar session_id: The ID of data flow debug session. - :vartype session_id: str - """ - - _attribute_map = { - "status": {"key": "status", "type": "str"}, - "session_id": {"key": "sessionId", "type": "str"}, - } - - def __init__(self, *, status: Optional[str] = None, session_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword status: The state of the debug session. - :paramtype status: str - :keyword session_id: The ID of data flow debug session. - :paramtype session_id: str - """ - super().__init__(**kwargs) - self.status = status - self.session_id = session_id - - -class CreateLinkedIntegrationRuntimeRequest(_serialization.Model): - """The linked integration runtime information. - - :ivar name: The name of the linked integration runtime. - :vartype name: str - :ivar subscription_id: The ID of the subscription that the linked integration runtime belongs - to. - :vartype subscription_id: str - :ivar data_factory_name: The name of the data factory that the linked integration runtime - belongs to. - :vartype data_factory_name: str - :ivar data_factory_location: The location of the data factory that the linked integration - runtime belongs to. - :vartype data_factory_location: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "subscription_id": {"key": "subscriptionId", "type": "str"}, - "data_factory_name": {"key": "dataFactoryName", "type": "str"}, - "data_factory_location": {"key": "dataFactoryLocation", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - subscription_id: Optional[str] = None, - data_factory_name: Optional[str] = None, - data_factory_location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the linked integration runtime. - :paramtype name: str - :keyword subscription_id: The ID of the subscription that the linked integration runtime - belongs to. - :paramtype subscription_id: str - :keyword data_factory_name: The name of the data factory that the linked integration runtime - belongs to. - :paramtype data_factory_name: str - :keyword data_factory_location: The location of the data factory that the linked integration - runtime belongs to. - :paramtype data_factory_location: str - """ - super().__init__(**kwargs) - self.name = name - self.subscription_id = subscription_id - self.data_factory_name = data_factory_name - self.data_factory_location = data_factory_location - - -class CreateRunResponse(_serialization.Model): - """Response body with a run identifier. - - All required parameters must be populated in order to send to server. - - :ivar run_id: Identifier of a run. Required. - :vartype run_id: str - """ - - _validation = { - "run_id": {"required": True}, - } - - _attribute_map = { - "run_id": {"key": "runId", "type": "str"}, - } - - def __init__(self, *, run_id: str, **kwargs: Any) -> None: - """ - :keyword run_id: Identifier of a run. Required. - :paramtype run_id: str - """ - super().__init__(**kwargs) - self.run_id = run_id - - -class Credential(_serialization.Model): - """The Azure Data Factory nested object which contains the information and credential which can be - used to connect with related store or compute resource. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ManagedIdentityCredential, ServicePrincipalCredential - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of credential. Required. - :vartype type: str - :ivar description: Credential description. - :vartype description: str - :ivar annotations: List of tags that can be used for describing the Credential. - :vartype annotations: list[JSON] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "annotations": {"key": "annotations", "type": "[object]"}, - } - - _subtype_map = { - "type": {"ManagedIdentity": "ManagedIdentityCredential", "ServicePrincipal": "ServicePrincipalCredential"} - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - annotations: Optional[list[JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Credential description. - :paramtype description: str - :keyword annotations: List of tags that can be used for describing the Credential. - :paramtype annotations: list[JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - self.description = description - self.annotations = annotations - - -class CredentialListResponse(_serialization.Model): - """A list of credential resources. - - All required parameters must be populated in order to send to server. - - :ivar value: List of credentials. Required. - :vartype value: list[~azure.mgmt.datafactory.models.CredentialResource] - :ivar next_link: The link to the next page of results, if any remaining results exist. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[CredentialResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: list["_models.CredentialResource"], next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: List of credentials. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.CredentialResource] - :keyword next_link: The link to the next page of results, if any remaining results exist. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CredentialReference(_serialization.Model): - """Credential reference type. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Credential reference type. Required. "CredentialReference" - :vartype type: str or ~azure.mgmt.datafactory.models.CredentialReferenceType - :ivar reference_name: Reference credential name. Required. - :vartype reference_name: str - """ - - _validation = { - "type": {"required": True}, - "reference_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "reference_name": {"key": "referenceName", "type": "str"}, - } - - def __init__( - self, - *, - type: Union[str, "_models.CredentialReferenceType"], - reference_name: str, - additional_properties: Optional[dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword type: Credential reference type. Required. "CredentialReference" - :paramtype type: str or ~azure.mgmt.datafactory.models.CredentialReferenceType - :keyword reference_name: Reference credential name. Required. - :paramtype reference_name: str - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type = type - self.reference_name = reference_name - - -class CredentialResource(SubResource): - """Credential resource type. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar etag: Etag identifies change in the resource. - :vartype etag: str - :ivar properties: Properties of credentials. Required. - :vartype properties: ~azure.mgmt.datafactory.models.Credential - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "etag": {"readonly": True}, - "properties": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "etag": {"key": "etag", "type": "str"}, - "properties": {"key": "properties", "type": "Credential"}, - } - - def __init__(self, *, properties: "_models.Credential", **kwargs: Any) -> None: - """ - :keyword properties: Properties of credentials. Required. - :paramtype properties: ~azure.mgmt.datafactory.models.Credential - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomActivity(ExecutionActivity): - """Custom activity type. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar command: Command for custom activity Type: string (or Expression with resultType string). - Required. - :vartype command: JSON - :ivar resource_linked_service: Resource linked service reference. - :vartype resource_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar folder_path: Folder path for resource files Type: string (or Expression with resultType - string). - :vartype folder_path: JSON - :ivar reference_objects: Reference objects. - :vartype reference_objects: ~azure.mgmt.datafactory.models.CustomActivityReferenceObject - :ivar extended_properties: User defined property bag. There is no restriction on the keys or - values that can be used. The user specified custom activity has the full responsibility to - consume and interpret the content defined. - :vartype extended_properties: dict[str, JSON] - :ivar retention_time_in_days: The retention time for the files submitted for custom activity. - Type: double (or Expression with resultType double). - :vartype retention_time_in_days: JSON - :ivar auto_user_specification: Elevation level and scope for the user, default is nonadmin - task. Type: string (or Expression with resultType double). - :vartype auto_user_specification: JSON - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "command": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "command": {"key": "typeProperties.command", "type": "object"}, - "resource_linked_service": {"key": "typeProperties.resourceLinkedService", "type": "LinkedServiceReference"}, - "folder_path": {"key": "typeProperties.folderPath", "type": "object"}, - "reference_objects": {"key": "typeProperties.referenceObjects", "type": "CustomActivityReferenceObject"}, - "extended_properties": {"key": "typeProperties.extendedProperties", "type": "{object}"}, - "retention_time_in_days": {"key": "typeProperties.retentionTimeInDays", "type": "object"}, - "auto_user_specification": {"key": "typeProperties.autoUserSpecification", "type": "object"}, - } - - def __init__( - self, - *, - name: str, - command: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - resource_linked_service: Optional["_models.LinkedServiceReference"] = None, - folder_path: Optional[JSON] = None, - reference_objects: Optional["_models.CustomActivityReferenceObject"] = None, - extended_properties: Optional[dict[str, JSON]] = None, - retention_time_in_days: Optional[JSON] = None, - auto_user_specification: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword command: Command for custom activity Type: string (or Expression with resultType - string). Required. - :paramtype command: JSON - :keyword resource_linked_service: Resource linked service reference. - :paramtype resource_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword folder_path: Folder path for resource files Type: string (or Expression with - resultType string). - :paramtype folder_path: JSON - :keyword reference_objects: Reference objects. - :paramtype reference_objects: ~azure.mgmt.datafactory.models.CustomActivityReferenceObject - :keyword extended_properties: User defined property bag. There is no restriction on the keys or - values that can be used. The user specified custom activity has the full responsibility to - consume and interpret the content defined. - :paramtype extended_properties: dict[str, JSON] - :keyword retention_time_in_days: The retention time for the files submitted for custom - activity. Type: double (or Expression with resultType double). - :paramtype retention_time_in_days: JSON - :keyword auto_user_specification: Elevation level and scope for the user, default is nonadmin - task. Type: string (or Expression with resultType double). - :paramtype auto_user_specification: JSON - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "Custom" - self.command = command - self.resource_linked_service = resource_linked_service - self.folder_path = folder_path - self.reference_objects = reference_objects - self.extended_properties = extended_properties - self.retention_time_in_days = retention_time_in_days - self.auto_user_specification = auto_user_specification - - -class CustomActivityReferenceObject(_serialization.Model): - """Reference objects for custom activity. - - :ivar linked_services: Linked service references. - :vartype linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceReference] - :ivar datasets: Dataset references. - :vartype datasets: list[~azure.mgmt.datafactory.models.DatasetReference] - """ - - _attribute_map = { - "linked_services": {"key": "linkedServices", "type": "[LinkedServiceReference]"}, - "datasets": {"key": "datasets", "type": "[DatasetReference]"}, - } - - def __init__( - self, - *, - linked_services: Optional[list["_models.LinkedServiceReference"]] = None, - datasets: Optional[list["_models.DatasetReference"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword linked_services: Linked service references. - :paramtype linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceReference] - :keyword datasets: Dataset references. - :paramtype datasets: list[~azure.mgmt.datafactory.models.DatasetReference] - """ - super().__init__(**kwargs) - self.linked_services = linked_services - self.datasets = datasets - - -class CustomDataset(Dataset): - """The custom dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar type_properties: Custom dataset properties. - :vartype type_properties: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "type_properties": {"key": "typeProperties", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - type_properties: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword type_properties: Custom dataset properties. - :paramtype type_properties: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "CustomDataset" - self.type_properties = type_properties - - -class CustomDataSourceLinkedService(LinkedService): - """Custom linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar type_properties: Custom linked service properties. Required. - :vartype type_properties: JSON - """ - - _validation = { - "type": {"required": True}, - "type_properties": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "type_properties": {"key": "typeProperties", "type": "object"}, - } - - def __init__( - self, - *, - type_properties: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword type_properties: Custom linked service properties. Required. - :paramtype type_properties: JSON - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "CustomDataSource" - self.type_properties = type_properties - - -class CustomEventsTrigger(MultiplePipelineTrigger): - """Trigger that runs every time a custom event is received. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Trigger type. Required. - :vartype type: str - :ivar description: Trigger description. - :vartype description: str - :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are - called on the Trigger. Known values are: "Started", "Stopped", and "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState - :ivar annotations: List of tags that can be used for describing the trigger. - :vartype annotations: list[JSON] - :ivar pipelines: Pipelines that need to be started. - :vartype pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] - :ivar subject_begins_with: The event subject must begin with the pattern provided for trigger - to fire. At least one of these must be provided: subjectBeginsWith, subjectEndsWith. - :vartype subject_begins_with: str - :ivar subject_ends_with: The event subject must end with the pattern provided for trigger to - fire. At least one of these must be provided: subjectBeginsWith, subjectEndsWith. - :vartype subject_ends_with: str - :ivar events: The list of event types that cause this trigger to fire. Required. - :vartype events: list[JSON] - :ivar scope: The ARM resource ID of the Azure Event Grid Topic. Required. - :vartype scope: str - """ - - _validation = { - "type": {"required": True}, - "runtime_state": {"readonly": True}, - "events": {"required": True}, - "scope": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "runtime_state": {"key": "runtimeState", "type": "str"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "pipelines": {"key": "pipelines", "type": "[TriggerPipelineReference]"}, - "subject_begins_with": {"key": "typeProperties.subjectBeginsWith", "type": "str"}, - "subject_ends_with": {"key": "typeProperties.subjectEndsWith", "type": "str"}, - "events": {"key": "typeProperties.events", "type": "[object]"}, - "scope": {"key": "typeProperties.scope", "type": "str"}, - } - - def __init__( - self, - *, - events: list[JSON], - scope: str, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - annotations: Optional[list[JSON]] = None, - pipelines: Optional[list["_models.TriggerPipelineReference"]] = None, - subject_begins_with: Optional[str] = None, - subject_ends_with: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Trigger description. - :paramtype description: str - :keyword annotations: List of tags that can be used for describing the trigger. - :paramtype annotations: list[JSON] - :keyword pipelines: Pipelines that need to be started. - :paramtype pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] - :keyword subject_begins_with: The event subject must begin with the pattern provided for - trigger to fire. At least one of these must be provided: subjectBeginsWith, subjectEndsWith. - :paramtype subject_begins_with: str - :keyword subject_ends_with: The event subject must end with the pattern provided for trigger to - fire. At least one of these must be provided: subjectBeginsWith, subjectEndsWith. - :paramtype subject_ends_with: str - :keyword events: The list of event types that cause this trigger to fire. Required. - :paramtype events: list[JSON] - :keyword scope: The ARM resource ID of the Azure Event Grid Topic. Required. - :paramtype scope: str - """ - super().__init__( - additional_properties=additional_properties, - description=description, - annotations=annotations, - pipelines=pipelines, - **kwargs - ) - self.type: str = "CustomEventsTrigger" - self.subject_begins_with = subject_begins_with - self.subject_ends_with = subject_ends_with - self.events = events - self.scope = scope - - -class DatabricksJobActivity(ExecutionActivity): - """Databricks Job activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar job_id: The Id of the Databricks Job to be executed. Type: string (or Expression with - resultType string). Required. - :vartype job_id: JSON - :ivar job_parameters: Job parameters to be used for each run of this job. If the job takes a - parameter that is not specified, the default value from the job will be used. - :vartype job_parameters: dict[str, JSON] - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "job_id": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "job_id": {"key": "typeProperties.jobId", "type": "object"}, - "job_parameters": {"key": "typeProperties.jobParameters", "type": "{object}"}, - } - - def __init__( - self, - *, - name: str, - job_id: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - job_parameters: Optional[dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword job_id: The Id of the Databricks Job to be executed. Type: string (or Expression with - resultType string). Required. - :paramtype job_id: JSON - :keyword job_parameters: Job parameters to be used for each run of this job. If the job takes a - parameter that is not specified, the default value from the job will be used. - :paramtype job_parameters: dict[str, JSON] - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "DatabricksJob" - self.job_id = job_id - self.job_parameters = job_parameters - - -class DatabricksNotebookActivity(ExecutionActivity): - """DatabricksNotebook activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar notebook_path: The absolute path of the notebook to be run in the Databricks Workspace. - This path must begin with a slash. Type: string (or Expression with resultType string). - Required. - :vartype notebook_path: JSON - :ivar base_parameters: Base parameters to be used for each run of this job.If the notebook - takes a parameter that is not specified, the default value from the notebook will be used. - :vartype base_parameters: dict[str, JSON] - :ivar libraries: A list of libraries to be installed on the cluster that will execute the job. - :vartype libraries: list[dict[str, JSON]] - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "notebook_path": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "notebook_path": {"key": "typeProperties.notebookPath", "type": "object"}, - "base_parameters": {"key": "typeProperties.baseParameters", "type": "{object}"}, - "libraries": {"key": "typeProperties.libraries", "type": "[{object}]"}, - } - - def __init__( - self, - *, - name: str, - notebook_path: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - base_parameters: Optional[dict[str, JSON]] = None, - libraries: Optional[list[dict[str, JSON]]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword notebook_path: The absolute path of the notebook to be run in the Databricks - Workspace. This path must begin with a slash. Type: string (or Expression with resultType - string). Required. - :paramtype notebook_path: JSON - :keyword base_parameters: Base parameters to be used for each run of this job.If the notebook - takes a parameter that is not specified, the default value from the notebook will be used. - :paramtype base_parameters: dict[str, JSON] - :keyword libraries: A list of libraries to be installed on the cluster that will execute the - job. - :paramtype libraries: list[dict[str, JSON]] - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "DatabricksNotebook" - self.notebook_path = notebook_path - self.base_parameters = base_parameters - self.libraries = libraries - - -class DatabricksSparkJarActivity(ExecutionActivity): - """DatabricksSparkJar activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar main_class_name: The full name of the class containing the main method to be executed. - This class must be contained in a JAR provided as a library. Type: string (or Expression with - resultType string). Required. - :vartype main_class_name: JSON - :ivar parameters: Parameters that will be passed to the main method. - :vartype parameters: list[JSON] - :ivar libraries: A list of libraries to be installed on the cluster that will execute the job. - :vartype libraries: list[dict[str, JSON]] - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "main_class_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "main_class_name": {"key": "typeProperties.mainClassName", "type": "object"}, - "parameters": {"key": "typeProperties.parameters", "type": "[object]"}, - "libraries": {"key": "typeProperties.libraries", "type": "[{object}]"}, - } - - def __init__( - self, - *, - name: str, - main_class_name: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - parameters: Optional[list[JSON]] = None, - libraries: Optional[list[dict[str, JSON]]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword main_class_name: The full name of the class containing the main method to be executed. - This class must be contained in a JAR provided as a library. Type: string (or Expression with - resultType string). Required. - :paramtype main_class_name: JSON - :keyword parameters: Parameters that will be passed to the main method. - :paramtype parameters: list[JSON] - :keyword libraries: A list of libraries to be installed on the cluster that will execute the - job. - :paramtype libraries: list[dict[str, JSON]] - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "DatabricksSparkJar" - self.main_class_name = main_class_name - self.parameters = parameters - self.libraries = libraries - - -class DatabricksSparkPythonActivity(ExecutionActivity): - """DatabricksSparkPython activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar python_file: The URI of the Python file to be executed. DBFS paths are supported. Type: - string (or Expression with resultType string). Required. - :vartype python_file: JSON - :ivar parameters: Command line parameters that will be passed to the Python file. - :vartype parameters: list[JSON] - :ivar libraries: A list of libraries to be installed on the cluster that will execute the job. - :vartype libraries: list[dict[str, JSON]] - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "python_file": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "python_file": {"key": "typeProperties.pythonFile", "type": "object"}, - "parameters": {"key": "typeProperties.parameters", "type": "[object]"}, - "libraries": {"key": "typeProperties.libraries", "type": "[{object}]"}, - } - - def __init__( - self, - *, - name: str, - python_file: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - parameters: Optional[list[JSON]] = None, - libraries: Optional[list[dict[str, JSON]]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword python_file: The URI of the Python file to be executed. DBFS paths are supported. - Type: string (or Expression with resultType string). Required. - :paramtype python_file: JSON - :keyword parameters: Command line parameters that will be passed to the Python file. - :paramtype parameters: list[JSON] - :keyword libraries: A list of libraries to be installed on the cluster that will execute the - job. - :paramtype libraries: list[dict[str, JSON]] - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "DatabricksSparkPython" - self.python_file = python_file - self.parameters = parameters - self.libraries = libraries - - -class DataFlow(_serialization.Model): - """Azure Data Factory nested object which contains a flow with data movements and transformations. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Flowlet, MappingDataFlow, WranglingDataFlow - - All required parameters must be populated in order to send to server. - - :ivar type: Type of data flow. Required. - :vartype type: str - :ivar description: The description of the data flow. - :vartype description: str - :ivar annotations: List of tags that can be used for describing the data flow. - :vartype annotations: list[JSON] - :ivar folder: The folder that this data flow is in. If not specified, Data flow will appear at - the root level. - :vartype folder: ~azure.mgmt.datafactory.models.DataFlowFolder - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DataFlowFolder"}, - } - - _subtype_map = { - "type": {"Flowlet": "Flowlet", "MappingDataFlow": "MappingDataFlow", "WranglingDataFlow": "WranglingDataFlow"} - } - - def __init__( - self, - *, - description: Optional[str] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DataFlowFolder"] = None, - **kwargs: Any - ) -> None: - """ - :keyword description: The description of the data flow. - :paramtype description: str - :keyword annotations: List of tags that can be used for describing the data flow. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this data flow is in. If not specified, Data flow will appear - at the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DataFlowFolder - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.description = description - self.annotations = annotations - self.folder = folder - - -class DataFlowDebugCommandPayload(_serialization.Model): - """Structure of command payload. - - All required parameters must be populated in order to send to server. - - :ivar stream_name: The stream name which is used for preview. Required. - :vartype stream_name: str - :ivar row_limits: Row limits for preview response. - :vartype row_limits: int - :ivar columns: Array of column names. - :vartype columns: list[str] - :ivar expression: The expression which is used for preview. - :vartype expression: str - """ - - _validation = { - "stream_name": {"required": True}, - } - - _attribute_map = { - "stream_name": {"key": "streamName", "type": "str"}, - "row_limits": {"key": "rowLimits", "type": "int"}, - "columns": {"key": "columns", "type": "[str]"}, - "expression": {"key": "expression", "type": "str"}, - } - - def __init__( - self, - *, - stream_name: str, - row_limits: Optional[int] = None, - columns: Optional[list[str]] = None, - expression: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword stream_name: The stream name which is used for preview. Required. - :paramtype stream_name: str - :keyword row_limits: Row limits for preview response. - :paramtype row_limits: int - :keyword columns: Array of column names. - :paramtype columns: list[str] - :keyword expression: The expression which is used for preview. - :paramtype expression: str - """ - super().__init__(**kwargs) - self.stream_name = stream_name - self.row_limits = row_limits - self.columns = columns - self.expression = expression - - -class DataFlowDebugCommandRequest(_serialization.Model): - """Request body structure for data flow debug command. - - :ivar session_id: The ID of data flow debug session. - :vartype session_id: str - :ivar command: The command type. Known values are: "executePreviewQuery", - "executeStatisticsQuery", and "executeExpressionQuery". - :vartype command: str or ~azure.mgmt.datafactory.models.DataFlowDebugCommandType - :ivar command_payload: The command payload object. - :vartype command_payload: ~azure.mgmt.datafactory.models.DataFlowDebugCommandPayload - """ - - _attribute_map = { - "session_id": {"key": "sessionId", "type": "str"}, - "command": {"key": "command", "type": "str"}, - "command_payload": {"key": "commandPayload", "type": "DataFlowDebugCommandPayload"}, - } - - def __init__( - self, - *, - session_id: Optional[str] = None, - command: Optional[Union[str, "_models.DataFlowDebugCommandType"]] = None, - command_payload: Optional["_models.DataFlowDebugCommandPayload"] = None, - **kwargs: Any - ) -> None: - """ - :keyword session_id: The ID of data flow debug session. - :paramtype session_id: str - :keyword command: The command type. Known values are: "executePreviewQuery", - "executeStatisticsQuery", and "executeExpressionQuery". - :paramtype command: str or ~azure.mgmt.datafactory.models.DataFlowDebugCommandType - :keyword command_payload: The command payload object. - :paramtype command_payload: ~azure.mgmt.datafactory.models.DataFlowDebugCommandPayload - """ - super().__init__(**kwargs) - self.session_id = session_id - self.command = command - self.command_payload = command_payload - - -class DataFlowDebugCommandResponse(_serialization.Model): - """Response body structure of data flow result for data preview, statistics or expression preview. - - :ivar status: The run status of data preview, statistics or expression preview. - :vartype status: str - :ivar data: The result data of data preview, statistics or expression preview. - :vartype data: str - """ - - _attribute_map = { - "status": {"key": "status", "type": "str"}, - "data": {"key": "data", "type": "str"}, - } - - def __init__(self, *, status: Optional[str] = None, data: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword status: The run status of data preview, statistics or expression preview. - :paramtype status: str - :keyword data: The result data of data preview, statistics or expression preview. - :paramtype data: str - """ - super().__init__(**kwargs) - self.status = status - self.data = data - - -class DataFlowDebugPackage(_serialization.Model): - """Request body structure for starting data flow debug session. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar session_id: The ID of data flow debug session. - :vartype session_id: str - :ivar data_flow: Data flow instance. - :vartype data_flow: ~azure.mgmt.datafactory.models.DataFlowDebugResource - :ivar data_flows: List of Data flows. - :vartype data_flows: list[~azure.mgmt.datafactory.models.DataFlowDebugResource] - :ivar datasets: List of datasets. - :vartype datasets: list[~azure.mgmt.datafactory.models.DatasetDebugResource] - :ivar linked_services: List of linked services. - :vartype linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceDebugResource] - :ivar staging: Staging info for debug session. - :vartype staging: ~azure.mgmt.datafactory.models.DataFlowStagingInfo - :ivar debug_settings: Data flow debug settings. - :vartype debug_settings: ~azure.mgmt.datafactory.models.DataFlowDebugPackageDebugSettings - """ - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "session_id": {"key": "sessionId", "type": "str"}, - "data_flow": {"key": "dataFlow", "type": "DataFlowDebugResource"}, - "data_flows": {"key": "dataFlows", "type": "[DataFlowDebugResource]"}, - "datasets": {"key": "datasets", "type": "[DatasetDebugResource]"}, - "linked_services": {"key": "linkedServices", "type": "[LinkedServiceDebugResource]"}, - "staging": {"key": "staging", "type": "DataFlowStagingInfo"}, - "debug_settings": {"key": "debugSettings", "type": "DataFlowDebugPackageDebugSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - session_id: Optional[str] = None, - data_flow: Optional["_models.DataFlowDebugResource"] = None, - data_flows: Optional[list["_models.DataFlowDebugResource"]] = None, - datasets: Optional[list["_models.DatasetDebugResource"]] = None, - linked_services: Optional[list["_models.LinkedServiceDebugResource"]] = None, - staging: Optional["_models.DataFlowStagingInfo"] = None, - debug_settings: Optional["_models.DataFlowDebugPackageDebugSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword session_id: The ID of data flow debug session. - :paramtype session_id: str - :keyword data_flow: Data flow instance. - :paramtype data_flow: ~azure.mgmt.datafactory.models.DataFlowDebugResource - :keyword data_flows: List of Data flows. - :paramtype data_flows: list[~azure.mgmt.datafactory.models.DataFlowDebugResource] - :keyword datasets: List of datasets. - :paramtype datasets: list[~azure.mgmt.datafactory.models.DatasetDebugResource] - :keyword linked_services: List of linked services. - :paramtype linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceDebugResource] - :keyword staging: Staging info for debug session. - :paramtype staging: ~azure.mgmt.datafactory.models.DataFlowStagingInfo - :keyword debug_settings: Data flow debug settings. - :paramtype debug_settings: ~azure.mgmt.datafactory.models.DataFlowDebugPackageDebugSettings - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.session_id = session_id - self.data_flow = data_flow - self.data_flows = data_flows - self.datasets = datasets - self.linked_services = linked_services - self.staging = staging - self.debug_settings = debug_settings - - -class DataFlowDebugPackageDebugSettings(_serialization.Model): - """Data flow debug settings. - - :ivar source_settings: Source setting for data flow debug. - :vartype source_settings: list[~azure.mgmt.datafactory.models.DataFlowSourceSetting] - :ivar parameters: Data flow parameters. - :vartype parameters: dict[str, JSON] - :ivar dataset_parameters: Parameters for dataset. - :vartype dataset_parameters: JSON - """ - - _attribute_map = { - "source_settings": {"key": "sourceSettings", "type": "[DataFlowSourceSetting]"}, - "parameters": {"key": "parameters", "type": "{object}"}, - "dataset_parameters": {"key": "datasetParameters", "type": "object"}, - } - - def __init__( - self, - *, - source_settings: Optional[list["_models.DataFlowSourceSetting"]] = None, - parameters: Optional[dict[str, JSON]] = None, - dataset_parameters: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword source_settings: Source setting for data flow debug. - :paramtype source_settings: list[~azure.mgmt.datafactory.models.DataFlowSourceSetting] - :keyword parameters: Data flow parameters. - :paramtype parameters: dict[str, JSON] - :keyword dataset_parameters: Parameters for dataset. - :paramtype dataset_parameters: JSON - """ - super().__init__(**kwargs) - self.source_settings = source_settings - self.parameters = parameters - self.dataset_parameters = dataset_parameters - - -class SubResourceDebugResource(_serialization.Model): - """Azure Data Factory nested debug resource. - - :ivar name: The resource name. - :vartype name: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The resource name. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class DataFlowDebugResource(SubResourceDebugResource): - """Data flow debug resource. - - All required parameters must be populated in order to send to server. - - :ivar name: The resource name. - :vartype name: str - :ivar properties: Data flow properties. Required. - :vartype properties: ~azure.mgmt.datafactory.models.DataFlow - """ - - _validation = { - "properties": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "properties": {"key": "properties", "type": "DataFlow"}, - } - - def __init__(self, *, properties: "_models.DataFlow", name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The resource name. - :paramtype name: str - :keyword properties: Data flow properties. Required. - :paramtype properties: ~azure.mgmt.datafactory.models.DataFlow - """ - super().__init__(name=name, **kwargs) - self.properties = properties - - -class DataFlowDebugSessionInfo(_serialization.Model): - """Data flow debug session info. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar data_flow_name: The name of the data flow. - :vartype data_flow_name: str - :ivar compute_type: Compute type of the cluster. - :vartype compute_type: str - :ivar core_count: Core count of the cluster. - :vartype core_count: int - :ivar node_count: Node count of the cluster. (deprecated property). - :vartype node_count: int - :ivar integration_runtime_name: Attached integration runtime name of data flow debug session. - :vartype integration_runtime_name: str - :ivar session_id: The ID of data flow debug session. - :vartype session_id: str - :ivar start_time: Start time of data flow debug session. - :vartype start_time: str - :ivar time_to_live_in_minutes: Compute type of the cluster. - :vartype time_to_live_in_minutes: int - :ivar last_activity_time: Last activity time of data flow debug session. - :vartype last_activity_time: str - """ - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "data_flow_name": {"key": "dataFlowName", "type": "str"}, - "compute_type": {"key": "computeType", "type": "str"}, - "core_count": {"key": "coreCount", "type": "int"}, - "node_count": {"key": "nodeCount", "type": "int"}, - "integration_runtime_name": {"key": "integrationRuntimeName", "type": "str"}, - "session_id": {"key": "sessionId", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - "time_to_live_in_minutes": {"key": "timeToLiveInMinutes", "type": "int"}, - "last_activity_time": {"key": "lastActivityTime", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - data_flow_name: Optional[str] = None, - compute_type: Optional[str] = None, - core_count: Optional[int] = None, - node_count: Optional[int] = None, - integration_runtime_name: Optional[str] = None, - session_id: Optional[str] = None, - start_time: Optional[str] = None, - time_to_live_in_minutes: Optional[int] = None, - last_activity_time: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword data_flow_name: The name of the data flow. - :paramtype data_flow_name: str - :keyword compute_type: Compute type of the cluster. - :paramtype compute_type: str - :keyword core_count: Core count of the cluster. - :paramtype core_count: int - :keyword node_count: Node count of the cluster. (deprecated property). - :paramtype node_count: int - :keyword integration_runtime_name: Attached integration runtime name of data flow debug - session. - :paramtype integration_runtime_name: str - :keyword session_id: The ID of data flow debug session. - :paramtype session_id: str - :keyword start_time: Start time of data flow debug session. - :paramtype start_time: str - :keyword time_to_live_in_minutes: Compute type of the cluster. - :paramtype time_to_live_in_minutes: int - :keyword last_activity_time: Last activity time of data flow debug session. - :paramtype last_activity_time: str - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.data_flow_name = data_flow_name - self.compute_type = compute_type - self.core_count = core_count - self.node_count = node_count - self.integration_runtime_name = integration_runtime_name - self.session_id = session_id - self.start_time = start_time - self.time_to_live_in_minutes = time_to_live_in_minutes - self.last_activity_time = last_activity_time - - -class DataFlowFolder(_serialization.Model): - """The folder that this data flow is in. If not specified, Data flow will appear at the root - level. - - :ivar name: The name of the folder that this data flow is in. - :vartype name: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the folder that this data flow is in. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class DataFlowListResponse(_serialization.Model): - """A list of data flow resources. - - All required parameters must be populated in order to send to server. - - :ivar value: List of data flows. Required. - :vartype value: list[~azure.mgmt.datafactory.models.DataFlowResource] - :ivar next_link: The link to the next page of results, if any remaining results exist. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[DataFlowResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: list["_models.DataFlowResource"], next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: List of data flows. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.DataFlowResource] - :keyword next_link: The link to the next page of results, if any remaining results exist. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DataFlowReference(_serialization.Model): - """Data flow reference type. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Data flow reference type. Required. "DataFlowReference" - :vartype type: str or ~azure.mgmt.datafactory.models.DataFlowReferenceType - :ivar reference_name: Reference data flow name. Required. - :vartype reference_name: str - :ivar dataset_parameters: Reference data flow parameters from dataset. - :vartype dataset_parameters: JSON - :ivar parameters: Data flow parameters. - :vartype parameters: dict[str, JSON] - """ - - _validation = { - "type": {"required": True}, - "reference_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "reference_name": {"key": "referenceName", "type": "str"}, - "dataset_parameters": {"key": "datasetParameters", "type": "object"}, - "parameters": {"key": "parameters", "type": "{object}"}, - } - - def __init__( - self, - *, - type: Union[str, "_models.DataFlowReferenceType"], - reference_name: str, - additional_properties: Optional[dict[str, JSON]] = None, - dataset_parameters: Optional[JSON] = None, - parameters: Optional[dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword type: Data flow reference type. Required. "DataFlowReference" - :paramtype type: str or ~azure.mgmt.datafactory.models.DataFlowReferenceType - :keyword reference_name: Reference data flow name. Required. - :paramtype reference_name: str - :keyword dataset_parameters: Reference data flow parameters from dataset. - :paramtype dataset_parameters: JSON - :keyword parameters: Data flow parameters. - :paramtype parameters: dict[str, JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type = type - self.reference_name = reference_name - self.dataset_parameters = dataset_parameters - self.parameters = parameters - - -class DataFlowResource(SubResource): - """Data flow resource type. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar etag: Etag identifies change in the resource. - :vartype etag: str - :ivar properties: Data flow properties. Required. - :vartype properties: ~azure.mgmt.datafactory.models.DataFlow - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "etag": {"readonly": True}, - "properties": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "etag": {"key": "etag", "type": "str"}, - "properties": {"key": "properties", "type": "DataFlow"}, - } - - def __init__(self, *, properties: "_models.DataFlow", **kwargs: Any) -> None: - """ - :keyword properties: Data flow properties. Required. - :paramtype properties: ~azure.mgmt.datafactory.models.DataFlow - """ - super().__init__(**kwargs) - self.properties = properties - - -class Transformation(_serialization.Model): - """A data flow transformation. - - All required parameters must be populated in order to send to server. - - :ivar name: Transformation name. Required. - :vartype name: str - :ivar description: Transformation description. - :vartype description: str - :ivar dataset: Dataset reference. - :vartype dataset: ~azure.mgmt.datafactory.models.DatasetReference - :ivar linked_service: Linked service reference. - :vartype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar flowlet: Flowlet Reference. - :vartype flowlet: ~azure.mgmt.datafactory.models.DataFlowReference - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "dataset": {"key": "dataset", "type": "DatasetReference"}, - "linked_service": {"key": "linkedService", "type": "LinkedServiceReference"}, - "flowlet": {"key": "flowlet", "type": "DataFlowReference"}, - } - - def __init__( - self, - *, - name: str, - description: Optional[str] = None, - dataset: Optional["_models.DatasetReference"] = None, - linked_service: Optional["_models.LinkedServiceReference"] = None, - flowlet: Optional["_models.DataFlowReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Transformation name. Required. - :paramtype name: str - :keyword description: Transformation description. - :paramtype description: str - :keyword dataset: Dataset reference. - :paramtype dataset: ~azure.mgmt.datafactory.models.DatasetReference - :keyword linked_service: Linked service reference. - :paramtype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword flowlet: Flowlet Reference. - :paramtype flowlet: ~azure.mgmt.datafactory.models.DataFlowReference - """ - super().__init__(**kwargs) - self.name = name - self.description = description - self.dataset = dataset - self.linked_service = linked_service - self.flowlet = flowlet - - -class DataFlowSink(Transformation): - """Transformation for data flow sink. - - All required parameters must be populated in order to send to server. - - :ivar name: Transformation name. Required. - :vartype name: str - :ivar description: Transformation description. - :vartype description: str - :ivar dataset: Dataset reference. - :vartype dataset: ~azure.mgmt.datafactory.models.DatasetReference - :ivar linked_service: Linked service reference. - :vartype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar flowlet: Flowlet Reference. - :vartype flowlet: ~azure.mgmt.datafactory.models.DataFlowReference - :ivar schema_linked_service: Schema linked service reference. - :vartype schema_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar rejected_data_linked_service: Rejected data linked service reference. - :vartype rejected_data_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "dataset": {"key": "dataset", "type": "DatasetReference"}, - "linked_service": {"key": "linkedService", "type": "LinkedServiceReference"}, - "flowlet": {"key": "flowlet", "type": "DataFlowReference"}, - "schema_linked_service": {"key": "schemaLinkedService", "type": "LinkedServiceReference"}, - "rejected_data_linked_service": {"key": "rejectedDataLinkedService", "type": "LinkedServiceReference"}, - } - - def __init__( - self, - *, - name: str, - description: Optional[str] = None, - dataset: Optional["_models.DatasetReference"] = None, - linked_service: Optional["_models.LinkedServiceReference"] = None, - flowlet: Optional["_models.DataFlowReference"] = None, - schema_linked_service: Optional["_models.LinkedServiceReference"] = None, - rejected_data_linked_service: Optional["_models.LinkedServiceReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Transformation name. Required. - :paramtype name: str - :keyword description: Transformation description. - :paramtype description: str - :keyword dataset: Dataset reference. - :paramtype dataset: ~azure.mgmt.datafactory.models.DatasetReference - :keyword linked_service: Linked service reference. - :paramtype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword flowlet: Flowlet Reference. - :paramtype flowlet: ~azure.mgmt.datafactory.models.DataFlowReference - :keyword schema_linked_service: Schema linked service reference. - :paramtype schema_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword rejected_data_linked_service: Rejected data linked service reference. - :paramtype rejected_data_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - """ - super().__init__( - name=name, - description=description, - dataset=dataset, - linked_service=linked_service, - flowlet=flowlet, - **kwargs - ) - self.schema_linked_service = schema_linked_service - self.rejected_data_linked_service = rejected_data_linked_service - - -class DataFlowSource(Transformation): - """Transformation for data flow source. - - All required parameters must be populated in order to send to server. - - :ivar name: Transformation name. Required. - :vartype name: str - :ivar description: Transformation description. - :vartype description: str - :ivar dataset: Dataset reference. - :vartype dataset: ~azure.mgmt.datafactory.models.DatasetReference - :ivar linked_service: Linked service reference. - :vartype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar flowlet: Flowlet Reference. - :vartype flowlet: ~azure.mgmt.datafactory.models.DataFlowReference - :ivar schema_linked_service: Schema linked service reference. - :vartype schema_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "dataset": {"key": "dataset", "type": "DatasetReference"}, - "linked_service": {"key": "linkedService", "type": "LinkedServiceReference"}, - "flowlet": {"key": "flowlet", "type": "DataFlowReference"}, - "schema_linked_service": {"key": "schemaLinkedService", "type": "LinkedServiceReference"}, - } - - def __init__( - self, - *, - name: str, - description: Optional[str] = None, - dataset: Optional["_models.DatasetReference"] = None, - linked_service: Optional["_models.LinkedServiceReference"] = None, - flowlet: Optional["_models.DataFlowReference"] = None, - schema_linked_service: Optional["_models.LinkedServiceReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Transformation name. Required. - :paramtype name: str - :keyword description: Transformation description. - :paramtype description: str - :keyword dataset: Dataset reference. - :paramtype dataset: ~azure.mgmt.datafactory.models.DatasetReference - :keyword linked_service: Linked service reference. - :paramtype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword flowlet: Flowlet Reference. - :paramtype flowlet: ~azure.mgmt.datafactory.models.DataFlowReference - :keyword schema_linked_service: Schema linked service reference. - :paramtype schema_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - """ - super().__init__( - name=name, - description=description, - dataset=dataset, - linked_service=linked_service, - flowlet=flowlet, - **kwargs - ) - self.schema_linked_service = schema_linked_service - - -class DataFlowSourceSetting(_serialization.Model): - """Definition of data flow source setting for debug. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar source_name: The data flow source name. - :vartype source_name: str - :ivar row_limit: Defines the row limit of data flow source in debug. - :vartype row_limit: int - """ - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "source_name": {"key": "sourceName", "type": "str"}, - "row_limit": {"key": "rowLimit", "type": "int"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_name: Optional[str] = None, - row_limit: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_name: The data flow source name. - :paramtype source_name: str - :keyword row_limit: Defines the row limit of data flow source in debug. - :paramtype row_limit: int - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.source_name = source_name - self.row_limit = row_limit - - -class DataFlowStagingInfo(_serialization.Model): - """Staging info for execute data flow activity. - - :ivar linked_service: Staging linked service reference. - :vartype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar folder_path: Folder path for staging blob. Type: string (or Expression with resultType - string). - :vartype folder_path: JSON - """ - - _attribute_map = { - "linked_service": {"key": "linkedService", "type": "LinkedServiceReference"}, - "folder_path": {"key": "folderPath", "type": "object"}, - } - - def __init__( - self, - *, - linked_service: Optional["_models.LinkedServiceReference"] = None, - folder_path: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword linked_service: Staging linked service reference. - :paramtype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword folder_path: Folder path for staging blob. Type: string (or Expression with resultType - string). - :paramtype folder_path: JSON - """ - super().__init__(**kwargs) - self.linked_service = linked_service - self.folder_path = folder_path - - -class DataLakeAnalyticsUSQLActivity(ExecutionActivity): - """Data Lake Analytics U-SQL activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar script_path: Case-sensitive path to folder that contains the U-SQL script. Type: string - (or Expression with resultType string). Required. - :vartype script_path: JSON - :ivar script_linked_service: Script linked service reference. Required. - :vartype script_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar degree_of_parallelism: The maximum number of nodes simultaneously used to run the job. - Default value is 1. Type: integer (or Expression with resultType integer), minimum: 1. - :vartype degree_of_parallelism: JSON - :ivar priority: Determines which jobs out of all that are queued should be selected to run - first. The lower the number, the higher the priority. Default value is 1000. Type: integer (or - Expression with resultType integer), minimum: 1. - :vartype priority: JSON - :ivar parameters: Parameters for U-SQL job request. - :vartype parameters: dict[str, JSON] - :ivar runtime_version: Runtime version of the U-SQL engine to use. Type: string (or Expression - with resultType string). - :vartype runtime_version: JSON - :ivar compilation_mode: Compilation mode of U-SQL. Must be one of these values : Semantic, Full - and SingleBox. Type: string (or Expression with resultType string). - :vartype compilation_mode: JSON - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "script_path": {"required": True}, - "script_linked_service": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "script_path": {"key": "typeProperties.scriptPath", "type": "object"}, - "script_linked_service": {"key": "typeProperties.scriptLinkedService", "type": "LinkedServiceReference"}, - "degree_of_parallelism": {"key": "typeProperties.degreeOfParallelism", "type": "object"}, - "priority": {"key": "typeProperties.priority", "type": "object"}, - "parameters": {"key": "typeProperties.parameters", "type": "{object}"}, - "runtime_version": {"key": "typeProperties.runtimeVersion", "type": "object"}, - "compilation_mode": {"key": "typeProperties.compilationMode", "type": "object"}, - } - - def __init__( - self, - *, - name: str, - script_path: JSON, - script_linked_service: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - degree_of_parallelism: Optional[JSON] = None, - priority: Optional[JSON] = None, - parameters: Optional[dict[str, JSON]] = None, - runtime_version: Optional[JSON] = None, - compilation_mode: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword script_path: Case-sensitive path to folder that contains the U-SQL script. Type: - string (or Expression with resultType string). Required. - :paramtype script_path: JSON - :keyword script_linked_service: Script linked service reference. Required. - :paramtype script_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword degree_of_parallelism: The maximum number of nodes simultaneously used to run the job. - Default value is 1. Type: integer (or Expression with resultType integer), minimum: 1. - :paramtype degree_of_parallelism: JSON - :keyword priority: Determines which jobs out of all that are queued should be selected to run - first. The lower the number, the higher the priority. Default value is 1000. Type: integer (or - Expression with resultType integer), minimum: 1. - :paramtype priority: JSON - :keyword parameters: Parameters for U-SQL job request. - :paramtype parameters: dict[str, JSON] - :keyword runtime_version: Runtime version of the U-SQL engine to use. Type: string (or - Expression with resultType string). - :paramtype runtime_version: JSON - :keyword compilation_mode: Compilation mode of U-SQL. Must be one of these values : Semantic, - Full and SingleBox. Type: string (or Expression with resultType string). - :paramtype compilation_mode: JSON - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "DataLakeAnalyticsU-SQL" - self.script_path = script_path - self.script_linked_service = script_linked_service - self.degree_of_parallelism = degree_of_parallelism - self.priority = priority - self.parameters = parameters - self.runtime_version = runtime_version - self.compilation_mode = compilation_mode - - -class DataMapperMapping(_serialization.Model): - """Source and target table mapping details. - - :ivar target_entity_name: Name of the target table. - :vartype target_entity_name: str - :ivar source_entity_name: Name of the source table. - :vartype source_entity_name: str - :ivar source_connection_reference: The connection reference for the source connection. - :vartype source_connection_reference: ~azure.mgmt.datafactory.models.MapperConnectionReference - :ivar attribute_mapping_info: This holds the user provided attribute mapping information. - :vartype attribute_mapping_info: ~azure.mgmt.datafactory.models.MapperAttributeMappings - :ivar source_denormalize_info: This holds the source denormalization information used while - joining multiple sources. - :vartype source_denormalize_info: JSON - """ - - _attribute_map = { - "target_entity_name": {"key": "targetEntityName", "type": "str"}, - "source_entity_name": {"key": "sourceEntityName", "type": "str"}, - "source_connection_reference": {"key": "sourceConnectionReference", "type": "MapperConnectionReference"}, - "attribute_mapping_info": {"key": "attributeMappingInfo", "type": "MapperAttributeMappings"}, - "source_denormalize_info": {"key": "sourceDenormalizeInfo", "type": "object"}, - } - - def __init__( - self, - *, - target_entity_name: Optional[str] = None, - source_entity_name: Optional[str] = None, - source_connection_reference: Optional["_models.MapperConnectionReference"] = None, - attribute_mapping_info: Optional["_models.MapperAttributeMappings"] = None, - source_denormalize_info: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword target_entity_name: Name of the target table. - :paramtype target_entity_name: str - :keyword source_entity_name: Name of the source table. - :paramtype source_entity_name: str - :keyword source_connection_reference: The connection reference for the source connection. - :paramtype source_connection_reference: - ~azure.mgmt.datafactory.models.MapperConnectionReference - :keyword attribute_mapping_info: This holds the user provided attribute mapping information. - :paramtype attribute_mapping_info: ~azure.mgmt.datafactory.models.MapperAttributeMappings - :keyword source_denormalize_info: This holds the source denormalization information used while - joining multiple sources. - :paramtype source_denormalize_info: JSON - """ - super().__init__(**kwargs) - self.target_entity_name = target_entity_name - self.source_entity_name = source_entity_name - self.source_connection_reference = source_connection_reference - self.attribute_mapping_info = attribute_mapping_info - self.source_denormalize_info = source_denormalize_info - - -class DatasetCompression(_serialization.Model): - """The compression method used on a dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset compression. Type: string (or Expression with resultType string). - Required. - :vartype type: JSON - :ivar level: The dataset compression level. Type: string (or Expression with resultType - string). - :vartype level: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "object"}, - "level": {"key": "level", "type": "object"}, - } - - def __init__( - self, - *, - type: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - level: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword type: Type of dataset compression. Type: string (or Expression with resultType - string). Required. - :paramtype type: JSON - :keyword level: The dataset compression level. Type: string (or Expression with resultType - string). - :paramtype level: JSON - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type = type - self.level = level - - -class DatasetDataElement(_serialization.Model): - """Columns that define the structure of the dataset. - - :ivar name: Name of the column. Type: string (or Expression with resultType string). - :vartype name: JSON - :ivar type: Type of the column. Type: string (or Expression with resultType string). - :vartype type: JSON - """ - - _attribute_map = { - "name": {"key": "name", "type": "object"}, - "type": {"key": "type", "type": "object"}, - } - - def __init__(self, *, name: Optional[JSON] = None, type: Optional[JSON] = None, **kwargs: Any) -> None: - """ - :keyword name: Name of the column. Type: string (or Expression with resultType string). - :paramtype name: JSON - :keyword type: Type of the column. Type: string (or Expression with resultType string). - :paramtype type: JSON - """ - super().__init__(**kwargs) - self.name = name - self.type = type - - -class DatasetDebugResource(SubResourceDebugResource): - """Dataset debug resource. - - All required parameters must be populated in order to send to server. - - :ivar name: The resource name. - :vartype name: str - :ivar properties: Dataset properties. Required. - :vartype properties: ~azure.mgmt.datafactory.models.Dataset - """ - - _validation = { - "properties": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "properties": {"key": "properties", "type": "Dataset"}, - } - - def __init__(self, *, properties: "_models.Dataset", name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The resource name. - :paramtype name: str - :keyword properties: Dataset properties. Required. - :paramtype properties: ~azure.mgmt.datafactory.models.Dataset - """ - super().__init__(name=name, **kwargs) - self.properties = properties - - -class DatasetFolder(_serialization.Model): - """The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - - :ivar name: The name of the folder that this Dataset is in. - :vartype name: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the folder that this Dataset is in. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class DatasetListResponse(_serialization.Model): - """A list of dataset resources. - - All required parameters must be populated in order to send to server. - - :ivar value: List of datasets. Required. - :vartype value: list[~azure.mgmt.datafactory.models.DatasetResource] - :ivar next_link: The link to the next page of results, if any remaining results exist. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[DatasetResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: list["_models.DatasetResource"], next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: List of datasets. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.DatasetResource] - :keyword next_link: The link to the next page of results, if any remaining results exist. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DatasetReference(_serialization.Model): - """Dataset reference type. - - All required parameters must be populated in order to send to server. - - :ivar type: Dataset reference type. Required. "DatasetReference" - :vartype type: str or ~azure.mgmt.datafactory.models.DatasetReferenceType - :ivar reference_name: Reference dataset name. Required. - :vartype reference_name: str - :ivar parameters: Arguments for dataset. - :vartype parameters: dict[str, JSON] - """ - - _validation = { - "type": {"required": True}, - "reference_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "reference_name": {"key": "referenceName", "type": "str"}, - "parameters": {"key": "parameters", "type": "{object}"}, - } - - def __init__( - self, - *, - type: Union[str, "_models.DatasetReferenceType"], - reference_name: str, - parameters: Optional[dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Dataset reference type. Required. "DatasetReference" - :paramtype type: str or ~azure.mgmt.datafactory.models.DatasetReferenceType - :keyword reference_name: Reference dataset name. Required. - :paramtype reference_name: str - :keyword parameters: Arguments for dataset. - :paramtype parameters: dict[str, JSON] - """ - super().__init__(**kwargs) - self.type = type - self.reference_name = reference_name - self.parameters = parameters - - -class DatasetResource(SubResource): - """Dataset resource type. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar etag: Etag identifies change in the resource. - :vartype etag: str - :ivar properties: Dataset properties. Required. - :vartype properties: ~azure.mgmt.datafactory.models.Dataset - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "etag": {"readonly": True}, - "properties": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "etag": {"key": "etag", "type": "str"}, - "properties": {"key": "properties", "type": "Dataset"}, - } - - def __init__(self, *, properties: "_models.Dataset", **kwargs: Any) -> None: - """ - :keyword properties: Dataset properties. Required. - :paramtype properties: ~azure.mgmt.datafactory.models.Dataset - """ - super().__init__(**kwargs) - self.properties = properties - - -class DatasetSchemaDataElement(_serialization.Model): - """Columns that define the physical type schema of the dataset. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Name of the schema column. Type: string (or Expression with resultType string). - :vartype name: JSON - :ivar type: Type of the schema column. Type: string (or Expression with resultType string). - :vartype type: JSON - """ - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "object"}, - "type": {"key": "type", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - name: Optional[JSON] = None, - type: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Name of the schema column. Type: string (or Expression with resultType string). - :paramtype name: JSON - :keyword type: Type of the schema column. Type: string (or Expression with resultType string). - :paramtype type: JSON - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.name = name - self.type = type - - -class DataworldLinkedService(LinkedService): - """Linked service for Dataworld. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar api_token: The api token for the Dataworld source. Required. - :vartype api_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "api_token": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "api_token": {"key": "typeProperties.apiToken", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - api_token: "_models.SecretBase", - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword api_token: The api token for the Dataworld source. Required. - :paramtype api_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Dataworld" - self.api_token = api_token - self.encrypted_credential = encrypted_credential - - -class Db2LinkedService(LinkedService): - """Linked service for DB2 data source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: The connection string. It is mutually exclusive with server, database, - authenticationType, userName, packageCollection and certificateCommonName property. Type: - string, SecureString or AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar server: Server name for connection. It is mutually exclusive with connectionString - property. Type: string (or Expression with resultType string). - :vartype server: JSON - :ivar database: Database name for connection. It is mutually exclusive with connectionString - property. Type: string (or Expression with resultType string). - :vartype database: JSON - :ivar authentication_type: AuthenticationType to be used for connection. It is mutually - exclusive with connectionString property. "Basic" - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.Db2AuthenticationType - :ivar username: Username for authentication. It is mutually exclusive with connectionString - property. Type: string (or Expression with resultType string). - :vartype username: JSON - :ivar password: Password for authentication. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar package_collection: Under where packages are created when querying database. It is - mutually exclusive with connectionString property. Type: string (or Expression with resultType - string). - :vartype package_collection: JSON - :ivar certificate_common_name: Certificate Common Name when TLS is enabled. It is mutually - exclusive with connectionString property. Type: string (or Expression with resultType string). - :vartype certificate_common_name: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. It is mutually exclusive with - connectionString property. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "package_collection": {"key": "typeProperties.packageCollection", "type": "object"}, - "certificate_common_name": {"key": "typeProperties.certificateCommonName", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_string: Optional[JSON] = None, - server: Optional[JSON] = None, - database: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.Db2AuthenticationType"]] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - package_collection: Optional[JSON] = None, - certificate_common_name: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: The connection string. It is mutually exclusive with server, - database, authenticationType, userName, packageCollection and certificateCommonName property. - Type: string, SecureString or AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword server: Server name for connection. It is mutually exclusive with connectionString - property. Type: string (or Expression with resultType string). - :paramtype server: JSON - :keyword database: Database name for connection. It is mutually exclusive with connectionString - property. Type: string (or Expression with resultType string). - :paramtype database: JSON - :keyword authentication_type: AuthenticationType to be used for connection. It is mutually - exclusive with connectionString property. "Basic" - :paramtype authentication_type: str or ~azure.mgmt.datafactory.models.Db2AuthenticationType - :keyword username: Username for authentication. It is mutually exclusive with connectionString - property. Type: string (or Expression with resultType string). - :paramtype username: JSON - :keyword password: Password for authentication. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword package_collection: Under where packages are created when querying database. It is - mutually exclusive with connectionString property. Type: string (or Expression with resultType - string). - :paramtype package_collection: JSON - :keyword certificate_common_name: Certificate Common Name when TLS is enabled. It is mutually - exclusive with connectionString property. Type: string (or Expression with resultType string). - :paramtype certificate_common_name: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. It is mutually exclusive with - connectionString property. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Db2" - self.connection_string = connection_string - self.server = server - self.database = database - self.authentication_type = authentication_type - self.username = username - self.password = password - self.package_collection = package_collection - self.certificate_common_name = certificate_common_name - self.encrypted_credential = encrypted_credential - - -class Db2Source(TabularSource): - """A copy activity source for Db2 databases. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: Database query. Type: string (or Expression with resultType string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: Database query. Type: string (or Expression with resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "Db2Source" - self.query = query - - -class Db2TableDataset(Dataset): - """The Db2 table dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property will be retired. Please consider using schema + table - properties instead. - :vartype table_name: JSON - :ivar schema_type_properties_schema: The Db2 schema name. Type: string (or Expression with - resultType string). - :vartype schema_type_properties_schema: JSON - :ivar table: The Db2 table name. Type: string (or Expression with resultType string). - :vartype table: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - table: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property will be retired. Please consider using schema + table - properties instead. - :paramtype table_name: JSON - :keyword schema_type_properties_schema: The Db2 schema name. Type: string (or Expression with - resultType string). - :paramtype schema_type_properties_schema: JSON - :keyword table: The Db2 table name. Type: string (or Expression with resultType string). - :paramtype table: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "Db2Table" - self.table_name = table_name - self.schema_type_properties_schema = schema_type_properties_schema - self.table = table - - -class DeleteActivity(ExecutionActivity): - """Delete activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar recursive: If true, files or sub-folders under current folder path will be deleted - recursively. Default is false. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - :ivar max_concurrent_connections: The max concurrent connections to connect data source at the - same time. - :vartype max_concurrent_connections: int - :ivar enable_logging: Whether to record detailed logs of delete-activity execution. Default - value is false. Type: boolean (or Expression with resultType boolean). - :vartype enable_logging: JSON - :ivar log_storage_settings: Log storage settings customer need to provide when enableLogging is - true. - :vartype log_storage_settings: ~azure.mgmt.datafactory.models.LogStorageSettings - :ivar dataset: Delete activity dataset reference. Required. - :vartype dataset: ~azure.mgmt.datafactory.models.DatasetReference - :ivar store_settings: Delete activity store settings. - :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "max_concurrent_connections": {"minimum": 1}, - "dataset": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "recursive": {"key": "typeProperties.recursive", "type": "object"}, - "max_concurrent_connections": {"key": "typeProperties.maxConcurrentConnections", "type": "int"}, - "enable_logging": {"key": "typeProperties.enableLogging", "type": "object"}, - "log_storage_settings": {"key": "typeProperties.logStorageSettings", "type": "LogStorageSettings"}, - "dataset": {"key": "typeProperties.dataset", "type": "DatasetReference"}, - "store_settings": {"key": "typeProperties.storeSettings", "type": "StoreReadSettings"}, - } - - def __init__( - self, - *, - name: str, - dataset: "_models.DatasetReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - recursive: Optional[JSON] = None, - max_concurrent_connections: Optional[int] = None, - enable_logging: Optional[JSON] = None, - log_storage_settings: Optional["_models.LogStorageSettings"] = None, - store_settings: Optional["_models.StoreReadSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword recursive: If true, files or sub-folders under current folder path will be deleted - recursively. Default is false. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - :keyword max_concurrent_connections: The max concurrent connections to connect data source at - the same time. - :paramtype max_concurrent_connections: int - :keyword enable_logging: Whether to record detailed logs of delete-activity execution. Default - value is false. Type: boolean (or Expression with resultType boolean). - :paramtype enable_logging: JSON - :keyword log_storage_settings: Log storage settings customer need to provide when enableLogging - is true. - :paramtype log_storage_settings: ~azure.mgmt.datafactory.models.LogStorageSettings - :keyword dataset: Delete activity dataset reference. Required. - :paramtype dataset: ~azure.mgmt.datafactory.models.DatasetReference - :keyword store_settings: Delete activity store settings. - :paramtype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "Delete" - self.recursive = recursive - self.max_concurrent_connections = max_concurrent_connections - self.enable_logging = enable_logging - self.log_storage_settings = log_storage_settings - self.dataset = dataset - self.store_settings = store_settings - - -class DeleteDataFlowDebugSessionRequest(_serialization.Model): - """Request body structure for deleting data flow debug session. - - :ivar session_id: The ID of data flow debug session. - :vartype session_id: str - """ - - _attribute_map = { - "session_id": {"key": "sessionId", "type": "str"}, - } - - def __init__(self, *, session_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword session_id: The ID of data flow debug session. - :paramtype session_id: str - """ - super().__init__(**kwargs) - self.session_id = session_id - - -class DelimitedTextDataset(Dataset): - """Delimited text dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar location: The location of the delimited text storage. - :vartype location: ~azure.mgmt.datafactory.models.DatasetLocation - :ivar column_delimiter: The column delimiter. Type: string (or Expression with resultType - string). - :vartype column_delimiter: JSON - :ivar row_delimiter: The row delimiter. Type: string (or Expression with resultType string). - :vartype row_delimiter: JSON - :ivar encoding_name: The code page name of the preferred encoding. If miss, the default value - is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in - the following link to set supported values: - https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with - resultType string). - :vartype encoding_name: JSON - :ivar compression_codec: The data compressionCodec. Type: string (or Expression with resultType - string). - :vartype compression_codec: JSON - :ivar compression_level: The data compression method used for DelimitedText. - :vartype compression_level: JSON - :ivar quote_char: The quote character. Type: string (or Expression with resultType string). - :vartype quote_char: JSON - :ivar escape_char: The escape character. Type: string (or Expression with resultType string). - :vartype escape_char: JSON - :ivar first_row_as_header: When used as input, treat the first row of data as headers. When - used as output,write the headers into the output as the first row of data. The default value is - false. Type: boolean (or Expression with resultType boolean). - :vartype first_row_as_header: JSON - :ivar null_value: The null value string. Type: string (or Expression with resultType string). - :vartype null_value: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "location": {"key": "typeProperties.location", "type": "DatasetLocation"}, - "column_delimiter": {"key": "typeProperties.columnDelimiter", "type": "object"}, - "row_delimiter": {"key": "typeProperties.rowDelimiter", "type": "object"}, - "encoding_name": {"key": "typeProperties.encodingName", "type": "object"}, - "compression_codec": {"key": "typeProperties.compressionCodec", "type": "object"}, - "compression_level": {"key": "typeProperties.compressionLevel", "type": "object"}, - "quote_char": {"key": "typeProperties.quoteChar", "type": "object"}, - "escape_char": {"key": "typeProperties.escapeChar", "type": "object"}, - "first_row_as_header": {"key": "typeProperties.firstRowAsHeader", "type": "object"}, - "null_value": {"key": "typeProperties.nullValue", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - location: Optional["_models.DatasetLocation"] = None, - column_delimiter: Optional[JSON] = None, - row_delimiter: Optional[JSON] = None, - encoding_name: Optional[JSON] = None, - compression_codec: Optional[JSON] = None, - compression_level: Optional[JSON] = None, - quote_char: Optional[JSON] = None, - escape_char: Optional[JSON] = None, - first_row_as_header: Optional[JSON] = None, - null_value: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword location: The location of the delimited text storage. - :paramtype location: ~azure.mgmt.datafactory.models.DatasetLocation - :keyword column_delimiter: The column delimiter. Type: string (or Expression with resultType - string). - :paramtype column_delimiter: JSON - :keyword row_delimiter: The row delimiter. Type: string (or Expression with resultType string). - :paramtype row_delimiter: JSON - :keyword encoding_name: The code page name of the preferred encoding. If miss, the default - value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the - table in the following link to set supported values: - https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with - resultType string). - :paramtype encoding_name: JSON - :keyword compression_codec: The data compressionCodec. Type: string (or Expression with - resultType string). - :paramtype compression_codec: JSON - :keyword compression_level: The data compression method used for DelimitedText. - :paramtype compression_level: JSON - :keyword quote_char: The quote character. Type: string (or Expression with resultType string). - :paramtype quote_char: JSON - :keyword escape_char: The escape character. Type: string (or Expression with resultType - string). - :paramtype escape_char: JSON - :keyword first_row_as_header: When used as input, treat the first row of data as headers. When - used as output,write the headers into the output as the first row of data. The default value is - false. Type: boolean (or Expression with resultType boolean). - :paramtype first_row_as_header: JSON - :keyword null_value: The null value string. Type: string (or Expression with resultType - string). - :paramtype null_value: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "DelimitedText" - self.location = location - self.column_delimiter = column_delimiter - self.row_delimiter = row_delimiter - self.encoding_name = encoding_name - self.compression_codec = compression_codec - self.compression_level = compression_level - self.quote_char = quote_char - self.escape_char = escape_char - self.first_row_as_header = first_row_as_header - self.null_value = null_value - - -class DelimitedTextReadSettings(FormatReadSettings): - """Delimited text read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar skip_line_count: Indicates the number of non-empty rows to skip when reading data from - input files. Type: integer (or Expression with resultType integer). - :vartype skip_line_count: JSON - :ivar compression_properties: Compression settings. - :vartype compression_properties: ~azure.mgmt.datafactory.models.CompressionReadSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "skip_line_count": {"key": "skipLineCount", "type": "object"}, - "compression_properties": {"key": "compressionProperties", "type": "CompressionReadSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - skip_line_count: Optional[JSON] = None, - compression_properties: Optional["_models.CompressionReadSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword skip_line_count: Indicates the number of non-empty rows to skip when reading data from - input files. Type: integer (or Expression with resultType integer). - :paramtype skip_line_count: JSON - :keyword compression_properties: Compression settings. - :paramtype compression_properties: ~azure.mgmt.datafactory.models.CompressionReadSettings - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "DelimitedTextReadSettings" - self.skip_line_count = skip_line_count - self.compression_properties = compression_properties - - -class DelimitedTextSink(CopySink): - """A copy activity DelimitedText sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar store_settings: DelimitedText store settings. - :vartype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings - :ivar format_settings: DelimitedText format settings. - :vartype format_settings: ~azure.mgmt.datafactory.models.DelimitedTextWriteSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "store_settings": {"key": "storeSettings", "type": "StoreWriteSettings"}, - "format_settings": {"key": "formatSettings", "type": "DelimitedTextWriteSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - store_settings: Optional["_models.StoreWriteSettings"] = None, - format_settings: Optional["_models.DelimitedTextWriteSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword store_settings: DelimitedText store settings. - :paramtype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings - :keyword format_settings: DelimitedText format settings. - :paramtype format_settings: ~azure.mgmt.datafactory.models.DelimitedTextWriteSettings - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "DelimitedTextSink" - self.store_settings = store_settings - self.format_settings = format_settings - - -class DelimitedTextSource(CopySource): - """A copy activity DelimitedText source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar store_settings: DelimitedText store settings. - :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - :ivar format_settings: DelimitedText format settings. - :vartype format_settings: ~azure.mgmt.datafactory.models.DelimitedTextReadSettings - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "store_settings": {"key": "storeSettings", "type": "StoreReadSettings"}, - "format_settings": {"key": "formatSettings", "type": "DelimitedTextReadSettings"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - store_settings: Optional["_models.StoreReadSettings"] = None, - format_settings: Optional["_models.DelimitedTextReadSettings"] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword store_settings: DelimitedText store settings. - :paramtype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - :keyword format_settings: DelimitedText format settings. - :paramtype format_settings: ~azure.mgmt.datafactory.models.DelimitedTextReadSettings - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "DelimitedTextSource" - self.store_settings = store_settings - self.format_settings = format_settings - self.additional_columns = additional_columns - - -class DelimitedTextWriteSettings(FormatWriteSettings): - """Delimited text write settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The write setting type. Required. - :vartype type: str - :ivar quote_all_text: Indicates whether string values should always be enclosed with quotes. - Type: boolean (or Expression with resultType boolean). - :vartype quote_all_text: JSON - :ivar file_extension: The file extension used to create the files. Type: string (or Expression - with resultType string). Required. - :vartype file_extension: JSON - :ivar max_rows_per_file: Limit the written file's row count to be smaller than or equal to the - specified count. Type: integer (or Expression with resultType integer). - :vartype max_rows_per_file: JSON - :ivar file_name_prefix: Specifies the file name pattern :code:``_\\ - :code:``.\\ :code:`` when copy from non-file based store without - partitionOptions. Type: string (or Expression with resultType string). - :vartype file_name_prefix: JSON - """ - - _validation = { - "type": {"required": True}, - "file_extension": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "quote_all_text": {"key": "quoteAllText", "type": "object"}, - "file_extension": {"key": "fileExtension", "type": "object"}, - "max_rows_per_file": {"key": "maxRowsPerFile", "type": "object"}, - "file_name_prefix": {"key": "fileNamePrefix", "type": "object"}, - } - - def __init__( - self, - *, - file_extension: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - quote_all_text: Optional[JSON] = None, - max_rows_per_file: Optional[JSON] = None, - file_name_prefix: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword quote_all_text: Indicates whether string values should always be enclosed with quotes. - Type: boolean (or Expression with resultType boolean). - :paramtype quote_all_text: JSON - :keyword file_extension: The file extension used to create the files. Type: string (or - Expression with resultType string). Required. - :paramtype file_extension: JSON - :keyword max_rows_per_file: Limit the written file's row count to be smaller than or equal to - the specified count. Type: integer (or Expression with resultType integer). - :paramtype max_rows_per_file: JSON - :keyword file_name_prefix: Specifies the file name pattern :code:``_\\ - :code:``.\\ :code:`` when copy from non-file based store without - partitionOptions. Type: string (or Expression with resultType string). - :paramtype file_name_prefix: JSON - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "DelimitedTextWriteSettings" - self.quote_all_text = quote_all_text - self.file_extension = file_extension - self.max_rows_per_file = max_rows_per_file - self.file_name_prefix = file_name_prefix - - -class DependencyReference(_serialization.Model): - """Referenced dependency. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - SelfDependencyTumblingWindowTriggerReference, TriggerDependencyReference - - All required parameters must be populated in order to send to server. - - :ivar type: The type of dependency reference. Required. - :vartype type: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = { - "type": { - "SelfDependencyTumblingWindowTriggerReference": "SelfDependencyTumblingWindowTriggerReference", - "TriggerDependencyReference": "TriggerDependencyReference", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class DistcpSettings(_serialization.Model): - """Distcp settings. - - All required parameters must be populated in order to send to server. - - :ivar resource_manager_endpoint: Specifies the Yarn ResourceManager endpoint. Type: string (or - Expression with resultType string). Required. - :vartype resource_manager_endpoint: JSON - :ivar temp_script_path: Specifies an existing folder path which will be used to store temp - Distcp command script. The script file is generated by ADF and will be removed after Copy job - finished. Type: string (or Expression with resultType string). Required. - :vartype temp_script_path: JSON - :ivar distcp_options: Specifies the Distcp options. Type: string (or Expression with resultType - string). - :vartype distcp_options: JSON - """ - - _validation = { - "resource_manager_endpoint": {"required": True}, - "temp_script_path": {"required": True}, - } - - _attribute_map = { - "resource_manager_endpoint": {"key": "resourceManagerEndpoint", "type": "object"}, - "temp_script_path": {"key": "tempScriptPath", "type": "object"}, - "distcp_options": {"key": "distcpOptions", "type": "object"}, - } - - def __init__( - self, - *, - resource_manager_endpoint: JSON, - temp_script_path: JSON, - distcp_options: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_manager_endpoint: Specifies the Yarn ResourceManager endpoint. Type: string - (or Expression with resultType string). Required. - :paramtype resource_manager_endpoint: JSON - :keyword temp_script_path: Specifies an existing folder path which will be used to store temp - Distcp command script. The script file is generated by ADF and will be removed after Copy job - finished. Type: string (or Expression with resultType string). Required. - :paramtype temp_script_path: JSON - :keyword distcp_options: Specifies the Distcp options. Type: string (or Expression with - resultType string). - :paramtype distcp_options: JSON - """ - super().__init__(**kwargs) - self.resource_manager_endpoint = resource_manager_endpoint - self.temp_script_path = temp_script_path - self.distcp_options = distcp_options - - -class DocumentDbCollectionDataset(Dataset): - """Microsoft Azure Document Database Collection dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar collection_name: Document Database collection name. Type: string (or Expression with - resultType string). Required. - :vartype collection_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - "collection_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "collection_name": {"key": "typeProperties.collectionName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - collection_name: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword collection_name: Document Database collection name. Type: string (or Expression with - resultType string). Required. - :paramtype collection_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "DocumentDbCollection" - self.collection_name = collection_name - - -class DocumentDbCollectionSink(CopySink): - """A copy activity Document Database Collection sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar nesting_separator: Nested properties separator. Default is . (dot). Type: string (or - Expression with resultType string). - :vartype nesting_separator: JSON - :ivar write_behavior: Describes how to write data to Azure Cosmos DB. Type: string (or - Expression with resultType string). Allowed values: insert and upsert. - :vartype write_behavior: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "nesting_separator": {"key": "nestingSeparator", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - nesting_separator: Optional[JSON] = None, - write_behavior: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword nesting_separator: Nested properties separator. Default is . (dot). Type: string (or - Expression with resultType string). - :paramtype nesting_separator: JSON - :keyword write_behavior: Describes how to write data to Azure Cosmos DB. Type: string (or - Expression with resultType string). Allowed values: insert and upsert. - :paramtype write_behavior: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "DocumentDbCollectionSink" - self.nesting_separator = nesting_separator - self.write_behavior = write_behavior - - -class DocumentDbCollectionSource(CopySource): - """A copy activity Document Database Collection source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query: Documents query. Type: string (or Expression with resultType string). - :vartype query: JSON - :ivar nesting_separator: Nested properties separator. Type: string (or Expression with - resultType string). - :vartype nesting_separator: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "nesting_separator": {"key": "nestingSeparator", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query: Optional[JSON] = None, - nesting_separator: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query: Documents query. Type: string (or Expression with resultType string). - :paramtype query: JSON - :keyword nesting_separator: Nested properties separator. Type: string (or Expression with - resultType string). - :paramtype nesting_separator: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "DocumentDbCollectionSource" - self.query = query - self.nesting_separator = nesting_separator - self.query_timeout = query_timeout - self.additional_columns = additional_columns - - -class DrillLinkedService(LinkedService): - """Drill server linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: An ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar pwd: The Azure key vault secret reference of password in connection string. - :vartype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "pwd": {"key": "typeProperties.pwd", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_string: Optional[JSON] = None, - pwd: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: An ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword pwd: The Azure key vault secret reference of password in connection string. - :paramtype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Drill" - self.connection_string = connection_string - self.pwd = pwd - self.encrypted_credential = encrypted_credential - - -class DrillSource(TabularSource): - """A copy activity Drill server source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "DrillSource" - self.query = query - - -class DrillTableDataset(Dataset): - """Drill server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property will be retired. Please consider using schema + table - properties instead. - :vartype table_name: JSON - :ivar table: The table name of the Drill. Type: string (or Expression with resultType string). - :vartype table: JSON - :ivar schema_type_properties_schema: The schema name of the Drill. Type: string (or Expression - with resultType string). - :vartype schema_type_properties_schema: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - table: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property will be retired. Please consider using schema + table - properties instead. - :paramtype table_name: JSON - :keyword table: The table name of the Drill. Type: string (or Expression with resultType - string). - :paramtype table: JSON - :keyword schema_type_properties_schema: The schema name of the Drill. Type: string (or - Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "DrillTable" - self.table_name = table_name - self.table = table - self.schema_type_properties_schema = schema_type_properties_schema - - -class DWCopyCommandDefaultValue(_serialization.Model): - """Default value. - - :ivar column_name: Column name. Type: object (or Expression with resultType string). - :vartype column_name: JSON - :ivar default_value: The default value of the column. Type: object (or Expression with - resultType string). - :vartype default_value: JSON - """ - - _attribute_map = { - "column_name": {"key": "columnName", "type": "object"}, - "default_value": {"key": "defaultValue", "type": "object"}, - } - - def __init__( - self, *, column_name: Optional[JSON] = None, default_value: Optional[JSON] = None, **kwargs: Any - ) -> None: - """ - :keyword column_name: Column name. Type: object (or Expression with resultType string). - :paramtype column_name: JSON - :keyword default_value: The default value of the column. Type: object (or Expression with - resultType string). - :paramtype default_value: JSON - """ - super().__init__(**kwargs) - self.column_name = column_name - self.default_value = default_value - - -class DWCopyCommandSettings(_serialization.Model): - """DW Copy Command settings. - - :ivar default_values: Specifies the default values for each target column in SQL DW. The - default values in the property overwrite the DEFAULT constraint set in the DB, and identity - column cannot have a default value. Type: array of objects (or Expression with resultType array - of objects). - :vartype default_values: list[~azure.mgmt.datafactory.models.DWCopyCommandDefaultValue] - :ivar additional_options: Additional options directly passed to SQL DW in Copy Command. Type: - key value pairs (value should be string type) (or Expression with resultType object). Example: - "additionalOptions": { "MAXERRORS": "1000", "DATEFORMAT": "'ymd'" }. - :vartype additional_options: dict[str, str] - """ - - _attribute_map = { - "default_values": {"key": "defaultValues", "type": "[DWCopyCommandDefaultValue]"}, - "additional_options": {"key": "additionalOptions", "type": "{str}"}, - } - - def __init__( - self, - *, - default_values: Optional[list["_models.DWCopyCommandDefaultValue"]] = None, - additional_options: Optional[dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword default_values: Specifies the default values for each target column in SQL DW. The - default values in the property overwrite the DEFAULT constraint set in the DB, and identity - column cannot have a default value. Type: array of objects (or Expression with resultType array - of objects). - :paramtype default_values: list[~azure.mgmt.datafactory.models.DWCopyCommandDefaultValue] - :keyword additional_options: Additional options directly passed to SQL DW in Copy Command. - Type: key value pairs (value should be string type) (or Expression with resultType object). - Example: "additionalOptions": { "MAXERRORS": "1000", "DATEFORMAT": "'ymd'" }. - :paramtype additional_options: dict[str, str] - """ - super().__init__(**kwargs) - self.default_values = default_values - self.additional_options = additional_options - - -class DynamicsAXLinkedService(LinkedService): - """Dynamics AX linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar url: The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. - Required. - :vartype url: JSON - :ivar service_principal_id: Specify the application's client ID. Type: string (or Expression - with resultType string). Required. - :vartype service_principal_id: JSON - :ivar service_principal_key: Specify the application's key. Mark this field as a SecureString - to store it securely in Data Factory, or reference a secret stored in Azure Key Vault. Type: - string (or Expression with resultType string). Required. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: Specify the tenant information (domain name or tenant ID) under which your - application resides. Retrieve it by hovering the mouse in the top-right corner of the Azure - portal. Type: string (or Expression with resultType string). Required. - :vartype tenant: JSON - :ivar aad_resource_id: Specify the resource you are requesting authorization. Type: string (or - Expression with resultType string). Required. - :vartype aad_resource_id: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "url": {"required": True}, - "service_principal_id": {"required": True}, - "service_principal_key": {"required": True}, - "tenant": {"required": True}, - "aad_resource_id": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "url": {"key": "typeProperties.url", "type": "object"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "aad_resource_id": {"key": "typeProperties.aadResourceId", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - url: JSON, - service_principal_id: JSON, - service_principal_key: "_models.SecretBase", - tenant: JSON, - aad_resource_id: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword url: The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. - Required. - :paramtype url: JSON - :keyword service_principal_id: Specify the application's client ID. Type: string (or Expression - with resultType string). Required. - :paramtype service_principal_id: JSON - :keyword service_principal_key: Specify the application's key. Mark this field as a - SecureString to store it securely in Data Factory, or reference a secret stored in Azure Key - Vault. Type: string (or Expression with resultType string). Required. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: Specify the tenant information (domain name or tenant ID) under which your - application resides. Retrieve it by hovering the mouse in the top-right corner of the Azure - portal. Type: string (or Expression with resultType string). Required. - :paramtype tenant: JSON - :keyword aad_resource_id: Specify the resource you are requesting authorization. Type: string - (or Expression with resultType string). Required. - :paramtype aad_resource_id: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "DynamicsAX" - self.url = url - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.tenant = tenant - self.aad_resource_id = aad_resource_id - self.encrypted_credential = encrypted_credential - - -class DynamicsAXResourceDataset(Dataset): - """The path of the Dynamics AX OData entity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar path: The path of the Dynamics AX OData entity. Type: string (or Expression with - resultType string). Required. - :vartype path: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - "path": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "path": {"key": "typeProperties.path", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - path: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword path: The path of the Dynamics AX OData entity. Type: string (or Expression with - resultType string). Required. - :paramtype path: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "DynamicsAXResource" - self.path = path - - -class DynamicsAXSource(TabularSource): - """A copy activity Dynamics AX source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - :ivar http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the timeout - to get a response, not the timeout to read response data. Default value: 00:05:00. Type: string - (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype http_request_timeout: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "http_request_timeout": {"key": "httpRequestTimeout", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - http_request_timeout: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - :keyword http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the - timeout to get a response, not the timeout to read response data. Default value: 00:05:00. - Type: string (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype http_request_timeout: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "DynamicsAXSource" - self.query = query - self.http_request_timeout = http_request_timeout - - -class DynamicsCrmEntityDataset(Dataset): - """The Dynamics CRM entity dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar entity_name: The logical name of the entity. Type: string (or Expression with resultType - string). - :vartype entity_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "entity_name": {"key": "typeProperties.entityName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - entity_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword entity_name: The logical name of the entity. Type: string (or Expression with - resultType string). - :paramtype entity_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "DynamicsCrmEntity" - self.entity_name = entity_name - - -class DynamicsCrmLinkedService(LinkedService): - """Dynamics CRM linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar deployment_type: The deployment type of the Dynamics CRM instance. 'Online' for Dynamics - CRM Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with Ifd. Type: string (or - Expression with resultType string). Required. - :vartype deployment_type: JSON - :ivar host_name: The host name of the on-premises Dynamics CRM server. The property is required - for on-prem and not allowed for online. Type: string (or Expression with resultType string). - :vartype host_name: JSON - :ivar port: The port of on-premises Dynamics CRM server. The property is required for on-prem - and not allowed for online. Default is 443. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype port: JSON - :ivar service_uri: The URL to the Microsoft Dynamics CRM server. The property is required for - on-line and not allowed for on-prem. Type: string (or Expression with resultType string). - :vartype service_uri: JSON - :ivar organization_name: The organization name of the Dynamics CRM instance. The property is - required for on-prem and required for online when there are more than one Dynamics CRM - instances associated with the user. Type: string (or Expression with resultType string). - :vartype organization_name: JSON - :ivar authentication_type: The authentication type to connect to Dynamics CRM server. - 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' - for Server-To-Server authentication in online scenario, 'Active Directory' for Dynamics - on-premises with IFD. Type: string (or Expression with resultType string). Required. - :vartype authentication_type: JSON - :ivar domain: The Active Directory domain that will verify user credentials. Type: string (or - Expression with resultType string). - :vartype domain: JSON - :ivar username: User name to access the Dynamics CRM instance. Type: string (or Expression with - resultType string). - :vartype username: JSON - :ivar password: Password to access the Dynamics CRM instance. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_id: The client ID of the application in Azure Active Directory used for - Server-To-Server authentication. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :vartype service_principal_credential_type: JSON - :ivar service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "deployment_type": {"required": True}, - "authentication_type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "deployment_type": {"key": "typeProperties.deploymentType", "type": "object"}, - "host_name": {"key": "typeProperties.hostName", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "service_uri": {"key": "typeProperties.serviceUri", "type": "object"}, - "organization_name": {"key": "typeProperties.organizationName", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "object"}, - "domain": {"key": "typeProperties.domain", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, - "service_principal_credential": {"key": "typeProperties.servicePrincipalCredential", "type": "SecretBase"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - deployment_type: JSON, - authentication_type: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - host_name: Optional[JSON] = None, - port: Optional[JSON] = None, - service_uri: Optional[JSON] = None, - organization_name: Optional[JSON] = None, - domain: Optional[JSON] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - service_principal_id: Optional[JSON] = None, - service_principal_credential_type: Optional[JSON] = None, - service_principal_credential: Optional["_models.SecretBase"] = None, - credential: Optional["_models.CredentialReference"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword deployment_type: The deployment type of the Dynamics CRM instance. 'Online' for - Dynamics CRM Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with Ifd. Type: string - (or Expression with resultType string). Required. - :paramtype deployment_type: JSON - :keyword host_name: The host name of the on-premises Dynamics CRM server. The property is - required for on-prem and not allowed for online. Type: string (or Expression with resultType - string). - :paramtype host_name: JSON - :keyword port: The port of on-premises Dynamics CRM server. The property is required for - on-prem and not allowed for online. Default is 443. Type: integer (or Expression with - resultType integer), minimum: 0. - :paramtype port: JSON - :keyword service_uri: The URL to the Microsoft Dynamics CRM server. The property is required - for on-line and not allowed for on-prem. Type: string (or Expression with resultType string). - :paramtype service_uri: JSON - :keyword organization_name: The organization name of the Dynamics CRM instance. The property is - required for on-prem and required for online when there are more than one Dynamics CRM - instances associated with the user. Type: string (or Expression with resultType string). - :paramtype organization_name: JSON - :keyword authentication_type: The authentication type to connect to Dynamics CRM server. - 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' - for Server-To-Server authentication in online scenario, 'Active Directory' for Dynamics - on-premises with IFD. Type: string (or Expression with resultType string). Required. - :paramtype authentication_type: JSON - :keyword domain: The Active Directory domain that will verify user credentials. Type: string - (or Expression with resultType string). - :paramtype domain: JSON - :keyword username: User name to access the Dynamics CRM instance. Type: string (or Expression - with resultType string). - :paramtype username: JSON - :keyword password: Password to access the Dynamics CRM instance. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_id: The client ID of the application in Azure Active Directory used - for Server-To-Server authentication. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :paramtype service_principal_credential_type: JSON - :keyword service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :paramtype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "DynamicsCrm" - self.deployment_type = deployment_type - self.host_name = host_name - self.port = port - self.service_uri = service_uri - self.organization_name = organization_name - self.authentication_type = authentication_type - self.domain = domain - self.username = username - self.password = password - self.service_principal_id = service_principal_id - self.service_principal_credential_type = service_principal_credential_type - self.service_principal_credential = service_principal_credential - self.credential = credential - self.encrypted_credential = encrypted_credential - - -class DynamicsCrmSink(CopySink): - """A copy activity Dynamics CRM sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar write_behavior: The write behavior for the operation. Required. "Upsert" - :vartype write_behavior: str or ~azure.mgmt.datafactory.models.DynamicsSinkWriteBehavior - :ivar ignore_null_values: The flag indicating whether to ignore null values from input dataset - (except key fields) during write operation. Default is false. Type: boolean (or Expression with - resultType boolean). - :vartype ignore_null_values: JSON - :ivar alternate_key_name: The logical name of the alternate key which will be used when - upserting records. Type: string (or Expression with resultType string). - :vartype alternate_key_name: JSON - :ivar bypass_business_logic_execution: Controls the bypass of Dataverse custom business logic. - Type: string (or Expression with resultType string). Type: string (or Expression with - resultType string). - :vartype bypass_business_logic_execution: JSON - :ivar bypass_power_automate_flows: Controls the bypass of Power Automate flows. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype bypass_power_automate_flows: JSON - """ - - _validation = { - "type": {"required": True}, - "write_behavior": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "str"}, - "ignore_null_values": {"key": "ignoreNullValues", "type": "object"}, - "alternate_key_name": {"key": "alternateKeyName", "type": "object"}, - "bypass_business_logic_execution": {"key": "bypassBusinessLogicExecution", "type": "object"}, - "bypass_power_automate_flows": {"key": "bypassPowerAutomateFlows", "type": "object"}, - } - - def __init__( - self, - *, - write_behavior: Union[str, "_models.DynamicsSinkWriteBehavior"], - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - ignore_null_values: Optional[JSON] = None, - alternate_key_name: Optional[JSON] = None, - bypass_business_logic_execution: Optional[JSON] = None, - bypass_power_automate_flows: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword write_behavior: The write behavior for the operation. Required. "Upsert" - :paramtype write_behavior: str or ~azure.mgmt.datafactory.models.DynamicsSinkWriteBehavior - :keyword ignore_null_values: The flag indicating whether to ignore null values from input - dataset (except key fields) during write operation. Default is false. Type: boolean (or - Expression with resultType boolean). - :paramtype ignore_null_values: JSON - :keyword alternate_key_name: The logical name of the alternate key which will be used when - upserting records. Type: string (or Expression with resultType string). - :paramtype alternate_key_name: JSON - :keyword bypass_business_logic_execution: Controls the bypass of Dataverse custom business - logic. Type: string (or Expression with resultType string). Type: string (or Expression with - resultType string). - :paramtype bypass_business_logic_execution: JSON - :keyword bypass_power_automate_flows: Controls the bypass of Power Automate flows. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype bypass_power_automate_flows: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "DynamicsCrmSink" - self.write_behavior = write_behavior - self.ignore_null_values = ignore_null_values - self.alternate_key_name = alternate_key_name - self.bypass_business_logic_execution = bypass_business_logic_execution - self.bypass_power_automate_flows = bypass_power_automate_flows - - -class DynamicsCrmSource(CopySource): - """A copy activity Dynamics CRM source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query: FetchXML is a proprietary query language that is used in Microsoft Dynamics CRM - (online & on-premises). Type: string (or Expression with resultType string). - :vartype query: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query: FetchXML is a proprietary query language that is used in Microsoft Dynamics CRM - (online & on-premises). Type: string (or Expression with resultType string). - :paramtype query: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "DynamicsCrmSource" - self.query = query - self.additional_columns = additional_columns - - -class DynamicsEntityDataset(Dataset): - """The Dynamics entity dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar entity_name: The logical name of the entity. Type: string (or Expression with resultType - string). - :vartype entity_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "entity_name": {"key": "typeProperties.entityName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - entity_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword entity_name: The logical name of the entity. Type: string (or Expression with - resultType string). - :paramtype entity_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "DynamicsEntity" - self.entity_name = entity_name - - -class DynamicsLinkedService(LinkedService): - """Dynamics linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar deployment_type: The deployment type of the Dynamics instance. 'Online' for Dynamics - Online and 'OnPremisesWithIfd' for Dynamics on-premises with Ifd. Type: string (or Expression - with resultType string). Required. - :vartype deployment_type: JSON - :ivar host_name: The host name of the on-premises Dynamics server. The property is required for - on-prem and not allowed for online. Type: string (or Expression with resultType string). - :vartype host_name: JSON - :ivar port: The port of on-premises Dynamics server. The property is required for on-prem and - not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), - minimum: 0. - :vartype port: JSON - :ivar service_uri: The URL to the Microsoft Dynamics server. The property is required for - on-line and not allowed for on-prem. Type: string (or Expression with resultType string). - :vartype service_uri: JSON - :ivar organization_name: The organization name of the Dynamics instance. The property is - required for on-prem and required for online when there are more than one Dynamics instances - associated with the user. Type: string (or Expression with resultType string). - :vartype organization_name: JSON - :ivar authentication_type: The authentication type to connect to Dynamics server. 'Office365' - for online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for - Server-To-Server authentication in online scenario, 'Active Directory' for Dynamics on-premises - with IFD. Type: string (or Expression with resultType string). Required. - :vartype authentication_type: JSON - :ivar domain: The Active Directory domain that will verify user credentials. Type: string (or - Expression with resultType string). - :vartype domain: JSON - :ivar username: User name to access the Dynamics instance. Type: string (or Expression with - resultType string). - :vartype username: JSON - :ivar password: Password to access the Dynamics instance. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_id: The client ID of the application in Azure Active Directory used for - Server-To-Server authentication. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :vartype service_principal_credential_type: JSON - :ivar service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "type": {"required": True}, - "deployment_type": {"required": True}, - "authentication_type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "deployment_type": {"key": "typeProperties.deploymentType", "type": "object"}, - "host_name": {"key": "typeProperties.hostName", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "service_uri": {"key": "typeProperties.serviceUri", "type": "object"}, - "organization_name": {"key": "typeProperties.organizationName", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "object"}, - "domain": {"key": "typeProperties.domain", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, - "service_principal_credential": {"key": "typeProperties.servicePrincipalCredential", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - } - - def __init__( - self, - *, - deployment_type: JSON, - authentication_type: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - host_name: Optional[JSON] = None, - port: Optional[JSON] = None, - service_uri: Optional[JSON] = None, - organization_name: Optional[JSON] = None, - domain: Optional[JSON] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - service_principal_id: Optional[JSON] = None, - service_principal_credential_type: Optional[JSON] = None, - service_principal_credential: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword deployment_type: The deployment type of the Dynamics instance. 'Online' for Dynamics - Online and 'OnPremisesWithIfd' for Dynamics on-premises with Ifd. Type: string (or Expression - with resultType string). Required. - :paramtype deployment_type: JSON - :keyword host_name: The host name of the on-premises Dynamics server. The property is required - for on-prem and not allowed for online. Type: string (or Expression with resultType string). - :paramtype host_name: JSON - :keyword port: The port of on-premises Dynamics server. The property is required for on-prem - and not allowed for online. Default is 443. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype port: JSON - :keyword service_uri: The URL to the Microsoft Dynamics server. The property is required for - on-line and not allowed for on-prem. Type: string (or Expression with resultType string). - :paramtype service_uri: JSON - :keyword organization_name: The organization name of the Dynamics instance. The property is - required for on-prem and required for online when there are more than one Dynamics instances - associated with the user. Type: string (or Expression with resultType string). - :paramtype organization_name: JSON - :keyword authentication_type: The authentication type to connect to Dynamics server. - 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' - for Server-To-Server authentication in online scenario, 'Active Directory' for Dynamics - on-premises with IFD. Type: string (or Expression with resultType string). Required. - :paramtype authentication_type: JSON - :keyword domain: The Active Directory domain that will verify user credentials. Type: string - (or Expression with resultType string). - :paramtype domain: JSON - :keyword username: User name to access the Dynamics instance. Type: string (or Expression with - resultType string). - :paramtype username: JSON - :keyword password: Password to access the Dynamics instance. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_id: The client ID of the application in Azure Active Directory used - for Server-To-Server authentication. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :paramtype service_principal_credential_type: JSON - :keyword service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :paramtype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Dynamics" - self.deployment_type = deployment_type - self.host_name = host_name - self.port = port - self.service_uri = service_uri - self.organization_name = organization_name - self.authentication_type = authentication_type - self.domain = domain - self.username = username - self.password = password - self.service_principal_id = service_principal_id - self.service_principal_credential_type = service_principal_credential_type - self.service_principal_credential = service_principal_credential - self.encrypted_credential = encrypted_credential - self.credential = credential - - -class DynamicsSink(CopySink): - """A copy activity Dynamics sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar write_behavior: The write behavior for the operation. Required. "Upsert" - :vartype write_behavior: str or ~azure.mgmt.datafactory.models.DynamicsSinkWriteBehavior - :ivar ignore_null_values: The flag indicating whether ignore null values from input dataset - (except key fields) during write operation. Default is false. Type: boolean (or Expression with - resultType boolean). - :vartype ignore_null_values: JSON - :ivar alternate_key_name: The logical name of the alternate key which will be used when - upserting records. Type: string (or Expression with resultType string). - :vartype alternate_key_name: JSON - :ivar bypass_business_logic_execution: Controls the bypass of Dataverse custom business logic. - Type: string (or Expression with resultType string). Type: string (or Expression with - resultType string). - :vartype bypass_business_logic_execution: JSON - :ivar bypass_power_automate_flows: Controls the bypass of Power Automate flows. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype bypass_power_automate_flows: JSON - """ - - _validation = { - "type": {"required": True}, - "write_behavior": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "str"}, - "ignore_null_values": {"key": "ignoreNullValues", "type": "object"}, - "alternate_key_name": {"key": "alternateKeyName", "type": "object"}, - "bypass_business_logic_execution": {"key": "bypassBusinessLogicExecution", "type": "object"}, - "bypass_power_automate_flows": {"key": "bypassPowerAutomateFlows", "type": "object"}, - } - - def __init__( - self, - *, - write_behavior: Union[str, "_models.DynamicsSinkWriteBehavior"], - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - ignore_null_values: Optional[JSON] = None, - alternate_key_name: Optional[JSON] = None, - bypass_business_logic_execution: Optional[JSON] = None, - bypass_power_automate_flows: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword write_behavior: The write behavior for the operation. Required. "Upsert" - :paramtype write_behavior: str or ~azure.mgmt.datafactory.models.DynamicsSinkWriteBehavior - :keyword ignore_null_values: The flag indicating whether ignore null values from input dataset - (except key fields) during write operation. Default is false. Type: boolean (or Expression with - resultType boolean). - :paramtype ignore_null_values: JSON - :keyword alternate_key_name: The logical name of the alternate key which will be used when - upserting records. Type: string (or Expression with resultType string). - :paramtype alternate_key_name: JSON - :keyword bypass_business_logic_execution: Controls the bypass of Dataverse custom business - logic. Type: string (or Expression with resultType string). Type: string (or Expression with - resultType string). - :paramtype bypass_business_logic_execution: JSON - :keyword bypass_power_automate_flows: Controls the bypass of Power Automate flows. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype bypass_power_automate_flows: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "DynamicsSink" - self.write_behavior = write_behavior - self.ignore_null_values = ignore_null_values - self.alternate_key_name = alternate_key_name - self.bypass_business_logic_execution = bypass_business_logic_execution - self.bypass_power_automate_flows = bypass_power_automate_flows - - -class DynamicsSource(CopySource): - """A copy activity Dynamics source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query: FetchXML is a proprietary query language that is used in Microsoft Dynamics - (online & on-premises). Type: string (or Expression with resultType string). - :vartype query: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query: FetchXML is a proprietary query language that is used in Microsoft Dynamics - (online & on-premises). Type: string (or Expression with resultType string). - :paramtype query: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "DynamicsSource" - self.query = query - self.additional_columns = additional_columns - - -class EloquaLinkedService(LinkedService): - """Eloqua server linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar endpoint: The endpoint of the Eloqua server. (i.e. eloqua.example.com). Required. - :vartype endpoint: JSON - :ivar username: The site name and user name of your Eloqua account in the form: - sitename/username. (i.e. Eloqua/Alice). Required. - :vartype username: JSON - :ivar password: The password corresponding to the user name. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using - HTTPS. The default value is true. - :vartype use_encrypted_endpoints: JSON - :ivar use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :vartype use_host_verification: JSON - :ivar use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :vartype use_peer_verification: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "endpoint": {"required": True}, - "username": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "endpoint": {"key": "typeProperties.endpoint", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, - "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, - "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - endpoint: JSON, - username: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - password: Optional["_models.SecretBase"] = None, - use_encrypted_endpoints: Optional[JSON] = None, - use_host_verification: Optional[JSON] = None, - use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword endpoint: The endpoint of the Eloqua server. (i.e. eloqua.example.com). Required. - :paramtype endpoint: JSON - :keyword username: The site name and user name of your Eloqua account in the form: - sitename/username. (i.e. Eloqua/Alice). Required. - :paramtype username: JSON - :keyword password: The password corresponding to the user name. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted - using HTTPS. The default value is true. - :paramtype use_encrypted_endpoints: JSON - :keyword use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :paramtype use_host_verification: JSON - :keyword use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :paramtype use_peer_verification: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Eloqua" - self.endpoint = endpoint - self.username = username - self.password = password - self.use_encrypted_endpoints = use_encrypted_endpoints - self.use_host_verification = use_host_verification - self.use_peer_verification = use_peer_verification - self.encrypted_credential = encrypted_credential - - -class EloquaObjectDataset(Dataset): - """Eloqua server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "EloquaObject" - self.table_name = table_name - - -class EloquaSource(TabularSource): - """A copy activity Eloqua server source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "EloquaSource" - self.query = query - - -class EnableInteractiveQueryRequest(_serialization.Model): - """The enable the interactive authoring information. - - :ivar auto_termination_minutes: The allowed idle time for interactive authoring. - :vartype auto_termination_minutes: int - """ - - _attribute_map = { - "auto_termination_minutes": {"key": "autoTerminationMinutes", "type": "int"}, - } - - def __init__(self, *, auto_termination_minutes: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword auto_termination_minutes: The allowed idle time for interactive authoring. - :paramtype auto_termination_minutes: int - """ - super().__init__(**kwargs) - self.auto_termination_minutes = auto_termination_minutes - - -class EncryptionConfiguration(_serialization.Model): - """Definition of CMK for the factory. - - All required parameters must be populated in order to send to server. - - :ivar key_name: The name of the key in Azure Key Vault to use as Customer Managed Key. - Required. - :vartype key_name: str - :ivar vault_base_url: The url of the Azure Key Vault used for CMK. Required. - :vartype vault_base_url: str - :ivar key_version: The version of the key used for CMK. If not provided, latest version will be - used. - :vartype key_version: str - :ivar identity: User assigned identity to use to authenticate to customer's key vault. If not - provided Managed Service Identity will be used. - :vartype identity: ~azure.mgmt.datafactory.models.CMKIdentityDefinition - """ - - _validation = { - "key_name": {"required": True}, - "vault_base_url": {"required": True}, - } - - _attribute_map = { - "key_name": {"key": "keyName", "type": "str"}, - "vault_base_url": {"key": "vaultBaseUrl", "type": "str"}, - "key_version": {"key": "keyVersion", "type": "str"}, - "identity": {"key": "identity", "type": "CMKIdentityDefinition"}, - } - - def __init__( - self, - *, - key_name: str, - vault_base_url: str, - key_version: Optional[str] = None, - identity: Optional["_models.CMKIdentityDefinition"] = None, - **kwargs: Any - ) -> None: - """ - :keyword key_name: The name of the key in Azure Key Vault to use as Customer Managed Key. - Required. - :paramtype key_name: str - :keyword vault_base_url: The url of the Azure Key Vault used for CMK. Required. - :paramtype vault_base_url: str - :keyword key_version: The version of the key used for CMK. If not provided, latest version will - be used. - :paramtype key_version: str - :keyword identity: User assigned identity to use to authenticate to customer's key vault. If - not provided Managed Service Identity will be used. - :paramtype identity: ~azure.mgmt.datafactory.models.CMKIdentityDefinition - """ - super().__init__(**kwargs) - self.key_name = key_name - self.vault_base_url = vault_base_url - self.key_version = key_version - self.identity = identity - - -class EntityReference(_serialization.Model): - """The entity reference. - - :ivar type: The type of this referenced entity. Known values are: "IntegrationRuntimeReference" - and "LinkedServiceReference". - :vartype type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeEntityReferenceType - :ivar reference_name: The name of this referenced entity. - :vartype reference_name: str - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "reference_name": {"key": "referenceName", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.IntegrationRuntimeEntityReferenceType"]] = None, - reference_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: The type of this referenced entity. Known values are: - "IntegrationRuntimeReference" and "LinkedServiceReference". - :paramtype type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeEntityReferenceType - :keyword reference_name: The name of this referenced entity. - :paramtype reference_name: str - """ - super().__init__(**kwargs) - self.type = type - self.reference_name = reference_name - - -class EnvironmentVariableSetup(CustomSetupBase): - """The custom setup of setting environment variable. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of custom setup. Required. - :vartype type: str - :ivar variable_name: The name of the environment variable. Required. - :vartype variable_name: str - :ivar variable_value: The value of the environment variable. Required. - :vartype variable_value: str - """ - - _validation = { - "type": {"required": True}, - "variable_name": {"required": True}, - "variable_value": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "variable_name": {"key": "typeProperties.variableName", "type": "str"}, - "variable_value": {"key": "typeProperties.variableValue", "type": "str"}, - } - - def __init__(self, *, variable_name: str, variable_value: str, **kwargs: Any) -> None: - """ - :keyword variable_name: The name of the environment variable. Required. - :paramtype variable_name: str - :keyword variable_value: The value of the environment variable. Required. - :paramtype variable_value: str - """ - super().__init__(**kwargs) - self.type: str = "EnvironmentVariableSetup" - self.variable_name = variable_name - self.variable_value = variable_value - - -class ErrorAdditionalInfo(_serialization.Model): - """The resource management error additional info. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar type: The additional info type. - :vartype type: str - :ivar info: The additional info. - :vartype info: JSON - """ - - _validation = { - "type": {"readonly": True}, - "info": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "info": {"key": "info", "type": "object"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.info: Optional[JSON] = None - - -class ErrorDetail(_serialization.Model): - """The error detail. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The error target. - :vartype target: str - :ivar details: The error details. - :vartype details: list[~azure.mgmt.datafactory.models.ErrorDetail] - :ivar additional_info: The error additional info. - :vartype additional_info: list[~azure.mgmt.datafactory.models.ErrorAdditionalInfo] - """ - - _validation = { - "code": {"readonly": True}, - "message": {"readonly": True}, - "target": {"readonly": True}, - "details": {"readonly": True}, - "additional_info": {"readonly": True}, - } - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[ErrorDetail]"}, - "additional_info": {"key": "additionalInfo", "type": "[ErrorAdditionalInfo]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.code: Optional[str] = None - self.message: Optional[str] = None - self.target: Optional[str] = None - self.details: Optional[list["_models.ErrorDetail"]] = None - self.additional_info: Optional[list["_models.ErrorAdditionalInfo"]] = None - - -class ErrorResponse(_serialization.Model): - """Common error response for all Azure Resource Manager APIs to return error details for failed - operations. (This also follows the OData error response format.). - - :ivar error: The error object. - :vartype error: ~azure.mgmt.datafactory.models.ErrorDetail - """ - - _attribute_map = { - "error": {"key": "error", "type": "ErrorDetail"}, - } - - def __init__(self, *, error: Optional["_models.ErrorDetail"] = None, **kwargs: Any) -> None: - """ - :keyword error: The error object. - :paramtype error: ~azure.mgmt.datafactory.models.ErrorDetail - """ - super().__init__(**kwargs) - self.error = error - - -class ExcelDataset(Dataset): - """Excel dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar location: The location of the excel storage. - :vartype location: ~azure.mgmt.datafactory.models.DatasetLocation - :ivar sheet_name: The sheet name of excel file. Type: string (or Expression with resultType - string). - :vartype sheet_name: JSON - :ivar sheet_index: The sheet index of excel file and default value is 0. Type: integer (or - Expression with resultType integer). - :vartype sheet_index: JSON - :ivar range: The partial data of one sheet. Type: string (or Expression with resultType - string). - :vartype range: JSON - :ivar first_row_as_header: When used as input, treat the first row of data as headers. When - used as output,write the headers into the output as the first row of data. The default value is - false. Type: boolean (or Expression with resultType boolean). - :vartype first_row_as_header: JSON - :ivar compression: The data compression method used for the json dataset. - :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression - :ivar null_value: The null value string. Type: string (or Expression with resultType string). - :vartype null_value: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "location": {"key": "typeProperties.location", "type": "DatasetLocation"}, - "sheet_name": {"key": "typeProperties.sheetName", "type": "object"}, - "sheet_index": {"key": "typeProperties.sheetIndex", "type": "object"}, - "range": {"key": "typeProperties.range", "type": "object"}, - "first_row_as_header": {"key": "typeProperties.firstRowAsHeader", "type": "object"}, - "compression": {"key": "typeProperties.compression", "type": "DatasetCompression"}, - "null_value": {"key": "typeProperties.nullValue", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - location: Optional["_models.DatasetLocation"] = None, - sheet_name: Optional[JSON] = None, - sheet_index: Optional[JSON] = None, - range: Optional[JSON] = None, - first_row_as_header: Optional[JSON] = None, - compression: Optional["_models.DatasetCompression"] = None, - null_value: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword location: The location of the excel storage. - :paramtype location: ~azure.mgmt.datafactory.models.DatasetLocation - :keyword sheet_name: The sheet name of excel file. Type: string (or Expression with resultType - string). - :paramtype sheet_name: JSON - :keyword sheet_index: The sheet index of excel file and default value is 0. Type: integer (or - Expression with resultType integer). - :paramtype sheet_index: JSON - :keyword range: The partial data of one sheet. Type: string (or Expression with resultType - string). - :paramtype range: JSON - :keyword first_row_as_header: When used as input, treat the first row of data as headers. When - used as output,write the headers into the output as the first row of data. The default value is - false. Type: boolean (or Expression with resultType boolean). - :paramtype first_row_as_header: JSON - :keyword compression: The data compression method used for the json dataset. - :paramtype compression: ~azure.mgmt.datafactory.models.DatasetCompression - :keyword null_value: The null value string. Type: string (or Expression with resultType - string). - :paramtype null_value: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "Excel" - self.location = location - self.sheet_name = sheet_name - self.sheet_index = sheet_index - self.range = range - self.first_row_as_header = first_row_as_header - self.compression = compression - self.null_value = null_value - - -class ExcelSource(CopySource): - """A copy activity excel source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar store_settings: Excel store settings. - :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "store_settings": {"key": "storeSettings", "type": "StoreReadSettings"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - store_settings: Optional["_models.StoreReadSettings"] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword store_settings: Excel store settings. - :paramtype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "ExcelSource" - self.store_settings = store_settings - self.additional_columns = additional_columns - - -class ExecuteDataFlowActivity(ExecutionActivity): - """Execute data flow activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar data_flow: Data flow reference. Required. - :vartype data_flow: ~azure.mgmt.datafactory.models.DataFlowReference - :ivar staging: Staging info for execute data flow activity. - :vartype staging: ~azure.mgmt.datafactory.models.DataFlowStagingInfo - :ivar integration_runtime: The integration runtime reference. - :vartype integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar continuation_settings: Continuation settings for execute data flow activity. - :vartype continuation_settings: ~azure.mgmt.datafactory.models.ContinuationSettingsReference - :ivar compute: Compute properties for data flow activity. - :vartype compute: ~azure.mgmt.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute - :ivar trace_level: Trace level setting used for data flow monitoring output. Supported values - are: 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string). - :vartype trace_level: JSON - :ivar continue_on_error: Continue on error setting used for data flow execution. Enables - processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean). - :vartype continue_on_error: JSON - :ivar run_concurrently: Concurrent run setting used for data flow execution. Allows sinks with - the same save order to be processed concurrently. Type: boolean (or Expression with resultType - boolean). - :vartype run_concurrently: JSON - :ivar source_staging_concurrency: Specify number of parallel staging for sources applicable to - the sink. Type: integer (or Expression with resultType integer). - :vartype source_staging_concurrency: JSON - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "data_flow": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "data_flow": {"key": "typeProperties.dataFlow", "type": "DataFlowReference"}, - "staging": {"key": "typeProperties.staging", "type": "DataFlowStagingInfo"}, - "integration_runtime": {"key": "typeProperties.integrationRuntime", "type": "IntegrationRuntimeReference"}, - "continuation_settings": { - "key": "typeProperties.continuationSettings", - "type": "ContinuationSettingsReference", - }, - "compute": {"key": "typeProperties.compute", "type": "ExecuteDataFlowActivityTypePropertiesCompute"}, - "trace_level": {"key": "typeProperties.traceLevel", "type": "object"}, - "continue_on_error": {"key": "typeProperties.continueOnError", "type": "object"}, - "run_concurrently": {"key": "typeProperties.runConcurrently", "type": "object"}, - "source_staging_concurrency": {"key": "typeProperties.sourceStagingConcurrency", "type": "object"}, - } - - def __init__( - self, - *, - name: str, - data_flow: "_models.DataFlowReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - staging: Optional["_models.DataFlowStagingInfo"] = None, - integration_runtime: Optional["_models.IntegrationRuntimeReference"] = None, - continuation_settings: Optional["_models.ContinuationSettingsReference"] = None, - compute: Optional["_models.ExecuteDataFlowActivityTypePropertiesCompute"] = None, - trace_level: Optional[JSON] = None, - continue_on_error: Optional[JSON] = None, - run_concurrently: Optional[JSON] = None, - source_staging_concurrency: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword data_flow: Data flow reference. Required. - :paramtype data_flow: ~azure.mgmt.datafactory.models.DataFlowReference - :keyword staging: Staging info for execute data flow activity. - :paramtype staging: ~azure.mgmt.datafactory.models.DataFlowStagingInfo - :keyword integration_runtime: The integration runtime reference. - :paramtype integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword continuation_settings: Continuation settings for execute data flow activity. - :paramtype continuation_settings: ~azure.mgmt.datafactory.models.ContinuationSettingsReference - :keyword compute: Compute properties for data flow activity. - :paramtype compute: ~azure.mgmt.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute - :keyword trace_level: Trace level setting used for data flow monitoring output. Supported - values are: 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string). - :paramtype trace_level: JSON - :keyword continue_on_error: Continue on error setting used for data flow execution. Enables - processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean). - :paramtype continue_on_error: JSON - :keyword run_concurrently: Concurrent run setting used for data flow execution. Allows sinks - with the same save order to be processed concurrently. Type: boolean (or Expression with - resultType boolean). - :paramtype run_concurrently: JSON - :keyword source_staging_concurrency: Specify number of parallel staging for sources applicable - to the sink. Type: integer (or Expression with resultType integer). - :paramtype source_staging_concurrency: JSON - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "ExecuteDataFlow" - self.data_flow = data_flow - self.staging = staging - self.integration_runtime = integration_runtime - self.continuation_settings = continuation_settings - self.compute = compute - self.trace_level = trace_level - self.continue_on_error = continue_on_error - self.run_concurrently = run_concurrently - self.source_staging_concurrency = source_staging_concurrency - - -class ExecuteDataFlowActivityTypeProperties(_serialization.Model): - """Execute data flow activity properties. - - All required parameters must be populated in order to send to server. - - :ivar data_flow: Data flow reference. Required. - :vartype data_flow: ~azure.mgmt.datafactory.models.DataFlowReference - :ivar staging: Staging info for execute data flow activity. - :vartype staging: ~azure.mgmt.datafactory.models.DataFlowStagingInfo - :ivar integration_runtime: The integration runtime reference. - :vartype integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar continuation_settings: Continuation settings for execute data flow activity. - :vartype continuation_settings: ~azure.mgmt.datafactory.models.ContinuationSettingsReference - :ivar compute: Compute properties for data flow activity. - :vartype compute: ~azure.mgmt.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute - :ivar trace_level: Trace level setting used for data flow monitoring output. Supported values - are: 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string). - :vartype trace_level: JSON - :ivar continue_on_error: Continue on error setting used for data flow execution. Enables - processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean). - :vartype continue_on_error: JSON - :ivar run_concurrently: Concurrent run setting used for data flow execution. Allows sinks with - the same save order to be processed concurrently. Type: boolean (or Expression with resultType - boolean). - :vartype run_concurrently: JSON - :ivar source_staging_concurrency: Specify number of parallel staging for sources applicable to - the sink. Type: integer (or Expression with resultType integer). - :vartype source_staging_concurrency: JSON - """ - - _validation = { - "data_flow": {"required": True}, - } - - _attribute_map = { - "data_flow": {"key": "dataFlow", "type": "DataFlowReference"}, - "staging": {"key": "staging", "type": "DataFlowStagingInfo"}, - "integration_runtime": {"key": "integrationRuntime", "type": "IntegrationRuntimeReference"}, - "continuation_settings": {"key": "continuationSettings", "type": "ContinuationSettingsReference"}, - "compute": {"key": "compute", "type": "ExecuteDataFlowActivityTypePropertiesCompute"}, - "trace_level": {"key": "traceLevel", "type": "object"}, - "continue_on_error": {"key": "continueOnError", "type": "object"}, - "run_concurrently": {"key": "runConcurrently", "type": "object"}, - "source_staging_concurrency": {"key": "sourceStagingConcurrency", "type": "object"}, - } - - def __init__( - self, - *, - data_flow: "_models.DataFlowReference", - staging: Optional["_models.DataFlowStagingInfo"] = None, - integration_runtime: Optional["_models.IntegrationRuntimeReference"] = None, - continuation_settings: Optional["_models.ContinuationSettingsReference"] = None, - compute: Optional["_models.ExecuteDataFlowActivityTypePropertiesCompute"] = None, - trace_level: Optional[JSON] = None, - continue_on_error: Optional[JSON] = None, - run_concurrently: Optional[JSON] = None, - source_staging_concurrency: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword data_flow: Data flow reference. Required. - :paramtype data_flow: ~azure.mgmt.datafactory.models.DataFlowReference - :keyword staging: Staging info for execute data flow activity. - :paramtype staging: ~azure.mgmt.datafactory.models.DataFlowStagingInfo - :keyword integration_runtime: The integration runtime reference. - :paramtype integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword continuation_settings: Continuation settings for execute data flow activity. - :paramtype continuation_settings: ~azure.mgmt.datafactory.models.ContinuationSettingsReference - :keyword compute: Compute properties for data flow activity. - :paramtype compute: ~azure.mgmt.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute - :keyword trace_level: Trace level setting used for data flow monitoring output. Supported - values are: 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string). - :paramtype trace_level: JSON - :keyword continue_on_error: Continue on error setting used for data flow execution. Enables - processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean). - :paramtype continue_on_error: JSON - :keyword run_concurrently: Concurrent run setting used for data flow execution. Allows sinks - with the same save order to be processed concurrently. Type: boolean (or Expression with - resultType boolean). - :paramtype run_concurrently: JSON - :keyword source_staging_concurrency: Specify number of parallel staging for sources applicable - to the sink. Type: integer (or Expression with resultType integer). - :paramtype source_staging_concurrency: JSON - """ - super().__init__(**kwargs) - self.data_flow = data_flow - self.staging = staging - self.integration_runtime = integration_runtime - self.continuation_settings = continuation_settings - self.compute = compute - self.trace_level = trace_level - self.continue_on_error = continue_on_error - self.run_concurrently = run_concurrently - self.source_staging_concurrency = source_staging_concurrency - - -class ExecuteDataFlowActivityTypePropertiesCompute(_serialization.Model): # pylint: disable=name-too-long - """Compute properties for data flow activity. - - :ivar compute_type: Compute type of the cluster which will execute data flow job. Possible - values include: 'General', 'MemoryOptimized', 'ComputeOptimized'. Type: string (or Expression - with resultType string). - :vartype compute_type: JSON - :ivar core_count: Core count of the cluster which will execute data flow job. Supported values - are: 8, 16, 32, 48, 80, 144 and 272. Type: integer (or Expression with resultType integer). - :vartype core_count: JSON - """ - - _attribute_map = { - "compute_type": {"key": "computeType", "type": "object"}, - "core_count": {"key": "coreCount", "type": "object"}, - } - - def __init__( - self, *, compute_type: Optional[JSON] = None, core_count: Optional[JSON] = None, **kwargs: Any - ) -> None: - """ - :keyword compute_type: Compute type of the cluster which will execute data flow job. Possible - values include: 'General', 'MemoryOptimized', 'ComputeOptimized'. Type: string (or Expression - with resultType string). - :paramtype compute_type: JSON - :keyword core_count: Core count of the cluster which will execute data flow job. Supported - values are: 8, 16, 32, 48, 80, 144 and 272. Type: integer (or Expression with resultType - integer). - :paramtype core_count: JSON - """ - super().__init__(**kwargs) - self.compute_type = compute_type - self.core_count = core_count - - -class ExecutePipelineActivity(ControlActivity): - """Execute pipeline activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar policy: Execute pipeline activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ExecutePipelineActivityPolicy - :ivar pipeline: Pipeline reference. Required. - :vartype pipeline: ~azure.mgmt.datafactory.models.PipelineReference - :ivar parameters: Pipeline parameters. - :vartype parameters: dict[str, JSON] - :ivar wait_on_completion: Defines whether activity execution will wait for the dependent - pipeline execution to finish. Default is false. - :vartype wait_on_completion: bool - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "pipeline": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "policy": {"key": "policy", "type": "ExecutePipelineActivityPolicy"}, - "pipeline": {"key": "typeProperties.pipeline", "type": "PipelineReference"}, - "parameters": {"key": "typeProperties.parameters", "type": "{object}"}, - "wait_on_completion": {"key": "typeProperties.waitOnCompletion", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - pipeline: "_models.PipelineReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - policy: Optional["_models.ExecutePipelineActivityPolicy"] = None, - parameters: Optional[dict[str, JSON]] = None, - wait_on_completion: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword policy: Execute pipeline activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ExecutePipelineActivityPolicy - :keyword pipeline: Pipeline reference. Required. - :paramtype pipeline: ~azure.mgmt.datafactory.models.PipelineReference - :keyword parameters: Pipeline parameters. - :paramtype parameters: dict[str, JSON] - :keyword wait_on_completion: Defines whether activity execution will wait for the dependent - pipeline execution to finish. Default is false. - :paramtype wait_on_completion: bool - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - **kwargs - ) - self.type: str = "ExecutePipeline" - self.policy = policy - self.pipeline = pipeline - self.parameters = parameters - self.wait_on_completion = wait_on_completion - - -class ExecutePipelineActivityPolicy(_serialization.Model): - """Execution policy for an execute pipeline activity. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar secure_input: When set to true, Input from activity is considered as secure and will not - be logged to monitoring. - :vartype secure_input: bool - """ - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "secure_input": {"key": "secureInput", "type": "bool"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - secure_input: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword secure_input: When set to true, Input from activity is considered as secure and will - not be logged to monitoring. - :paramtype secure_input: bool - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.secure_input = secure_input - - -class ExecutePowerQueryActivityTypeProperties(ExecuteDataFlowActivityTypeProperties): - """Execute power query data flow activity properties. - - All required parameters must be populated in order to send to server. - - :ivar data_flow: Data flow reference. Required. - :vartype data_flow: ~azure.mgmt.datafactory.models.DataFlowReference - :ivar staging: Staging info for execute data flow activity. - :vartype staging: ~azure.mgmt.datafactory.models.DataFlowStagingInfo - :ivar integration_runtime: The integration runtime reference. - :vartype integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar continuation_settings: Continuation settings for execute data flow activity. - :vartype continuation_settings: ~azure.mgmt.datafactory.models.ContinuationSettingsReference - :ivar compute: Compute properties for data flow activity. - :vartype compute: ~azure.mgmt.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute - :ivar trace_level: Trace level setting used for data flow monitoring output. Supported values - are: 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string). - :vartype trace_level: JSON - :ivar continue_on_error: Continue on error setting used for data flow execution. Enables - processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean). - :vartype continue_on_error: JSON - :ivar run_concurrently: Concurrent run setting used for data flow execution. Allows sinks with - the same save order to be processed concurrently. Type: boolean (or Expression with resultType - boolean). - :vartype run_concurrently: JSON - :ivar source_staging_concurrency: Specify number of parallel staging for sources applicable to - the sink. Type: integer (or Expression with resultType integer). - :vartype source_staging_concurrency: JSON - :ivar sinks: (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a - queryName. - :vartype sinks: dict[str, ~azure.mgmt.datafactory.models.PowerQuerySink] - :ivar queries: List of mapping for Power Query mashup query to sink dataset(s). - :vartype queries: list[~azure.mgmt.datafactory.models.PowerQuerySinkMapping] - """ - - _validation = { - "data_flow": {"required": True}, - } - - _attribute_map = { - "data_flow": {"key": "dataFlow", "type": "DataFlowReference"}, - "staging": {"key": "staging", "type": "DataFlowStagingInfo"}, - "integration_runtime": {"key": "integrationRuntime", "type": "IntegrationRuntimeReference"}, - "continuation_settings": {"key": "continuationSettings", "type": "ContinuationSettingsReference"}, - "compute": {"key": "compute", "type": "ExecuteDataFlowActivityTypePropertiesCompute"}, - "trace_level": {"key": "traceLevel", "type": "object"}, - "continue_on_error": {"key": "continueOnError", "type": "object"}, - "run_concurrently": {"key": "runConcurrently", "type": "object"}, - "source_staging_concurrency": {"key": "sourceStagingConcurrency", "type": "object"}, - "sinks": {"key": "sinks", "type": "{PowerQuerySink}"}, - "queries": {"key": "queries", "type": "[PowerQuerySinkMapping]"}, - } - - def __init__( - self, - *, - data_flow: "_models.DataFlowReference", - staging: Optional["_models.DataFlowStagingInfo"] = None, - integration_runtime: Optional["_models.IntegrationRuntimeReference"] = None, - continuation_settings: Optional["_models.ContinuationSettingsReference"] = None, - compute: Optional["_models.ExecuteDataFlowActivityTypePropertiesCompute"] = None, - trace_level: Optional[JSON] = None, - continue_on_error: Optional[JSON] = None, - run_concurrently: Optional[JSON] = None, - source_staging_concurrency: Optional[JSON] = None, - sinks: Optional[dict[str, "_models.PowerQuerySink"]] = None, - queries: Optional[list["_models.PowerQuerySinkMapping"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword data_flow: Data flow reference. Required. - :paramtype data_flow: ~azure.mgmt.datafactory.models.DataFlowReference - :keyword staging: Staging info for execute data flow activity. - :paramtype staging: ~azure.mgmt.datafactory.models.DataFlowStagingInfo - :keyword integration_runtime: The integration runtime reference. - :paramtype integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword continuation_settings: Continuation settings for execute data flow activity. - :paramtype continuation_settings: ~azure.mgmt.datafactory.models.ContinuationSettingsReference - :keyword compute: Compute properties for data flow activity. - :paramtype compute: ~azure.mgmt.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute - :keyword trace_level: Trace level setting used for data flow monitoring output. Supported - values are: 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string). - :paramtype trace_level: JSON - :keyword continue_on_error: Continue on error setting used for data flow execution. Enables - processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean). - :paramtype continue_on_error: JSON - :keyword run_concurrently: Concurrent run setting used for data flow execution. Allows sinks - with the same save order to be processed concurrently. Type: boolean (or Expression with - resultType boolean). - :paramtype run_concurrently: JSON - :keyword source_staging_concurrency: Specify number of parallel staging for sources applicable - to the sink. Type: integer (or Expression with resultType integer). - :paramtype source_staging_concurrency: JSON - :keyword sinks: (Deprecated. Please use Queries). List of Power Query activity sinks mapped to - a queryName. - :paramtype sinks: dict[str, ~azure.mgmt.datafactory.models.PowerQuerySink] - :keyword queries: List of mapping for Power Query mashup query to sink dataset(s). - :paramtype queries: list[~azure.mgmt.datafactory.models.PowerQuerySinkMapping] - """ - super().__init__( - data_flow=data_flow, - staging=staging, - integration_runtime=integration_runtime, - continuation_settings=continuation_settings, - compute=compute, - trace_level=trace_level, - continue_on_error=continue_on_error, - run_concurrently=run_concurrently, - source_staging_concurrency=source_staging_concurrency, - **kwargs - ) - self.sinks = sinks - self.queries = queries - - -class ExecuteSSISPackageActivity(ExecutionActivity): - """Execute SSIS package activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar package_location: SSIS package location. Required. - :vartype package_location: ~azure.mgmt.datafactory.models.SSISPackageLocation - :ivar runtime: Specifies the runtime to execute SSIS package. The value should be "x86" or - "x64". Type: string (or Expression with resultType string). - :vartype runtime: JSON - :ivar logging_level: The logging level of SSIS package execution. Type: string (or Expression - with resultType string). - :vartype logging_level: JSON - :ivar environment_path: The environment path to execute the SSIS package. Type: string (or - Expression with resultType string). - :vartype environment_path: JSON - :ivar execution_credential: The package execution credential. - :vartype execution_credential: ~azure.mgmt.datafactory.models.SSISExecutionCredential - :ivar connect_via: The integration runtime reference. Required. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar project_parameters: The project level parameters to execute the SSIS package. - :vartype project_parameters: dict[str, ~azure.mgmt.datafactory.models.SSISExecutionParameter] - :ivar package_parameters: The package level parameters to execute the SSIS package. - :vartype package_parameters: dict[str, ~azure.mgmt.datafactory.models.SSISExecutionParameter] - :ivar project_connection_managers: The project level connection managers to execute the SSIS - package. - :vartype project_connection_managers: dict[str, dict[str, - ~azure.mgmt.datafactory.models.SSISExecutionParameter]] - :ivar package_connection_managers: The package level connection managers to execute the SSIS - package. - :vartype package_connection_managers: dict[str, dict[str, - ~azure.mgmt.datafactory.models.SSISExecutionParameter]] - :ivar property_overrides: The property overrides to execute the SSIS package. - :vartype property_overrides: dict[str, ~azure.mgmt.datafactory.models.SSISPropertyOverride] - :ivar log_location: SSIS package execution log location. - :vartype log_location: ~azure.mgmt.datafactory.models.SSISLogLocation - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "package_location": {"required": True}, - "connect_via": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "package_location": {"key": "typeProperties.packageLocation", "type": "SSISPackageLocation"}, - "runtime": {"key": "typeProperties.runtime", "type": "object"}, - "logging_level": {"key": "typeProperties.loggingLevel", "type": "object"}, - "environment_path": {"key": "typeProperties.environmentPath", "type": "object"}, - "execution_credential": {"key": "typeProperties.executionCredential", "type": "SSISExecutionCredential"}, - "connect_via": {"key": "typeProperties.connectVia", "type": "IntegrationRuntimeReference"}, - "project_parameters": {"key": "typeProperties.projectParameters", "type": "{SSISExecutionParameter}"}, - "package_parameters": {"key": "typeProperties.packageParameters", "type": "{SSISExecutionParameter}"}, - "project_connection_managers": { - "key": "typeProperties.projectConnectionManagers", - "type": "{{SSISExecutionParameter}}", - }, - "package_connection_managers": { - "key": "typeProperties.packageConnectionManagers", - "type": "{{SSISExecutionParameter}}", - }, - "property_overrides": {"key": "typeProperties.propertyOverrides", "type": "{SSISPropertyOverride}"}, - "log_location": {"key": "typeProperties.logLocation", "type": "SSISLogLocation"}, - } - - def __init__( - self, - *, - name: str, - package_location: "_models.SSISPackageLocation", - connect_via: "_models.IntegrationRuntimeReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - runtime: Optional[JSON] = None, - logging_level: Optional[JSON] = None, - environment_path: Optional[JSON] = None, - execution_credential: Optional["_models.SSISExecutionCredential"] = None, - project_parameters: Optional[dict[str, "_models.SSISExecutionParameter"]] = None, - package_parameters: Optional[dict[str, "_models.SSISExecutionParameter"]] = None, - project_connection_managers: Optional[dict[str, dict[str, "_models.SSISExecutionParameter"]]] = None, - package_connection_managers: Optional[dict[str, dict[str, "_models.SSISExecutionParameter"]]] = None, - property_overrides: Optional[dict[str, "_models.SSISPropertyOverride"]] = None, - log_location: Optional["_models.SSISLogLocation"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword package_location: SSIS package location. Required. - :paramtype package_location: ~azure.mgmt.datafactory.models.SSISPackageLocation - :keyword runtime: Specifies the runtime to execute SSIS package. The value should be "x86" or - "x64". Type: string (or Expression with resultType string). - :paramtype runtime: JSON - :keyword logging_level: The logging level of SSIS package execution. Type: string (or - Expression with resultType string). - :paramtype logging_level: JSON - :keyword environment_path: The environment path to execute the SSIS package. Type: string (or - Expression with resultType string). - :paramtype environment_path: JSON - :keyword execution_credential: The package execution credential. - :paramtype execution_credential: ~azure.mgmt.datafactory.models.SSISExecutionCredential - :keyword connect_via: The integration runtime reference. Required. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword project_parameters: The project level parameters to execute the SSIS package. - :paramtype project_parameters: dict[str, ~azure.mgmt.datafactory.models.SSISExecutionParameter] - :keyword package_parameters: The package level parameters to execute the SSIS package. - :paramtype package_parameters: dict[str, ~azure.mgmt.datafactory.models.SSISExecutionParameter] - :keyword project_connection_managers: The project level connection managers to execute the SSIS - package. - :paramtype project_connection_managers: dict[str, dict[str, - ~azure.mgmt.datafactory.models.SSISExecutionParameter]] - :keyword package_connection_managers: The package level connection managers to execute the SSIS - package. - :paramtype package_connection_managers: dict[str, dict[str, - ~azure.mgmt.datafactory.models.SSISExecutionParameter]] - :keyword property_overrides: The property overrides to execute the SSIS package. - :paramtype property_overrides: dict[str, ~azure.mgmt.datafactory.models.SSISPropertyOverride] - :keyword log_location: SSIS package execution log location. - :paramtype log_location: ~azure.mgmt.datafactory.models.SSISLogLocation - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "ExecuteSSISPackage" - self.package_location = package_location - self.runtime = runtime - self.logging_level = logging_level - self.environment_path = environment_path - self.execution_credential = execution_credential - self.connect_via = connect_via - self.project_parameters = project_parameters - self.package_parameters = package_parameters - self.project_connection_managers = project_connection_managers - self.package_connection_managers = package_connection_managers - self.property_overrides = property_overrides - self.log_location = log_location - - -class ExecuteWranglingDataflowActivity(Activity): - """Execute power query activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar data_flow: Data flow reference. Required. - :vartype data_flow: ~azure.mgmt.datafactory.models.DataFlowReference - :ivar staging: Staging info for execute data flow activity. - :vartype staging: ~azure.mgmt.datafactory.models.DataFlowStagingInfo - :ivar integration_runtime: The integration runtime reference. - :vartype integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar continuation_settings: Continuation settings for execute data flow activity. - :vartype continuation_settings: ~azure.mgmt.datafactory.models.ContinuationSettingsReference - :ivar compute: Compute properties for data flow activity. - :vartype compute: ~azure.mgmt.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute - :ivar trace_level: Trace level setting used for data flow monitoring output. Supported values - are: 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string). - :vartype trace_level: JSON - :ivar continue_on_error: Continue on error setting used for data flow execution. Enables - processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean). - :vartype continue_on_error: JSON - :ivar run_concurrently: Concurrent run setting used for data flow execution. Allows sinks with - the same save order to be processed concurrently. Type: boolean (or Expression with resultType - boolean). - :vartype run_concurrently: JSON - :ivar source_staging_concurrency: Specify number of parallel staging for sources applicable to - the sink. Type: integer (or Expression with resultType integer). - :vartype source_staging_concurrency: JSON - :ivar sinks: (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a - queryName. - :vartype sinks: dict[str, ~azure.mgmt.datafactory.models.PowerQuerySink] - :ivar queries: List of mapping for Power Query mashup query to sink dataset(s). - :vartype queries: list[~azure.mgmt.datafactory.models.PowerQuerySinkMapping] - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "data_flow": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "data_flow": {"key": "typeProperties.dataFlow", "type": "DataFlowReference"}, - "staging": {"key": "typeProperties.staging", "type": "DataFlowStagingInfo"}, - "integration_runtime": {"key": "typeProperties.integrationRuntime", "type": "IntegrationRuntimeReference"}, - "continuation_settings": { - "key": "typeProperties.continuationSettings", - "type": "ContinuationSettingsReference", - }, - "compute": {"key": "typeProperties.compute", "type": "ExecuteDataFlowActivityTypePropertiesCompute"}, - "trace_level": {"key": "typeProperties.traceLevel", "type": "object"}, - "continue_on_error": {"key": "typeProperties.continueOnError", "type": "object"}, - "run_concurrently": {"key": "typeProperties.runConcurrently", "type": "object"}, - "source_staging_concurrency": {"key": "typeProperties.sourceStagingConcurrency", "type": "object"}, - "sinks": {"key": "typeProperties.sinks", "type": "{PowerQuerySink}"}, - "queries": {"key": "typeProperties.queries", "type": "[PowerQuerySinkMapping]"}, - } - - def __init__( - self, - *, - name: str, - data_flow: "_models.DataFlowReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - policy: Optional["_models.ActivityPolicy"] = None, - staging: Optional["_models.DataFlowStagingInfo"] = None, - integration_runtime: Optional["_models.IntegrationRuntimeReference"] = None, - continuation_settings: Optional["_models.ContinuationSettingsReference"] = None, - compute: Optional["_models.ExecuteDataFlowActivityTypePropertiesCompute"] = None, - trace_level: Optional[JSON] = None, - continue_on_error: Optional[JSON] = None, - run_concurrently: Optional[JSON] = None, - source_staging_concurrency: Optional[JSON] = None, - sinks: Optional[dict[str, "_models.PowerQuerySink"]] = None, - queries: Optional[list["_models.PowerQuerySinkMapping"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword data_flow: Data flow reference. Required. - :paramtype data_flow: ~azure.mgmt.datafactory.models.DataFlowReference - :keyword staging: Staging info for execute data flow activity. - :paramtype staging: ~azure.mgmt.datafactory.models.DataFlowStagingInfo - :keyword integration_runtime: The integration runtime reference. - :paramtype integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword continuation_settings: Continuation settings for execute data flow activity. - :paramtype continuation_settings: ~azure.mgmt.datafactory.models.ContinuationSettingsReference - :keyword compute: Compute properties for data flow activity. - :paramtype compute: ~azure.mgmt.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute - :keyword trace_level: Trace level setting used for data flow monitoring output. Supported - values are: 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string). - :paramtype trace_level: JSON - :keyword continue_on_error: Continue on error setting used for data flow execution. Enables - processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean). - :paramtype continue_on_error: JSON - :keyword run_concurrently: Concurrent run setting used for data flow execution. Allows sinks - with the same save order to be processed concurrently. Type: boolean (or Expression with - resultType boolean). - :paramtype run_concurrently: JSON - :keyword source_staging_concurrency: Specify number of parallel staging for sources applicable - to the sink. Type: integer (or Expression with resultType integer). - :paramtype source_staging_concurrency: JSON - :keyword sinks: (Deprecated. Please use Queries). List of Power Query activity sinks mapped to - a queryName. - :paramtype sinks: dict[str, ~azure.mgmt.datafactory.models.PowerQuerySink] - :keyword queries: List of mapping for Power Query mashup query to sink dataset(s). - :paramtype queries: list[~azure.mgmt.datafactory.models.PowerQuerySinkMapping] - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - **kwargs - ) - self.type: str = "ExecuteWranglingDataflow" - self.policy = policy - self.data_flow = data_flow - self.staging = staging - self.integration_runtime = integration_runtime - self.continuation_settings = continuation_settings - self.compute = compute - self.trace_level = trace_level - self.continue_on_error = continue_on_error - self.run_concurrently = run_concurrently - self.source_staging_concurrency = source_staging_concurrency - self.sinks = sinks - self.queries = queries - - -class ExposureControlBatchRequest(_serialization.Model): - """A list of exposure control features. - - All required parameters must be populated in order to send to server. - - :ivar exposure_control_requests: List of exposure control features. Required. - :vartype exposure_control_requests: list[~azure.mgmt.datafactory.models.ExposureControlRequest] - """ - - _validation = { - "exposure_control_requests": {"required": True}, - } - - _attribute_map = { - "exposure_control_requests": {"key": "exposureControlRequests", "type": "[ExposureControlRequest]"}, - } - - def __init__(self, *, exposure_control_requests: list["_models.ExposureControlRequest"], **kwargs: Any) -> None: - """ - :keyword exposure_control_requests: List of exposure control features. Required. - :paramtype exposure_control_requests: - list[~azure.mgmt.datafactory.models.ExposureControlRequest] - """ - super().__init__(**kwargs) - self.exposure_control_requests = exposure_control_requests - - -class ExposureControlBatchResponse(_serialization.Model): - """A list of exposure control feature values. - - All required parameters must be populated in order to send to server. - - :ivar exposure_control_responses: List of exposure control feature values. Required. - :vartype exposure_control_responses: - list[~azure.mgmt.datafactory.models.ExposureControlResponse] - """ - - _validation = { - "exposure_control_responses": {"required": True}, - } - - _attribute_map = { - "exposure_control_responses": {"key": "exposureControlResponses", "type": "[ExposureControlResponse]"}, - } - - def __init__(self, *, exposure_control_responses: list["_models.ExposureControlResponse"], **kwargs: Any) -> None: - """ - :keyword exposure_control_responses: List of exposure control feature values. Required. - :paramtype exposure_control_responses: - list[~azure.mgmt.datafactory.models.ExposureControlResponse] - """ - super().__init__(**kwargs) - self.exposure_control_responses = exposure_control_responses - - -class ExposureControlRequest(_serialization.Model): - """The exposure control request. - - :ivar feature_name: The feature name. - :vartype feature_name: str - :ivar feature_type: The feature type. - :vartype feature_type: str - """ - - _attribute_map = { - "feature_name": {"key": "featureName", "type": "str"}, - "feature_type": {"key": "featureType", "type": "str"}, - } - - def __init__( - self, *, feature_name: Optional[str] = None, feature_type: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword feature_name: The feature name. - :paramtype feature_name: str - :keyword feature_type: The feature type. - :paramtype feature_type: str - """ - super().__init__(**kwargs) - self.feature_name = feature_name - self.feature_type = feature_type - - -class ExposureControlResponse(_serialization.Model): - """The exposure control response. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar feature_name: The feature name. - :vartype feature_name: str - :ivar value: The feature value. - :vartype value: str - """ - - _validation = { - "feature_name": {"readonly": True}, - "value": {"readonly": True}, - } - - _attribute_map = { - "feature_name": {"key": "featureName", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.feature_name: Optional[str] = None - self.value: Optional[str] = None - - -class Expression(_serialization.Model): - """Azure Data Factory expression definition. - - All required parameters must be populated in order to send to server. - - :ivar type: Expression type. Required. "Expression" - :vartype type: str or ~azure.mgmt.datafactory.models.ExpressionType - :ivar value: Expression value. Required. - :vartype value: str - """ - - _validation = { - "type": {"required": True}, - "value": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, type: Union[str, "_models.ExpressionType"], value: str, **kwargs: Any) -> None: - """ - :keyword type: Expression type. Required. "Expression" - :paramtype type: str or ~azure.mgmt.datafactory.models.ExpressionType - :keyword value: Expression value. Required. - :paramtype value: str - """ - super().__init__(**kwargs) - self.type = type - self.value = value - - -class ExpressionV2(_serialization.Model): - """Nested representation of a complex expression. - - :ivar type: Type of expressions supported by the system. Type: string. Known values are: - "Constant", "Field", "Unary", "Binary", and "NAry". - :vartype type: str or ~azure.mgmt.datafactory.models.ExpressionV2Type - :ivar value: Value for Constant/Field Type: object. - :vartype value: JSON - :ivar operators: Expression operator value Type: list of strings. - :vartype operators: list[str] - :ivar operands: List of nested expressions. - :vartype operands: list[~azure.mgmt.datafactory.models.ExpressionV2] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "value": {"key": "value", "type": "object"}, - "operators": {"key": "operators", "type": "[str]"}, - "operands": {"key": "operands", "type": "[ExpressionV2]"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ExpressionV2Type"]] = None, - value: Optional[JSON] = None, - operators: Optional[list[str]] = None, - operands: Optional[list["_models.ExpressionV2"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of expressions supported by the system. Type: string. Known values are: - "Constant", "Field", "Unary", "Binary", and "NAry". - :paramtype type: str or ~azure.mgmt.datafactory.models.ExpressionV2Type - :keyword value: Value for Constant/Field Type: object. - :paramtype value: JSON - :keyword operators: Expression operator value Type: list of strings. - :paramtype operators: list[str] - :keyword operands: List of nested expressions. - :paramtype operands: list[~azure.mgmt.datafactory.models.ExpressionV2] - """ - super().__init__(**kwargs) - self.type = type - self.value = value - self.operators = operators - self.operands = operands - - -class Resource(_serialization.Model): - """Azure Data Factory top-level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Etag identifies change in the resource. - :vartype e_tag: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "e_tag": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "e_tag": {"key": "eTag", "type": "str"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The resource location. - :paramtype location: str - :keyword tags: The resource tags. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.name: Optional[str] = None - self.type: Optional[str] = None - self.location = location - self.tags = tags - self.e_tag: Optional[str] = None - - -class Factory(Resource): - """Factory resource type. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Etag identifies change in the resource. - :vartype e_tag: str - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar identity: Managed service identity of the factory. - :vartype identity: ~azure.mgmt.datafactory.models.FactoryIdentity - :ivar provisioning_state: Factory provisioning state, example Succeeded. - :vartype provisioning_state: str - :ivar create_time: Time the factory was created in ISO8601 format. - :vartype create_time: ~datetime.datetime - :ivar version: Version of the factory. - :vartype version: str - :ivar purview_configuration: Purview information of the factory. - :vartype purview_configuration: ~azure.mgmt.datafactory.models.PurviewConfiguration - :ivar repo_configuration: Git repo information of the factory. - :vartype repo_configuration: ~azure.mgmt.datafactory.models.FactoryRepoConfiguration - :ivar global_parameters: List of parameters for factory. - :vartype global_parameters: dict[str, - ~azure.mgmt.datafactory.models.GlobalParameterSpecification] - :ivar encryption: Properties to enable Customer Managed Key for the factory. - :vartype encryption: ~azure.mgmt.datafactory.models.EncryptionConfiguration - :ivar public_network_access: Whether or not public network access is allowed for the data - factory. Known values are: "Enabled" and "Disabled". - :vartype public_network_access: str or ~azure.mgmt.datafactory.models.PublicNetworkAccess - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "e_tag": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "create_time": {"readonly": True}, - "version": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "e_tag": {"key": "eTag", "type": "str"}, - "additional_properties": {"key": "", "type": "{object}"}, - "identity": {"key": "identity", "type": "FactoryIdentity"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "create_time": {"key": "properties.createTime", "type": "iso-8601"}, - "version": {"key": "properties.version", "type": "str"}, - "purview_configuration": {"key": "properties.purviewConfiguration", "type": "PurviewConfiguration"}, - "repo_configuration": {"key": "properties.repoConfiguration", "type": "FactoryRepoConfiguration"}, - "global_parameters": {"key": "properties.globalParameters", "type": "{GlobalParameterSpecification}"}, - "encryption": {"key": "properties.encryption", "type": "EncryptionConfiguration"}, - "public_network_access": {"key": "properties.publicNetworkAccess", "type": "str"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[dict[str, str]] = None, - additional_properties: Optional[dict[str, JSON]] = None, - identity: Optional["_models.FactoryIdentity"] = None, - purview_configuration: Optional["_models.PurviewConfiguration"] = None, - repo_configuration: Optional["_models.FactoryRepoConfiguration"] = None, - global_parameters: Optional[dict[str, "_models.GlobalParameterSpecification"]] = None, - encryption: Optional["_models.EncryptionConfiguration"] = None, - public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The resource location. - :paramtype location: str - :keyword tags: The resource tags. - :paramtype tags: dict[str, str] - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword identity: Managed service identity of the factory. - :paramtype identity: ~azure.mgmt.datafactory.models.FactoryIdentity - :keyword purview_configuration: Purview information of the factory. - :paramtype purview_configuration: ~azure.mgmt.datafactory.models.PurviewConfiguration - :keyword repo_configuration: Git repo information of the factory. - :paramtype repo_configuration: ~azure.mgmt.datafactory.models.FactoryRepoConfiguration - :keyword global_parameters: List of parameters for factory. - :paramtype global_parameters: dict[str, - ~azure.mgmt.datafactory.models.GlobalParameterSpecification] - :keyword encryption: Properties to enable Customer Managed Key for the factory. - :paramtype encryption: ~azure.mgmt.datafactory.models.EncryptionConfiguration - :keyword public_network_access: Whether or not public network access is allowed for the data - factory. Known values are: "Enabled" and "Disabled". - :paramtype public_network_access: str or ~azure.mgmt.datafactory.models.PublicNetworkAccess - """ - super().__init__(location=location, tags=tags, **kwargs) - self.additional_properties = additional_properties - self.identity = identity - self.provisioning_state: Optional[str] = None - self.create_time: Optional[datetime.datetime] = None - self.version: Optional[str] = None - self.purview_configuration = purview_configuration - self.repo_configuration = repo_configuration - self.global_parameters = global_parameters - self.encryption = encryption - self.public_network_access = public_network_access - - -class FactoryRepoConfiguration(_serialization.Model): - """Factory's git repo information. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - FactoryGitHubConfiguration, FactoryVSTSConfiguration - - All required parameters must be populated in order to send to server. - - :ivar type: Type of repo configuration. Required. - :vartype type: str - :ivar account_name: Account name. Required. - :vartype account_name: str - :ivar repository_name: Repository name. Required. - :vartype repository_name: str - :ivar collaboration_branch: Collaboration branch. Required. - :vartype collaboration_branch: str - :ivar root_folder: Root folder. Required. - :vartype root_folder: str - :ivar last_commit_id: Last commit id. - :vartype last_commit_id: str - :ivar disable_publish: Disable manual publish operation in ADF studio to favor automated - publish. - :vartype disable_publish: bool - """ - - _validation = { - "type": {"required": True}, - "account_name": {"required": True}, - "repository_name": {"required": True}, - "collaboration_branch": {"required": True}, - "root_folder": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "account_name": {"key": "accountName", "type": "str"}, - "repository_name": {"key": "repositoryName", "type": "str"}, - "collaboration_branch": {"key": "collaborationBranch", "type": "str"}, - "root_folder": {"key": "rootFolder", "type": "str"}, - "last_commit_id": {"key": "lastCommitId", "type": "str"}, - "disable_publish": {"key": "disablePublish", "type": "bool"}, - } - - _subtype_map = { - "type": { - "FactoryGitHubConfiguration": "FactoryGitHubConfiguration", - "FactoryVSTSConfiguration": "FactoryVSTSConfiguration", - } - } - - def __init__( - self, - *, - account_name: str, - repository_name: str, - collaboration_branch: str, - root_folder: str, - last_commit_id: Optional[str] = None, - disable_publish: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword account_name: Account name. Required. - :paramtype account_name: str - :keyword repository_name: Repository name. Required. - :paramtype repository_name: str - :keyword collaboration_branch: Collaboration branch. Required. - :paramtype collaboration_branch: str - :keyword root_folder: Root folder. Required. - :paramtype root_folder: str - :keyword last_commit_id: Last commit id. - :paramtype last_commit_id: str - :keyword disable_publish: Disable manual publish operation in ADF studio to favor automated - publish. - :paramtype disable_publish: bool - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.account_name = account_name - self.repository_name = repository_name - self.collaboration_branch = collaboration_branch - self.root_folder = root_folder - self.last_commit_id = last_commit_id - self.disable_publish = disable_publish - - -class FactoryGitHubConfiguration(FactoryRepoConfiguration): - """Factory's GitHub repo information. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of repo configuration. Required. - :vartype type: str - :ivar account_name: Account name. Required. - :vartype account_name: str - :ivar repository_name: Repository name. Required. - :vartype repository_name: str - :ivar collaboration_branch: Collaboration branch. Required. - :vartype collaboration_branch: str - :ivar root_folder: Root folder. Required. - :vartype root_folder: str - :ivar last_commit_id: Last commit id. - :vartype last_commit_id: str - :ivar disable_publish: Disable manual publish operation in ADF studio to favor automated - publish. - :vartype disable_publish: bool - :ivar host_name: GitHub Enterprise host name. For example: ``https://github.mydomain.com``. - :vartype host_name: str - :ivar client_id: GitHub bring your own app client id. - :vartype client_id: str - :ivar client_secret: GitHub bring your own app client secret information. - :vartype client_secret: ~azure.mgmt.datafactory.models.GitHubClientSecret - """ - - _validation = { - "type": {"required": True}, - "account_name": {"required": True}, - "repository_name": {"required": True}, - "collaboration_branch": {"required": True}, - "root_folder": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "account_name": {"key": "accountName", "type": "str"}, - "repository_name": {"key": "repositoryName", "type": "str"}, - "collaboration_branch": {"key": "collaborationBranch", "type": "str"}, - "root_folder": {"key": "rootFolder", "type": "str"}, - "last_commit_id": {"key": "lastCommitId", "type": "str"}, - "disable_publish": {"key": "disablePublish", "type": "bool"}, - "host_name": {"key": "hostName", "type": "str"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "GitHubClientSecret"}, - } - - def __init__( - self, - *, - account_name: str, - repository_name: str, - collaboration_branch: str, - root_folder: str, - last_commit_id: Optional[str] = None, - disable_publish: Optional[bool] = None, - host_name: Optional[str] = None, - client_id: Optional[str] = None, - client_secret: Optional["_models.GitHubClientSecret"] = None, - **kwargs: Any - ) -> None: - """ - :keyword account_name: Account name. Required. - :paramtype account_name: str - :keyword repository_name: Repository name. Required. - :paramtype repository_name: str - :keyword collaboration_branch: Collaboration branch. Required. - :paramtype collaboration_branch: str - :keyword root_folder: Root folder. Required. - :paramtype root_folder: str - :keyword last_commit_id: Last commit id. - :paramtype last_commit_id: str - :keyword disable_publish: Disable manual publish operation in ADF studio to favor automated - publish. - :paramtype disable_publish: bool - :keyword host_name: GitHub Enterprise host name. For example: ``https://github.mydomain.com``. - :paramtype host_name: str - :keyword client_id: GitHub bring your own app client id. - :paramtype client_id: str - :keyword client_secret: GitHub bring your own app client secret information. - :paramtype client_secret: ~azure.mgmt.datafactory.models.GitHubClientSecret - """ - super().__init__( - account_name=account_name, - repository_name=repository_name, - collaboration_branch=collaboration_branch, - root_folder=root_folder, - last_commit_id=last_commit_id, - disable_publish=disable_publish, - **kwargs - ) - self.type: str = "FactoryGitHubConfiguration" - self.host_name = host_name - self.client_id = client_id - self.client_secret = client_secret - - -class FactoryIdentity(_serialization.Model): - """Identity properties of the factory resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The identity type. Required. Known values are: "SystemAssigned", "UserAssigned", - and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.datafactory.models.FactoryIdentityType - :ivar principal_id: The principal id of the identity. - :vartype principal_id: str - :ivar tenant_id: The client tenant id of the identity. - :vartype tenant_id: str - :ivar user_assigned_identities: List of user assigned identities for the factory. - :vartype user_assigned_identities: dict[str, JSON] - """ - - _validation = { - "type": {"required": True}, - "principal_id": {"readonly": True}, - "tenant_id": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{object}"}, - } - - def __init__( - self, - *, - type: Union[str, "_models.FactoryIdentityType"], - user_assigned_identities: Optional[dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: The identity type. Required. Known values are: "SystemAssigned", "UserAssigned", - and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.datafactory.models.FactoryIdentityType - :keyword user_assigned_identities: List of user assigned identities for the factory. - :paramtype user_assigned_identities: dict[str, JSON] - """ - super().__init__(**kwargs) - self.type = type - self.principal_id: Optional[str] = None - self.tenant_id: Optional[str] = None - self.user_assigned_identities = user_assigned_identities - - -class FactoryListResponse(_serialization.Model): - """A list of factory resources. - - All required parameters must be populated in order to send to server. - - :ivar value: List of factories. Required. - :vartype value: list[~azure.mgmt.datafactory.models.Factory] - :ivar next_link: The link to the next page of results, if any remaining results exist. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[Factory]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.Factory"], next_link: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword value: List of factories. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.Factory] - :keyword next_link: The link to the next page of results, if any remaining results exist. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class FactoryRepoUpdate(_serialization.Model): - """Factory's git repo information. - - :ivar factory_resource_id: The factory resource id. - :vartype factory_resource_id: str - :ivar repo_configuration: Git repo information of the factory. - :vartype repo_configuration: ~azure.mgmt.datafactory.models.FactoryRepoConfiguration - """ - - _attribute_map = { - "factory_resource_id": {"key": "factoryResourceId", "type": "str"}, - "repo_configuration": {"key": "repoConfiguration", "type": "FactoryRepoConfiguration"}, - } - - def __init__( - self, - *, - factory_resource_id: Optional[str] = None, - repo_configuration: Optional["_models.FactoryRepoConfiguration"] = None, - **kwargs: Any - ) -> None: - """ - :keyword factory_resource_id: The factory resource id. - :paramtype factory_resource_id: str - :keyword repo_configuration: Git repo information of the factory. - :paramtype repo_configuration: ~azure.mgmt.datafactory.models.FactoryRepoConfiguration - """ - super().__init__(**kwargs) - self.factory_resource_id = factory_resource_id - self.repo_configuration = repo_configuration - - -class FactoryUpdateParameters(_serialization.Model): - """Parameters for updating a factory resource. - - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - :ivar identity: Managed service identity of the factory. - :vartype identity: ~azure.mgmt.datafactory.models.FactoryIdentity - :ivar public_network_access: Whether or not public network access is allowed for the data - factory. Known values are: "Enabled" and "Disabled". - :vartype public_network_access: str or ~azure.mgmt.datafactory.models.PublicNetworkAccess - """ - - _attribute_map = { - "tags": {"key": "tags", "type": "{str}"}, - "identity": {"key": "identity", "type": "FactoryIdentity"}, - "public_network_access": {"key": "properties.publicNetworkAccess", "type": "str"}, - } - - def __init__( - self, - *, - tags: Optional[dict[str, str]] = None, - identity: Optional["_models.FactoryIdentity"] = None, - public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword tags: The resource tags. - :paramtype tags: dict[str, str] - :keyword identity: Managed service identity of the factory. - :paramtype identity: ~azure.mgmt.datafactory.models.FactoryIdentity - :keyword public_network_access: Whether or not public network access is allowed for the data - factory. Known values are: "Enabled" and "Disabled". - :paramtype public_network_access: str or ~azure.mgmt.datafactory.models.PublicNetworkAccess - """ - super().__init__(**kwargs) - self.tags = tags - self.identity = identity - self.public_network_access = public_network_access - - -class FactoryVSTSConfiguration(FactoryRepoConfiguration): - """Factory's VSTS repo information. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of repo configuration. Required. - :vartype type: str - :ivar account_name: Account name. Required. - :vartype account_name: str - :ivar repository_name: Repository name. Required. - :vartype repository_name: str - :ivar collaboration_branch: Collaboration branch. Required. - :vartype collaboration_branch: str - :ivar root_folder: Root folder. Required. - :vartype root_folder: str - :ivar last_commit_id: Last commit id. - :vartype last_commit_id: str - :ivar disable_publish: Disable manual publish operation in ADF studio to favor automated - publish. - :vartype disable_publish: bool - :ivar project_name: VSTS project name. Required. - :vartype project_name: str - :ivar tenant_id: VSTS tenant id. - :vartype tenant_id: str - """ - - _validation = { - "type": {"required": True}, - "account_name": {"required": True}, - "repository_name": {"required": True}, - "collaboration_branch": {"required": True}, - "root_folder": {"required": True}, - "project_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "account_name": {"key": "accountName", "type": "str"}, - "repository_name": {"key": "repositoryName", "type": "str"}, - "collaboration_branch": {"key": "collaborationBranch", "type": "str"}, - "root_folder": {"key": "rootFolder", "type": "str"}, - "last_commit_id": {"key": "lastCommitId", "type": "str"}, - "disable_publish": {"key": "disablePublish", "type": "bool"}, - "project_name": {"key": "projectName", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - } - - def __init__( - self, - *, - account_name: str, - repository_name: str, - collaboration_branch: str, - root_folder: str, - project_name: str, - last_commit_id: Optional[str] = None, - disable_publish: Optional[bool] = None, - tenant_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword account_name: Account name. Required. - :paramtype account_name: str - :keyword repository_name: Repository name. Required. - :paramtype repository_name: str - :keyword collaboration_branch: Collaboration branch. Required. - :paramtype collaboration_branch: str - :keyword root_folder: Root folder. Required. - :paramtype root_folder: str - :keyword last_commit_id: Last commit id. - :paramtype last_commit_id: str - :keyword disable_publish: Disable manual publish operation in ADF studio to favor automated - publish. - :paramtype disable_publish: bool - :keyword project_name: VSTS project name. Required. - :paramtype project_name: str - :keyword tenant_id: VSTS tenant id. - :paramtype tenant_id: str - """ - super().__init__( - account_name=account_name, - repository_name=repository_name, - collaboration_branch=collaboration_branch, - root_folder=root_folder, - last_commit_id=last_commit_id, - disable_publish=disable_publish, - **kwargs - ) - self.type: str = "FactoryVSTSConfiguration" - self.project_name = project_name - self.tenant_id = tenant_id - - -class FailActivity(ControlActivity): - """This activity will fail within its own scope and output a custom error message and error code. - The error message and code can provided either as a string literal or as an expression that can - be evaluated to a string at runtime. The activity scope can be the whole pipeline or a control - activity (e.g. foreach, switch, until), if the fail activity is contained in it. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar message: The error message that surfaced in the Fail activity. It can be dynamic content - that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with - resultType string). Required. - :vartype message: JSON - :ivar error_code: The error code that categorizes the error type of the Fail activity. It can - be dynamic content that's evaluated to a non empty/blank string at runtime. Type: string (or - Expression with resultType string). Required. - :vartype error_code: JSON - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "message": {"required": True}, - "error_code": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "message": {"key": "typeProperties.message", "type": "object"}, - "error_code": {"key": "typeProperties.errorCode", "type": "object"}, - } - - def __init__( - self, - *, - name: str, - message: JSON, - error_code: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword message: The error message that surfaced in the Fail activity. It can be dynamic - content that's evaluated to a non empty/blank string at runtime. Type: string (or Expression - with resultType string). Required. - :paramtype message: JSON - :keyword error_code: The error code that categorizes the error type of the Fail activity. It - can be dynamic content that's evaluated to a non empty/blank string at runtime. Type: string - (or Expression with resultType string). Required. - :paramtype error_code: JSON - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - **kwargs - ) - self.type: str = "Fail" - self.message = message - self.error_code = error_code - - -class FileServerLinkedService(LinkedService): - """File system linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar host: Host name of the server. Type: string (or Expression with resultType string). - Required. - :vartype host: JSON - :ivar user_id: User ID to logon the server. Type: string (or Expression with resultType - string). - :vartype user_id: JSON - :ivar password: Password to logon the server. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "host": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "user_id": {"key": "typeProperties.userId", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - host: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - user_id: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword host: Host name of the server. Type: string (or Expression with resultType string). - Required. - :paramtype host: JSON - :keyword user_id: User ID to logon the server. Type: string (or Expression with resultType - string). - :paramtype user_id: JSON - :keyword password: Password to logon the server. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "FileServer" - self.host = host - self.user_id = user_id - self.password = password - self.encrypted_credential = encrypted_credential - - -class FileServerLocation(DatasetLocation): - """The location of file server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage location. Required. - :vartype type: str - :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :vartype folder_path: JSON - :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType - string). - :vartype file_name: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "folder_path": {"key": "folderPath", "type": "object"}, - "file_name": {"key": "fileName", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - folder_path: Optional[JSON] = None, - file_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :paramtype folder_path: JSON - :keyword file_name: Specify the file name of dataset. Type: string (or Expression with - resultType string). - :paramtype file_name: JSON - """ - super().__init__( - additional_properties=additional_properties, folder_path=folder_path, file_name=file_name, **kwargs - ) - self.type: str = "FileServerLocation" - - -class FileServerReadSettings(StoreReadSettings): - """File server read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - :ivar wildcard_folder_path: FileServer wildcardFolderPath. Type: string (or Expression with - resultType string). - :vartype wildcard_folder_path: JSON - :ivar wildcard_file_name: FileServer wildcardFileName. Type: string (or Expression with - resultType string). - :vartype wildcard_file_name: JSON - :ivar file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :vartype enable_partition_discovery: JSON - :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: - string (or Expression with resultType string). - :vartype partition_root_path: JSON - :ivar delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :vartype delete_files_after_completion: JSON - :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :vartype modified_datetime_start: JSON - :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression - with resultType string). - :vartype modified_datetime_end: JSON - :ivar file_filter: Specify a filter to be used to select a subset of files in the folderPath - rather than all files. Type: string (or Expression with resultType string). - :vartype file_filter: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "recursive": {"key": "recursive", "type": "object"}, - "wildcard_folder_path": {"key": "wildcardFolderPath", "type": "object"}, - "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, - "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, - "partition_root_path": {"key": "partitionRootPath", "type": "object"}, - "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, - "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, - "modified_datetime_end": {"key": "modifiedDatetimeEnd", "type": "object"}, - "file_filter": {"key": "fileFilter", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - recursive: Optional[JSON] = None, - wildcard_folder_path: Optional[JSON] = None, - wildcard_file_name: Optional[JSON] = None, - file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[JSON] = None, - partition_root_path: Optional[JSON] = None, - delete_files_after_completion: Optional[JSON] = None, - modified_datetime_start: Optional[JSON] = None, - modified_datetime_end: Optional[JSON] = None, - file_filter: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - :keyword wildcard_folder_path: FileServer wildcardFolderPath. Type: string (or Expression with - resultType string). - :paramtype wildcard_folder_path: JSON - :keyword wildcard_file_name: FileServer wildcardFileName. Type: string (or Expression with - resultType string). - :paramtype wildcard_file_name: JSON - :keyword file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :paramtype enable_partition_discovery: JSON - :keyword partition_root_path: Specify the root path where partition discovery starts from. - Type: string (or Expression with resultType string). - :paramtype partition_root_path: JSON - :keyword delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :paramtype delete_files_after_completion: JSON - :keyword modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_start: JSON - :keyword modified_datetime_end: The end of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_end: JSON - :keyword file_filter: Specify a filter to be used to select a subset of files in the folderPath - rather than all files. Type: string (or Expression with resultType string). - :paramtype file_filter: JSON - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "FileServerReadSettings" - self.recursive = recursive - self.wildcard_folder_path = wildcard_folder_path - self.wildcard_file_name = wildcard_file_name - self.file_list_path = file_list_path - self.enable_partition_discovery = enable_partition_discovery - self.partition_root_path = partition_root_path - self.delete_files_after_completion = delete_files_after_completion - self.modified_datetime_start = modified_datetime_start - self.modified_datetime_end = modified_datetime_end - self.file_filter = file_filter - - -class FileServerWriteSettings(StoreWriteSettings): - """File server write settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The write setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar copy_behavior: The type of copy behavior for copy sink. - :vartype copy_behavior: JSON - :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "copy_behavior": {"key": "copyBehavior", "type": "object"}, - "metadata": {"key": "metadata", "type": "[MetadataItem]"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - copy_behavior: Optional[JSON] = None, - metadata: Optional[list["_models.MetadataItem"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword copy_behavior: The type of copy behavior for copy sink. - :paramtype copy_behavior: JSON - :keyword metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :paramtype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - copy_behavior=copy_behavior, - metadata=metadata, - **kwargs - ) - self.type: str = "FileServerWriteSettings" - - -class FileShareDataset(Dataset): - """An on-premises file system dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar folder_path: The path of the on-premises file system. Type: string (or Expression with - resultType string). - :vartype folder_path: JSON - :ivar file_name: The name of the on-premises file system. Type: string (or Expression with - resultType string). - :vartype file_name: JSON - :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :vartype modified_datetime_start: JSON - :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression - with resultType string). - :vartype modified_datetime_end: JSON - :ivar format: The format of the files. - :vartype format: ~azure.mgmt.datafactory.models.DatasetStorageFormat - :ivar file_filter: Specify a filter to be used to select a subset of files in the folderPath - rather than all files. Type: string (or Expression with resultType string). - :vartype file_filter: JSON - :ivar compression: The data compression method used for the file system. - :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "folder_path": {"key": "typeProperties.folderPath", "type": "object"}, - "file_name": {"key": "typeProperties.fileName", "type": "object"}, - "modified_datetime_start": {"key": "typeProperties.modifiedDatetimeStart", "type": "object"}, - "modified_datetime_end": {"key": "typeProperties.modifiedDatetimeEnd", "type": "object"}, - "format": {"key": "typeProperties.format", "type": "DatasetStorageFormat"}, - "file_filter": {"key": "typeProperties.fileFilter", "type": "object"}, - "compression": {"key": "typeProperties.compression", "type": "DatasetCompression"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - folder_path: Optional[JSON] = None, - file_name: Optional[JSON] = None, - modified_datetime_start: Optional[JSON] = None, - modified_datetime_end: Optional[JSON] = None, - format: Optional["_models.DatasetStorageFormat"] = None, - file_filter: Optional[JSON] = None, - compression: Optional["_models.DatasetCompression"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword folder_path: The path of the on-premises file system. Type: string (or Expression with - resultType string). - :paramtype folder_path: JSON - :keyword file_name: The name of the on-premises file system. Type: string (or Expression with - resultType string). - :paramtype file_name: JSON - :keyword modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_start: JSON - :keyword modified_datetime_end: The end of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_end: JSON - :keyword format: The format of the files. - :paramtype format: ~azure.mgmt.datafactory.models.DatasetStorageFormat - :keyword file_filter: Specify a filter to be used to select a subset of files in the folderPath - rather than all files. Type: string (or Expression with resultType string). - :paramtype file_filter: JSON - :keyword compression: The data compression method used for the file system. - :paramtype compression: ~azure.mgmt.datafactory.models.DatasetCompression - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "FileShare" - self.folder_path = folder_path - self.file_name = file_name - self.modified_datetime_start = modified_datetime_start - self.modified_datetime_end = modified_datetime_end - self.format = format - self.file_filter = file_filter - self.compression = compression - - -class FileSystemSink(CopySink): - """A copy activity file system sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar copy_behavior: The type of copy behavior for copy sink. - :vartype copy_behavior: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "copy_behavior": {"key": "copyBehavior", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - copy_behavior: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword copy_behavior: The type of copy behavior for copy sink. - :paramtype copy_behavior: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "FileSystemSink" - self.copy_behavior = copy_behavior - - -class FileSystemSource(CopySource): - """A copy activity file system source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "recursive": {"key": "recursive", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - recursive: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "FileSystemSource" - self.recursive = recursive - self.additional_columns = additional_columns - - -class FilterActivity(ControlActivity): - """Filter and return results from input array based on the conditions. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar items: Input array on which filter should be applied. Required. - :vartype items: ~azure.mgmt.datafactory.models.Expression - :ivar condition: Condition to be used for filtering the input. Required. - :vartype condition: ~azure.mgmt.datafactory.models.Expression - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "items": {"required": True}, - "condition": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "items": {"key": "typeProperties.items", "type": "Expression"}, - "condition": {"key": "typeProperties.condition", "type": "Expression"}, - } - - def __init__( - self, - *, - name: str, - items: "_models.Expression", - condition: "_models.Expression", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword items: Input array on which filter should be applied. Required. - :paramtype items: ~azure.mgmt.datafactory.models.Expression - :keyword condition: Condition to be used for filtering the input. Required. - :paramtype condition: ~azure.mgmt.datafactory.models.Expression - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - **kwargs - ) - self.type: str = "Filter" - self.items = items - self.condition = condition - - -class Flowlet(DataFlow): - """Data flow flowlet. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of data flow. Required. - :vartype type: str - :ivar description: The description of the data flow. - :vartype description: str - :ivar annotations: List of tags that can be used for describing the data flow. - :vartype annotations: list[JSON] - :ivar folder: The folder that this data flow is in. If not specified, Data flow will appear at - the root level. - :vartype folder: ~azure.mgmt.datafactory.models.DataFlowFolder - :ivar sources: List of sources in Flowlet. - :vartype sources: list[~azure.mgmt.datafactory.models.DataFlowSource] - :ivar sinks: List of sinks in Flowlet. - :vartype sinks: list[~azure.mgmt.datafactory.models.DataFlowSink] - :ivar transformations: List of transformations in Flowlet. - :vartype transformations: list[~azure.mgmt.datafactory.models.Transformation] - :ivar script: Flowlet script. - :vartype script: str - :ivar script_lines: Flowlet script lines. - :vartype script_lines: list[str] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DataFlowFolder"}, - "sources": {"key": "typeProperties.sources", "type": "[DataFlowSource]"}, - "sinks": {"key": "typeProperties.sinks", "type": "[DataFlowSink]"}, - "transformations": {"key": "typeProperties.transformations", "type": "[Transformation]"}, - "script": {"key": "typeProperties.script", "type": "str"}, - "script_lines": {"key": "typeProperties.scriptLines", "type": "[str]"}, - } - - def __init__( - self, - *, - description: Optional[str] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DataFlowFolder"] = None, - sources: Optional[list["_models.DataFlowSource"]] = None, - sinks: Optional[list["_models.DataFlowSink"]] = None, - transformations: Optional[list["_models.Transformation"]] = None, - script: Optional[str] = None, - script_lines: Optional[list[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword description: The description of the data flow. - :paramtype description: str - :keyword annotations: List of tags that can be used for describing the data flow. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this data flow is in. If not specified, Data flow will appear - at the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DataFlowFolder - :keyword sources: List of sources in Flowlet. - :paramtype sources: list[~azure.mgmt.datafactory.models.DataFlowSource] - :keyword sinks: List of sinks in Flowlet. - :paramtype sinks: list[~azure.mgmt.datafactory.models.DataFlowSink] - :keyword transformations: List of transformations in Flowlet. - :paramtype transformations: list[~azure.mgmt.datafactory.models.Transformation] - :keyword script: Flowlet script. - :paramtype script: str - :keyword script_lines: Flowlet script lines. - :paramtype script_lines: list[str] - """ - super().__init__(description=description, annotations=annotations, folder=folder, **kwargs) - self.type: str = "Flowlet" - self.sources = sources - self.sinks = sinks - self.transformations = transformations - self.script = script - self.script_lines = script_lines - - -class ForEachActivity(ControlActivity): - """This activity is used for iterating over a collection and execute given activities. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar is_sequential: Should the loop be executed in sequence or in parallel (max 50). - :vartype is_sequential: bool - :ivar batch_count: Batch count to be used for controlling the number of parallel execution - (when isSequential is set to false). - :vartype batch_count: int - :ivar items: Collection to iterate. Required. - :vartype items: ~azure.mgmt.datafactory.models.Expression - :ivar activities: List of activities to execute . Required. - :vartype activities: list[~azure.mgmt.datafactory.models.Activity] - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "batch_count": {"maximum": 50}, - "items": {"required": True}, - "activities": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "is_sequential": {"key": "typeProperties.isSequential", "type": "bool"}, - "batch_count": {"key": "typeProperties.batchCount", "type": "int"}, - "items": {"key": "typeProperties.items", "type": "Expression"}, - "activities": {"key": "typeProperties.activities", "type": "[Activity]"}, - } - - def __init__( - self, - *, - name: str, - items: "_models.Expression", - activities: list["_models.Activity"], - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - is_sequential: Optional[bool] = None, - batch_count: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword is_sequential: Should the loop be executed in sequence or in parallel (max 50). - :paramtype is_sequential: bool - :keyword batch_count: Batch count to be used for controlling the number of parallel execution - (when isSequential is set to false). - :paramtype batch_count: int - :keyword items: Collection to iterate. Required. - :paramtype items: ~azure.mgmt.datafactory.models.Expression - :keyword activities: List of activities to execute . Required. - :paramtype activities: list[~azure.mgmt.datafactory.models.Activity] - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - **kwargs - ) - self.type: str = "ForEach" - self.is_sequential = is_sequential - self.batch_count = batch_count - self.items = items - self.activities = activities - - -class FtpReadSettings(StoreReadSettings): - """Ftp read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - :ivar wildcard_folder_path: Ftp wildcardFolderPath. Type: string (or Expression with resultType - string). - :vartype wildcard_folder_path: JSON - :ivar wildcard_file_name: Ftp wildcardFileName. Type: string (or Expression with resultType - string). - :vartype wildcard_file_name: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :vartype enable_partition_discovery: JSON - :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: - string (or Expression with resultType string). - :vartype partition_root_path: JSON - :ivar delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :vartype delete_files_after_completion: JSON - :ivar file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :vartype file_list_path: JSON - :ivar use_binary_transfer: Specify whether to use binary transfer mode for FTP stores. Type: - boolean (or Expression with resultType boolean). - :vartype use_binary_transfer: JSON - :ivar disable_chunking: If true, disable parallel reading within each file. Default is false. - Type: boolean (or Expression with resultType boolean). - :vartype disable_chunking: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "recursive": {"key": "recursive", "type": "object"}, - "wildcard_folder_path": {"key": "wildcardFolderPath", "type": "object"}, - "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, - "partition_root_path": {"key": "partitionRootPath", "type": "object"}, - "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, - "file_list_path": {"key": "fileListPath", "type": "object"}, - "use_binary_transfer": {"key": "useBinaryTransfer", "type": "object"}, - "disable_chunking": {"key": "disableChunking", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - recursive: Optional[JSON] = None, - wildcard_folder_path: Optional[JSON] = None, - wildcard_file_name: Optional[JSON] = None, - enable_partition_discovery: Optional[JSON] = None, - partition_root_path: Optional[JSON] = None, - delete_files_after_completion: Optional[JSON] = None, - file_list_path: Optional[JSON] = None, - use_binary_transfer: Optional[JSON] = None, - disable_chunking: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - :keyword wildcard_folder_path: Ftp wildcardFolderPath. Type: string (or Expression with - resultType string). - :paramtype wildcard_folder_path: JSON - :keyword wildcard_file_name: Ftp wildcardFileName. Type: string (or Expression with resultType - string). - :paramtype wildcard_file_name: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :paramtype enable_partition_discovery: JSON - :keyword partition_root_path: Specify the root path where partition discovery starts from. - Type: string (or Expression with resultType string). - :paramtype partition_root_path: JSON - :keyword delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :paramtype delete_files_after_completion: JSON - :keyword file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :paramtype file_list_path: JSON - :keyword use_binary_transfer: Specify whether to use binary transfer mode for FTP stores. Type: - boolean (or Expression with resultType boolean). - :paramtype use_binary_transfer: JSON - :keyword disable_chunking: If true, disable parallel reading within each file. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_chunking: JSON - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "FtpReadSettings" - self.recursive = recursive - self.wildcard_folder_path = wildcard_folder_path - self.wildcard_file_name = wildcard_file_name - self.enable_partition_discovery = enable_partition_discovery - self.partition_root_path = partition_root_path - self.delete_files_after_completion = delete_files_after_completion - self.file_list_path = file_list_path - self.use_binary_transfer = use_binary_transfer - self.disable_chunking = disable_chunking - - -class FtpServerLinkedService(LinkedService): - """A FTP server Linked Service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar host: Host name of the FTP server. Type: string (or Expression with resultType string). - Required. - :vartype host: JSON - :ivar port: The TCP port number that the FTP server uses to listen for client connections. - Default value is 21. Type: integer (or Expression with resultType integer), minimum: 0. - :vartype port: JSON - :ivar authentication_type: The authentication type to be used to connect to the FTP server. - Known values are: "Basic" and "Anonymous". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.FtpAuthenticationType - :ivar user_name: Username to logon the FTP server. Type: string (or Expression with resultType - string). - :vartype user_name: JSON - :ivar password: Password to logon the FTP server. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar enable_ssl: If true, connect to the FTP server over SSL/TLS channel. Default value is - true. Type: boolean (or Expression with resultType boolean). - :vartype enable_ssl: JSON - :ivar enable_server_certificate_validation: If true, validate the FTP server SSL certificate - when connect over SSL/TLS channel. Default value is true. Type: boolean (or Expression with - resultType boolean). - :vartype enable_server_certificate_validation: JSON - """ - - _validation = { - "type": {"required": True}, - "host": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "enable_ssl": {"key": "typeProperties.enableSsl", "type": "object"}, - "enable_server_certificate_validation": { - "key": "typeProperties.enableServerCertificateValidation", - "type": "object", - }, - } - - def __init__( - self, - *, - host: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - port: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.FtpAuthenticationType"]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - enable_ssl: Optional[JSON] = None, - enable_server_certificate_validation: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword host: Host name of the FTP server. Type: string (or Expression with resultType - string). Required. - :paramtype host: JSON - :keyword port: The TCP port number that the FTP server uses to listen for client connections. - Default value is 21. Type: integer (or Expression with resultType integer), minimum: 0. - :paramtype port: JSON - :keyword authentication_type: The authentication type to be used to connect to the FTP server. - Known values are: "Basic" and "Anonymous". - :paramtype authentication_type: str or ~azure.mgmt.datafactory.models.FtpAuthenticationType - :keyword user_name: Username to logon the FTP server. Type: string (or Expression with - resultType string). - :paramtype user_name: JSON - :keyword password: Password to logon the FTP server. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword enable_ssl: If true, connect to the FTP server over SSL/TLS channel. Default value is - true. Type: boolean (or Expression with resultType boolean). - :paramtype enable_ssl: JSON - :keyword enable_server_certificate_validation: If true, validate the FTP server SSL certificate - when connect over SSL/TLS channel. Default value is true. Type: boolean (or Expression with - resultType boolean). - :paramtype enable_server_certificate_validation: JSON - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "FtpServer" - self.host = host - self.port = port - self.authentication_type = authentication_type - self.user_name = user_name - self.password = password - self.encrypted_credential = encrypted_credential - self.enable_ssl = enable_ssl - self.enable_server_certificate_validation = enable_server_certificate_validation - - -class FtpServerLocation(DatasetLocation): - """The location of ftp server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage location. Required. - :vartype type: str - :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :vartype folder_path: JSON - :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType - string). - :vartype file_name: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "folder_path": {"key": "folderPath", "type": "object"}, - "file_name": {"key": "fileName", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - folder_path: Optional[JSON] = None, - file_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :paramtype folder_path: JSON - :keyword file_name: Specify the file name of dataset. Type: string (or Expression with - resultType string). - :paramtype file_name: JSON - """ - super().__init__( - additional_properties=additional_properties, folder_path=folder_path, file_name=file_name, **kwargs - ) - self.type: str = "FtpServerLocation" - - -class GetDataFactoryOperationStatusResponse(_serialization.Model): - """Response body structure for get data factory operation status. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar status: Status of the operation. - :vartype status: str - """ - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__( - self, *, additional_properties: Optional[dict[str, JSON]] = None, status: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword status: Status of the operation. - :paramtype status: str - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.status = status - - -class GetMetadataActivity(ExecutionActivity): - """Activity to get metadata of dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar dataset: GetMetadata activity dataset reference. Required. - :vartype dataset: ~azure.mgmt.datafactory.models.DatasetReference - :ivar field_list: Fields of metadata to get from dataset. - :vartype field_list: list[JSON] - :ivar store_settings: GetMetadata activity store settings. - :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - :ivar format_settings: GetMetadata activity format settings. - :vartype format_settings: ~azure.mgmt.datafactory.models.FormatReadSettings - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "dataset": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "dataset": {"key": "typeProperties.dataset", "type": "DatasetReference"}, - "field_list": {"key": "typeProperties.fieldList", "type": "[object]"}, - "store_settings": {"key": "typeProperties.storeSettings", "type": "StoreReadSettings"}, - "format_settings": {"key": "typeProperties.formatSettings", "type": "FormatReadSettings"}, - } - - def __init__( - self, - *, - name: str, - dataset: "_models.DatasetReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - field_list: Optional[list[JSON]] = None, - store_settings: Optional["_models.StoreReadSettings"] = None, - format_settings: Optional["_models.FormatReadSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword dataset: GetMetadata activity dataset reference. Required. - :paramtype dataset: ~azure.mgmt.datafactory.models.DatasetReference - :keyword field_list: Fields of metadata to get from dataset. - :paramtype field_list: list[JSON] - :keyword store_settings: GetMetadata activity store settings. - :paramtype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - :keyword format_settings: GetMetadata activity format settings. - :paramtype format_settings: ~azure.mgmt.datafactory.models.FormatReadSettings - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "GetMetadata" - self.dataset = dataset - self.field_list = field_list - self.store_settings = store_settings - self.format_settings = format_settings - - -class GetSsisObjectMetadataRequest(_serialization.Model): - """The request payload of get SSIS object metadata. - - :ivar metadata_path: Metadata path. - :vartype metadata_path: str - """ - - _attribute_map = { - "metadata_path": {"key": "metadataPath", "type": "str"}, - } - - def __init__(self, *, metadata_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword metadata_path: Metadata path. - :paramtype metadata_path: str - """ - super().__init__(**kwargs) - self.metadata_path = metadata_path - - -class GitHubAccessTokenRequest(_serialization.Model): - """Get GitHub access token request definition. - - All required parameters must be populated in order to send to server. - - :ivar git_hub_access_code: GitHub access code. Required. - :vartype git_hub_access_code: str - :ivar git_hub_client_id: GitHub application client ID. - :vartype git_hub_client_id: str - :ivar git_hub_client_secret: GitHub bring your own app client secret information. - :vartype git_hub_client_secret: ~azure.mgmt.datafactory.models.GitHubClientSecret - :ivar git_hub_access_token_base_url: GitHub access token base URL. Required. - :vartype git_hub_access_token_base_url: str - """ - - _validation = { - "git_hub_access_code": {"required": True}, - "git_hub_access_token_base_url": {"required": True}, - } - - _attribute_map = { - "git_hub_access_code": {"key": "gitHubAccessCode", "type": "str"}, - "git_hub_client_id": {"key": "gitHubClientId", "type": "str"}, - "git_hub_client_secret": {"key": "gitHubClientSecret", "type": "GitHubClientSecret"}, - "git_hub_access_token_base_url": {"key": "gitHubAccessTokenBaseUrl", "type": "str"}, - } - - def __init__( - self, - *, - git_hub_access_code: str, - git_hub_access_token_base_url: str, - git_hub_client_id: Optional[str] = None, - git_hub_client_secret: Optional["_models.GitHubClientSecret"] = None, - **kwargs: Any - ) -> None: - """ - :keyword git_hub_access_code: GitHub access code. Required. - :paramtype git_hub_access_code: str - :keyword git_hub_client_id: GitHub application client ID. - :paramtype git_hub_client_id: str - :keyword git_hub_client_secret: GitHub bring your own app client secret information. - :paramtype git_hub_client_secret: ~azure.mgmt.datafactory.models.GitHubClientSecret - :keyword git_hub_access_token_base_url: GitHub access token base URL. Required. - :paramtype git_hub_access_token_base_url: str - """ - super().__init__(**kwargs) - self.git_hub_access_code = git_hub_access_code - self.git_hub_client_id = git_hub_client_id - self.git_hub_client_secret = git_hub_client_secret - self.git_hub_access_token_base_url = git_hub_access_token_base_url - - -class GitHubAccessTokenResponse(_serialization.Model): - """Get GitHub access token response definition. - - :ivar git_hub_access_token: GitHub access token. - :vartype git_hub_access_token: str - """ - - _attribute_map = { - "git_hub_access_token": {"key": "gitHubAccessToken", "type": "str"}, - } - - def __init__(self, *, git_hub_access_token: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword git_hub_access_token: GitHub access token. - :paramtype git_hub_access_token: str - """ - super().__init__(**kwargs) - self.git_hub_access_token = git_hub_access_token - - -class GitHubClientSecret(_serialization.Model): - """Client secret information for factory's bring your own app repository configuration. - - :ivar byoa_secret_akv_url: Bring your own app client secret AKV URL. - :vartype byoa_secret_akv_url: str - :ivar byoa_secret_name: Bring your own app client secret name in AKV. - :vartype byoa_secret_name: str - """ - - _attribute_map = { - "byoa_secret_akv_url": {"key": "byoaSecretAkvUrl", "type": "str"}, - "byoa_secret_name": {"key": "byoaSecretName", "type": "str"}, - } - - def __init__( - self, *, byoa_secret_akv_url: Optional[str] = None, byoa_secret_name: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword byoa_secret_akv_url: Bring your own app client secret AKV URL. - :paramtype byoa_secret_akv_url: str - :keyword byoa_secret_name: Bring your own app client secret name in AKV. - :paramtype byoa_secret_name: str - """ - super().__init__(**kwargs) - self.byoa_secret_akv_url = byoa_secret_akv_url - self.byoa_secret_name = byoa_secret_name - - -class GlobalParameterListResponse(_serialization.Model): - """A list of Global parameters. - - All required parameters must be populated in order to send to server. - - :ivar value: List of global parameters. Required. - :vartype value: list[~azure.mgmt.datafactory.models.GlobalParameterResource] - :ivar next_link: The link to the next page of results, if any remaining results exist. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[GlobalParameterResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: list["_models.GlobalParameterResource"], next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: List of global parameters. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.GlobalParameterResource] - :keyword next_link: The link to the next page of results, if any remaining results exist. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GlobalParameterResource(SubResource): - """Global parameters resource type. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar etag: Etag identifies change in the resource. - :vartype etag: str - :ivar properties: Properties of the global parameter. Required. - :vartype properties: dict[str, ~azure.mgmt.datafactory.models.GlobalParameterSpecification] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "etag": {"readonly": True}, - "properties": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "etag": {"key": "etag", "type": "str"}, - "properties": {"key": "properties", "type": "{GlobalParameterSpecification}"}, - } - - def __init__(self, *, properties: dict[str, "_models.GlobalParameterSpecification"], **kwargs: Any) -> None: - """ - :keyword properties: Properties of the global parameter. Required. - :paramtype properties: dict[str, ~azure.mgmt.datafactory.models.GlobalParameterSpecification] - """ - super().__init__(**kwargs) - self.properties = properties - - -class GlobalParameterSpecification(_serialization.Model): - """Definition of a single parameter for an entity. - - All required parameters must be populated in order to send to server. - - :ivar type: Global Parameter type. Required. Known values are: "Object", "String", "Int", - "Float", "Bool", "Array", and "Int". - :vartype type: str or ~azure.mgmt.datafactory.models.GlobalParameterType - :ivar value: Value of parameter. Required. - :vartype value: JSON - """ - - _validation = { - "type": {"required": True}, - "value": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "value": {"key": "value", "type": "object"}, - } - - def __init__(self, *, type: Union[str, "_models.GlobalParameterType"], value: JSON, **kwargs: Any) -> None: - """ - :keyword type: Global Parameter type. Required. Known values are: "Object", "String", "Int", - "Float", "Bool", "Array", and "Int". - :paramtype type: str or ~azure.mgmt.datafactory.models.GlobalParameterType - :keyword value: Value of parameter. Required. - :paramtype value: JSON - """ - super().__init__(**kwargs) - self.type = type - self.value = value - - -class GoogleAdWordsLinkedService(LinkedService): - """Google AdWords service linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_properties: (Deprecated) Properties used to connect to GoogleAds. It is - mutually exclusive with any other properties in the linked service. Type: object. - :vartype connection_properties: JSON - :ivar client_customer_id: The Client customer ID of the AdWords account that you want to fetch - report data for. Type: string (or Expression with resultType string). - :vartype client_customer_id: JSON - :ivar developer_token: The developer token associated with the manager account that you use to - grant access to the AdWords API. - :vartype developer_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar authentication_type: The OAuth 2.0 authentication mechanism used for authentication. - ServiceAuthentication can only be used on self-hosted IR. Known values are: - "ServiceAuthentication" and "UserAuthentication". - :vartype authentication_type: str or - ~azure.mgmt.datafactory.models.GoogleAdWordsAuthenticationType - :ivar refresh_token: The refresh token obtained from Google for authorizing access to AdWords - for UserAuthentication. - :vartype refresh_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar client_id: The client id of the google application used to acquire the refresh token. - Type: string (or Expression with resultType string). - :vartype client_id: JSON - :ivar client_secret: The client secret of the google application used to acquire the refresh - token. - :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :ivar email: The service account email ID that is used for ServiceAuthentication and can only - be used on self-hosted IR. Type: string (or Expression with resultType string). - :vartype email: JSON - :ivar key_file_path: (Deprecated) The full path to the .p12 key file that is used to - authenticate the service account email address and can only be used on self-hosted IR. Type: - string (or Expression with resultType string). - :vartype key_file_path: JSON - :ivar trusted_cert_path: (Deprecated) The full path of the .pem file containing trusted CA - certificates for verifying the server when connecting over SSL. This property can only be set - when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the - IR. Type: string (or Expression with resultType string). - :vartype trusted_cert_path: JSON - :ivar use_system_trust_store: (Deprecated) Specifies whether to use a CA certificate from the - system trust store or from a specified PEM file. The default value is false. Type: boolean (or - Expression with resultType boolean). - :vartype use_system_trust_store: JSON - :ivar private_key: The private key that is used to authenticate the service account email - address and can only be used on self-hosted IR. - :vartype private_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar login_customer_id: The customer ID of the Google Ads Manager account through which you - want to fetch report data of specific Customer. Type: string (or Expression with resultType - string). - :vartype login_customer_id: JSON - :ivar google_ads_api_version: The Google Ads API major version such as v14. The supported major - versions could be found on https://developers.google.com/google-ads/api/docs/release-notes. - Type: string (or Expression with resultType string). - :vartype google_ads_api_version: JSON - :ivar support_legacy_data_types: Specifies whether to use the legacy data type mappings, which - maps float, int32 and int64 from Google to string. Do not set this to true unless you want to - keep backward compatibility with legacy driver's data type mappings. Type: boolean (or - Expression with resultType boolean). - :vartype support_legacy_data_types: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_properties": {"key": "typeProperties.connectionProperties", "type": "object"}, - "client_customer_id": {"key": "typeProperties.clientCustomerID", "type": "object"}, - "developer_token": {"key": "typeProperties.developerToken", "type": "SecretBase"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "refresh_token": {"key": "typeProperties.refreshToken", "type": "SecretBase"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "client_secret": {"key": "typeProperties.clientSecret", "type": "SecretBase"}, - "email": {"key": "typeProperties.email", "type": "object"}, - "key_file_path": {"key": "typeProperties.keyFilePath", "type": "object"}, - "trusted_cert_path": {"key": "typeProperties.trustedCertPath", "type": "object"}, - "use_system_trust_store": {"key": "typeProperties.useSystemTrustStore", "type": "object"}, - "private_key": {"key": "typeProperties.privateKey", "type": "SecretBase"}, - "login_customer_id": {"key": "typeProperties.loginCustomerID", "type": "object"}, - "google_ads_api_version": {"key": "typeProperties.googleAdsApiVersion", "type": "object"}, - "support_legacy_data_types": {"key": "typeProperties.supportLegacyDataTypes", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_properties: Optional[JSON] = None, - client_customer_id: Optional[JSON] = None, - developer_token: Optional["_models.SecretBase"] = None, - authentication_type: Optional[Union[str, "_models.GoogleAdWordsAuthenticationType"]] = None, - refresh_token: Optional["_models.SecretBase"] = None, - client_id: Optional[JSON] = None, - client_secret: Optional["_models.SecretBase"] = None, - email: Optional[JSON] = None, - key_file_path: Optional[JSON] = None, - trusted_cert_path: Optional[JSON] = None, - use_system_trust_store: Optional[JSON] = None, - private_key: Optional["_models.SecretBase"] = None, - login_customer_id: Optional[JSON] = None, - google_ads_api_version: Optional[JSON] = None, - support_legacy_data_types: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_properties: (Deprecated) Properties used to connect to GoogleAds. It is - mutually exclusive with any other properties in the linked service. Type: object. - :paramtype connection_properties: JSON - :keyword client_customer_id: The Client customer ID of the AdWords account that you want to - fetch report data for. Type: string (or Expression with resultType string). - :paramtype client_customer_id: JSON - :keyword developer_token: The developer token associated with the manager account that you use - to grant access to the AdWords API. - :paramtype developer_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword authentication_type: The OAuth 2.0 authentication mechanism used for authentication. - ServiceAuthentication can only be used on self-hosted IR. Known values are: - "ServiceAuthentication" and "UserAuthentication". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.GoogleAdWordsAuthenticationType - :keyword refresh_token: The refresh token obtained from Google for authorizing access to - AdWords for UserAuthentication. - :paramtype refresh_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword client_id: The client id of the google application used to acquire the refresh token. - Type: string (or Expression with resultType string). - :paramtype client_id: JSON - :keyword client_secret: The client secret of the google application used to acquire the refresh - token. - :paramtype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :keyword email: The service account email ID that is used for ServiceAuthentication and can - only be used on self-hosted IR. Type: string (or Expression with resultType string). - :paramtype email: JSON - :keyword key_file_path: (Deprecated) The full path to the .p12 key file that is used to - authenticate the service account email address and can only be used on self-hosted IR. Type: - string (or Expression with resultType string). - :paramtype key_file_path: JSON - :keyword trusted_cert_path: (Deprecated) The full path of the .pem file containing trusted CA - certificates for verifying the server when connecting over SSL. This property can only be set - when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the - IR. Type: string (or Expression with resultType string). - :paramtype trusted_cert_path: JSON - :keyword use_system_trust_store: (Deprecated) Specifies whether to use a CA certificate from - the system trust store or from a specified PEM file. The default value is false. Type: boolean - (or Expression with resultType boolean). - :paramtype use_system_trust_store: JSON - :keyword private_key: The private key that is used to authenticate the service account email - address and can only be used on self-hosted IR. - :paramtype private_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword login_customer_id: The customer ID of the Google Ads Manager account through which you - want to fetch report data of specific Customer. Type: string (or Expression with resultType - string). - :paramtype login_customer_id: JSON - :keyword google_ads_api_version: The Google Ads API major version such as v14. The supported - major versions could be found on - https://developers.google.com/google-ads/api/docs/release-notes. Type: string (or Expression - with resultType string). - :paramtype google_ads_api_version: JSON - :keyword support_legacy_data_types: Specifies whether to use the legacy data type mappings, - which maps float, int32 and int64 from Google to string. Do not set this to true unless you - want to keep backward compatibility with legacy driver's data type mappings. Type: boolean (or - Expression with resultType boolean). - :paramtype support_legacy_data_types: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "GoogleAdWords" - self.connection_properties = connection_properties - self.client_customer_id = client_customer_id - self.developer_token = developer_token - self.authentication_type = authentication_type - self.refresh_token = refresh_token - self.client_id = client_id - self.client_secret = client_secret - self.email = email - self.key_file_path = key_file_path - self.trusted_cert_path = trusted_cert_path - self.use_system_trust_store = use_system_trust_store - self.private_key = private_key - self.login_customer_id = login_customer_id - self.google_ads_api_version = google_ads_api_version - self.support_legacy_data_types = support_legacy_data_types - self.encrypted_credential = encrypted_credential - - -class GoogleAdWordsObjectDataset(Dataset): - """Google AdWords service dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "GoogleAdWordsObject" - self.table_name = table_name - - -class GoogleAdWordsSource(TabularSource): - """A copy activity Google AdWords service source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "GoogleAdWordsSource" - self.query = query - - -class GoogleBigQueryLinkedService(LinkedService): - """Google BigQuery service linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar project: The default BigQuery project to query against. Type: string (or Expression with - resultType string). Required. - :vartype project: JSON - :ivar additional_projects: A comma-separated list of public BigQuery projects to access. Type: - string (or Expression with resultType string). - :vartype additional_projects: JSON - :ivar request_google_drive_scope: Whether to request access to Google Drive. Allowing Google - Drive access enables support for federated tables that combine BigQuery data with data from - Google Drive. The default value is false. Type: string (or Expression with resultType string). - :vartype request_google_drive_scope: JSON - :ivar authentication_type: The OAuth 2.0 authentication mechanism used for authentication. - ServiceAuthentication can only be used on self-hosted IR. Required. Known values are: - "ServiceAuthentication" and "UserAuthentication". - :vartype authentication_type: str or - ~azure.mgmt.datafactory.models.GoogleBigQueryAuthenticationType - :ivar refresh_token: The refresh token obtained from Google for authorizing access to BigQuery - for UserAuthentication. - :vartype refresh_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar client_id: The client id of the google application used to acquire the refresh token. - Type: string (or Expression with resultType string). - :vartype client_id: JSON - :ivar client_secret: The client secret of the google application used to acquire the refresh - token. - :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :ivar email: The service account email ID that is used for ServiceAuthentication and can only - be used on self-hosted IR. Type: string (or Expression with resultType string). - :vartype email: JSON - :ivar key_file_path: The full path to the .p12 key file that is used to authenticate the - service account email address and can only be used on self-hosted IR. Type: string (or - Expression with resultType string). - :vartype key_file_path: JSON - :ivar trusted_cert_path: The full path of the .pem file containing trusted CA certificates for - verifying the server when connecting over SSL. This property can only be set when using SSL on - self-hosted IR. The default value is the cacerts.pem file installed with the IR. Type: string - (or Expression with resultType string). - :vartype trusted_cert_path: JSON - :ivar use_system_trust_store: Specifies whether to use a CA certificate from the system trust - store or from a specified PEM file. The default value is false.Type: boolean (or Expression - with resultType boolean). - :vartype use_system_trust_store: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "project": {"required": True}, - "authentication_type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "project": {"key": "typeProperties.project", "type": "object"}, - "additional_projects": {"key": "typeProperties.additionalProjects", "type": "object"}, - "request_google_drive_scope": {"key": "typeProperties.requestGoogleDriveScope", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "refresh_token": {"key": "typeProperties.refreshToken", "type": "SecretBase"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "client_secret": {"key": "typeProperties.clientSecret", "type": "SecretBase"}, - "email": {"key": "typeProperties.email", "type": "object"}, - "key_file_path": {"key": "typeProperties.keyFilePath", "type": "object"}, - "trusted_cert_path": {"key": "typeProperties.trustedCertPath", "type": "object"}, - "use_system_trust_store": {"key": "typeProperties.useSystemTrustStore", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - project: JSON, - authentication_type: Union[str, "_models.GoogleBigQueryAuthenticationType"], - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - additional_projects: Optional[JSON] = None, - request_google_drive_scope: Optional[JSON] = None, - refresh_token: Optional["_models.SecretBase"] = None, - client_id: Optional[JSON] = None, - client_secret: Optional["_models.SecretBase"] = None, - email: Optional[JSON] = None, - key_file_path: Optional[JSON] = None, - trusted_cert_path: Optional[JSON] = None, - use_system_trust_store: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword project: The default BigQuery project to query against. Type: string (or Expression - with resultType string). Required. - :paramtype project: JSON - :keyword additional_projects: A comma-separated list of public BigQuery projects to access. - Type: string (or Expression with resultType string). - :paramtype additional_projects: JSON - :keyword request_google_drive_scope: Whether to request access to Google Drive. Allowing Google - Drive access enables support for federated tables that combine BigQuery data with data from - Google Drive. The default value is false. Type: string (or Expression with resultType string). - :paramtype request_google_drive_scope: JSON - :keyword authentication_type: The OAuth 2.0 authentication mechanism used for authentication. - ServiceAuthentication can only be used on self-hosted IR. Required. Known values are: - "ServiceAuthentication" and "UserAuthentication". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.GoogleBigQueryAuthenticationType - :keyword refresh_token: The refresh token obtained from Google for authorizing access to - BigQuery for UserAuthentication. - :paramtype refresh_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword client_id: The client id of the google application used to acquire the refresh token. - Type: string (or Expression with resultType string). - :paramtype client_id: JSON - :keyword client_secret: The client secret of the google application used to acquire the refresh - token. - :paramtype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :keyword email: The service account email ID that is used for ServiceAuthentication and can - only be used on self-hosted IR. Type: string (or Expression with resultType string). - :paramtype email: JSON - :keyword key_file_path: The full path to the .p12 key file that is used to authenticate the - service account email address and can only be used on self-hosted IR. Type: string (or - Expression with resultType string). - :paramtype key_file_path: JSON - :keyword trusted_cert_path: The full path of the .pem file containing trusted CA certificates - for verifying the server when connecting over SSL. This property can only be set when using SSL - on self-hosted IR. The default value is the cacerts.pem file installed with the IR. Type: - string (or Expression with resultType string). - :paramtype trusted_cert_path: JSON - :keyword use_system_trust_store: Specifies whether to use a CA certificate from the system - trust store or from a specified PEM file. The default value is false.Type: boolean (or - Expression with resultType boolean). - :paramtype use_system_trust_store: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "GoogleBigQuery" - self.project = project - self.additional_projects = additional_projects - self.request_google_drive_scope = request_google_drive_scope - self.authentication_type = authentication_type - self.refresh_token = refresh_token - self.client_id = client_id - self.client_secret = client_secret - self.email = email - self.key_file_path = key_file_path - self.trusted_cert_path = trusted_cert_path - self.use_system_trust_store = use_system_trust_store - self.encrypted_credential = encrypted_credential - - -class GoogleBigQueryObjectDataset(Dataset): - """Google BigQuery service dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property will be retired. Please consider using database + table - properties instead. - :vartype table_name: JSON - :ivar table: The table name of the Google BigQuery. Type: string (or Expression with resultType - string). - :vartype table: JSON - :ivar dataset: The database name of the Google BigQuery. Type: string (or Expression with - resultType string). - :vartype dataset: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - "dataset": {"key": "typeProperties.dataset", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - table: Optional[JSON] = None, - dataset: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property will be retired. Please consider using database + table - properties instead. - :paramtype table_name: JSON - :keyword table: The table name of the Google BigQuery. Type: string (or Expression with - resultType string). - :paramtype table: JSON - :keyword dataset: The database name of the Google BigQuery. Type: string (or Expression with - resultType string). - :paramtype dataset: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "GoogleBigQueryObject" - self.table_name = table_name - self.table = table - self.dataset = dataset - - -class GoogleBigQuerySource(TabularSource): - """A copy activity Google BigQuery service source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "GoogleBigQuerySource" - self.query = query - - -class GoogleBigQueryV2LinkedService(LinkedService): - """Google BigQuery service linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar project_id: The default BigQuery project id to query against. Type: string (or Expression - with resultType string). Required. - :vartype project_id: JSON - :ivar authentication_type: The OAuth 2.0 authentication mechanism used for authentication. - Required. Known values are: "ServiceAuthentication" and "UserAuthentication". - :vartype authentication_type: str or - ~azure.mgmt.datafactory.models.GoogleBigQueryV2AuthenticationType - :ivar client_id: The client id of the google application used to acquire the refresh token. - Type: string (or Expression with resultType string). - :vartype client_id: JSON - :ivar client_secret: The client secret of the google application used to acquire the refresh - token. - :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :ivar refresh_token: The refresh token obtained from Google for authorizing access to BigQuery - for UserAuthentication. - :vartype refresh_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar key_file_content: The content of the .json key file that is used to authenticate the - service account. Type: string (or Expression with resultType string). - :vartype key_file_content: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "project_id": {"required": True}, - "authentication_type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "project_id": {"key": "typeProperties.projectId", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "client_secret": {"key": "typeProperties.clientSecret", "type": "SecretBase"}, - "refresh_token": {"key": "typeProperties.refreshToken", "type": "SecretBase"}, - "key_file_content": {"key": "typeProperties.keyFileContent", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - project_id: JSON, - authentication_type: Union[str, "_models.GoogleBigQueryV2AuthenticationType"], - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - client_id: Optional[JSON] = None, - client_secret: Optional["_models.SecretBase"] = None, - refresh_token: Optional["_models.SecretBase"] = None, - key_file_content: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword project_id: The default BigQuery project id to query against. Type: string (or - Expression with resultType string). Required. - :paramtype project_id: JSON - :keyword authentication_type: The OAuth 2.0 authentication mechanism used for authentication. - Required. Known values are: "ServiceAuthentication" and "UserAuthentication". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.GoogleBigQueryV2AuthenticationType - :keyword client_id: The client id of the google application used to acquire the refresh token. - Type: string (or Expression with resultType string). - :paramtype client_id: JSON - :keyword client_secret: The client secret of the google application used to acquire the refresh - token. - :paramtype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :keyword refresh_token: The refresh token obtained from Google for authorizing access to - BigQuery for UserAuthentication. - :paramtype refresh_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword key_file_content: The content of the .json key file that is used to authenticate the - service account. Type: string (or Expression with resultType string). - :paramtype key_file_content: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "GoogleBigQueryV2" - self.project_id = project_id - self.authentication_type = authentication_type - self.client_id = client_id - self.client_secret = client_secret - self.refresh_token = refresh_token - self.key_file_content = key_file_content - self.encrypted_credential = encrypted_credential - - -class GoogleBigQueryV2ObjectDataset(Dataset): - """Google BigQuery service dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table: The table name of the Google BigQuery. Type: string (or Expression with resultType - string). - :vartype table: JSON - :ivar dataset: The database name of the Google BigQuery. Type: string (or Expression with - resultType string). - :vartype dataset: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table": {"key": "typeProperties.table", "type": "object"}, - "dataset": {"key": "typeProperties.dataset", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table: Optional[JSON] = None, - dataset: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table: The table name of the Google BigQuery. Type: string (or Expression with - resultType string). - :paramtype table: JSON - :keyword dataset: The database name of the Google BigQuery. Type: string (or Expression with - resultType string). - :paramtype dataset: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "GoogleBigQueryV2Object" - self.table = table - self.dataset = dataset - - -class GoogleBigQueryV2Source(TabularSource): - """A copy activity Google BigQuery service source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "GoogleBigQueryV2Source" - self.query = query - - -class GoogleCloudStorageLinkedService(LinkedService): - """Linked service for Google Cloud Storage. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar access_key_id: The access key identifier of the Google Cloud Storage Identity and Access - Management (IAM) user. Type: string (or Expression with resultType string). - :vartype access_key_id: JSON - :ivar secret_access_key: The secret access key of the Google Cloud Storage Identity and Access - Management (IAM) user. - :vartype secret_access_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_url: This value specifies the endpoint to access with the Google Cloud Storage - Connector. This is an optional property; change it only if you want to try a different service - endpoint or want to switch between https and http. Type: string (or Expression with resultType - string). - :vartype service_url: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "access_key_id": {"key": "typeProperties.accessKeyId", "type": "object"}, - "secret_access_key": {"key": "typeProperties.secretAccessKey", "type": "SecretBase"}, - "service_url": {"key": "typeProperties.serviceUrl", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - access_key_id: Optional[JSON] = None, - secret_access_key: Optional["_models.SecretBase"] = None, - service_url: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword access_key_id: The access key identifier of the Google Cloud Storage Identity and - Access Management (IAM) user. Type: string (or Expression with resultType string). - :paramtype access_key_id: JSON - :keyword secret_access_key: The secret access key of the Google Cloud Storage Identity and - Access Management (IAM) user. - :paramtype secret_access_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_url: This value specifies the endpoint to access with the Google Cloud Storage - Connector. This is an optional property; change it only if you want to try a different service - endpoint or want to switch between https and http. Type: string (or Expression with resultType - string). - :paramtype service_url: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "GoogleCloudStorage" - self.access_key_id = access_key_id - self.secret_access_key = secret_access_key - self.service_url = service_url - self.encrypted_credential = encrypted_credential - - -class GoogleCloudStorageLocation(DatasetLocation): - """The location of Google Cloud Storage dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage location. Required. - :vartype type: str - :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :vartype folder_path: JSON - :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType - string). - :vartype file_name: JSON - :ivar bucket_name: Specify the bucketName of Google Cloud Storage. Type: string (or Expression - with resultType string). - :vartype bucket_name: JSON - :ivar version: Specify the version of Google Cloud Storage. Type: string (or Expression with - resultType string). - :vartype version: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "folder_path": {"key": "folderPath", "type": "object"}, - "file_name": {"key": "fileName", "type": "object"}, - "bucket_name": {"key": "bucketName", "type": "object"}, - "version": {"key": "version", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - folder_path: Optional[JSON] = None, - file_name: Optional[JSON] = None, - bucket_name: Optional[JSON] = None, - version: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :paramtype folder_path: JSON - :keyword file_name: Specify the file name of dataset. Type: string (or Expression with - resultType string). - :paramtype file_name: JSON - :keyword bucket_name: Specify the bucketName of Google Cloud Storage. Type: string (or - Expression with resultType string). - :paramtype bucket_name: JSON - :keyword version: Specify the version of Google Cloud Storage. Type: string (or Expression with - resultType string). - :paramtype version: JSON - """ - super().__init__( - additional_properties=additional_properties, folder_path=folder_path, file_name=file_name, **kwargs - ) - self.type: str = "GoogleCloudStorageLocation" - self.bucket_name = bucket_name - self.version = version - - -class GoogleCloudStorageReadSettings(StoreReadSettings): - """Google Cloud Storage read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - :ivar wildcard_folder_path: Google Cloud Storage wildcardFolderPath. Type: string (or - Expression with resultType string). - :vartype wildcard_folder_path: JSON - :ivar wildcard_file_name: Google Cloud Storage wildcardFileName. Type: string (or Expression - with resultType string). - :vartype wildcard_file_name: JSON - :ivar prefix: The prefix filter for the Google Cloud Storage object name. Type: string (or - Expression with resultType string). - :vartype prefix: JSON - :ivar file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :vartype enable_partition_discovery: JSON - :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: - string (or Expression with resultType string). - :vartype partition_root_path: JSON - :ivar delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :vartype delete_files_after_completion: JSON - :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :vartype modified_datetime_start: JSON - :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression - with resultType string). - :vartype modified_datetime_end: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "recursive": {"key": "recursive", "type": "object"}, - "wildcard_folder_path": {"key": "wildcardFolderPath", "type": "object"}, - "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, - "prefix": {"key": "prefix", "type": "object"}, - "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, - "partition_root_path": {"key": "partitionRootPath", "type": "object"}, - "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, - "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, - "modified_datetime_end": {"key": "modifiedDatetimeEnd", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - recursive: Optional[JSON] = None, - wildcard_folder_path: Optional[JSON] = None, - wildcard_file_name: Optional[JSON] = None, - prefix: Optional[JSON] = None, - file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[JSON] = None, - partition_root_path: Optional[JSON] = None, - delete_files_after_completion: Optional[JSON] = None, - modified_datetime_start: Optional[JSON] = None, - modified_datetime_end: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - :keyword wildcard_folder_path: Google Cloud Storage wildcardFolderPath. Type: string (or - Expression with resultType string). - :paramtype wildcard_folder_path: JSON - :keyword wildcard_file_name: Google Cloud Storage wildcardFileName. Type: string (or Expression - with resultType string). - :paramtype wildcard_file_name: JSON - :keyword prefix: The prefix filter for the Google Cloud Storage object name. Type: string (or - Expression with resultType string). - :paramtype prefix: JSON - :keyword file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :paramtype enable_partition_discovery: JSON - :keyword partition_root_path: Specify the root path where partition discovery starts from. - Type: string (or Expression with resultType string). - :paramtype partition_root_path: JSON - :keyword delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :paramtype delete_files_after_completion: JSON - :keyword modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_start: JSON - :keyword modified_datetime_end: The end of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_end: JSON - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "GoogleCloudStorageReadSettings" - self.recursive = recursive - self.wildcard_folder_path = wildcard_folder_path - self.wildcard_file_name = wildcard_file_name - self.prefix = prefix - self.file_list_path = file_list_path - self.enable_partition_discovery = enable_partition_discovery - self.partition_root_path = partition_root_path - self.delete_files_after_completion = delete_files_after_completion - self.modified_datetime_start = modified_datetime_start - self.modified_datetime_end = modified_datetime_end - - -class GoogleSheetsLinkedService(LinkedService): - """Linked service for GoogleSheets. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar api_token: The api token for the GoogleSheets source. Required. - :vartype api_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "api_token": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "api_token": {"key": "typeProperties.apiToken", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - api_token: "_models.SecretBase", - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword api_token: The api token for the GoogleSheets source. Required. - :paramtype api_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "GoogleSheets" - self.api_token = api_token - self.encrypted_credential = encrypted_credential - - -class GreenplumLinkedService(LinkedService): - """Greenplum Database linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: An ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar pwd: The Azure key vault secret reference of password in connection string. - :vartype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar authentication_type: The authentication type to use. Type: string. Only used for V2. - "Basic" - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.GreenplumAuthenticationType - :ivar host: Host name for connection. Type: string. Only used for V2. - :vartype host: JSON - :ivar port: The port for the connection. Type: integer. Only used for V2. - :vartype port: JSON - :ivar username: Username for authentication. Type: string. Only used for V2. - :vartype username: JSON - :ivar database: Database name for connection. Type: string. Only used for V2. - :vartype database: JSON - :ivar ssl_mode: SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: - require, 4: verify-ca, 5: verify-full. Type: integer. Only used for V2. - :vartype ssl_mode: JSON - :ivar connection_timeout: The time to wait (in seconds) while trying to establish a connection - before terminating the attempt and generating an error. Type: integer. Only used for V2. - :vartype connection_timeout: JSON - :ivar command_timeout: The time to wait (in seconds) while trying to execute a command before - terminating the attempt and generating an error. Set to zero for infinity. Type: integer. Only - used for V2. - :vartype command_timeout: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "pwd": {"key": "typeProperties.pwd", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "ssl_mode": {"key": "typeProperties.sslMode", "type": "object"}, - "connection_timeout": {"key": "typeProperties.connectionTimeout", "type": "object"}, - "command_timeout": {"key": "typeProperties.commandTimeout", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_string: Optional[JSON] = None, - pwd: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[str] = None, - authentication_type: Optional[Union[str, "_models.GreenplumAuthenticationType"]] = None, - host: Optional[JSON] = None, - port: Optional[JSON] = None, - username: Optional[JSON] = None, - database: Optional[JSON] = None, - ssl_mode: Optional[JSON] = None, - connection_timeout: Optional[JSON] = None, - command_timeout: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: An ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword pwd: The Azure key vault secret reference of password in connection string. - :paramtype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword authentication_type: The authentication type to use. Type: string. Only used for V2. - "Basic" - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.GreenplumAuthenticationType - :keyword host: Host name for connection. Type: string. Only used for V2. - :paramtype host: JSON - :keyword port: The port for the connection. Type: integer. Only used for V2. - :paramtype port: JSON - :keyword username: Username for authentication. Type: string. Only used for V2. - :paramtype username: JSON - :keyword database: Database name for connection. Type: string. Only used for V2. - :paramtype database: JSON - :keyword ssl_mode: SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: - require, 4: verify-ca, 5: verify-full. Type: integer. Only used for V2. - :paramtype ssl_mode: JSON - :keyword connection_timeout: The time to wait (in seconds) while trying to establish a - connection before terminating the attempt and generating an error. Type: integer. Only used for - V2. - :paramtype connection_timeout: JSON - :keyword command_timeout: The time to wait (in seconds) while trying to execute a command - before terminating the attempt and generating an error. Set to zero for infinity. Type: - integer. Only used for V2. - :paramtype command_timeout: JSON - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Greenplum" - self.connection_string = connection_string - self.pwd = pwd - self.encrypted_credential = encrypted_credential - self.authentication_type = authentication_type - self.host = host - self.port = port - self.username = username - self.database = database - self.ssl_mode = ssl_mode - self.connection_timeout = connection_timeout - self.command_timeout = command_timeout - - -class GreenplumSource(TabularSource): - """A copy activity Greenplum Database source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "GreenplumSource" - self.query = query - - -class GreenplumTableDataset(Dataset): - """Greenplum Database dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property will be retired. Please consider using schema + table - properties instead. - :vartype table_name: JSON - :ivar table: The table name of Greenplum. Type: string (or Expression with resultType string). - :vartype table: JSON - :ivar schema_type_properties_schema: The schema name of Greenplum. Type: string (or Expression - with resultType string). - :vartype schema_type_properties_schema: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - table: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property will be retired. Please consider using schema + table - properties instead. - :paramtype table_name: JSON - :keyword table: The table name of Greenplum. Type: string (or Expression with resultType - string). - :paramtype table: JSON - :keyword schema_type_properties_schema: The schema name of Greenplum. Type: string (or - Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "GreenplumTable" - self.table_name = table_name - self.table = table - self.schema_type_properties_schema = schema_type_properties_schema - - -class HBaseLinkedService(LinkedService): - """HBase server linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar host: The IP address or host name of the HBase server. (i.e. 192.168.222.160). Required. - :vartype host: JSON - :ivar port: The TCP port that the HBase instance uses to listen for client connections. The - default value is 9090. - :vartype port: JSON - :ivar http_path: The partial URL corresponding to the HBase server. (i.e. - /gateway/sandbox/hbase/version). - :vartype http_path: JSON - :ivar authentication_type: The authentication mechanism to use to connect to the HBase server. - Required. Known values are: "Anonymous" and "Basic". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.HBaseAuthenticationType - :ivar username: The user name used to connect to the HBase instance. - :vartype username: JSON - :ivar password: The password corresponding to the user name. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar enable_ssl: Specifies whether the connections to the server are encrypted using SSL. The - default value is false. - :vartype enable_ssl: JSON - :ivar trusted_cert_path: The full path of the .pem file containing trusted CA certificates for - verifying the server when connecting over SSL. This property can only be set when using SSL on - self-hosted IR. The default value is the cacerts.pem file installed with the IR. - :vartype trusted_cert_path: JSON - :ivar allow_host_name_cn_mismatch: Specifies whether to require a CA-issued SSL certificate - name to match the host name of the server when connecting over SSL. The default value is false. - :vartype allow_host_name_cn_mismatch: JSON - :ivar allow_self_signed_server_cert: Specifies whether to allow self-signed certificates from - the server. The default value is false. - :vartype allow_self_signed_server_cert: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "host": {"required": True}, - "authentication_type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "http_path": {"key": "typeProperties.httpPath", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "enable_ssl": {"key": "typeProperties.enableSsl", "type": "object"}, - "trusted_cert_path": {"key": "typeProperties.trustedCertPath", "type": "object"}, - "allow_host_name_cn_mismatch": {"key": "typeProperties.allowHostNameCNMismatch", "type": "object"}, - "allow_self_signed_server_cert": {"key": "typeProperties.allowSelfSignedServerCert", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - host: JSON, - authentication_type: Union[str, "_models.HBaseAuthenticationType"], - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - port: Optional[JSON] = None, - http_path: Optional[JSON] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - enable_ssl: Optional[JSON] = None, - trusted_cert_path: Optional[JSON] = None, - allow_host_name_cn_mismatch: Optional[JSON] = None, - allow_self_signed_server_cert: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword host: The IP address or host name of the HBase server. (i.e. 192.168.222.160). - Required. - :paramtype host: JSON - :keyword port: The TCP port that the HBase instance uses to listen for client connections. The - default value is 9090. - :paramtype port: JSON - :keyword http_path: The partial URL corresponding to the HBase server. (i.e. - /gateway/sandbox/hbase/version). - :paramtype http_path: JSON - :keyword authentication_type: The authentication mechanism to use to connect to the HBase - server. Required. Known values are: "Anonymous" and "Basic". - :paramtype authentication_type: str or ~azure.mgmt.datafactory.models.HBaseAuthenticationType - :keyword username: The user name used to connect to the HBase instance. - :paramtype username: JSON - :keyword password: The password corresponding to the user name. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword enable_ssl: Specifies whether the connections to the server are encrypted using SSL. - The default value is false. - :paramtype enable_ssl: JSON - :keyword trusted_cert_path: The full path of the .pem file containing trusted CA certificates - for verifying the server when connecting over SSL. This property can only be set when using SSL - on self-hosted IR. The default value is the cacerts.pem file installed with the IR. - :paramtype trusted_cert_path: JSON - :keyword allow_host_name_cn_mismatch: Specifies whether to require a CA-issued SSL certificate - name to match the host name of the server when connecting over SSL. The default value is false. - :paramtype allow_host_name_cn_mismatch: JSON - :keyword allow_self_signed_server_cert: Specifies whether to allow self-signed certificates - from the server. The default value is false. - :paramtype allow_self_signed_server_cert: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "HBase" - self.host = host - self.port = port - self.http_path = http_path - self.authentication_type = authentication_type - self.username = username - self.password = password - self.enable_ssl = enable_ssl - self.trusted_cert_path = trusted_cert_path - self.allow_host_name_cn_mismatch = allow_host_name_cn_mismatch - self.allow_self_signed_server_cert = allow_self_signed_server_cert - self.encrypted_credential = encrypted_credential - - -class HBaseObjectDataset(Dataset): - """HBase server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "HBaseObject" - self.table_name = table_name - - -class HBaseSource(TabularSource): - """A copy activity HBase server source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "HBaseSource" - self.query = query - - -class HdfsLinkedService(LinkedService): - """Hadoop Distributed File System (HDFS) linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar url: The URL of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . - Type: string (or Expression with resultType string). Required. - :vartype url: JSON - :ivar authentication_type: Type of authentication used to connect to the HDFS. Possible values - are: Anonymous and Windows. Type: string (or Expression with resultType string). - :vartype authentication_type: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar user_name: User name for Windows authentication. Type: string (or Expression with - resultType string). - :vartype user_name: JSON - :ivar password: Password for Windows authentication. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - """ - - _validation = { - "type": {"required": True}, - "url": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "url": {"key": "typeProperties.url", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - } - - def __init__( - self, - *, - url: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - authentication_type: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword url: The URL of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . - Type: string (or Expression with resultType string). Required. - :paramtype url: JSON - :keyword authentication_type: Type of authentication used to connect to the HDFS. Possible - values are: Anonymous and Windows. Type: string (or Expression with resultType string). - :paramtype authentication_type: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword user_name: User name for Windows authentication. Type: string (or Expression with - resultType string). - :paramtype user_name: JSON - :keyword password: Password for Windows authentication. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Hdfs" - self.url = url - self.authentication_type = authentication_type - self.encrypted_credential = encrypted_credential - self.user_name = user_name - self.password = password - - -class HdfsLocation(DatasetLocation): - """The location of HDFS. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage location. Required. - :vartype type: str - :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :vartype folder_path: JSON - :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType - string). - :vartype file_name: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "folder_path": {"key": "folderPath", "type": "object"}, - "file_name": {"key": "fileName", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - folder_path: Optional[JSON] = None, - file_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :paramtype folder_path: JSON - :keyword file_name: Specify the file name of dataset. Type: string (or Expression with - resultType string). - :paramtype file_name: JSON - """ - super().__init__( - additional_properties=additional_properties, folder_path=folder_path, file_name=file_name, **kwargs - ) - self.type: str = "HdfsLocation" - - -class HdfsReadSettings(StoreReadSettings): - """HDFS read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - :ivar wildcard_folder_path: HDFS wildcardFolderPath. Type: string (or Expression with - resultType string). - :vartype wildcard_folder_path: JSON - :ivar wildcard_file_name: HDFS wildcardFileName. Type: string (or Expression with resultType - string). - :vartype wildcard_file_name: JSON - :ivar file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :vartype enable_partition_discovery: JSON - :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: - string (or Expression with resultType string). - :vartype partition_root_path: JSON - :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :vartype modified_datetime_start: JSON - :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression - with resultType string). - :vartype modified_datetime_end: JSON - :ivar distcp_settings: Specifies Distcp-related settings. - :vartype distcp_settings: ~azure.mgmt.datafactory.models.DistcpSettings - :ivar delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :vartype delete_files_after_completion: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "recursive": {"key": "recursive", "type": "object"}, - "wildcard_folder_path": {"key": "wildcardFolderPath", "type": "object"}, - "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, - "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, - "partition_root_path": {"key": "partitionRootPath", "type": "object"}, - "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, - "modified_datetime_end": {"key": "modifiedDatetimeEnd", "type": "object"}, - "distcp_settings": {"key": "distcpSettings", "type": "DistcpSettings"}, - "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - recursive: Optional[JSON] = None, - wildcard_folder_path: Optional[JSON] = None, - wildcard_file_name: Optional[JSON] = None, - file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[JSON] = None, - partition_root_path: Optional[JSON] = None, - modified_datetime_start: Optional[JSON] = None, - modified_datetime_end: Optional[JSON] = None, - distcp_settings: Optional["_models.DistcpSettings"] = None, - delete_files_after_completion: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - :keyword wildcard_folder_path: HDFS wildcardFolderPath. Type: string (or Expression with - resultType string). - :paramtype wildcard_folder_path: JSON - :keyword wildcard_file_name: HDFS wildcardFileName. Type: string (or Expression with resultType - string). - :paramtype wildcard_file_name: JSON - :keyword file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :paramtype enable_partition_discovery: JSON - :keyword partition_root_path: Specify the root path where partition discovery starts from. - Type: string (or Expression with resultType string). - :paramtype partition_root_path: JSON - :keyword modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_start: JSON - :keyword modified_datetime_end: The end of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_end: JSON - :keyword distcp_settings: Specifies Distcp-related settings. - :paramtype distcp_settings: ~azure.mgmt.datafactory.models.DistcpSettings - :keyword delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :paramtype delete_files_after_completion: JSON - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "HdfsReadSettings" - self.recursive = recursive - self.wildcard_folder_path = wildcard_folder_path - self.wildcard_file_name = wildcard_file_name - self.file_list_path = file_list_path - self.enable_partition_discovery = enable_partition_discovery - self.partition_root_path = partition_root_path - self.modified_datetime_start = modified_datetime_start - self.modified_datetime_end = modified_datetime_end - self.distcp_settings = distcp_settings - self.delete_files_after_completion = delete_files_after_completion - - -class HdfsSource(CopySource): - """A copy activity HDFS source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - :ivar distcp_settings: Specifies Distcp-related settings. - :vartype distcp_settings: ~azure.mgmt.datafactory.models.DistcpSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "recursive": {"key": "recursive", "type": "object"}, - "distcp_settings": {"key": "distcpSettings", "type": "DistcpSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - recursive: Optional[JSON] = None, - distcp_settings: Optional["_models.DistcpSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - :keyword distcp_settings: Specifies Distcp-related settings. - :paramtype distcp_settings: ~azure.mgmt.datafactory.models.DistcpSettings - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "HdfsSource" - self.recursive = recursive - self.distcp_settings = distcp_settings - - -class HDInsightHiveActivity(ExecutionActivity): - """HDInsight Hive activity type. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar storage_linked_services: Storage linked service references. - :vartype storage_linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceReference] - :ivar arguments: User specified arguments to HDInsightActivity. - :vartype arguments: list[JSON] - :ivar get_debug_info: Debug info option. Known values are: "None", "Always", and "Failure". - :vartype get_debug_info: str or ~azure.mgmt.datafactory.models.HDInsightActivityDebugInfoOption - :ivar script_path: Script path. Type: string (or Expression with resultType string). - :vartype script_path: JSON - :ivar script_linked_service: Script linked service reference. - :vartype script_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar defines: Allows user to specify defines for Hive job request. - :vartype defines: dict[str, JSON] - :ivar variables: User specified arguments under hivevar namespace. - :vartype variables: dict[str, JSON] - :ivar query_timeout: Query timeout value (in minutes). Effective when the HDInsight cluster is - with ESP (Enterprise Security Package). - :vartype query_timeout: int - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "storage_linked_services": {"key": "typeProperties.storageLinkedServices", "type": "[LinkedServiceReference]"}, - "arguments": {"key": "typeProperties.arguments", "type": "[object]"}, - "get_debug_info": {"key": "typeProperties.getDebugInfo", "type": "str"}, - "script_path": {"key": "typeProperties.scriptPath", "type": "object"}, - "script_linked_service": {"key": "typeProperties.scriptLinkedService", "type": "LinkedServiceReference"}, - "defines": {"key": "typeProperties.defines", "type": "{object}"}, - "variables": {"key": "typeProperties.variables", "type": "{object}"}, - "query_timeout": {"key": "typeProperties.queryTimeout", "type": "int"}, - } - - def __init__( - self, - *, - name: str, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - storage_linked_services: Optional[list["_models.LinkedServiceReference"]] = None, - arguments: Optional[list[JSON]] = None, - get_debug_info: Optional[Union[str, "_models.HDInsightActivityDebugInfoOption"]] = None, - script_path: Optional[JSON] = None, - script_linked_service: Optional["_models.LinkedServiceReference"] = None, - defines: Optional[dict[str, JSON]] = None, - variables: Optional[dict[str, JSON]] = None, - query_timeout: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword storage_linked_services: Storage linked service references. - :paramtype storage_linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceReference] - :keyword arguments: User specified arguments to HDInsightActivity. - :paramtype arguments: list[JSON] - :keyword get_debug_info: Debug info option. Known values are: "None", "Always", and "Failure". - :paramtype get_debug_info: str or - ~azure.mgmt.datafactory.models.HDInsightActivityDebugInfoOption - :keyword script_path: Script path. Type: string (or Expression with resultType string). - :paramtype script_path: JSON - :keyword script_linked_service: Script linked service reference. - :paramtype script_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword defines: Allows user to specify defines for Hive job request. - :paramtype defines: dict[str, JSON] - :keyword variables: User specified arguments under hivevar namespace. - :paramtype variables: dict[str, JSON] - :keyword query_timeout: Query timeout value (in minutes). Effective when the HDInsight cluster - is with ESP (Enterprise Security Package). - :paramtype query_timeout: int - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "HDInsightHive" - self.storage_linked_services = storage_linked_services - self.arguments = arguments - self.get_debug_info = get_debug_info - self.script_path = script_path - self.script_linked_service = script_linked_service - self.defines = defines - self.variables = variables - self.query_timeout = query_timeout - - -class HDInsightLinkedService(LinkedService): - """HDInsight linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar cluster_uri: HDInsight cluster URI. Type: string (or Expression with resultType string). - Required. - :vartype cluster_uri: JSON - :ivar cluster_auth_type: HDInsight cluster authentication type. Known values are: "BasicAuth", - "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". - :vartype cluster_auth_type: str or - ~azure.mgmt.datafactory.models.HDInsightClusterAuthenticationType - :ivar user_name: HDInsight cluster user name. Type: string (or Expression with resultType - string). - :vartype user_name: JSON - :ivar password: HDInsight cluster password. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar linked_service_name: The Azure Storage linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar hcatalog_linked_service_name: A reference to the Azure SQL linked service that points to - the HCatalog database. - :vartype hcatalog_linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar is_esp_enabled: Specify if the HDInsight is created with ESP (Enterprise Security - Package). Type: Boolean. - :vartype is_esp_enabled: JSON - :ivar file_system: Specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. - Type: string (or Expression with resultType string). - :vartype file_system: JSON - :ivar credential: The credential reference containing MI authentication information for the - HDInsight cluster. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "type": {"required": True}, - "cluster_uri": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "cluster_uri": {"key": "typeProperties.clusterUri", "type": "object"}, - "cluster_auth_type": {"key": "typeProperties.clusterAuthType", "type": "str"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "linked_service_name": {"key": "typeProperties.linkedServiceName", "type": "LinkedServiceReference"}, - "hcatalog_linked_service_name": { - "key": "typeProperties.hcatalogLinkedServiceName", - "type": "LinkedServiceReference", - }, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "is_esp_enabled": {"key": "typeProperties.isEspEnabled", "type": "object"}, - "file_system": {"key": "typeProperties.fileSystem", "type": "object"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - } - - def __init__( - self, - *, - cluster_uri: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - cluster_auth_type: Optional[Union[str, "_models.HDInsightClusterAuthenticationType"]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - hcatalog_linked_service_name: Optional["_models.LinkedServiceReference"] = None, - encrypted_credential: Optional[str] = None, - is_esp_enabled: Optional[JSON] = None, - file_system: Optional[JSON] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword cluster_uri: HDInsight cluster URI. Type: string (or Expression with resultType - string). Required. - :paramtype cluster_uri: JSON - :keyword cluster_auth_type: HDInsight cluster authentication type. Known values are: - "BasicAuth", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". - :paramtype cluster_auth_type: str or - ~azure.mgmt.datafactory.models.HDInsightClusterAuthenticationType - :keyword user_name: HDInsight cluster user name. Type: string (or Expression with resultType - string). - :paramtype user_name: JSON - :keyword password: HDInsight cluster password. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword linked_service_name: The Azure Storage linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword hcatalog_linked_service_name: A reference to the Azure SQL linked service that points - to the HCatalog database. - :paramtype hcatalog_linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword is_esp_enabled: Specify if the HDInsight is created with ESP (Enterprise Security - Package). Type: Boolean. - :paramtype is_esp_enabled: JSON - :keyword file_system: Specify the FileSystem if the main storage for the HDInsight is ADLS - Gen2. Type: string (or Expression with resultType string). - :paramtype file_system: JSON - :keyword credential: The credential reference containing MI authentication information for the - HDInsight cluster. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "HDInsight" - self.cluster_uri = cluster_uri - self.cluster_auth_type = cluster_auth_type - self.user_name = user_name - self.password = password - self.linked_service_name = linked_service_name - self.hcatalog_linked_service_name = hcatalog_linked_service_name - self.encrypted_credential = encrypted_credential - self.is_esp_enabled = is_esp_enabled - self.file_system = file_system - self.credential = credential - - -class HDInsightMapReduceActivity(ExecutionActivity): - """HDInsight MapReduce activity type. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar storage_linked_services: Storage linked service references. - :vartype storage_linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceReference] - :ivar arguments: User specified arguments to HDInsightActivity. - :vartype arguments: list[JSON] - :ivar get_debug_info: Debug info option. Known values are: "None", "Always", and "Failure". - :vartype get_debug_info: str or ~azure.mgmt.datafactory.models.HDInsightActivityDebugInfoOption - :ivar class_name: Class name. Type: string (or Expression with resultType string). Required. - :vartype class_name: JSON - :ivar jar_file_path: Jar path. Type: string (or Expression with resultType string). Required. - :vartype jar_file_path: JSON - :ivar jar_linked_service: Jar linked service reference. - :vartype jar_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar jar_libs: Jar libs. - :vartype jar_libs: list[JSON] - :ivar defines: Allows user to specify defines for the MapReduce job request. - :vartype defines: dict[str, JSON] - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "class_name": {"required": True}, - "jar_file_path": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "storage_linked_services": {"key": "typeProperties.storageLinkedServices", "type": "[LinkedServiceReference]"}, - "arguments": {"key": "typeProperties.arguments", "type": "[object]"}, - "get_debug_info": {"key": "typeProperties.getDebugInfo", "type": "str"}, - "class_name": {"key": "typeProperties.className", "type": "object"}, - "jar_file_path": {"key": "typeProperties.jarFilePath", "type": "object"}, - "jar_linked_service": {"key": "typeProperties.jarLinkedService", "type": "LinkedServiceReference"}, - "jar_libs": {"key": "typeProperties.jarLibs", "type": "[object]"}, - "defines": {"key": "typeProperties.defines", "type": "{object}"}, - } - - def __init__( - self, - *, - name: str, - class_name: JSON, - jar_file_path: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - storage_linked_services: Optional[list["_models.LinkedServiceReference"]] = None, - arguments: Optional[list[JSON]] = None, - get_debug_info: Optional[Union[str, "_models.HDInsightActivityDebugInfoOption"]] = None, - jar_linked_service: Optional["_models.LinkedServiceReference"] = None, - jar_libs: Optional[list[JSON]] = None, - defines: Optional[dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword storage_linked_services: Storage linked service references. - :paramtype storage_linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceReference] - :keyword arguments: User specified arguments to HDInsightActivity. - :paramtype arguments: list[JSON] - :keyword get_debug_info: Debug info option. Known values are: "None", "Always", and "Failure". - :paramtype get_debug_info: str or - ~azure.mgmt.datafactory.models.HDInsightActivityDebugInfoOption - :keyword class_name: Class name. Type: string (or Expression with resultType string). Required. - :paramtype class_name: JSON - :keyword jar_file_path: Jar path. Type: string (or Expression with resultType string). - Required. - :paramtype jar_file_path: JSON - :keyword jar_linked_service: Jar linked service reference. - :paramtype jar_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword jar_libs: Jar libs. - :paramtype jar_libs: list[JSON] - :keyword defines: Allows user to specify defines for the MapReduce job request. - :paramtype defines: dict[str, JSON] - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "HDInsightMapReduce" - self.storage_linked_services = storage_linked_services - self.arguments = arguments - self.get_debug_info = get_debug_info - self.class_name = class_name - self.jar_file_path = jar_file_path - self.jar_linked_service = jar_linked_service - self.jar_libs = jar_libs - self.defines = defines - - -class HDInsightOnDemandLinkedService(LinkedService): - """HDInsight ondemand linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar cluster_size: Number of worker/data nodes in the cluster. Suggestion value: 4. Type: int - (or Expression with resultType int). Required. - :vartype cluster_size: JSON - :ivar time_to_live: The allowed idle time for the on-demand HDInsight cluster. Specifies how - long the on-demand HDInsight cluster stays alive after completion of an activity run if there - are no other active jobs in the cluster. The minimum value is 5 mins. Type: string (or - Expression with resultType string). Required. - :vartype time_to_live: JSON - :ivar version_type_properties_version: Version of the HDInsight cluster.  Type: string (or - Expression with resultType string). Required. - :vartype version_type_properties_version: JSON - :ivar linked_service_name: Azure Storage linked service to be used by the on-demand cluster for - storing and processing data. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar host_subscription_id: The customer’s subscription to host the cluster. Type: string (or - Expression with resultType string). Required. - :vartype host_subscription_id: JSON - :ivar service_principal_id: The service principal id for the hostSubscriptionId. Type: string - (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The key for the service principal id. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: The Tenant id/name to which the service principal belongs. Type: string (or - Expression with resultType string). Required. - :vartype tenant: JSON - :ivar cluster_resource_group: The resource group where the cluster belongs. Type: string (or - Expression with resultType string). Required. - :vartype cluster_resource_group: JSON - :ivar cluster_resource_group_auth_type: HDInsight On-demand cluster resource group - authentication type. Known values are: "ServicePrincipalKey", "SystemAssignedManagedIdentity", - and "UserAssignedManagedIdentity". - :vartype cluster_resource_group_auth_type: str or - ~azure.mgmt.datafactory.models.HDInsightOndemandClusterResourceGroupAuthenticationType - :ivar cluster_name_prefix: The prefix of cluster name, postfix will be distinct with timestamp. - Type: string (or Expression with resultType string). - :vartype cluster_name_prefix: JSON - :ivar cluster_user_name: The username to access the cluster. Type: string (or Expression with - resultType string). - :vartype cluster_user_name: JSON - :ivar cluster_password: The password to access the cluster. - :vartype cluster_password: ~azure.mgmt.datafactory.models.SecretBase - :ivar cluster_ssh_user_name: The username to SSH remotely connect to cluster’s node (for - Linux). Type: string (or Expression with resultType string). - :vartype cluster_ssh_user_name: JSON - :ivar cluster_ssh_password: The password to SSH remotely connect cluster’s node (for Linux). - :vartype cluster_ssh_password: ~azure.mgmt.datafactory.models.SecretBase - :ivar additional_linked_service_names: Specifies additional storage accounts for the HDInsight - linked service so that the Data Factory service can register them on your behalf. - :vartype additional_linked_service_names: - list[~azure.mgmt.datafactory.models.LinkedServiceReference] - :ivar hcatalog_linked_service_name: The name of Azure SQL linked service that point to the - HCatalog database. The on-demand HDInsight cluster is created by using the Azure SQL database - as the metastore. - :vartype hcatalog_linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar cluster_type: The cluster type. Type: string (or Expression with resultType string). - :vartype cluster_type: JSON - :ivar spark_version: The version of spark if the cluster type is 'spark'. Type: string (or - Expression with resultType string). - :vartype spark_version: JSON - :ivar core_configuration: Specifies the core configuration parameters (as in core-site.xml) for - the HDInsight cluster to be created. - :vartype core_configuration: JSON - :ivar h_base_configuration: Specifies the HBase configuration parameters (hbase-site.xml) for - the HDInsight cluster. - :vartype h_base_configuration: JSON - :ivar hdfs_configuration: Specifies the HDFS configuration parameters (hdfs-site.xml) for the - HDInsight cluster. - :vartype hdfs_configuration: JSON - :ivar hive_configuration: Specifies the hive configuration parameters (hive-site.xml) for the - HDInsight cluster. - :vartype hive_configuration: JSON - :ivar map_reduce_configuration: Specifies the MapReduce configuration parameters - (mapred-site.xml) for the HDInsight cluster. - :vartype map_reduce_configuration: JSON - :ivar oozie_configuration: Specifies the Oozie configuration parameters (oozie-site.xml) for - the HDInsight cluster. - :vartype oozie_configuration: JSON - :ivar storm_configuration: Specifies the Storm configuration parameters (storm-site.xml) for - the HDInsight cluster. - :vartype storm_configuration: JSON - :ivar yarn_configuration: Specifies the Yarn configuration parameters (yarn-site.xml) for the - HDInsight cluster. - :vartype yarn_configuration: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar head_node_size: Specifies the size of the head node for the HDInsight cluster. - :vartype head_node_size: JSON - :ivar data_node_size: Specifies the size of the data node for the HDInsight cluster. - :vartype data_node_size: JSON - :ivar zookeeper_node_size: Specifies the size of the Zoo Keeper node for the HDInsight cluster. - :vartype zookeeper_node_size: JSON - :ivar script_actions: Custom script actions to run on HDI ondemand cluster once it's up. Please - refer to - https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. - :vartype script_actions: list[~azure.mgmt.datafactory.models.ScriptAction] - :ivar virtual_network_id: The ARM resource ID for the vNet to which the cluster should be - joined after creation. Type: string (or Expression with resultType string). - :vartype virtual_network_id: JSON - :ivar subnet_name: The ARM resource ID for the subnet in the vNet. If virtualNetworkId was - specified, then this property is required. Type: string (or Expression with resultType string). - :vartype subnet_name: JSON - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "type": {"required": True}, - "cluster_size": {"required": True}, - "time_to_live": {"required": True}, - "version_type_properties_version": {"required": True}, - "linked_service_name": {"required": True}, - "host_subscription_id": {"required": True}, - "tenant": {"required": True}, - "cluster_resource_group": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "cluster_size": {"key": "typeProperties.clusterSize", "type": "object"}, - "time_to_live": {"key": "typeProperties.timeToLive", "type": "object"}, - "version_type_properties_version": {"key": "typeProperties.version", "type": "object"}, - "linked_service_name": {"key": "typeProperties.linkedServiceName", "type": "LinkedServiceReference"}, - "host_subscription_id": {"key": "typeProperties.hostSubscriptionId", "type": "object"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "cluster_resource_group": {"key": "typeProperties.clusterResourceGroup", "type": "object"}, - "cluster_resource_group_auth_type": {"key": "typeProperties.clusterResourceGroupAuthType", "type": "str"}, - "cluster_name_prefix": {"key": "typeProperties.clusterNamePrefix", "type": "object"}, - "cluster_user_name": {"key": "typeProperties.clusterUserName", "type": "object"}, - "cluster_password": {"key": "typeProperties.clusterPassword", "type": "SecretBase"}, - "cluster_ssh_user_name": {"key": "typeProperties.clusterSshUserName", "type": "object"}, - "cluster_ssh_password": {"key": "typeProperties.clusterSshPassword", "type": "SecretBase"}, - "additional_linked_service_names": { - "key": "typeProperties.additionalLinkedServiceNames", - "type": "[LinkedServiceReference]", - }, - "hcatalog_linked_service_name": { - "key": "typeProperties.hcatalogLinkedServiceName", - "type": "LinkedServiceReference", - }, - "cluster_type": {"key": "typeProperties.clusterType", "type": "object"}, - "spark_version": {"key": "typeProperties.sparkVersion", "type": "object"}, - "core_configuration": {"key": "typeProperties.coreConfiguration", "type": "object"}, - "h_base_configuration": {"key": "typeProperties.hBaseConfiguration", "type": "object"}, - "hdfs_configuration": {"key": "typeProperties.hdfsConfiguration", "type": "object"}, - "hive_configuration": {"key": "typeProperties.hiveConfiguration", "type": "object"}, - "map_reduce_configuration": {"key": "typeProperties.mapReduceConfiguration", "type": "object"}, - "oozie_configuration": {"key": "typeProperties.oozieConfiguration", "type": "object"}, - "storm_configuration": {"key": "typeProperties.stormConfiguration", "type": "object"}, - "yarn_configuration": {"key": "typeProperties.yarnConfiguration", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "head_node_size": {"key": "typeProperties.headNodeSize", "type": "object"}, - "data_node_size": {"key": "typeProperties.dataNodeSize", "type": "object"}, - "zookeeper_node_size": {"key": "typeProperties.zookeeperNodeSize", "type": "object"}, - "script_actions": {"key": "typeProperties.scriptActions", "type": "[ScriptAction]"}, - "virtual_network_id": {"key": "typeProperties.virtualNetworkId", "type": "object"}, - "subnet_name": {"key": "typeProperties.subnetName", "type": "object"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - cluster_size: JSON, - time_to_live: JSON, - version_type_properties_version: JSON, - linked_service_name: "_models.LinkedServiceReference", - host_subscription_id: JSON, - tenant: JSON, - cluster_resource_group: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - cluster_resource_group_auth_type: Optional[ - Union[str, "_models.HDInsightOndemandClusterResourceGroupAuthenticationType"] - ] = None, - cluster_name_prefix: Optional[JSON] = None, - cluster_user_name: Optional[JSON] = None, - cluster_password: Optional["_models.SecretBase"] = None, - cluster_ssh_user_name: Optional[JSON] = None, - cluster_ssh_password: Optional["_models.SecretBase"] = None, - additional_linked_service_names: Optional[list["_models.LinkedServiceReference"]] = None, - hcatalog_linked_service_name: Optional["_models.LinkedServiceReference"] = None, - cluster_type: Optional[JSON] = None, - spark_version: Optional[JSON] = None, - core_configuration: Optional[JSON] = None, - h_base_configuration: Optional[JSON] = None, - hdfs_configuration: Optional[JSON] = None, - hive_configuration: Optional[JSON] = None, - map_reduce_configuration: Optional[JSON] = None, - oozie_configuration: Optional[JSON] = None, - storm_configuration: Optional[JSON] = None, - yarn_configuration: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - head_node_size: Optional[JSON] = None, - data_node_size: Optional[JSON] = None, - zookeeper_node_size: Optional[JSON] = None, - script_actions: Optional[list["_models.ScriptAction"]] = None, - virtual_network_id: Optional[JSON] = None, - subnet_name: Optional[JSON] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword cluster_size: Number of worker/data nodes in the cluster. Suggestion value: 4. Type: - int (or Expression with resultType int). Required. - :paramtype cluster_size: JSON - :keyword time_to_live: The allowed idle time for the on-demand HDInsight cluster. Specifies how - long the on-demand HDInsight cluster stays alive after completion of an activity run if there - are no other active jobs in the cluster. The minimum value is 5 mins. Type: string (or - Expression with resultType string). Required. - :paramtype time_to_live: JSON - :keyword version_type_properties_version: Version of the HDInsight cluster.  Type: string (or - Expression with resultType string). Required. - :paramtype version_type_properties_version: JSON - :keyword linked_service_name: Azure Storage linked service to be used by the on-demand cluster - for storing and processing data. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword host_subscription_id: The customer’s subscription to host the cluster. Type: string - (or Expression with resultType string). Required. - :paramtype host_subscription_id: JSON - :keyword service_principal_id: The service principal id for the hostSubscriptionId. Type: - string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The key for the service principal id. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: The Tenant id/name to which the service principal belongs. Type: string (or - Expression with resultType string). Required. - :paramtype tenant: JSON - :keyword cluster_resource_group: The resource group where the cluster belongs. Type: string (or - Expression with resultType string). Required. - :paramtype cluster_resource_group: JSON - :keyword cluster_resource_group_auth_type: HDInsight On-demand cluster resource group - authentication type. Known values are: "ServicePrincipalKey", "SystemAssignedManagedIdentity", - and "UserAssignedManagedIdentity". - :paramtype cluster_resource_group_auth_type: str or - ~azure.mgmt.datafactory.models.HDInsightOndemandClusterResourceGroupAuthenticationType - :keyword cluster_name_prefix: The prefix of cluster name, postfix will be distinct with - timestamp. Type: string (or Expression with resultType string). - :paramtype cluster_name_prefix: JSON - :keyword cluster_user_name: The username to access the cluster. Type: string (or Expression - with resultType string). - :paramtype cluster_user_name: JSON - :keyword cluster_password: The password to access the cluster. - :paramtype cluster_password: ~azure.mgmt.datafactory.models.SecretBase - :keyword cluster_ssh_user_name: The username to SSH remotely connect to cluster’s node (for - Linux). Type: string (or Expression with resultType string). - :paramtype cluster_ssh_user_name: JSON - :keyword cluster_ssh_password: The password to SSH remotely connect cluster’s node (for Linux). - :paramtype cluster_ssh_password: ~azure.mgmt.datafactory.models.SecretBase - :keyword additional_linked_service_names: Specifies additional storage accounts for the - HDInsight linked service so that the Data Factory service can register them on your behalf. - :paramtype additional_linked_service_names: - list[~azure.mgmt.datafactory.models.LinkedServiceReference] - :keyword hcatalog_linked_service_name: The name of Azure SQL linked service that point to the - HCatalog database. The on-demand HDInsight cluster is created by using the Azure SQL database - as the metastore. - :paramtype hcatalog_linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword cluster_type: The cluster type. Type: string (or Expression with resultType string). - :paramtype cluster_type: JSON - :keyword spark_version: The version of spark if the cluster type is 'spark'. Type: string (or - Expression with resultType string). - :paramtype spark_version: JSON - :keyword core_configuration: Specifies the core configuration parameters (as in core-site.xml) - for the HDInsight cluster to be created. - :paramtype core_configuration: JSON - :keyword h_base_configuration: Specifies the HBase configuration parameters (hbase-site.xml) - for the HDInsight cluster. - :paramtype h_base_configuration: JSON - :keyword hdfs_configuration: Specifies the HDFS configuration parameters (hdfs-site.xml) for - the HDInsight cluster. - :paramtype hdfs_configuration: JSON - :keyword hive_configuration: Specifies the hive configuration parameters (hive-site.xml) for - the HDInsight cluster. - :paramtype hive_configuration: JSON - :keyword map_reduce_configuration: Specifies the MapReduce configuration parameters - (mapred-site.xml) for the HDInsight cluster. - :paramtype map_reduce_configuration: JSON - :keyword oozie_configuration: Specifies the Oozie configuration parameters (oozie-site.xml) for - the HDInsight cluster. - :paramtype oozie_configuration: JSON - :keyword storm_configuration: Specifies the Storm configuration parameters (storm-site.xml) for - the HDInsight cluster. - :paramtype storm_configuration: JSON - :keyword yarn_configuration: Specifies the Yarn configuration parameters (yarn-site.xml) for - the HDInsight cluster. - :paramtype yarn_configuration: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword head_node_size: Specifies the size of the head node for the HDInsight cluster. - :paramtype head_node_size: JSON - :keyword data_node_size: Specifies the size of the data node for the HDInsight cluster. - :paramtype data_node_size: JSON - :keyword zookeeper_node_size: Specifies the size of the Zoo Keeper node for the HDInsight - cluster. - :paramtype zookeeper_node_size: JSON - :keyword script_actions: Custom script actions to run on HDI ondemand cluster once it's up. - Please refer to - https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. - :paramtype script_actions: list[~azure.mgmt.datafactory.models.ScriptAction] - :keyword virtual_network_id: The ARM resource ID for the vNet to which the cluster should be - joined after creation. Type: string (or Expression with resultType string). - :paramtype virtual_network_id: JSON - :keyword subnet_name: The ARM resource ID for the subnet in the vNet. If virtualNetworkId was - specified, then this property is required. Type: string (or Expression with resultType string). - :paramtype subnet_name: JSON - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "HDInsightOnDemand" - self.cluster_size = cluster_size - self.time_to_live = time_to_live - self.version_type_properties_version = version_type_properties_version - self.linked_service_name = linked_service_name - self.host_subscription_id = host_subscription_id - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.tenant = tenant - self.cluster_resource_group = cluster_resource_group - self.cluster_resource_group_auth_type = cluster_resource_group_auth_type - self.cluster_name_prefix = cluster_name_prefix - self.cluster_user_name = cluster_user_name - self.cluster_password = cluster_password - self.cluster_ssh_user_name = cluster_ssh_user_name - self.cluster_ssh_password = cluster_ssh_password - self.additional_linked_service_names = additional_linked_service_names - self.hcatalog_linked_service_name = hcatalog_linked_service_name - self.cluster_type = cluster_type - self.spark_version = spark_version - self.core_configuration = core_configuration - self.h_base_configuration = h_base_configuration - self.hdfs_configuration = hdfs_configuration - self.hive_configuration = hive_configuration - self.map_reduce_configuration = map_reduce_configuration - self.oozie_configuration = oozie_configuration - self.storm_configuration = storm_configuration - self.yarn_configuration = yarn_configuration - self.encrypted_credential = encrypted_credential - self.head_node_size = head_node_size - self.data_node_size = data_node_size - self.zookeeper_node_size = zookeeper_node_size - self.script_actions = script_actions - self.virtual_network_id = virtual_network_id - self.subnet_name = subnet_name - self.credential = credential - - -class HDInsightPigActivity(ExecutionActivity): - """HDInsight Pig activity type. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar storage_linked_services: Storage linked service references. - :vartype storage_linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceReference] - :ivar arguments: User specified arguments to HDInsightActivity. Type: array (or Expression with - resultType array). - :vartype arguments: JSON - :ivar get_debug_info: Debug info option. Known values are: "None", "Always", and "Failure". - :vartype get_debug_info: str or ~azure.mgmt.datafactory.models.HDInsightActivityDebugInfoOption - :ivar script_path: Script path. Type: string (or Expression with resultType string). - :vartype script_path: JSON - :ivar script_linked_service: Script linked service reference. - :vartype script_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar defines: Allows user to specify defines for Pig job request. - :vartype defines: dict[str, JSON] - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "storage_linked_services": {"key": "typeProperties.storageLinkedServices", "type": "[LinkedServiceReference]"}, - "arguments": {"key": "typeProperties.arguments", "type": "object"}, - "get_debug_info": {"key": "typeProperties.getDebugInfo", "type": "str"}, - "script_path": {"key": "typeProperties.scriptPath", "type": "object"}, - "script_linked_service": {"key": "typeProperties.scriptLinkedService", "type": "LinkedServiceReference"}, - "defines": {"key": "typeProperties.defines", "type": "{object}"}, - } - - def __init__( - self, - *, - name: str, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - storage_linked_services: Optional[list["_models.LinkedServiceReference"]] = None, - arguments: Optional[JSON] = None, - get_debug_info: Optional[Union[str, "_models.HDInsightActivityDebugInfoOption"]] = None, - script_path: Optional[JSON] = None, - script_linked_service: Optional["_models.LinkedServiceReference"] = None, - defines: Optional[dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword storage_linked_services: Storage linked service references. - :paramtype storage_linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceReference] - :keyword arguments: User specified arguments to HDInsightActivity. Type: array (or Expression - with resultType array). - :paramtype arguments: JSON - :keyword get_debug_info: Debug info option. Known values are: "None", "Always", and "Failure". - :paramtype get_debug_info: str or - ~azure.mgmt.datafactory.models.HDInsightActivityDebugInfoOption - :keyword script_path: Script path. Type: string (or Expression with resultType string). - :paramtype script_path: JSON - :keyword script_linked_service: Script linked service reference. - :paramtype script_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword defines: Allows user to specify defines for Pig job request. - :paramtype defines: dict[str, JSON] - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "HDInsightPig" - self.storage_linked_services = storage_linked_services - self.arguments = arguments - self.get_debug_info = get_debug_info - self.script_path = script_path - self.script_linked_service = script_linked_service - self.defines = defines - - -class HDInsightSparkActivity(ExecutionActivity): - """HDInsight Spark activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar root_path: The root path in 'sparkJobLinkedService' for all the job’s files. Type: string - (or Expression with resultType string). Required. - :vartype root_path: JSON - :ivar entry_file_path: The relative path to the root folder of the code/package to be executed. - Type: string (or Expression with resultType string). Required. - :vartype entry_file_path: JSON - :ivar arguments: The user-specified arguments to HDInsightSparkActivity. - :vartype arguments: list[JSON] - :ivar get_debug_info: Debug info option. Known values are: "None", "Always", and "Failure". - :vartype get_debug_info: str or ~azure.mgmt.datafactory.models.HDInsightActivityDebugInfoOption - :ivar spark_job_linked_service: The storage linked service for uploading the entry file and - dependencies, and for receiving logs. - :vartype spark_job_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar class_name: The application's Java/Spark main class. - :vartype class_name: str - :ivar proxy_user: The user to impersonate that will execute the job. Type: string (or - Expression with resultType string). - :vartype proxy_user: JSON - :ivar spark_config: Spark configuration property. - :vartype spark_config: dict[str, JSON] - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "root_path": {"required": True}, - "entry_file_path": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "root_path": {"key": "typeProperties.rootPath", "type": "object"}, - "entry_file_path": {"key": "typeProperties.entryFilePath", "type": "object"}, - "arguments": {"key": "typeProperties.arguments", "type": "[object]"}, - "get_debug_info": {"key": "typeProperties.getDebugInfo", "type": "str"}, - "spark_job_linked_service": {"key": "typeProperties.sparkJobLinkedService", "type": "LinkedServiceReference"}, - "class_name": {"key": "typeProperties.className", "type": "str"}, - "proxy_user": {"key": "typeProperties.proxyUser", "type": "object"}, - "spark_config": {"key": "typeProperties.sparkConfig", "type": "{object}"}, - } - - def __init__( - self, - *, - name: str, - root_path: JSON, - entry_file_path: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - arguments: Optional[list[JSON]] = None, - get_debug_info: Optional[Union[str, "_models.HDInsightActivityDebugInfoOption"]] = None, - spark_job_linked_service: Optional["_models.LinkedServiceReference"] = None, - class_name: Optional[str] = None, - proxy_user: Optional[JSON] = None, - spark_config: Optional[dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword root_path: The root path in 'sparkJobLinkedService' for all the job’s files. Type: - string (or Expression with resultType string). Required. - :paramtype root_path: JSON - :keyword entry_file_path: The relative path to the root folder of the code/package to be - executed. Type: string (or Expression with resultType string). Required. - :paramtype entry_file_path: JSON - :keyword arguments: The user-specified arguments to HDInsightSparkActivity. - :paramtype arguments: list[JSON] - :keyword get_debug_info: Debug info option. Known values are: "None", "Always", and "Failure". - :paramtype get_debug_info: str or - ~azure.mgmt.datafactory.models.HDInsightActivityDebugInfoOption - :keyword spark_job_linked_service: The storage linked service for uploading the entry file and - dependencies, and for receiving logs. - :paramtype spark_job_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword class_name: The application's Java/Spark main class. - :paramtype class_name: str - :keyword proxy_user: The user to impersonate that will execute the job. Type: string (or - Expression with resultType string). - :paramtype proxy_user: JSON - :keyword spark_config: Spark configuration property. - :paramtype spark_config: dict[str, JSON] - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "HDInsightSpark" - self.root_path = root_path - self.entry_file_path = entry_file_path - self.arguments = arguments - self.get_debug_info = get_debug_info - self.spark_job_linked_service = spark_job_linked_service - self.class_name = class_name - self.proxy_user = proxy_user - self.spark_config = spark_config - - -class HDInsightStreamingActivity(ExecutionActivity): - """HDInsight streaming activity type. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar storage_linked_services: Storage linked service references. - :vartype storage_linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceReference] - :ivar arguments: User specified arguments to HDInsightActivity. - :vartype arguments: list[JSON] - :ivar get_debug_info: Debug info option. Known values are: "None", "Always", and "Failure". - :vartype get_debug_info: str or ~azure.mgmt.datafactory.models.HDInsightActivityDebugInfoOption - :ivar mapper: Mapper executable name. Type: string (or Expression with resultType string). - Required. - :vartype mapper: JSON - :ivar reducer: Reducer executable name. Type: string (or Expression with resultType string). - Required. - :vartype reducer: JSON - :ivar input: Input blob path. Type: string (or Expression with resultType string). Required. - :vartype input: JSON - :ivar output: Output blob path. Type: string (or Expression with resultType string). Required. - :vartype output: JSON - :ivar file_paths: Paths to streaming job files. Can be directories. Required. - :vartype file_paths: list[JSON] - :ivar file_linked_service: Linked service reference where the files are located. - :vartype file_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar combiner: Combiner executable name. Type: string (or Expression with resultType string). - :vartype combiner: JSON - :ivar command_environment: Command line environment values. - :vartype command_environment: list[JSON] - :ivar defines: Allows user to specify defines for streaming job request. - :vartype defines: dict[str, JSON] - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "mapper": {"required": True}, - "reducer": {"required": True}, - "input": {"required": True}, - "output": {"required": True}, - "file_paths": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "storage_linked_services": {"key": "typeProperties.storageLinkedServices", "type": "[LinkedServiceReference]"}, - "arguments": {"key": "typeProperties.arguments", "type": "[object]"}, - "get_debug_info": {"key": "typeProperties.getDebugInfo", "type": "str"}, - "mapper": {"key": "typeProperties.mapper", "type": "object"}, - "reducer": {"key": "typeProperties.reducer", "type": "object"}, - "input": {"key": "typeProperties.input", "type": "object"}, - "output": {"key": "typeProperties.output", "type": "object"}, - "file_paths": {"key": "typeProperties.filePaths", "type": "[object]"}, - "file_linked_service": {"key": "typeProperties.fileLinkedService", "type": "LinkedServiceReference"}, - "combiner": {"key": "typeProperties.combiner", "type": "object"}, - "command_environment": {"key": "typeProperties.commandEnvironment", "type": "[object]"}, - "defines": {"key": "typeProperties.defines", "type": "{object}"}, - } - - def __init__( - self, - *, - name: str, - mapper: JSON, - reducer: JSON, - input: JSON, - output: JSON, - file_paths: list[JSON], - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - storage_linked_services: Optional[list["_models.LinkedServiceReference"]] = None, - arguments: Optional[list[JSON]] = None, - get_debug_info: Optional[Union[str, "_models.HDInsightActivityDebugInfoOption"]] = None, - file_linked_service: Optional["_models.LinkedServiceReference"] = None, - combiner: Optional[JSON] = None, - command_environment: Optional[list[JSON]] = None, - defines: Optional[dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword storage_linked_services: Storage linked service references. - :paramtype storage_linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceReference] - :keyword arguments: User specified arguments to HDInsightActivity. - :paramtype arguments: list[JSON] - :keyword get_debug_info: Debug info option. Known values are: "None", "Always", and "Failure". - :paramtype get_debug_info: str or - ~azure.mgmt.datafactory.models.HDInsightActivityDebugInfoOption - :keyword mapper: Mapper executable name. Type: string (or Expression with resultType string). - Required. - :paramtype mapper: JSON - :keyword reducer: Reducer executable name. Type: string (or Expression with resultType string). - Required. - :paramtype reducer: JSON - :keyword input: Input blob path. Type: string (or Expression with resultType string). Required. - :paramtype input: JSON - :keyword output: Output blob path. Type: string (or Expression with resultType string). - Required. - :paramtype output: JSON - :keyword file_paths: Paths to streaming job files. Can be directories. Required. - :paramtype file_paths: list[JSON] - :keyword file_linked_service: Linked service reference where the files are located. - :paramtype file_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword combiner: Combiner executable name. Type: string (or Expression with resultType - string). - :paramtype combiner: JSON - :keyword command_environment: Command line environment values. - :paramtype command_environment: list[JSON] - :keyword defines: Allows user to specify defines for streaming job request. - :paramtype defines: dict[str, JSON] - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "HDInsightStreaming" - self.storage_linked_services = storage_linked_services - self.arguments = arguments - self.get_debug_info = get_debug_info - self.mapper = mapper - self.reducer = reducer - self.input = input - self.output = output - self.file_paths = file_paths - self.file_linked_service = file_linked_service - self.combiner = combiner - self.command_environment = command_environment - self.defines = defines - - -class HiveLinkedService(LinkedService): - """Hive Server linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar host: IP address or host name of the Hive server, separated by ';' for multiple hosts - (only when serviceDiscoveryMode is enable). Required. - :vartype host: JSON - :ivar port: The TCP port that the Hive server uses to listen for client connections. - :vartype port: JSON - :ivar server_type: The type of Hive server. Known values are: "HiveServer1", "HiveServer2", and - "HiveThriftServer". - :vartype server_type: str or ~azure.mgmt.datafactory.models.HiveServerType - :ivar thrift_transport_protocol: The transport protocol to use in the Thrift layer. Known - values are: "Binary", "SASL", and "HTTP ". - :vartype thrift_transport_protocol: str or - ~azure.mgmt.datafactory.models.HiveThriftTransportProtocol - :ivar authentication_type: The authentication method used to access the Hive server. Required. - Known values are: "Anonymous", "Username", "UsernameAndPassword", and - "WindowsAzureHDInsightService". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.HiveAuthenticationType - :ivar service_discovery_mode: true to indicate using the ZooKeeper service, false not. - :vartype service_discovery_mode: JSON - :ivar zoo_keeper_name_space: The namespace on ZooKeeper under which Hive Server 2 nodes are - added. - :vartype zoo_keeper_name_space: JSON - :ivar use_native_query: Specifies whether the driver uses native HiveQL queries,or converts - them into an equivalent form in HiveQL. - :vartype use_native_query: JSON - :ivar username: The user name that you use to access Hive Server. - :vartype username: JSON - :ivar password: The password corresponding to the user name that you provided in the Username - field. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar http_path: The partial URL corresponding to the Hive server. - :vartype http_path: JSON - :ivar enable_ssl: Specifies whether the connections to the server are encrypted using SSL. The - default value is false. - :vartype enable_ssl: JSON - :ivar enable_server_certificate_validation: Specifies whether the connections to the server - will validate server certificate, the default value is True. Only used for Version 2.0. - :vartype enable_server_certificate_validation: JSON - :ivar trusted_cert_path: The full path of the .pem file containing trusted CA certificates for - verifying the server when connecting over SSL. This property can only be set when using SSL on - self-hosted IR. The default value is the cacerts.pem file installed with the IR. - :vartype trusted_cert_path: JSON - :ivar use_system_trust_store: Specifies whether to use a CA certificate from the system trust - store or from a specified PEM file. The default value is false. - :vartype use_system_trust_store: JSON - :ivar allow_host_name_cn_mismatch: Specifies whether to require a CA-issued SSL certificate - name to match the host name of the server when connecting over SSL. The default value is false. - :vartype allow_host_name_cn_mismatch: JSON - :ivar allow_self_signed_server_cert: Specifies whether to allow self-signed certificates from - the server. The default value is false. - :vartype allow_self_signed_server_cert: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "host": {"required": True}, - "authentication_type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "server_type": {"key": "typeProperties.serverType", "type": "str"}, - "thrift_transport_protocol": {"key": "typeProperties.thriftTransportProtocol", "type": "str"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "service_discovery_mode": {"key": "typeProperties.serviceDiscoveryMode", "type": "object"}, - "zoo_keeper_name_space": {"key": "typeProperties.zooKeeperNameSpace", "type": "object"}, - "use_native_query": {"key": "typeProperties.useNativeQuery", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "http_path": {"key": "typeProperties.httpPath", "type": "object"}, - "enable_ssl": {"key": "typeProperties.enableSsl", "type": "object"}, - "enable_server_certificate_validation": { - "key": "typeProperties.enableServerCertificateValidation", - "type": "object", - }, - "trusted_cert_path": {"key": "typeProperties.trustedCertPath", "type": "object"}, - "use_system_trust_store": {"key": "typeProperties.useSystemTrustStore", "type": "object"}, - "allow_host_name_cn_mismatch": {"key": "typeProperties.allowHostNameCNMismatch", "type": "object"}, - "allow_self_signed_server_cert": {"key": "typeProperties.allowSelfSignedServerCert", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - host: JSON, - authentication_type: Union[str, "_models.HiveAuthenticationType"], - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - port: Optional[JSON] = None, - server_type: Optional[Union[str, "_models.HiveServerType"]] = None, - thrift_transport_protocol: Optional[Union[str, "_models.HiveThriftTransportProtocol"]] = None, - service_discovery_mode: Optional[JSON] = None, - zoo_keeper_name_space: Optional[JSON] = None, - use_native_query: Optional[JSON] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - http_path: Optional[JSON] = None, - enable_ssl: Optional[JSON] = None, - enable_server_certificate_validation: Optional[JSON] = None, - trusted_cert_path: Optional[JSON] = None, - use_system_trust_store: Optional[JSON] = None, - allow_host_name_cn_mismatch: Optional[JSON] = None, - allow_self_signed_server_cert: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword host: IP address or host name of the Hive server, separated by ';' for multiple hosts - (only when serviceDiscoveryMode is enable). Required. - :paramtype host: JSON - :keyword port: The TCP port that the Hive server uses to listen for client connections. - :paramtype port: JSON - :keyword server_type: The type of Hive server. Known values are: "HiveServer1", "HiveServer2", - and "HiveThriftServer". - :paramtype server_type: str or ~azure.mgmt.datafactory.models.HiveServerType - :keyword thrift_transport_protocol: The transport protocol to use in the Thrift layer. Known - values are: "Binary", "SASL", and "HTTP ". - :paramtype thrift_transport_protocol: str or - ~azure.mgmt.datafactory.models.HiveThriftTransportProtocol - :keyword authentication_type: The authentication method used to access the Hive server. - Required. Known values are: "Anonymous", "Username", "UsernameAndPassword", and - "WindowsAzureHDInsightService". - :paramtype authentication_type: str or ~azure.mgmt.datafactory.models.HiveAuthenticationType - :keyword service_discovery_mode: true to indicate using the ZooKeeper service, false not. - :paramtype service_discovery_mode: JSON - :keyword zoo_keeper_name_space: The namespace on ZooKeeper under which Hive Server 2 nodes are - added. - :paramtype zoo_keeper_name_space: JSON - :keyword use_native_query: Specifies whether the driver uses native HiveQL queries,or converts - them into an equivalent form in HiveQL. - :paramtype use_native_query: JSON - :keyword username: The user name that you use to access Hive Server. - :paramtype username: JSON - :keyword password: The password corresponding to the user name that you provided in the - Username field. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword http_path: The partial URL corresponding to the Hive server. - :paramtype http_path: JSON - :keyword enable_ssl: Specifies whether the connections to the server are encrypted using SSL. - The default value is false. - :paramtype enable_ssl: JSON - :keyword enable_server_certificate_validation: Specifies whether the connections to the server - will validate server certificate, the default value is True. Only used for Version 2.0. - :paramtype enable_server_certificate_validation: JSON - :keyword trusted_cert_path: The full path of the .pem file containing trusted CA certificates - for verifying the server when connecting over SSL. This property can only be set when using SSL - on self-hosted IR. The default value is the cacerts.pem file installed with the IR. - :paramtype trusted_cert_path: JSON - :keyword use_system_trust_store: Specifies whether to use a CA certificate from the system - trust store or from a specified PEM file. The default value is false. - :paramtype use_system_trust_store: JSON - :keyword allow_host_name_cn_mismatch: Specifies whether to require a CA-issued SSL certificate - name to match the host name of the server when connecting over SSL. The default value is false. - :paramtype allow_host_name_cn_mismatch: JSON - :keyword allow_self_signed_server_cert: Specifies whether to allow self-signed certificates - from the server. The default value is false. - :paramtype allow_self_signed_server_cert: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Hive" - self.host = host - self.port = port - self.server_type = server_type - self.thrift_transport_protocol = thrift_transport_protocol - self.authentication_type = authentication_type - self.service_discovery_mode = service_discovery_mode - self.zoo_keeper_name_space = zoo_keeper_name_space - self.use_native_query = use_native_query - self.username = username - self.password = password - self.http_path = http_path - self.enable_ssl = enable_ssl - self.enable_server_certificate_validation = enable_server_certificate_validation - self.trusted_cert_path = trusted_cert_path - self.use_system_trust_store = use_system_trust_store - self.allow_host_name_cn_mismatch = allow_host_name_cn_mismatch - self.allow_self_signed_server_cert = allow_self_signed_server_cert - self.encrypted_credential = encrypted_credential - - -class HiveObjectDataset(Dataset): - """Hive Server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property will be retired. Please consider using schema + table - properties instead. - :vartype table_name: JSON - :ivar table: The table name of the Hive. Type: string (or Expression with resultType string). - :vartype table: JSON - :ivar schema_type_properties_schema: The schema name of the Hive. Type: string (or Expression - with resultType string). - :vartype schema_type_properties_schema: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - table: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property will be retired. Please consider using schema + table - properties instead. - :paramtype table_name: JSON - :keyword table: The table name of the Hive. Type: string (or Expression with resultType - string). - :paramtype table: JSON - :keyword schema_type_properties_schema: The schema name of the Hive. Type: string (or - Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "HiveObject" - self.table_name = table_name - self.table = table - self.schema_type_properties_schema = schema_type_properties_schema - - -class HiveSource(TabularSource): - """A copy activity Hive Server source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "HiveSource" - self.query = query - - -class HttpDataset(Dataset): - """A file in an HTTP web server. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar relative_url: The relative URL based on the URL in the HttpLinkedService refers to an - HTTP file Type: string (or Expression with resultType string). - :vartype relative_url: JSON - :ivar request_method: The HTTP method for the HTTP request. Type: string (or Expression with - resultType string). - :vartype request_method: JSON - :ivar request_body: The body for the HTTP request. Type: string (or Expression with resultType - string). - :vartype request_body: JSON - :ivar additional_headers: The headers for the HTTP Request. e.g. - request-header-name-1:request-header-value-1 - ... - request-header-name-n:request-header-value-n Type: string (or Expression with resultType - string). - :vartype additional_headers: JSON - :ivar format: The format of files. - :vartype format: ~azure.mgmt.datafactory.models.DatasetStorageFormat - :ivar compression: The data compression method used on files. - :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "relative_url": {"key": "typeProperties.relativeUrl", "type": "object"}, - "request_method": {"key": "typeProperties.requestMethod", "type": "object"}, - "request_body": {"key": "typeProperties.requestBody", "type": "object"}, - "additional_headers": {"key": "typeProperties.additionalHeaders", "type": "object"}, - "format": {"key": "typeProperties.format", "type": "DatasetStorageFormat"}, - "compression": {"key": "typeProperties.compression", "type": "DatasetCompression"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - relative_url: Optional[JSON] = None, - request_method: Optional[JSON] = None, - request_body: Optional[JSON] = None, - additional_headers: Optional[JSON] = None, - format: Optional["_models.DatasetStorageFormat"] = None, - compression: Optional["_models.DatasetCompression"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword relative_url: The relative URL based on the URL in the HttpLinkedService refers to an - HTTP file Type: string (or Expression with resultType string). - :paramtype relative_url: JSON - :keyword request_method: The HTTP method for the HTTP request. Type: string (or Expression with - resultType string). - :paramtype request_method: JSON - :keyword request_body: The body for the HTTP request. Type: string (or Expression with - resultType string). - :paramtype request_body: JSON - :keyword additional_headers: The headers for the HTTP Request. e.g. - request-header-name-1:request-header-value-1 - ... - request-header-name-n:request-header-value-n Type: string (or Expression with resultType - string). - :paramtype additional_headers: JSON - :keyword format: The format of files. - :paramtype format: ~azure.mgmt.datafactory.models.DatasetStorageFormat - :keyword compression: The data compression method used on files. - :paramtype compression: ~azure.mgmt.datafactory.models.DatasetCompression - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "HttpFile" - self.relative_url = relative_url - self.request_method = request_method - self.request_body = request_body - self.additional_headers = additional_headers - self.format = format - self.compression = compression - - -class HttpLinkedService(LinkedService): - """Linked service for an HTTP source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar url: The base URL of the HTTP endpoint, e.g. https://www.microsoft.com. Type: string (or - Expression with resultType string). Required. - :vartype url: JSON - :ivar authentication_type: The authentication type to be used to connect to the HTTP server. - Known values are: "Basic", "Anonymous", "Digest", "Windows", and "ClientCertificate". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.HttpAuthenticationType - :ivar user_name: User name for Basic, Digest, or Windows authentication. Type: string (or - Expression with resultType string). - :vartype user_name: JSON - :ivar password: Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData - authentication. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar auth_headers: The additional HTTP headers in the request to RESTful API used for - authorization. Type: key value pairs (value should be string type). - :vartype auth_headers: JSON - :ivar embedded_cert_data: Base64 encoded certificate data for ClientCertificate authentication. - For on-premises copy with ClientCertificate authentication, either CertThumbprint or - EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType - string). - :vartype embedded_cert_data: JSON - :ivar cert_thumbprint: Thumbprint of certificate for ClientCertificate authentication. Only - valid for on-premises copy. For on-premises copy with ClientCertificate authentication, either - CertThumbprint or EmbeddedCertData/Password should be specified. Type: string (or Expression - with resultType string). - :vartype cert_thumbprint: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar enable_server_certificate_validation: If true, validate the HTTPS server SSL certificate. - Default value is true. Type: boolean (or Expression with resultType boolean). - :vartype enable_server_certificate_validation: JSON - """ - - _validation = { - "type": {"required": True}, - "url": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "url": {"key": "typeProperties.url", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "auth_headers": {"key": "typeProperties.authHeaders", "type": "object"}, - "embedded_cert_data": {"key": "typeProperties.embeddedCertData", "type": "object"}, - "cert_thumbprint": {"key": "typeProperties.certThumbprint", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "enable_server_certificate_validation": { - "key": "typeProperties.enableServerCertificateValidation", - "type": "object", - }, - } - - def __init__( - self, - *, - url: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - authentication_type: Optional[Union[str, "_models.HttpAuthenticationType"]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - auth_headers: Optional[JSON] = None, - embedded_cert_data: Optional[JSON] = None, - cert_thumbprint: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - enable_server_certificate_validation: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword url: The base URL of the HTTP endpoint, e.g. https://www.microsoft.com. Type: string - (or Expression with resultType string). Required. - :paramtype url: JSON - :keyword authentication_type: The authentication type to be used to connect to the HTTP server. - Known values are: "Basic", "Anonymous", "Digest", "Windows", and "ClientCertificate". - :paramtype authentication_type: str or ~azure.mgmt.datafactory.models.HttpAuthenticationType - :keyword user_name: User name for Basic, Digest, or Windows authentication. Type: string (or - Expression with resultType string). - :paramtype user_name: JSON - :keyword password: Password for Basic, Digest, Windows, or ClientCertificate with - EmbeddedCertData authentication. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword auth_headers: The additional HTTP headers in the request to RESTful API used for - authorization. Type: key value pairs (value should be string type). - :paramtype auth_headers: JSON - :keyword embedded_cert_data: Base64 encoded certificate data for ClientCertificate - authentication. For on-premises copy with ClientCertificate authentication, either - CertThumbprint or EmbeddedCertData/Password should be specified. Type: string (or Expression - with resultType string). - :paramtype embedded_cert_data: JSON - :keyword cert_thumbprint: Thumbprint of certificate for ClientCertificate authentication. Only - valid for on-premises copy. For on-premises copy with ClientCertificate authentication, either - CertThumbprint or EmbeddedCertData/Password should be specified. Type: string (or Expression - with resultType string). - :paramtype cert_thumbprint: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword enable_server_certificate_validation: If true, validate the HTTPS server SSL - certificate. Default value is true. Type: boolean (or Expression with resultType boolean). - :paramtype enable_server_certificate_validation: JSON - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "HttpServer" - self.url = url - self.authentication_type = authentication_type - self.user_name = user_name - self.password = password - self.auth_headers = auth_headers - self.embedded_cert_data = embedded_cert_data - self.cert_thumbprint = cert_thumbprint - self.encrypted_credential = encrypted_credential - self.enable_server_certificate_validation = enable_server_certificate_validation - - -class HttpReadSettings(StoreReadSettings): - """Http read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar request_method: The HTTP method used to call the RESTful API. The default is GET. Type: - string (or Expression with resultType string). - :vartype request_method: JSON - :ivar request_body: The HTTP request body to the RESTful API if requestMethod is POST. Type: - string (or Expression with resultType string). - :vartype request_body: JSON - :ivar additional_headers: The additional HTTP headers in the request to the RESTful API. Type: - string (or Expression with resultType string). - :vartype additional_headers: JSON - :ivar request_timeout: Specifies the timeout for a HTTP client to get HTTP response from HTTP - server. Type: string (or Expression with resultType string). - :vartype request_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "request_method": {"key": "requestMethod", "type": "object"}, - "request_body": {"key": "requestBody", "type": "object"}, - "additional_headers": {"key": "additionalHeaders", "type": "object"}, - "request_timeout": {"key": "requestTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - request_method: Optional[JSON] = None, - request_body: Optional[JSON] = None, - additional_headers: Optional[JSON] = None, - request_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword request_method: The HTTP method used to call the RESTful API. The default is GET. - Type: string (or Expression with resultType string). - :paramtype request_method: JSON - :keyword request_body: The HTTP request body to the RESTful API if requestMethod is POST. Type: - string (or Expression with resultType string). - :paramtype request_body: JSON - :keyword additional_headers: The additional HTTP headers in the request to the RESTful API. - Type: string (or Expression with resultType string). - :paramtype additional_headers: JSON - :keyword request_timeout: Specifies the timeout for a HTTP client to get HTTP response from - HTTP server. Type: string (or Expression with resultType string). - :paramtype request_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "HttpReadSettings" - self.request_method = request_method - self.request_body = request_body - self.additional_headers = additional_headers - self.request_timeout = request_timeout - self.additional_columns = additional_columns - - -class HttpServerLocation(DatasetLocation): - """The location of http server. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage location. Required. - :vartype type: str - :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :vartype folder_path: JSON - :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType - string). - :vartype file_name: JSON - :ivar relative_url: Specify the relativeUrl of http server. Type: string (or Expression with - resultType string). - :vartype relative_url: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "folder_path": {"key": "folderPath", "type": "object"}, - "file_name": {"key": "fileName", "type": "object"}, - "relative_url": {"key": "relativeUrl", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - folder_path: Optional[JSON] = None, - file_name: Optional[JSON] = None, - relative_url: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :paramtype folder_path: JSON - :keyword file_name: Specify the file name of dataset. Type: string (or Expression with - resultType string). - :paramtype file_name: JSON - :keyword relative_url: Specify the relativeUrl of http server. Type: string (or Expression with - resultType string). - :paramtype relative_url: JSON - """ - super().__init__( - additional_properties=additional_properties, folder_path=folder_path, file_name=file_name, **kwargs - ) - self.type: str = "HttpServerLocation" - self.relative_url = relative_url - - -class HttpSource(CopySource): - """A copy activity source for an HTTP file. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar http_request_timeout: Specifies the timeout for a HTTP client to get HTTP response from - HTTP server. The default value is equivalent to System.Net.HttpWebRequest.Timeout. Type: string - (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype http_request_timeout: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "http_request_timeout": {"key": "httpRequestTimeout", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - http_request_timeout: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword http_request_timeout: Specifies the timeout for a HTTP client to get HTTP response - from HTTP server. The default value is equivalent to System.Net.HttpWebRequest.Timeout. Type: - string (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype http_request_timeout: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "HttpSource" - self.http_request_timeout = http_request_timeout - - -class HubspotLinkedService(LinkedService): - """Hubspot Service linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar client_id: The client ID associated with your Hubspot application. Required. - :vartype client_id: JSON - :ivar client_secret: The client secret associated with your Hubspot application. - :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :ivar access_token: The access token obtained when initially authenticating your OAuth - integration. - :vartype access_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar refresh_token: The refresh token obtained when initially authenticating your OAuth - integration. - :vartype refresh_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using - HTTPS. The default value is true. - :vartype use_encrypted_endpoints: JSON - :ivar use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :vartype use_host_verification: JSON - :ivar use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :vartype use_peer_verification: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "client_id": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "client_secret": {"key": "typeProperties.clientSecret", "type": "SecretBase"}, - "access_token": {"key": "typeProperties.accessToken", "type": "SecretBase"}, - "refresh_token": {"key": "typeProperties.refreshToken", "type": "SecretBase"}, - "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, - "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, - "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - client_id: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - client_secret: Optional["_models.SecretBase"] = None, - access_token: Optional["_models.SecretBase"] = None, - refresh_token: Optional["_models.SecretBase"] = None, - use_encrypted_endpoints: Optional[JSON] = None, - use_host_verification: Optional[JSON] = None, - use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword client_id: The client ID associated with your Hubspot application. Required. - :paramtype client_id: JSON - :keyword client_secret: The client secret associated with your Hubspot application. - :paramtype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :keyword access_token: The access token obtained when initially authenticating your OAuth - integration. - :paramtype access_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword refresh_token: The refresh token obtained when initially authenticating your OAuth - integration. - :paramtype refresh_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted - using HTTPS. The default value is true. - :paramtype use_encrypted_endpoints: JSON - :keyword use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :paramtype use_host_verification: JSON - :keyword use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :paramtype use_peer_verification: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Hubspot" - self.client_id = client_id - self.client_secret = client_secret - self.access_token = access_token - self.refresh_token = refresh_token - self.use_encrypted_endpoints = use_encrypted_endpoints - self.use_host_verification = use_host_verification - self.use_peer_verification = use_peer_verification - self.encrypted_credential = encrypted_credential - - -class HubspotObjectDataset(Dataset): - """Hubspot Service dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "HubspotObject" - self.table_name = table_name - - -class HubspotSource(TabularSource): - """A copy activity Hubspot Service source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "HubspotSource" - self.query = query - - -class IcebergDataset(Dataset): - """Iceberg dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar location: The location of the iceberg storage. Setting a file name is not allowed for - iceberg format. - :vartype location: ~azure.mgmt.datafactory.models.DatasetLocation - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "location": {"key": "typeProperties.location", "type": "DatasetLocation"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - location: Optional["_models.DatasetLocation"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword location: The location of the iceberg storage. Setting a file name is not allowed for - iceberg format. - :paramtype location: ~azure.mgmt.datafactory.models.DatasetLocation - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "Iceberg" - self.location = location - - -class IcebergSink(CopySink): - """A copy activity Iceberg sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar store_settings: Iceberg store settings. - :vartype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings - :ivar format_settings: Iceberg format settings. - :vartype format_settings: ~azure.mgmt.datafactory.models.IcebergWriteSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "store_settings": {"key": "storeSettings", "type": "StoreWriteSettings"}, - "format_settings": {"key": "formatSettings", "type": "IcebergWriteSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - store_settings: Optional["_models.StoreWriteSettings"] = None, - format_settings: Optional["_models.IcebergWriteSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword store_settings: Iceberg store settings. - :paramtype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings - :keyword format_settings: Iceberg format settings. - :paramtype format_settings: ~azure.mgmt.datafactory.models.IcebergWriteSettings - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "IcebergSink" - self.store_settings = store_settings - self.format_settings = format_settings - - -class IcebergWriteSettings(FormatWriteSettings): - """Iceberg write settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The write setting type. Required. - :vartype type: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, *, additional_properties: Optional[dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "IcebergWriteSettings" - - -class IfConditionActivity(ControlActivity): - """This activity evaluates a boolean expression and executes either the activities under the - ifTrueActivities property or the ifFalseActivities property depending on the result of the - expression. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar expression: An expression that would evaluate to Boolean. This is used to determine the - block of activities (ifTrueActivities or ifFalseActivities) that will be executed. Required. - :vartype expression: ~azure.mgmt.datafactory.models.Expression - :ivar if_true_activities: List of activities to execute if expression is evaluated to true. - This is an optional property and if not provided, the activity will exit without any action. - :vartype if_true_activities: list[~azure.mgmt.datafactory.models.Activity] - :ivar if_false_activities: List of activities to execute if expression is evaluated to false. - This is an optional property and if not provided, the activity will exit without any action. - :vartype if_false_activities: list[~azure.mgmt.datafactory.models.Activity] - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "expression": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "expression": {"key": "typeProperties.expression", "type": "Expression"}, - "if_true_activities": {"key": "typeProperties.ifTrueActivities", "type": "[Activity]"}, - "if_false_activities": {"key": "typeProperties.ifFalseActivities", "type": "[Activity]"}, - } - - def __init__( - self, - *, - name: str, - expression: "_models.Expression", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - if_true_activities: Optional[list["_models.Activity"]] = None, - if_false_activities: Optional[list["_models.Activity"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword expression: An expression that would evaluate to Boolean. This is used to determine - the block of activities (ifTrueActivities or ifFalseActivities) that will be executed. - Required. - :paramtype expression: ~azure.mgmt.datafactory.models.Expression - :keyword if_true_activities: List of activities to execute if expression is evaluated to true. - This is an optional property and if not provided, the activity will exit without any action. - :paramtype if_true_activities: list[~azure.mgmt.datafactory.models.Activity] - :keyword if_false_activities: List of activities to execute if expression is evaluated to - false. This is an optional property and if not provided, the activity will exit without any - action. - :paramtype if_false_activities: list[~azure.mgmt.datafactory.models.Activity] - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - **kwargs - ) - self.type: str = "IfCondition" - self.expression = expression - self.if_true_activities = if_true_activities - self.if_false_activities = if_false_activities - - -class ImpalaLinkedService(LinkedService): - """Impala server linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar host: The IP address or host name of the Impala server. (i.e. 192.168.222.160). Required. - :vartype host: JSON - :ivar port: The TCP port that the Impala server uses to listen for client connections. The - default value is 21050. - :vartype port: JSON - :ivar authentication_type: The authentication type to use. Required. Known values are: - "Anonymous", "SASLUsername", and "UsernameAndPassword". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.ImpalaAuthenticationType - :ivar username: The user name used to access the Impala server. The default value is anonymous - when using SASLUsername. - :vartype username: JSON - :ivar password: The password corresponding to the user name when using UsernameAndPassword. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar thrift_transport_protocol: The transport protocol to use in the Thrift layer (for V2 - only). Default value is Binary. Known values are: "Binary" and "HTTP". - :vartype thrift_transport_protocol: str or - ~azure.mgmt.datafactory.models.ImpalaThriftTransportProtocol - :ivar enable_ssl: Specifies whether the connections to the server are encrypted using SSL. The - default value is false. - :vartype enable_ssl: JSON - :ivar enable_server_certificate_validation: Specify whether to enable server SSL certificate - validation when you connect.Always use System Trust Store (for V2 only). The default value is - true. - :vartype enable_server_certificate_validation: JSON - :ivar trusted_cert_path: The full path of the .pem file containing trusted CA certificates for - verifying the server when connecting over SSL. This property can only be set when using SSL on - self-hosted IR. The default value is the cacerts.pem file installed with the IR. - :vartype trusted_cert_path: JSON - :ivar use_system_trust_store: Specifies whether to use a CA certificate from the system trust - store or from a specified PEM file. The default value is false. - :vartype use_system_trust_store: JSON - :ivar allow_host_name_cn_mismatch: Specifies whether to require a CA-issued SSL certificate - name to match the host name of the server when connecting over SSL. The default value is false. - :vartype allow_host_name_cn_mismatch: JSON - :ivar allow_self_signed_server_cert: Specifies whether to allow self-signed certificates from - the server. The default value is false. - :vartype allow_self_signed_server_cert: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "host": {"required": True}, - "authentication_type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "thrift_transport_protocol": {"key": "typeProperties.thriftTransportProtocol", "type": "str"}, - "enable_ssl": {"key": "typeProperties.enableSsl", "type": "object"}, - "enable_server_certificate_validation": { - "key": "typeProperties.enableServerCertificateValidation", - "type": "object", - }, - "trusted_cert_path": {"key": "typeProperties.trustedCertPath", "type": "object"}, - "use_system_trust_store": {"key": "typeProperties.useSystemTrustStore", "type": "object"}, - "allow_host_name_cn_mismatch": {"key": "typeProperties.allowHostNameCNMismatch", "type": "object"}, - "allow_self_signed_server_cert": {"key": "typeProperties.allowSelfSignedServerCert", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - host: JSON, - authentication_type: Union[str, "_models.ImpalaAuthenticationType"], - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - port: Optional[JSON] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - thrift_transport_protocol: Optional[Union[str, "_models.ImpalaThriftTransportProtocol"]] = None, - enable_ssl: Optional[JSON] = None, - enable_server_certificate_validation: Optional[JSON] = None, - trusted_cert_path: Optional[JSON] = None, - use_system_trust_store: Optional[JSON] = None, - allow_host_name_cn_mismatch: Optional[JSON] = None, - allow_self_signed_server_cert: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword host: The IP address or host name of the Impala server. (i.e. 192.168.222.160). - Required. - :paramtype host: JSON - :keyword port: The TCP port that the Impala server uses to listen for client connections. The - default value is 21050. - :paramtype port: JSON - :keyword authentication_type: The authentication type to use. Required. Known values are: - "Anonymous", "SASLUsername", and "UsernameAndPassword". - :paramtype authentication_type: str or ~azure.mgmt.datafactory.models.ImpalaAuthenticationType - :keyword username: The user name used to access the Impala server. The default value is - anonymous when using SASLUsername. - :paramtype username: JSON - :keyword password: The password corresponding to the user name when using UsernameAndPassword. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword thrift_transport_protocol: The transport protocol to use in the Thrift layer (for V2 - only). Default value is Binary. Known values are: "Binary" and "HTTP". - :paramtype thrift_transport_protocol: str or - ~azure.mgmt.datafactory.models.ImpalaThriftTransportProtocol - :keyword enable_ssl: Specifies whether the connections to the server are encrypted using SSL. - The default value is false. - :paramtype enable_ssl: JSON - :keyword enable_server_certificate_validation: Specify whether to enable server SSL certificate - validation when you connect.Always use System Trust Store (for V2 only). The default value is - true. - :paramtype enable_server_certificate_validation: JSON - :keyword trusted_cert_path: The full path of the .pem file containing trusted CA certificates - for verifying the server when connecting over SSL. This property can only be set when using SSL - on self-hosted IR. The default value is the cacerts.pem file installed with the IR. - :paramtype trusted_cert_path: JSON - :keyword use_system_trust_store: Specifies whether to use a CA certificate from the system - trust store or from a specified PEM file. The default value is false. - :paramtype use_system_trust_store: JSON - :keyword allow_host_name_cn_mismatch: Specifies whether to require a CA-issued SSL certificate - name to match the host name of the server when connecting over SSL. The default value is false. - :paramtype allow_host_name_cn_mismatch: JSON - :keyword allow_self_signed_server_cert: Specifies whether to allow self-signed certificates - from the server. The default value is false. - :paramtype allow_self_signed_server_cert: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Impala" - self.host = host - self.port = port - self.authentication_type = authentication_type - self.username = username - self.password = password - self.thrift_transport_protocol = thrift_transport_protocol - self.enable_ssl = enable_ssl - self.enable_server_certificate_validation = enable_server_certificate_validation - self.trusted_cert_path = trusted_cert_path - self.use_system_trust_store = use_system_trust_store - self.allow_host_name_cn_mismatch = allow_host_name_cn_mismatch - self.allow_self_signed_server_cert = allow_self_signed_server_cert - self.encrypted_credential = encrypted_credential - - -class ImpalaObjectDataset(Dataset): - """Impala server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property will be retired. Please consider using schema + table - properties instead. - :vartype table_name: JSON - :ivar table: The table name of the Impala. Type: string (or Expression with resultType string). - :vartype table: JSON - :ivar schema_type_properties_schema: The schema name of the Impala. Type: string (or Expression - with resultType string). - :vartype schema_type_properties_schema: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - table: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property will be retired. Please consider using schema + table - properties instead. - :paramtype table_name: JSON - :keyword table: The table name of the Impala. Type: string (or Expression with resultType - string). - :paramtype table: JSON - :keyword schema_type_properties_schema: The schema name of the Impala. Type: string (or - Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "ImpalaObject" - self.table_name = table_name - self.table = table - self.schema_type_properties_schema = schema_type_properties_schema - - -class ImpalaSource(TabularSource): - """A copy activity Impala server source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "ImpalaSource" - self.query = query - - -class InformixLinkedService(LinkedService): - """Informix linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: The non-access credential portion of the connection string as well as - an optional encrypted credential. Type: string, or SecureString, or - AzureKeyVaultSecretReference, or Expression with resultType string. Required. - :vartype connection_string: JSON - :ivar authentication_type: Type of authentication used to connect to the Informix as ODBC data - store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType - string). - :vartype authentication_type: JSON - :ivar credential: The access credential portion of the connection string specified in - driver-specific property-value format. - :vartype credential: ~azure.mgmt.datafactory.models.SecretBase - :ivar user_name: User name for Basic authentication. Type: string (or Expression with - resultType string). - :vartype user_name: JSON - :ivar password: Password for Basic authentication. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "connection_string": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "object"}, - "credential": {"key": "typeProperties.credential", "type": "SecretBase"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - connection_string: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - authentication_type: Optional[JSON] = None, - credential: Optional["_models.SecretBase"] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: The non-access credential portion of the connection string as well - as an optional encrypted credential. Type: string, or SecureString, or - AzureKeyVaultSecretReference, or Expression with resultType string. Required. - :paramtype connection_string: JSON - :keyword authentication_type: Type of authentication used to connect to the Informix as ODBC - data store. Possible values are: Anonymous and Basic. Type: string (or Expression with - resultType string). - :paramtype authentication_type: JSON - :keyword credential: The access credential portion of the connection string specified in - driver-specific property-value format. - :paramtype credential: ~azure.mgmt.datafactory.models.SecretBase - :keyword user_name: User name for Basic authentication. Type: string (or Expression with - resultType string). - :paramtype user_name: JSON - :keyword password: Password for Basic authentication. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Informix" - self.connection_string = connection_string - self.authentication_type = authentication_type - self.credential = credential - self.user_name = user_name - self.password = password - self.encrypted_credential = encrypted_credential - - -class InformixSink(CopySink): - """A copy activity Informix sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar pre_copy_script: A query to execute before starting the copy. Type: string (or Expression - with resultType string). - :vartype pre_copy_script: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "pre_copy_script": {"key": "preCopyScript", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - pre_copy_script: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword pre_copy_script: A query to execute before starting the copy. Type: string (or - Expression with resultType string). - :paramtype pre_copy_script: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "InformixSink" - self.pre_copy_script = pre_copy_script - - -class InformixSource(TabularSource): - """A copy activity source for Informix. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: Database query. Type: string (or Expression with resultType string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: Database query. Type: string (or Expression with resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "InformixSource" - self.query = query - - -class InformixTableDataset(Dataset): - """The Informix table dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The Informix table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The Informix table name. Type: string (or Expression with resultType - string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "InformixTable" - self.table_name = table_name - - -class IntegrationRuntime(_serialization.Model): - """Azure Data Factory nested object which serves as a compute resource for activities. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ManagedIntegrationRuntime, SelfHostedIntegrationRuntime - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of integration runtime. Required. Known values are: "Managed" and - "SelfHosted". - :vartype type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType - :ivar description: Integration runtime description. - :vartype description: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - _subtype_map = {"type": {"Managed": "ManagedIntegrationRuntime", "SelfHosted": "SelfHostedIntegrationRuntime"}} - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Integration runtime description. - :paramtype description: str - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - self.description = description - - -class IntegrationRuntimeAuthKeys(_serialization.Model): - """The integration runtime authentication keys. - - :ivar auth_key1: The primary integration runtime authentication key. - :vartype auth_key1: str - :ivar auth_key2: The secondary integration runtime authentication key. - :vartype auth_key2: str - """ - - _attribute_map = { - "auth_key1": {"key": "authKey1", "type": "str"}, - "auth_key2": {"key": "authKey2", "type": "str"}, - } - - def __init__(self, *, auth_key1: Optional[str] = None, auth_key2: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword auth_key1: The primary integration runtime authentication key. - :paramtype auth_key1: str - :keyword auth_key2: The secondary integration runtime authentication key. - :paramtype auth_key2: str - """ - super().__init__(**kwargs) - self.auth_key1 = auth_key1 - self.auth_key2 = auth_key2 - - -class IntegrationRuntimeComputeProperties(_serialization.Model): - """The compute resource properties for managed integration runtime. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar location: The location for managed integration runtime. The supported regions could be - found on - https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities. - :vartype location: str - :ivar node_size: The node size requirement to managed integration runtime. - :vartype node_size: str - :ivar number_of_nodes: The required number of nodes for managed integration runtime. - :vartype number_of_nodes: int - :ivar max_parallel_executions_per_node: Maximum parallel executions count per node for managed - integration runtime. - :vartype max_parallel_executions_per_node: int - :ivar data_flow_properties: Data flow properties for managed integration runtime. - :vartype data_flow_properties: - ~azure.mgmt.datafactory.models.IntegrationRuntimeDataFlowProperties - :ivar v_net_properties: VNet properties for managed integration runtime. - :vartype v_net_properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeVNetProperties - :ivar copy_compute_scale_properties: CopyComputeScale properties for managed integration - runtime. - :vartype copy_compute_scale_properties: - ~azure.mgmt.datafactory.models.CopyComputeScaleProperties - :ivar pipeline_external_compute_scale_properties: PipelineExternalComputeScale properties for - managed integration runtime. - :vartype pipeline_external_compute_scale_properties: - ~azure.mgmt.datafactory.models.PipelineExternalComputeScaleProperties - """ - - _validation = { - "number_of_nodes": {"minimum": 1}, - "max_parallel_executions_per_node": {"minimum": 1}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "location": {"key": "location", "type": "str"}, - "node_size": {"key": "nodeSize", "type": "str"}, - "number_of_nodes": {"key": "numberOfNodes", "type": "int"}, - "max_parallel_executions_per_node": {"key": "maxParallelExecutionsPerNode", "type": "int"}, - "data_flow_properties": {"key": "dataFlowProperties", "type": "IntegrationRuntimeDataFlowProperties"}, - "v_net_properties": {"key": "vNetProperties", "type": "IntegrationRuntimeVNetProperties"}, - "copy_compute_scale_properties": {"key": "copyComputeScaleProperties", "type": "CopyComputeScaleProperties"}, - "pipeline_external_compute_scale_properties": { - "key": "pipelineExternalComputeScaleProperties", - "type": "PipelineExternalComputeScaleProperties", - }, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - location: Optional[str] = None, - node_size: Optional[str] = None, - number_of_nodes: Optional[int] = None, - max_parallel_executions_per_node: Optional[int] = None, - data_flow_properties: Optional["_models.IntegrationRuntimeDataFlowProperties"] = None, - v_net_properties: Optional["_models.IntegrationRuntimeVNetProperties"] = None, - copy_compute_scale_properties: Optional["_models.CopyComputeScaleProperties"] = None, - pipeline_external_compute_scale_properties: Optional["_models.PipelineExternalComputeScaleProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword location: The location for managed integration runtime. The supported regions could be - found on - https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities. - :paramtype location: str - :keyword node_size: The node size requirement to managed integration runtime. - :paramtype node_size: str - :keyword number_of_nodes: The required number of nodes for managed integration runtime. - :paramtype number_of_nodes: int - :keyword max_parallel_executions_per_node: Maximum parallel executions count per node for - managed integration runtime. - :paramtype max_parallel_executions_per_node: int - :keyword data_flow_properties: Data flow properties for managed integration runtime. - :paramtype data_flow_properties: - ~azure.mgmt.datafactory.models.IntegrationRuntimeDataFlowProperties - :keyword v_net_properties: VNet properties for managed integration runtime. - :paramtype v_net_properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeVNetProperties - :keyword copy_compute_scale_properties: CopyComputeScale properties for managed integration - runtime. - :paramtype copy_compute_scale_properties: - ~azure.mgmt.datafactory.models.CopyComputeScaleProperties - :keyword pipeline_external_compute_scale_properties: PipelineExternalComputeScale properties - for managed integration runtime. - :paramtype pipeline_external_compute_scale_properties: - ~azure.mgmt.datafactory.models.PipelineExternalComputeScaleProperties - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.location = location - self.node_size = node_size - self.number_of_nodes = number_of_nodes - self.max_parallel_executions_per_node = max_parallel_executions_per_node - self.data_flow_properties = data_flow_properties - self.v_net_properties = v_net_properties - self.copy_compute_scale_properties = copy_compute_scale_properties - self.pipeline_external_compute_scale_properties = pipeline_external_compute_scale_properties - - -class IntegrationRuntimeConnectionInfo(_serialization.Model): - """Connection information for encrypting the on-premises data source credentials. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar service_token: The token generated in service. Callers use this token to authenticate to - integration runtime. - :vartype service_token: str - :ivar identity_cert_thumbprint: The integration runtime SSL certificate thumbprint. Click-Once - application uses it to do server validation. - :vartype identity_cert_thumbprint: str - :ivar host_service_uri: The on-premises integration runtime host URL. - :vartype host_service_uri: str - :ivar version: The integration runtime version. - :vartype version: str - :ivar public_key: The public key for encrypting a credential when transferring the credential - to the integration runtime. - :vartype public_key: str - :ivar is_identity_cert_exprired: Whether the identity certificate is expired. - :vartype is_identity_cert_exprired: bool - """ - - _validation = { - "service_token": {"readonly": True}, - "identity_cert_thumbprint": {"readonly": True}, - "host_service_uri": {"readonly": True}, - "version": {"readonly": True}, - "public_key": {"readonly": True}, - "is_identity_cert_exprired": {"readonly": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "service_token": {"key": "serviceToken", "type": "str"}, - "identity_cert_thumbprint": {"key": "identityCertThumbprint", "type": "str"}, - "host_service_uri": {"key": "hostServiceUri", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "public_key": {"key": "publicKey", "type": "str"}, - "is_identity_cert_exprired": {"key": "isIdentityCertExprired", "type": "bool"}, - } - - def __init__(self, *, additional_properties: Optional[dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.service_token: Optional[str] = None - self.identity_cert_thumbprint: Optional[str] = None - self.host_service_uri: Optional[str] = None - self.version: Optional[str] = None - self.public_key: Optional[str] = None - self.is_identity_cert_exprired: Optional[bool] = None - - -class IntegrationRuntimeCustomerVirtualNetwork(_serialization.Model): - """The definition and properties of virtual network to which Azure-SSIS integration runtime will - join. - - :ivar subnet_id: The ID of subnet to which Azure-SSIS integration runtime will join. - :vartype subnet_id: str - """ - - _attribute_map = { - "subnet_id": {"key": "subnetId", "type": "str"}, - } - - def __init__(self, *, subnet_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword subnet_id: The ID of subnet to which Azure-SSIS integration runtime will join. - :paramtype subnet_id: str - """ - super().__init__(**kwargs) - self.subnet_id = subnet_id - - -class IntegrationRuntimeCustomSetupScriptProperties(_serialization.Model): # pylint: disable=name-too-long - """Custom setup script properties for a managed dedicated integration runtime. - - :ivar blob_container_uri: The URI of the Azure blob container that contains the custom setup - script. - :vartype blob_container_uri: str - :ivar sas_token: The SAS token of the Azure blob container. - :vartype sas_token: ~azure.mgmt.datafactory.models.SecureString - """ - - _attribute_map = { - "blob_container_uri": {"key": "blobContainerUri", "type": "str"}, - "sas_token": {"key": "sasToken", "type": "SecureString"}, - } - - def __init__( - self, - *, - blob_container_uri: Optional[str] = None, - sas_token: Optional["_models.SecureString"] = None, - **kwargs: Any - ) -> None: - """ - :keyword blob_container_uri: The URI of the Azure blob container that contains the custom setup - script. - :paramtype blob_container_uri: str - :keyword sas_token: The SAS token of the Azure blob container. - :paramtype sas_token: ~azure.mgmt.datafactory.models.SecureString - """ - super().__init__(**kwargs) - self.blob_container_uri = blob_container_uri - self.sas_token = sas_token - - -class IntegrationRuntimeDataFlowProperties(_serialization.Model): - """Data flow properties for managed integration runtime. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar compute_type: Compute type of the cluster which will execute data flow job. Known values - are: "General", "MemoryOptimized", and "ComputeOptimized". - :vartype compute_type: str or ~azure.mgmt.datafactory.models.DataFlowComputeType - :ivar core_count: Core count of the cluster which will execute data flow job. Supported values - are: 8, 16, 32, 48, 80, 144 and 272. - :vartype core_count: int - :ivar time_to_live: Time to live (in minutes) setting of the cluster which will execute data - flow job. - :vartype time_to_live: int - :ivar cleanup: Cluster will not be recycled and it will be used in next data flow activity run - until TTL (time to live) is reached if this is set as false. Default is true. - :vartype cleanup: bool - :ivar custom_properties: Custom properties are used to tune the data flow runtime performance. - :vartype custom_properties: - list[~azure.mgmt.datafactory.models.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem] - """ - - _validation = { - "time_to_live": {"minimum": 0}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "compute_type": {"key": "computeType", "type": "str"}, - "core_count": {"key": "coreCount", "type": "int"}, - "time_to_live": {"key": "timeToLive", "type": "int"}, - "cleanup": {"key": "cleanup", "type": "bool"}, - "custom_properties": { - "key": "customProperties", - "type": "[IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem]", - }, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - compute_type: Optional[Union[str, "_models.DataFlowComputeType"]] = None, - core_count: Optional[int] = None, - time_to_live: Optional[int] = None, - cleanup: Optional[bool] = None, - custom_properties: Optional[list["_models.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword compute_type: Compute type of the cluster which will execute data flow job. Known - values are: "General", "MemoryOptimized", and "ComputeOptimized". - :paramtype compute_type: str or ~azure.mgmt.datafactory.models.DataFlowComputeType - :keyword core_count: Core count of the cluster which will execute data flow job. Supported - values are: 8, 16, 32, 48, 80, 144 and 272. - :paramtype core_count: int - :keyword time_to_live: Time to live (in minutes) setting of the cluster which will execute data - flow job. - :paramtype time_to_live: int - :keyword cleanup: Cluster will not be recycled and it will be used in next data flow activity - run until TTL (time to live) is reached if this is set as false. Default is true. - :paramtype cleanup: bool - :keyword custom_properties: Custom properties are used to tune the data flow runtime - performance. - :paramtype custom_properties: - list[~azure.mgmt.datafactory.models.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.compute_type = compute_type - self.core_count = core_count - self.time_to_live = time_to_live - self.cleanup = cleanup - self.custom_properties = custom_properties - - -class IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem(_serialization.Model): # pylint: disable=name-too-long - """IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem. - - :ivar name: Name of custom property. - :vartype name: str - :ivar value: Value of custom property. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Name of custom property. - :paramtype name: str - :keyword value: Value of custom property. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class IntegrationRuntimeDataProxyProperties(_serialization.Model): - """Data proxy properties for a managed dedicated integration runtime. - - :ivar connect_via: The self-hosted integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.EntityReference - :ivar staging_linked_service: The staging linked service reference. - :vartype staging_linked_service: ~azure.mgmt.datafactory.models.EntityReference - :ivar path: The path to contain the staged data in the Blob storage. - :vartype path: str - """ - - _attribute_map = { - "connect_via": {"key": "connectVia", "type": "EntityReference"}, - "staging_linked_service": {"key": "stagingLinkedService", "type": "EntityReference"}, - "path": {"key": "path", "type": "str"}, - } - - def __init__( - self, - *, - connect_via: Optional["_models.EntityReference"] = None, - staging_linked_service: Optional["_models.EntityReference"] = None, - path: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword connect_via: The self-hosted integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.EntityReference - :keyword staging_linked_service: The staging linked service reference. - :paramtype staging_linked_service: ~azure.mgmt.datafactory.models.EntityReference - :keyword path: The path to contain the staged data in the Blob storage. - :paramtype path: str - """ - super().__init__(**kwargs) - self.connect_via = connect_via - self.staging_linked_service = staging_linked_service - self.path = path - - -class IntegrationRuntimeDebugResource(SubResourceDebugResource): - """Integration runtime debug resource. - - All required parameters must be populated in order to send to server. - - :ivar name: The resource name. - :vartype name: str - :ivar properties: Integration runtime properties. Required. - :vartype properties: ~azure.mgmt.datafactory.models.IntegrationRuntime - """ - - _validation = { - "properties": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "properties": {"key": "properties", "type": "IntegrationRuntime"}, - } - - def __init__(self, *, properties: "_models.IntegrationRuntime", name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The resource name. - :paramtype name: str - :keyword properties: Integration runtime properties. Required. - :paramtype properties: ~azure.mgmt.datafactory.models.IntegrationRuntime - """ - super().__init__(name=name, **kwargs) - self.properties = properties - - -class IntegrationRuntimeListResponse(_serialization.Model): - """A list of integration runtime resources. - - All required parameters must be populated in order to send to server. - - :ivar value: List of integration runtimes. Required. - :vartype value: list[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] - :ivar next_link: The link to the next page of results, if any remaining results exist. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[IntegrationRuntimeResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: list["_models.IntegrationRuntimeResource"], next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: List of integration runtimes. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] - :keyword next_link: The link to the next page of results, if any remaining results exist. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class IntegrationRuntimeMonitoringData(_serialization.Model): - """Get monitoring data response. - - :ivar name: Integration runtime name. - :vartype name: str - :ivar nodes: Integration runtime node monitoring data. - :vartype nodes: list[~azure.mgmt.datafactory.models.IntegrationRuntimeNodeMonitoringData] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "nodes": {"key": "nodes", "type": "[IntegrationRuntimeNodeMonitoringData]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - nodes: Optional[list["_models.IntegrationRuntimeNodeMonitoringData"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Integration runtime name. - :paramtype name: str - :keyword nodes: Integration runtime node monitoring data. - :paramtype nodes: list[~azure.mgmt.datafactory.models.IntegrationRuntimeNodeMonitoringData] - """ - super().__init__(**kwargs) - self.name = name - self.nodes = nodes - - -class IntegrationRuntimeNodeIpAddress(_serialization.Model): - """The IP address of self-hosted integration runtime node. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar ip_address: The IP address of self-hosted integration runtime node. - :vartype ip_address: str - """ - - _validation = { - "ip_address": {"readonly": True}, - } - - _attribute_map = { - "ip_address": {"key": "ipAddress", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.ip_address: Optional[str] = None - - -class IntegrationRuntimeNodeMonitoringData(_serialization.Model): - """Monitoring data for integration runtime node. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar node_name: Name of the integration runtime node. - :vartype node_name: str - :ivar available_memory_in_mb: Available memory (MB) on the integration runtime node. - :vartype available_memory_in_mb: int - :ivar cpu_utilization: CPU percentage on the integration runtime node. - :vartype cpu_utilization: int - :ivar concurrent_jobs_limit: Maximum concurrent jobs on the integration runtime node. - :vartype concurrent_jobs_limit: int - :ivar concurrent_jobs_running: The number of jobs currently running on the integration runtime - node. - :vartype concurrent_jobs_running: int - :ivar max_concurrent_jobs: The maximum concurrent jobs in this integration runtime. - :vartype max_concurrent_jobs: int - :ivar sent_bytes: Sent bytes on the integration runtime node. - :vartype sent_bytes: float - :ivar received_bytes: Received bytes on the integration runtime node. - :vartype received_bytes: float - """ - - _validation = { - "node_name": {"readonly": True}, - "available_memory_in_mb": {"readonly": True}, - "cpu_utilization": {"readonly": True}, - "concurrent_jobs_limit": {"readonly": True}, - "concurrent_jobs_running": {"readonly": True}, - "max_concurrent_jobs": {"readonly": True}, - "sent_bytes": {"readonly": True}, - "received_bytes": {"readonly": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "node_name": {"key": "nodeName", "type": "str"}, - "available_memory_in_mb": {"key": "availableMemoryInMB", "type": "int"}, - "cpu_utilization": {"key": "cpuUtilization", "type": "int"}, - "concurrent_jobs_limit": {"key": "concurrentJobsLimit", "type": "int"}, - "concurrent_jobs_running": {"key": "concurrentJobsRunning", "type": "int"}, - "max_concurrent_jobs": {"key": "maxConcurrentJobs", "type": "int"}, - "sent_bytes": {"key": "sentBytes", "type": "float"}, - "received_bytes": {"key": "receivedBytes", "type": "float"}, - } - - def __init__(self, *, additional_properties: Optional[dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.node_name: Optional[str] = None - self.available_memory_in_mb: Optional[int] = None - self.cpu_utilization: Optional[int] = None - self.concurrent_jobs_limit: Optional[int] = None - self.concurrent_jobs_running: Optional[int] = None - self.max_concurrent_jobs: Optional[int] = None - self.sent_bytes: Optional[float] = None - self.received_bytes: Optional[float] = None - - -class IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint( - _serialization.Model -): # pylint: disable=name-too-long - """Azure-SSIS integration runtime outbound network dependency endpoints for one category. - - :ivar category: The category of outbound network dependency. - :vartype category: str - :ivar endpoints: The endpoints for outbound network dependency. - :vartype endpoints: - list[~azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint] - """ - - _attribute_map = { - "category": {"key": "category", "type": "str"}, - "endpoints": {"key": "endpoints", "type": "[IntegrationRuntimeOutboundNetworkDependenciesEndpoint]"}, - } - - def __init__( - self, - *, - category: Optional[str] = None, - endpoints: Optional[list["_models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword category: The category of outbound network dependency. - :paramtype category: str - :keyword endpoints: The endpoints for outbound network dependency. - :paramtype endpoints: - list[~azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint] - """ - super().__init__(**kwargs) - self.category = category - self.endpoints = endpoints - - -class IntegrationRuntimeOutboundNetworkDependenciesEndpoint(_serialization.Model): # pylint: disable=name-too-long - """The endpoint for Azure-SSIS integration runtime outbound network dependency. - - :ivar domain_name: The domain name of endpoint. - :vartype domain_name: str - :ivar endpoint_details: The details of endpoint. - :vartype endpoint_details: - list[~azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails] - """ - - _attribute_map = { - "domain_name": {"key": "domainName", "type": "str"}, - "endpoint_details": { - "key": "endpointDetails", - "type": "[IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails]", - }, - } - - def __init__( - self, - *, - domain_name: Optional[str] = None, - endpoint_details: Optional[list["_models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword domain_name: The domain name of endpoint. - :paramtype domain_name: str - :keyword endpoint_details: The details of endpoint. - :paramtype endpoint_details: - list[~azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails] - """ - super().__init__(**kwargs) - self.domain_name = domain_name - self.endpoint_details = endpoint_details - - -class IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails( - _serialization.Model -): # pylint: disable=name-too-long - """The details of Azure-SSIS integration runtime outbound network dependency endpoint. - - :ivar port: The port of endpoint. - :vartype port: int - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - } - - def __init__(self, *, port: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword port: The port of endpoint. - :paramtype port: int - """ - super().__init__(**kwargs) - self.port = port - - -class IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse( - _serialization.Model -): # pylint: disable=name-too-long - """Azure-SSIS integration runtime outbound network dependency endpoints. - - :ivar value: The list of outbound network dependency endpoints. - :vartype value: - list[~azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint] - """ - - _attribute_map = { - "value": {"key": "value", "type": "[IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint]"}, - } - - def __init__( - self, - *, - value: Optional[list["_models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The list of outbound network dependency endpoints. - :paramtype value: - list[~azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint] - """ - super().__init__(**kwargs) - self.value = value - - -class IntegrationRuntimeReference(_serialization.Model): - """Integration runtime reference type. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of integration runtime. Required. "IntegrationRuntimeReference" - :vartype type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeReferenceType - :ivar reference_name: Reference integration runtime name. Required. - :vartype reference_name: str - :ivar parameters: Arguments for integration runtime. - :vartype parameters: dict[str, JSON] - """ - - _validation = { - "type": {"required": True}, - "reference_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "reference_name": {"key": "referenceName", "type": "str"}, - "parameters": {"key": "parameters", "type": "{object}"}, - } - - def __init__( - self, - *, - type: Union[str, "_models.IntegrationRuntimeReferenceType"], - reference_name: str, - parameters: Optional[dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of integration runtime. Required. "IntegrationRuntimeReference" - :paramtype type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeReferenceType - :keyword reference_name: Reference integration runtime name. Required. - :paramtype reference_name: str - :keyword parameters: Arguments for integration runtime. - :paramtype parameters: dict[str, JSON] - """ - super().__init__(**kwargs) - self.type = type - self.reference_name = reference_name - self.parameters = parameters - - -class IntegrationRuntimeRegenerateKeyParameters(_serialization.Model): # pylint: disable=name-too-long - """Parameters to regenerate the authentication key. - - :ivar key_name: The name of the authentication key to regenerate. Known values are: "authKey1" - and "authKey2". - :vartype key_name: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeyName - """ - - _attribute_map = { - "key_name": {"key": "keyName", "type": "str"}, - } - - def __init__( - self, *, key_name: Optional[Union[str, "_models.IntegrationRuntimeAuthKeyName"]] = None, **kwargs: Any - ) -> None: - """ - :keyword key_name: The name of the authentication key to regenerate. Known values are: - "authKey1" and "authKey2". - :paramtype key_name: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeyName - """ - super().__init__(**kwargs) - self.key_name = key_name - - -class IntegrationRuntimeResource(SubResource): - """Integration runtime resource type. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar etag: Etag identifies change in the resource. - :vartype etag: str - :ivar properties: Integration runtime properties. Required. - :vartype properties: ~azure.mgmt.datafactory.models.IntegrationRuntime - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "etag": {"readonly": True}, - "properties": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "etag": {"key": "etag", "type": "str"}, - "properties": {"key": "properties", "type": "IntegrationRuntime"}, - } - - def __init__(self, *, properties: "_models.IntegrationRuntime", **kwargs: Any) -> None: - """ - :keyword properties: Integration runtime properties. Required. - :paramtype properties: ~azure.mgmt.datafactory.models.IntegrationRuntime - """ - super().__init__(**kwargs) - self.properties = properties - - -class IntegrationRuntimeSsisCatalogInfo(_serialization.Model): - """Catalog information for managed dedicated integration runtime. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar catalog_server_endpoint: The catalog database server URL. - :vartype catalog_server_endpoint: str - :ivar catalog_admin_user_name: The administrator user name of catalog database. - :vartype catalog_admin_user_name: str - :ivar catalog_admin_password: The password of the administrator user account of the catalog - database. - :vartype catalog_admin_password: ~azure.mgmt.datafactory.models.SecureString - :ivar catalog_pricing_tier: The pricing tier for the catalog database. The valid values could - be found in https://azure.microsoft.com/en-us/pricing/details/sql-database/. Known values are: - "Basic", "Standard", "Premium", and "PremiumRS". - :vartype catalog_pricing_tier: str or - ~azure.mgmt.datafactory.models.IntegrationRuntimeSsisCatalogPricingTier - :ivar dual_standby_pair_name: The dual standby pair name of Azure-SSIS Integration Runtimes to - support SSISDB failover. - :vartype dual_standby_pair_name: str - """ - - _validation = { - "catalog_admin_user_name": {"max_length": 128, "min_length": 1}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "catalog_server_endpoint": {"key": "catalogServerEndpoint", "type": "str"}, - "catalog_admin_user_name": {"key": "catalogAdminUserName", "type": "str"}, - "catalog_admin_password": {"key": "catalogAdminPassword", "type": "SecureString"}, - "catalog_pricing_tier": {"key": "catalogPricingTier", "type": "str"}, - "dual_standby_pair_name": {"key": "dualStandbyPairName", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - catalog_server_endpoint: Optional[str] = None, - catalog_admin_user_name: Optional[str] = None, - catalog_admin_password: Optional["_models.SecureString"] = None, - catalog_pricing_tier: Optional[Union[str, "_models.IntegrationRuntimeSsisCatalogPricingTier"]] = None, - dual_standby_pair_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword catalog_server_endpoint: The catalog database server URL. - :paramtype catalog_server_endpoint: str - :keyword catalog_admin_user_name: The administrator user name of catalog database. - :paramtype catalog_admin_user_name: str - :keyword catalog_admin_password: The password of the administrator user account of the catalog - database. - :paramtype catalog_admin_password: ~azure.mgmt.datafactory.models.SecureString - :keyword catalog_pricing_tier: The pricing tier for the catalog database. The valid values - could be found in https://azure.microsoft.com/en-us/pricing/details/sql-database/. Known values - are: "Basic", "Standard", "Premium", and "PremiumRS". - :paramtype catalog_pricing_tier: str or - ~azure.mgmt.datafactory.models.IntegrationRuntimeSsisCatalogPricingTier - :keyword dual_standby_pair_name: The dual standby pair name of Azure-SSIS Integration Runtimes - to support SSISDB failover. - :paramtype dual_standby_pair_name: str - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.catalog_server_endpoint = catalog_server_endpoint - self.catalog_admin_user_name = catalog_admin_user_name - self.catalog_admin_password = catalog_admin_password - self.catalog_pricing_tier = catalog_pricing_tier - self.dual_standby_pair_name = dual_standby_pair_name - - -class IntegrationRuntimeSsisProperties(_serialization.Model): - """SSIS properties for managed integration runtime. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar catalog_info: Catalog information for managed dedicated integration runtime. - :vartype catalog_info: ~azure.mgmt.datafactory.models.IntegrationRuntimeSsisCatalogInfo - :ivar license_type: License type for bringing your own license scenario. Known values are: - "BasePrice" and "LicenseIncluded". - :vartype license_type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeLicenseType - :ivar custom_setup_script_properties: Custom setup script properties for a managed dedicated - integration runtime. - :vartype custom_setup_script_properties: - ~azure.mgmt.datafactory.models.IntegrationRuntimeCustomSetupScriptProperties - :ivar data_proxy_properties: Data proxy properties for a managed dedicated integration runtime. - :vartype data_proxy_properties: - ~azure.mgmt.datafactory.models.IntegrationRuntimeDataProxyProperties - :ivar edition: The edition for the SSIS Integration Runtime. Known values are: "Standard" and - "Enterprise". - :vartype edition: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeEdition - :ivar express_custom_setup_properties: Custom setup without script properties for a SSIS - integration runtime. - :vartype express_custom_setup_properties: list[~azure.mgmt.datafactory.models.CustomSetupBase] - :ivar package_stores: Package stores for the SSIS Integration Runtime. - :vartype package_stores: list[~azure.mgmt.datafactory.models.PackageStore] - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "catalog_info": {"key": "catalogInfo", "type": "IntegrationRuntimeSsisCatalogInfo"}, - "license_type": {"key": "licenseType", "type": "str"}, - "custom_setup_script_properties": { - "key": "customSetupScriptProperties", - "type": "IntegrationRuntimeCustomSetupScriptProperties", - }, - "data_proxy_properties": {"key": "dataProxyProperties", "type": "IntegrationRuntimeDataProxyProperties"}, - "edition": {"key": "edition", "type": "str"}, - "express_custom_setup_properties": {"key": "expressCustomSetupProperties", "type": "[CustomSetupBase]"}, - "package_stores": {"key": "packageStores", "type": "[PackageStore]"}, - "credential": {"key": "credential", "type": "CredentialReference"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - catalog_info: Optional["_models.IntegrationRuntimeSsisCatalogInfo"] = None, - license_type: Optional[Union[str, "_models.IntegrationRuntimeLicenseType"]] = None, - custom_setup_script_properties: Optional["_models.IntegrationRuntimeCustomSetupScriptProperties"] = None, - data_proxy_properties: Optional["_models.IntegrationRuntimeDataProxyProperties"] = None, - edition: Optional[Union[str, "_models.IntegrationRuntimeEdition"]] = None, - express_custom_setup_properties: Optional[list["_models.CustomSetupBase"]] = None, - package_stores: Optional[list["_models.PackageStore"]] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword catalog_info: Catalog information for managed dedicated integration runtime. - :paramtype catalog_info: ~azure.mgmt.datafactory.models.IntegrationRuntimeSsisCatalogInfo - :keyword license_type: License type for bringing your own license scenario. Known values are: - "BasePrice" and "LicenseIncluded". - :paramtype license_type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeLicenseType - :keyword custom_setup_script_properties: Custom setup script properties for a managed dedicated - integration runtime. - :paramtype custom_setup_script_properties: - ~azure.mgmt.datafactory.models.IntegrationRuntimeCustomSetupScriptProperties - :keyword data_proxy_properties: Data proxy properties for a managed dedicated integration - runtime. - :paramtype data_proxy_properties: - ~azure.mgmt.datafactory.models.IntegrationRuntimeDataProxyProperties - :keyword edition: The edition for the SSIS Integration Runtime. Known values are: "Standard" - and "Enterprise". - :paramtype edition: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeEdition - :keyword express_custom_setup_properties: Custom setup without script properties for a SSIS - integration runtime. - :paramtype express_custom_setup_properties: - list[~azure.mgmt.datafactory.models.CustomSetupBase] - :keyword package_stores: Package stores for the SSIS Integration Runtime. - :paramtype package_stores: list[~azure.mgmt.datafactory.models.PackageStore] - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.catalog_info = catalog_info - self.license_type = license_type - self.custom_setup_script_properties = custom_setup_script_properties - self.data_proxy_properties = data_proxy_properties - self.edition = edition - self.express_custom_setup_properties = express_custom_setup_properties - self.package_stores = package_stores - self.credential = credential - - -class IntegrationRuntimeStatus(_serialization.Model): - """Integration runtime status. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ManagedIntegrationRuntimeStatus, SelfHostedIntegrationRuntimeStatus - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of integration runtime. Required. Known values are: "Managed" and - "SelfHosted". - :vartype type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType - :ivar data_factory_name: The data factory name which the integration runtime belong to. - :vartype data_factory_name: str - :ivar state: The state of integration runtime. Known values are: "Initial", "Stopped", - "Started", "Starting", "Stopping", "NeedRegistration", "Online", "Limited", "Offline", and - "AccessDenied". - :vartype state: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeState - """ - - _validation = { - "type": {"required": True}, - "data_factory_name": {"readonly": True}, - "state": {"readonly": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "data_factory_name": {"key": "dataFactoryName", "type": "str"}, - "state": {"key": "state", "type": "str"}, - } - - _subtype_map = { - "type": {"Managed": "ManagedIntegrationRuntimeStatus", "SelfHosted": "SelfHostedIntegrationRuntimeStatus"} - } - - def __init__(self, *, additional_properties: Optional[dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - self.data_factory_name: Optional[str] = None - self.state: Optional[Union[str, "_models.IntegrationRuntimeState"]] = None - - -class IntegrationRuntimeStatusListResponse(_serialization.Model): - """A list of integration runtime status. - - All required parameters must be populated in order to send to server. - - :ivar value: List of integration runtime status. Required. - :vartype value: list[~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse] - :ivar next_link: The link to the next page of results, if any remaining results exist. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[IntegrationRuntimeStatusResponse]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: list["_models.IntegrationRuntimeStatusResponse"], next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: List of integration runtime status. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse] - :keyword next_link: The link to the next page of results, if any remaining results exist. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class IntegrationRuntimeStatusResponse(_serialization.Model): - """Integration runtime status response. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar name: The integration runtime name. - :vartype name: str - :ivar properties: Integration runtime properties. Required. - :vartype properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatus - """ - - _validation = { - "name": {"readonly": True}, - "properties": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "properties": {"key": "properties", "type": "IntegrationRuntimeStatus"}, - } - - def __init__(self, *, properties: "_models.IntegrationRuntimeStatus", **kwargs: Any) -> None: - """ - :keyword properties: Integration runtime properties. Required. - :paramtype properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatus - """ - super().__init__(**kwargs) - self.name: Optional[str] = None - self.properties = properties - - -class IntegrationRuntimeVNetProperties(_serialization.Model): - """VNet properties for managed integration runtime. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar v_net_id: The ID of the VNet that this integration runtime will join. - :vartype v_net_id: str - :ivar subnet: The name of the subnet this integration runtime will join. - :vartype subnet: str - :ivar public_i_ps: Resource IDs of the public IP addresses that this integration runtime will - use. - :vartype public_i_ps: list[str] - :ivar subnet_id: The ID of subnet, to which this Azure-SSIS integration runtime will be joined. - :vartype subnet_id: str - """ - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "v_net_id": {"key": "vNetId", "type": "str"}, - "subnet": {"key": "subnet", "type": "str"}, - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - "subnet_id": {"key": "subnetId", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - v_net_id: Optional[str] = None, - subnet: Optional[str] = None, - public_i_ps: Optional[list[str]] = None, - subnet_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword v_net_id: The ID of the VNet that this integration runtime will join. - :paramtype v_net_id: str - :keyword subnet: The name of the subnet this integration runtime will join. - :paramtype subnet: str - :keyword public_i_ps: Resource IDs of the public IP addresses that this integration runtime - will use. - :paramtype public_i_ps: list[str] - :keyword subnet_id: The ID of subnet, to which this Azure-SSIS integration runtime will be - joined. - :paramtype subnet_id: str - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.v_net_id = v_net_id - self.subnet = subnet - self.public_i_ps = public_i_ps - self.subnet_id = subnet_id - - -class InteractiveQueryProperties(_serialization.Model): - """Interactive authoring capability type properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar status: The interactive authoring capability status. Must be one of - InteractiveCapabilityStatus. The default value is 'Enabling'. Known values are: "Enabling", - "Enabled", "Disabling", and "Disabled". - :vartype status: str or ~azure.mgmt.datafactory.models.InteractiveCapabilityStatus - :ivar auto_termination_minutes: The allowed idle time for interactive authoring. - :vartype auto_termination_minutes: int - """ - - _validation = { - "status": {"readonly": True}, - "auto_termination_minutes": {"readonly": True}, - } - - _attribute_map = { - "status": {"key": "status", "type": "str"}, - "auto_termination_minutes": {"key": "autoTerminationMinutes", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.status: Optional[Union[str, "_models.InteractiveCapabilityStatus"]] = None - self.auto_termination_minutes: Optional[int] = None - - -class JiraLinkedService(LinkedService): - """Jira Service linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar host: The IP address or host name of the Jira service. (e.g. jira.example.com). Required. - :vartype host: JSON - :ivar port: The TCP port that the Jira server uses to listen for client connections. The - default value is 443 if connecting through HTTPS, or 8080 if connecting through HTTP. - :vartype port: JSON - :ivar username: The user name that you use to access Jira Service. Required. - :vartype username: JSON - :ivar password: The password corresponding to the user name that you provided in the username - field. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using - HTTPS. The default value is true. - :vartype use_encrypted_endpoints: JSON - :ivar use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :vartype use_host_verification: JSON - :ivar use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :vartype use_peer_verification: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "host": {"required": True}, - "username": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, - "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, - "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - host: JSON, - username: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - port: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - use_encrypted_endpoints: Optional[JSON] = None, - use_host_verification: Optional[JSON] = None, - use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword host: The IP address or host name of the Jira service. (e.g. jira.example.com). - Required. - :paramtype host: JSON - :keyword port: The TCP port that the Jira server uses to listen for client connections. The - default value is 443 if connecting through HTTPS, or 8080 if connecting through HTTP. - :paramtype port: JSON - :keyword username: The user name that you use to access Jira Service. Required. - :paramtype username: JSON - :keyword password: The password corresponding to the user name that you provided in the - username field. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted - using HTTPS. The default value is true. - :paramtype use_encrypted_endpoints: JSON - :keyword use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :paramtype use_host_verification: JSON - :keyword use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :paramtype use_peer_verification: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Jira" - self.host = host - self.port = port - self.username = username - self.password = password - self.use_encrypted_endpoints = use_encrypted_endpoints - self.use_host_verification = use_host_verification - self.use_peer_verification = use_peer_verification - self.encrypted_credential = encrypted_credential - - -class JiraObjectDataset(Dataset): - """Jira Service dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property is only supported in Jira V1 Dataset, please consider upgrading - to V2 dataset. - :vartype table_name: JSON - :ivar schema_type_properties_schema: The schema name of the Jira, applies only for Jira V2 - dataset. Type: string (or Expression with resultType string). - :vartype schema_type_properties_schema: JSON - :ivar table: The table name of the Jira, applies only for Jira V2 dataset. Type: string (or - Expression with resultType string). - :vartype table: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - table: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property is only supported in Jira V1 Dataset, please consider - upgrading to V2 dataset. - :paramtype table_name: JSON - :keyword schema_type_properties_schema: The schema name of the Jira, applies only for Jira V2 - dataset. Type: string (or Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - :keyword table: The table name of the Jira, applies only for Jira V2 dataset. Type: string (or - Expression with resultType string). - :paramtype table: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "JiraObject" - self.table_name = table_name - self.schema_type_properties_schema = schema_type_properties_schema - self.table = table - - -class JiraSource(TabularSource): - """A copy activity Jira Service source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "JiraSource" - self.query = query - - -class JsonDataset(Dataset): - """Json dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar location: The location of the json data storage. - :vartype location: ~azure.mgmt.datafactory.models.DatasetLocation - :ivar encoding_name: The code page name of the preferred encoding. If not specified, the - default value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column - of the table in the following link to set supported values: - https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with - resultType string). - :vartype encoding_name: JSON - :ivar compression: The data compression method used for the json dataset. - :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "location": {"key": "typeProperties.location", "type": "DatasetLocation"}, - "encoding_name": {"key": "typeProperties.encodingName", "type": "object"}, - "compression": {"key": "typeProperties.compression", "type": "DatasetCompression"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - location: Optional["_models.DatasetLocation"] = None, - encoding_name: Optional[JSON] = None, - compression: Optional["_models.DatasetCompression"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword location: The location of the json data storage. - :paramtype location: ~azure.mgmt.datafactory.models.DatasetLocation - :keyword encoding_name: The code page name of the preferred encoding. If not specified, the - default value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column - of the table in the following link to set supported values: - https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with - resultType string). - :paramtype encoding_name: JSON - :keyword compression: The data compression method used for the json dataset. - :paramtype compression: ~azure.mgmt.datafactory.models.DatasetCompression - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "Json" - self.location = location - self.encoding_name = encoding_name - self.compression = compression - - -class JsonFormat(DatasetStorageFormat): - """The data stored in JSON format. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage format. Required. - :vartype type: str - :ivar serializer: Serializer. Type: string (or Expression with resultType string). - :vartype serializer: JSON - :ivar deserializer: Deserializer. Type: string (or Expression with resultType string). - :vartype deserializer: JSON - :ivar file_pattern: File pattern of JSON. To be more specific, the way of separating a - collection of JSON objects. The default value is 'setOfObjects'. It is case-sensitive. - :vartype file_pattern: JSON - :ivar nesting_separator: The character used to separate nesting levels. Default value is '.' - (dot). Type: string (or Expression with resultType string). - :vartype nesting_separator: JSON - :ivar encoding_name: The code page name of the preferred encoding. If not provided, the default - value is 'utf-8', unless the byte order mark (BOM) denotes another Unicode encoding. The full - list of supported values can be found in the 'Name' column of the table of encodings in the - following reference: https://go.microsoft.com/fwlink/?linkid=861078. Type: string (or - Expression with resultType string). - :vartype encoding_name: JSON - :ivar json_node_reference: The JSONPath of the JSON array element to be flattened. Example: - "$.ArrayPath". Type: string (or Expression with resultType string). - :vartype json_node_reference: JSON - :ivar json_path_definition: The JSONPath definition for each column mapping with a customized - column name to extract data from JSON file. For fields under root object, start with "$"; for - fields inside the array chosen by jsonNodeReference property, start from the array element. - Example: {"Column1": "$.Column1Path", "Column2": "Column2PathInArray"}. Type: object (or - Expression with resultType object). - :vartype json_path_definition: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "serializer": {"key": "serializer", "type": "object"}, - "deserializer": {"key": "deserializer", "type": "object"}, - "file_pattern": {"key": "filePattern", "type": "object"}, - "nesting_separator": {"key": "nestingSeparator", "type": "object"}, - "encoding_name": {"key": "encodingName", "type": "object"}, - "json_node_reference": {"key": "jsonNodeReference", "type": "object"}, - "json_path_definition": {"key": "jsonPathDefinition", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - serializer: Optional[JSON] = None, - deserializer: Optional[JSON] = None, - file_pattern: Optional[JSON] = None, - nesting_separator: Optional[JSON] = None, - encoding_name: Optional[JSON] = None, - json_node_reference: Optional[JSON] = None, - json_path_definition: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword serializer: Serializer. Type: string (or Expression with resultType string). - :paramtype serializer: JSON - :keyword deserializer: Deserializer. Type: string (or Expression with resultType string). - :paramtype deserializer: JSON - :keyword file_pattern: File pattern of JSON. To be more specific, the way of separating a - collection of JSON objects. The default value is 'setOfObjects'. It is case-sensitive. - :paramtype file_pattern: JSON - :keyword nesting_separator: The character used to separate nesting levels. Default value is '.' - (dot). Type: string (or Expression with resultType string). - :paramtype nesting_separator: JSON - :keyword encoding_name: The code page name of the preferred encoding. If not provided, the - default value is 'utf-8', unless the byte order mark (BOM) denotes another Unicode encoding. - The full list of supported values can be found in the 'Name' column of the table of encodings - in the following reference: https://go.microsoft.com/fwlink/?linkid=861078. Type: string (or - Expression with resultType string). - :paramtype encoding_name: JSON - :keyword json_node_reference: The JSONPath of the JSON array element to be flattened. Example: - "$.ArrayPath". Type: string (or Expression with resultType string). - :paramtype json_node_reference: JSON - :keyword json_path_definition: The JSONPath definition for each column mapping with a - customized column name to extract data from JSON file. For fields under root object, start with - "$"; for fields inside the array chosen by jsonNodeReference property, start from the array - element. Example: {"Column1": "$.Column1Path", "Column2": "Column2PathInArray"}. Type: object - (or Expression with resultType object). - :paramtype json_path_definition: JSON - """ - super().__init__( - additional_properties=additional_properties, serializer=serializer, deserializer=deserializer, **kwargs - ) - self.type: str = "JsonFormat" - self.file_pattern = file_pattern - self.nesting_separator = nesting_separator - self.encoding_name = encoding_name - self.json_node_reference = json_node_reference - self.json_path_definition = json_path_definition - - -class JsonReadSettings(FormatReadSettings): - """Json read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar compression_properties: Compression settings. - :vartype compression_properties: ~azure.mgmt.datafactory.models.CompressionReadSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "compression_properties": {"key": "compressionProperties", "type": "CompressionReadSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - compression_properties: Optional["_models.CompressionReadSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword compression_properties: Compression settings. - :paramtype compression_properties: ~azure.mgmt.datafactory.models.CompressionReadSettings - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "JsonReadSettings" - self.compression_properties = compression_properties - - -class JsonSink(CopySink): - """A copy activity Json sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar store_settings: Json store settings. - :vartype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings - :ivar format_settings: Json format settings. - :vartype format_settings: ~azure.mgmt.datafactory.models.JsonWriteSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "store_settings": {"key": "storeSettings", "type": "StoreWriteSettings"}, - "format_settings": {"key": "formatSettings", "type": "JsonWriteSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - store_settings: Optional["_models.StoreWriteSettings"] = None, - format_settings: Optional["_models.JsonWriteSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword store_settings: Json store settings. - :paramtype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings - :keyword format_settings: Json format settings. - :paramtype format_settings: ~azure.mgmt.datafactory.models.JsonWriteSettings - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "JsonSink" - self.store_settings = store_settings - self.format_settings = format_settings - - -class JsonSource(CopySource): - """A copy activity Json source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar store_settings: Json store settings. - :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - :ivar format_settings: Json format settings. - :vartype format_settings: ~azure.mgmt.datafactory.models.JsonReadSettings - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "store_settings": {"key": "storeSettings", "type": "StoreReadSettings"}, - "format_settings": {"key": "formatSettings", "type": "JsonReadSettings"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - store_settings: Optional["_models.StoreReadSettings"] = None, - format_settings: Optional["_models.JsonReadSettings"] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword store_settings: Json store settings. - :paramtype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - :keyword format_settings: Json format settings. - :paramtype format_settings: ~azure.mgmt.datafactory.models.JsonReadSettings - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "JsonSource" - self.store_settings = store_settings - self.format_settings = format_settings - self.additional_columns = additional_columns - - -class JsonWriteSettings(FormatWriteSettings): - """Json write settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The write setting type. Required. - :vartype type: str - :ivar file_pattern: File pattern of JSON. This setting controls the way a collection of JSON - objects will be treated. The default value is 'setOfObjects'. It is case-sensitive. - :vartype file_pattern: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "file_pattern": {"key": "filePattern", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - file_pattern: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword file_pattern: File pattern of JSON. This setting controls the way a collection of JSON - objects will be treated. The default value is 'setOfObjects'. It is case-sensitive. - :paramtype file_pattern: JSON - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "JsonWriteSettings" - self.file_pattern = file_pattern - - -class LakeHouseLinkedService(LinkedService): - """Microsoft Fabric Lakehouse linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar workspace_id: The ID of Microsoft Fabric workspace. Type: string (or Expression with - resultType string). - :vartype workspace_id: JSON - :ivar artifact_id: The ID of Microsoft Fabric Lakehouse artifact. Type: string (or Expression - with resultType string). - :vartype artifact_id: JSON - :ivar authentication_type: The authentication type to use. Known values are: - "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.LakehouseAuthenticationType - :ivar service_principal_id: The ID of the application used to authenticate against Microsoft - Fabric Lakehouse. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The Key of the application used to authenticate against Microsoft - Fabric Lakehouse. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string - (or Expression with resultType string). - :vartype tenant: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :vartype service_principal_credential_type: JSON - :ivar service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "workspace_id": {"key": "typeProperties.workspaceId", "type": "object"}, - "artifact_id": {"key": "typeProperties.artifactId", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, - "service_principal_credential": {"key": "typeProperties.servicePrincipalCredential", "type": "SecretBase"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - workspace_id: Optional[JSON] = None, - artifact_id: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.LakehouseAuthenticationType"]] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - tenant: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - service_principal_credential_type: Optional[JSON] = None, - service_principal_credential: Optional["_models.SecretBase"] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword workspace_id: The ID of Microsoft Fabric workspace. Type: string (or Expression with - resultType string). - :paramtype workspace_id: JSON - :keyword artifact_id: The ID of Microsoft Fabric Lakehouse artifact. Type: string (or - Expression with resultType string). - :paramtype artifact_id: JSON - :keyword authentication_type: The authentication type to use. Known values are: - "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.LakehouseAuthenticationType - :keyword service_principal_id: The ID of the application used to authenticate against Microsoft - Fabric Lakehouse. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The Key of the application used to authenticate against - Microsoft Fabric Lakehouse. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: The name or ID of the tenant to which the service principal belongs. Type: - string (or Expression with resultType string). - :paramtype tenant: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :paramtype service_principal_credential_type: JSON - :keyword service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :paramtype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Lakehouse" - self.workspace_id = workspace_id - self.artifact_id = artifact_id - self.authentication_type = authentication_type - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.tenant = tenant - self.encrypted_credential = encrypted_credential - self.service_principal_credential_type = service_principal_credential_type - self.service_principal_credential = service_principal_credential - self.credential = credential - - -class LakeHouseLocation(DatasetLocation): - """The location of Microsoft Fabric Lakehouse Files dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage location. Required. - :vartype type: str - :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :vartype folder_path: JSON - :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType - string). - :vartype file_name: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "folder_path": {"key": "folderPath", "type": "object"}, - "file_name": {"key": "fileName", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - folder_path: Optional[JSON] = None, - file_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :paramtype folder_path: JSON - :keyword file_name: Specify the file name of dataset. Type: string (or Expression with - resultType string). - :paramtype file_name: JSON - """ - super().__init__( - additional_properties=additional_properties, folder_path=folder_path, file_name=file_name, **kwargs - ) - self.type: str = "LakeHouseLocation" - - -class LakeHouseReadSettings(StoreReadSettings): - """Microsoft Fabric Lakehouse Files read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - :ivar wildcard_folder_path: Microsoft Fabric Lakehouse Files wildcardFolderPath. Type: string - (or Expression with resultType string). - :vartype wildcard_folder_path: JSON - :ivar wildcard_file_name: Microsoft Fabric Lakehouse Files wildcardFileName. Type: string (or - Expression with resultType string). - :vartype wildcard_file_name: JSON - :ivar file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :vartype enable_partition_discovery: JSON - :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: - string (or Expression with resultType string). - :vartype partition_root_path: JSON - :ivar delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :vartype delete_files_after_completion: JSON - :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :vartype modified_datetime_start: JSON - :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression - with resultType string). - :vartype modified_datetime_end: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "recursive": {"key": "recursive", "type": "object"}, - "wildcard_folder_path": {"key": "wildcardFolderPath", "type": "object"}, - "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, - "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, - "partition_root_path": {"key": "partitionRootPath", "type": "object"}, - "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, - "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, - "modified_datetime_end": {"key": "modifiedDatetimeEnd", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - recursive: Optional[JSON] = None, - wildcard_folder_path: Optional[JSON] = None, - wildcard_file_name: Optional[JSON] = None, - file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[JSON] = None, - partition_root_path: Optional[JSON] = None, - delete_files_after_completion: Optional[JSON] = None, - modified_datetime_start: Optional[JSON] = None, - modified_datetime_end: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - :keyword wildcard_folder_path: Microsoft Fabric Lakehouse Files wildcardFolderPath. Type: - string (or Expression with resultType string). - :paramtype wildcard_folder_path: JSON - :keyword wildcard_file_name: Microsoft Fabric Lakehouse Files wildcardFileName. Type: string - (or Expression with resultType string). - :paramtype wildcard_file_name: JSON - :keyword file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :paramtype enable_partition_discovery: JSON - :keyword partition_root_path: Specify the root path where partition discovery starts from. - Type: string (or Expression with resultType string). - :paramtype partition_root_path: JSON - :keyword delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :paramtype delete_files_after_completion: JSON - :keyword modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_start: JSON - :keyword modified_datetime_end: The end of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_end: JSON - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "LakeHouseReadSettings" - self.recursive = recursive - self.wildcard_folder_path = wildcard_folder_path - self.wildcard_file_name = wildcard_file_name - self.file_list_path = file_list_path - self.enable_partition_discovery = enable_partition_discovery - self.partition_root_path = partition_root_path - self.delete_files_after_completion = delete_files_after_completion - self.modified_datetime_start = modified_datetime_start - self.modified_datetime_end = modified_datetime_end - - -class LakeHouseTableDataset(Dataset): - """Microsoft Fabric Lakehouse Table. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar schema_type_properties_schema: The schema name of Microsoft Fabric Lakehouse Table. Type: - string (or Expression with resultType string). - :vartype schema_type_properties_schema: JSON - :ivar table: The name of Microsoft Fabric Lakehouse Table. Type: string (or Expression with - resultType string). - :vartype table: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - schema_type_properties_schema: Optional[JSON] = None, - table: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword schema_type_properties_schema: The schema name of Microsoft Fabric Lakehouse Table. - Type: string (or Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - :keyword table: The name of Microsoft Fabric Lakehouse Table. Type: string (or Expression with - resultType string). - :paramtype table: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "LakehouseTable" - self.schema_type_properties_schema = schema_type_properties_schema - self.table = table - - -class LakeHouseTableSink(CopySink): - """A copy activity for Microsoft Fabric Lakehouse Table sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar table_action_option: The type of table action for Lakehouse Table sink. Possible values - include: "None", "Append", "Overwrite". - :vartype table_action_option: JSON - :ivar partition_option: Create partitions in folder structure based on one or multiple columns. - Each distinct column value (pair) will be a new partition. Possible values include: "None", - "PartitionByKey". - :vartype partition_option: JSON - :ivar partition_name_list: Specify the partition column names from sink columns. Type: array of - objects (or Expression with resultType array of objects). - :vartype partition_name_list: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "table_action_option": {"key": "tableActionOption", "type": "object"}, - "partition_option": {"key": "partitionOption", "type": "object"}, - "partition_name_list": {"key": "partitionNameList", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - table_action_option: Optional[JSON] = None, - partition_option: Optional[JSON] = None, - partition_name_list: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword table_action_option: The type of table action for Lakehouse Table sink. Possible - values include: "None", "Append", "Overwrite". - :paramtype table_action_option: JSON - :keyword partition_option: Create partitions in folder structure based on one or multiple - columns. Each distinct column value (pair) will be a new partition. Possible values include: - "None", "PartitionByKey". - :paramtype partition_option: JSON - :keyword partition_name_list: Specify the partition column names from sink columns. Type: array - of objects (or Expression with resultType array of objects). - :paramtype partition_name_list: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "LakeHouseTableSink" - self.table_action_option = table_action_option - self.partition_option = partition_option - self.partition_name_list = partition_name_list - - -class LakeHouseTableSource(CopySource): - """A copy activity source for Microsoft Fabric Lakehouse Table. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar timestamp_as_of: Query an older snapshot by timestamp. Type: string (or Expression with - resultType string). - :vartype timestamp_as_of: JSON - :ivar version_as_of: Query an older snapshot by version. Type: integer (or Expression with - resultType integer). - :vartype version_as_of: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "timestamp_as_of": {"key": "timestampAsOf", "type": "object"}, - "version_as_of": {"key": "versionAsOf", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - timestamp_as_of: Optional[JSON] = None, - version_as_of: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword timestamp_as_of: Query an older snapshot by timestamp. Type: string (or Expression - with resultType string). - :paramtype timestamp_as_of: JSON - :keyword version_as_of: Query an older snapshot by version. Type: integer (or Expression with - resultType integer). - :paramtype version_as_of: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "LakeHouseTableSource" - self.timestamp_as_of = timestamp_as_of - self.version_as_of = version_as_of - self.additional_columns = additional_columns - - -class LakeHouseWriteSettings(StoreWriteSettings): - """Microsoft Fabric Lakehouse Files write settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The write setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar copy_behavior: The type of copy behavior for copy sink. - :vartype copy_behavior: JSON - :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "copy_behavior": {"key": "copyBehavior", "type": "object"}, - "metadata": {"key": "metadata", "type": "[MetadataItem]"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - copy_behavior: Optional[JSON] = None, - metadata: Optional[list["_models.MetadataItem"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword copy_behavior: The type of copy behavior for copy sink. - :paramtype copy_behavior: JSON - :keyword metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :paramtype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - copy_behavior=copy_behavior, - metadata=metadata, - **kwargs - ) - self.type: str = "LakeHouseWriteSettings" - - -class LinkedIntegrationRuntime(_serialization.Model): - """The linked integration runtime information. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of the linked integration runtime. - :vartype name: str - :ivar subscription_id: The subscription ID for which the linked integration runtime belong to. - :vartype subscription_id: str - :ivar data_factory_name: The name of the data factory for which the linked integration runtime - belong to. - :vartype data_factory_name: str - :ivar data_factory_location: The location of the data factory for which the linked integration - runtime belong to. - :vartype data_factory_location: str - :ivar create_time: The creating time of the linked integration runtime. - :vartype create_time: ~datetime.datetime - """ - - _validation = { - "name": {"readonly": True}, - "subscription_id": {"readonly": True}, - "data_factory_name": {"readonly": True}, - "data_factory_location": {"readonly": True}, - "create_time": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "subscription_id": {"key": "subscriptionId", "type": "str"}, - "data_factory_name": {"key": "dataFactoryName", "type": "str"}, - "data_factory_location": {"key": "dataFactoryLocation", "type": "str"}, - "create_time": {"key": "createTime", "type": "iso-8601"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name: Optional[str] = None - self.subscription_id: Optional[str] = None - self.data_factory_name: Optional[str] = None - self.data_factory_location: Optional[str] = None - self.create_time: Optional[datetime.datetime] = None - - -class LinkedIntegrationRuntimeType(_serialization.Model): - """The base definition of a linked integration runtime. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization - - All required parameters must be populated in order to send to server. - - :ivar authorization_type: The authorization type for integration runtime sharing. Required. - :vartype authorization_type: str - """ - - _validation = { - "authorization_type": {"required": True}, - } - - _attribute_map = { - "authorization_type": {"key": "authorizationType", "type": "str"}, - } - - _subtype_map = { - "authorization_type": { - "Key": "LinkedIntegrationRuntimeKeyAuthorization", - "RBAC": "LinkedIntegrationRuntimeRbacAuthorization", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.authorization_type: Optional[str] = None - - -class LinkedIntegrationRuntimeKeyAuthorization(LinkedIntegrationRuntimeType): - """The key authorization type integration runtime. - - All required parameters must be populated in order to send to server. - - :ivar authorization_type: The authorization type for integration runtime sharing. Required. - :vartype authorization_type: str - :ivar key: The key used for authorization. Required. - :vartype key: ~azure.mgmt.datafactory.models.SecureString - """ - - _validation = { - "authorization_type": {"required": True}, - "key": {"required": True}, - } - - _attribute_map = { - "authorization_type": {"key": "authorizationType", "type": "str"}, - "key": {"key": "key", "type": "SecureString"}, - } - - def __init__(self, *, key: "_models.SecureString", **kwargs: Any) -> None: - """ - :keyword key: The key used for authorization. Required. - :paramtype key: ~azure.mgmt.datafactory.models.SecureString - """ - super().__init__(**kwargs) - self.authorization_type: str = "Key" - self.key = key - - -class LinkedIntegrationRuntimeRbacAuthorization(LinkedIntegrationRuntimeType): # pylint: disable=name-too-long - """The role based access control (RBAC) authorization type integration runtime. - - All required parameters must be populated in order to send to server. - - :ivar authorization_type: The authorization type for integration runtime sharing. Required. - :vartype authorization_type: str - :ivar resource_id: The resource identifier of the integration runtime to be shared. Required. - :vartype resource_id: str - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "authorization_type": {"required": True}, - "resource_id": {"required": True}, - } - - _attribute_map = { - "authorization_type": {"key": "authorizationType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "credential": {"key": "credential", "type": "CredentialReference"}, - } - - def __init__( - self, *, resource_id: str, credential: Optional["_models.CredentialReference"] = None, **kwargs: Any - ) -> None: - """ - :keyword resource_id: The resource identifier of the integration runtime to be shared. - Required. - :paramtype resource_id: str - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__(**kwargs) - self.authorization_type: str = "RBAC" - self.resource_id = resource_id - self.credential = credential - - -class LinkedIntegrationRuntimeRequest(_serialization.Model): - """Data factory name for linked integration runtime request. - - All required parameters must be populated in order to send to server. - - :ivar linked_factory_name: The data factory name for linked integration runtime. Required. - :vartype linked_factory_name: str - """ - - _validation = { - "linked_factory_name": {"required": True}, - } - - _attribute_map = { - "linked_factory_name": {"key": "factoryName", "type": "str"}, - } - - def __init__(self, *, linked_factory_name: str, **kwargs: Any) -> None: - """ - :keyword linked_factory_name: The data factory name for linked integration runtime. Required. - :paramtype linked_factory_name: str - """ - super().__init__(**kwargs) - self.linked_factory_name = linked_factory_name - - -class LinkedServiceDebugResource(SubResourceDebugResource): - """Linked service debug resource. - - All required parameters must be populated in order to send to server. - - :ivar name: The resource name. - :vartype name: str - :ivar properties: Properties of linked service. Required. - :vartype properties: ~azure.mgmt.datafactory.models.LinkedService - """ - - _validation = { - "properties": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "properties": {"key": "properties", "type": "LinkedService"}, - } - - def __init__(self, *, properties: "_models.LinkedService", name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The resource name. - :paramtype name: str - :keyword properties: Properties of linked service. Required. - :paramtype properties: ~azure.mgmt.datafactory.models.LinkedService - """ - super().__init__(name=name, **kwargs) - self.properties = properties - - -class LinkedServiceListResponse(_serialization.Model): - """A list of linked service resources. - - All required parameters must be populated in order to send to server. - - :ivar value: List of linked services. Required. - :vartype value: list[~azure.mgmt.datafactory.models.LinkedServiceResource] - :ivar next_link: The link to the next page of results, if any remaining results exist. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[LinkedServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: list["_models.LinkedServiceResource"], next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: List of linked services. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.LinkedServiceResource] - :keyword next_link: The link to the next page of results, if any remaining results exist. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class LinkedServiceReference(_serialization.Model): - """Linked service reference type. - - All required parameters must be populated in order to send to server. - - :ivar type: Linked service reference type. Required. "LinkedServiceReference" - :vartype type: str or ~azure.mgmt.datafactory.models.Type - :ivar reference_name: Reference LinkedService name. Required. - :vartype reference_name: str - :ivar parameters: Arguments for LinkedService. - :vartype parameters: dict[str, JSON] - """ - - _validation = { - "type": {"required": True}, - "reference_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "reference_name": {"key": "referenceName", "type": "str"}, - "parameters": {"key": "parameters", "type": "{object}"}, - } - - def __init__( - self, - *, - type: Union[str, "_models.Type"], - reference_name: str, - parameters: Optional[dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Linked service reference type. Required. "LinkedServiceReference" - :paramtype type: str or ~azure.mgmt.datafactory.models.Type - :keyword reference_name: Reference LinkedService name. Required. - :paramtype reference_name: str - :keyword parameters: Arguments for LinkedService. - :paramtype parameters: dict[str, JSON] - """ - super().__init__(**kwargs) - self.type = type - self.reference_name = reference_name - self.parameters = parameters - - -class LinkedServiceResource(SubResource): - """Linked service resource type. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar etag: Etag identifies change in the resource. - :vartype etag: str - :ivar properties: Properties of linked service. Required. - :vartype properties: ~azure.mgmt.datafactory.models.LinkedService - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "etag": {"readonly": True}, - "properties": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "etag": {"key": "etag", "type": "str"}, - "properties": {"key": "properties", "type": "LinkedService"}, - } - - def __init__(self, *, properties: "_models.LinkedService", **kwargs: Any) -> None: - """ - :keyword properties: Properties of linked service. Required. - :paramtype properties: ~azure.mgmt.datafactory.models.LinkedService - """ - super().__init__(**kwargs) - self.properties = properties - - -class LogLocationSettings(_serialization.Model): - """Log location settings. - - All required parameters must be populated in order to send to server. - - :ivar linked_service_name: Log storage linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar path: The path to storage for storing detailed logs of activity execution. Type: string - (or Expression with resultType string). - :vartype path: JSON - """ - - _validation = { - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "path": {"key": "path", "type": "object"}, - } - - def __init__( - self, *, linked_service_name: "_models.LinkedServiceReference", path: Optional[JSON] = None, **kwargs: Any - ) -> None: - """ - :keyword linked_service_name: Log storage linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword path: The path to storage for storing detailed logs of activity execution. Type: - string (or Expression with resultType string). - :paramtype path: JSON - """ - super().__init__(**kwargs) - self.linked_service_name = linked_service_name - self.path = path - - -class LogSettings(_serialization.Model): - """Log settings. - - All required parameters must be populated in order to send to server. - - :ivar enable_copy_activity_log: Specifies whether to enable copy activity log. Type: boolean - (or Expression with resultType boolean). - :vartype enable_copy_activity_log: JSON - :ivar copy_activity_log_settings: Specifies settings for copy activity log. - :vartype copy_activity_log_settings: ~azure.mgmt.datafactory.models.CopyActivityLogSettings - :ivar log_location_settings: Log location settings customer needs to provide when enabling log. - Required. - :vartype log_location_settings: ~azure.mgmt.datafactory.models.LogLocationSettings - """ - - _validation = { - "log_location_settings": {"required": True}, - } - - _attribute_map = { - "enable_copy_activity_log": {"key": "enableCopyActivityLog", "type": "object"}, - "copy_activity_log_settings": {"key": "copyActivityLogSettings", "type": "CopyActivityLogSettings"}, - "log_location_settings": {"key": "logLocationSettings", "type": "LogLocationSettings"}, - } - - def __init__( - self, - *, - log_location_settings: "_models.LogLocationSettings", - enable_copy_activity_log: Optional[JSON] = None, - copy_activity_log_settings: Optional["_models.CopyActivityLogSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword enable_copy_activity_log: Specifies whether to enable copy activity log. Type: boolean - (or Expression with resultType boolean). - :paramtype enable_copy_activity_log: JSON - :keyword copy_activity_log_settings: Specifies settings for copy activity log. - :paramtype copy_activity_log_settings: ~azure.mgmt.datafactory.models.CopyActivityLogSettings - :keyword log_location_settings: Log location settings customer needs to provide when enabling - log. Required. - :paramtype log_location_settings: ~azure.mgmt.datafactory.models.LogLocationSettings - """ - super().__init__(**kwargs) - self.enable_copy_activity_log = enable_copy_activity_log - self.copy_activity_log_settings = copy_activity_log_settings - self.log_location_settings = log_location_settings - - -class LogStorageSettings(_serialization.Model): - """(Deprecated. Please use LogSettings) Log storage settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar linked_service_name: Log storage linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar path: The path to storage for storing detailed logs of activity execution. Type: string - (or Expression with resultType string). - :vartype path: JSON - :ivar log_level: Gets or sets the log level, support: Info, Warning. Type: string (or - Expression with resultType string). - :vartype log_level: JSON - :ivar enable_reliable_logging: Specifies whether to enable reliable logging. Type: boolean (or - Expression with resultType boolean). - :vartype enable_reliable_logging: JSON - """ - - _validation = { - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "path": {"key": "path", "type": "object"}, - "log_level": {"key": "logLevel", "type": "object"}, - "enable_reliable_logging": {"key": "enableReliableLogging", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - path: Optional[JSON] = None, - log_level: Optional[JSON] = None, - enable_reliable_logging: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword linked_service_name: Log storage linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword path: The path to storage for storing detailed logs of activity execution. Type: - string (or Expression with resultType string). - :paramtype path: JSON - :keyword log_level: Gets or sets the log level, support: Info, Warning. Type: string (or - Expression with resultType string). - :paramtype log_level: JSON - :keyword enable_reliable_logging: Specifies whether to enable reliable logging. Type: boolean - (or Expression with resultType boolean). - :paramtype enable_reliable_logging: JSON - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.linked_service_name = linked_service_name - self.path = path - self.log_level = log_level - self.enable_reliable_logging = enable_reliable_logging - - -class LookupActivity(ExecutionActivity): - """Lookup activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar source: Dataset-specific source properties, same as copy activity source. Required. - :vartype source: ~azure.mgmt.datafactory.models.CopySource - :ivar dataset: Lookup activity dataset reference. Required. - :vartype dataset: ~azure.mgmt.datafactory.models.DatasetReference - :ivar first_row_only: Whether to return first row or all rows. Default value is true. Type: - boolean (or Expression with resultType boolean). - :vartype first_row_only: JSON - :ivar treat_decimal_as_string: Indicates whether to treat decimal values as strings to avoid - value overflow issue. This option is enabled for SnowflakeV2 connector only. Type: boolean (or - Expression with resultType boolean). - :vartype treat_decimal_as_string: JSON - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "source": {"required": True}, - "dataset": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "source": {"key": "typeProperties.source", "type": "CopySource"}, - "dataset": {"key": "typeProperties.dataset", "type": "DatasetReference"}, - "first_row_only": {"key": "typeProperties.firstRowOnly", "type": "object"}, - "treat_decimal_as_string": {"key": "typeProperties.treatDecimalAsString", "type": "object"}, - } - - def __init__( - self, - *, - name: str, - source: "_models.CopySource", - dataset: "_models.DatasetReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - first_row_only: Optional[JSON] = None, - treat_decimal_as_string: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword source: Dataset-specific source properties, same as copy activity source. Required. - :paramtype source: ~azure.mgmt.datafactory.models.CopySource - :keyword dataset: Lookup activity dataset reference. Required. - :paramtype dataset: ~azure.mgmt.datafactory.models.DatasetReference - :keyword first_row_only: Whether to return first row or all rows. Default value is true. Type: - boolean (or Expression with resultType boolean). - :paramtype first_row_only: JSON - :keyword treat_decimal_as_string: Indicates whether to treat decimal values as strings to avoid - value overflow issue. This option is enabled for SnowflakeV2 connector only. Type: boolean (or - Expression with resultType boolean). - :paramtype treat_decimal_as_string: JSON - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "Lookup" - self.source = source - self.dataset = dataset - self.first_row_only = first_row_only - self.treat_decimal_as_string = treat_decimal_as_string - - -class MagentoLinkedService(LinkedService): - """Magento server linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar host: The URL of the Magento instance. (i.e. 192.168.222.110/magento3). Required. - :vartype host: JSON - :ivar access_token: The access token from Magento. - :vartype access_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using - HTTPS. The default value is true. - :vartype use_encrypted_endpoints: JSON - :ivar use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :vartype use_host_verification: JSON - :ivar use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :vartype use_peer_verification: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "host": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "access_token": {"key": "typeProperties.accessToken", "type": "SecretBase"}, - "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, - "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, - "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - host: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - access_token: Optional["_models.SecretBase"] = None, - use_encrypted_endpoints: Optional[JSON] = None, - use_host_verification: Optional[JSON] = None, - use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword host: The URL of the Magento instance. (i.e. 192.168.222.110/magento3). Required. - :paramtype host: JSON - :keyword access_token: The access token from Magento. - :paramtype access_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted - using HTTPS. The default value is true. - :paramtype use_encrypted_endpoints: JSON - :keyword use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :paramtype use_host_verification: JSON - :keyword use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :paramtype use_peer_verification: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Magento" - self.host = host - self.access_token = access_token - self.use_encrypted_endpoints = use_encrypted_endpoints - self.use_host_verification = use_host_verification - self.use_peer_verification = use_peer_verification - self.encrypted_credential = encrypted_credential - - -class MagentoObjectDataset(Dataset): - """Magento server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "MagentoObject" - self.table_name = table_name - - -class MagentoSource(TabularSource): - """A copy activity Magento server source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "MagentoSource" - self.query = query - - -class ManagedIdentityCredential(Credential): - """Managed identity credential. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of credential. Required. - :vartype type: str - :ivar description: Credential description. - :vartype description: str - :ivar annotations: List of tags that can be used for describing the Credential. - :vartype annotations: list[JSON] - :ivar resource_id: The resource id of user assigned managed identity. - :vartype resource_id: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "resource_id": {"key": "typeProperties.resourceId", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - annotations: Optional[list[JSON]] = None, - resource_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Credential description. - :paramtype description: str - :keyword annotations: List of tags that can be used for describing the Credential. - :paramtype annotations: list[JSON] - :keyword resource_id: The resource id of user assigned managed identity. - :paramtype resource_id: str - """ - super().__init__( - additional_properties=additional_properties, description=description, annotations=annotations, **kwargs - ) - self.type: str = "ManagedIdentity" - self.resource_id = resource_id - - -class ManagedIntegrationRuntime(IntegrationRuntime): - """Managed integration runtime, including managed elastic and managed dedicated integration - runtimes. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of integration runtime. Required. Known values are: "Managed" and - "SelfHosted". - :vartype type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType - :ivar description: Integration runtime description. - :vartype description: str - :ivar state: Integration runtime state, only valid for managed dedicated integration runtime. - Known values are: "Initial", "Stopped", "Started", "Starting", "Stopping", "NeedRegistration", - "Online", "Limited", "Offline", and "AccessDenied". - :vartype state: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeState - :ivar managed_virtual_network: Managed Virtual Network reference. - :vartype managed_virtual_network: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkReference - :ivar compute_properties: The compute resource for managed integration runtime. - :vartype compute_properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeComputeProperties - :ivar ssis_properties: SSIS properties for managed integration runtime. - :vartype ssis_properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeSsisProperties - :ivar customer_virtual_network: The name of virtual network to which Azure-SSIS integration - runtime will join. - :vartype customer_virtual_network: - ~azure.mgmt.datafactory.models.IntegrationRuntimeCustomerVirtualNetwork - :ivar interactive_query: Interactive authoring capability reference. - :vartype interactive_query: ~azure.mgmt.datafactory.models.InteractiveQueryProperties - """ - - _validation = { - "type": {"required": True}, - "state": {"readonly": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "managed_virtual_network": {"key": "managedVirtualNetwork", "type": "ManagedVirtualNetworkReference"}, - "compute_properties": { - "key": "typeProperties.computeProperties", - "type": "IntegrationRuntimeComputeProperties", - }, - "ssis_properties": {"key": "typeProperties.ssisProperties", "type": "IntegrationRuntimeSsisProperties"}, - "customer_virtual_network": { - "key": "typeProperties.customerVirtualNetwork", - "type": "IntegrationRuntimeCustomerVirtualNetwork", - }, - "interactive_query": {"key": "typeProperties.interactiveQuery", "type": "InteractiveQueryProperties"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - managed_virtual_network: Optional["_models.ManagedVirtualNetworkReference"] = None, - compute_properties: Optional["_models.IntegrationRuntimeComputeProperties"] = None, - ssis_properties: Optional["_models.IntegrationRuntimeSsisProperties"] = None, - customer_virtual_network: Optional["_models.IntegrationRuntimeCustomerVirtualNetwork"] = None, - interactive_query: Optional["_models.InteractiveQueryProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Integration runtime description. - :paramtype description: str - :keyword managed_virtual_network: Managed Virtual Network reference. - :paramtype managed_virtual_network: - ~azure.mgmt.datafactory.models.ManagedVirtualNetworkReference - :keyword compute_properties: The compute resource for managed integration runtime. - :paramtype compute_properties: - ~azure.mgmt.datafactory.models.IntegrationRuntimeComputeProperties - :keyword ssis_properties: SSIS properties for managed integration runtime. - :paramtype ssis_properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeSsisProperties - :keyword customer_virtual_network: The name of virtual network to which Azure-SSIS integration - runtime will join. - :paramtype customer_virtual_network: - ~azure.mgmt.datafactory.models.IntegrationRuntimeCustomerVirtualNetwork - :keyword interactive_query: Interactive authoring capability reference. - :paramtype interactive_query: ~azure.mgmt.datafactory.models.InteractiveQueryProperties - """ - super().__init__(additional_properties=additional_properties, description=description, **kwargs) - self.type: str = "Managed" - self.state: Optional[Union[str, "_models.IntegrationRuntimeState"]] = None - self.managed_virtual_network = managed_virtual_network - self.compute_properties = compute_properties - self.ssis_properties = ssis_properties - self.customer_virtual_network = customer_virtual_network - self.interactive_query = interactive_query - - -class ManagedIntegrationRuntimeError(_serialization.Model): - """Error definition for managed integration runtime. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar time: The time when the error occurred. - :vartype time: ~datetime.datetime - :ivar code: Error code. - :vartype code: str - :ivar parameters: Managed integration runtime error parameters. - :vartype parameters: list[str] - :ivar message: Error message. - :vartype message: str - """ - - _validation = { - "time": {"readonly": True}, - "code": {"readonly": True}, - "parameters": {"readonly": True}, - "message": {"readonly": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "time": {"key": "time", "type": "iso-8601"}, - "code": {"key": "code", "type": "str"}, - "parameters": {"key": "parameters", "type": "[str]"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, additional_properties: Optional[dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.time: Optional[datetime.datetime] = None - self.code: Optional[str] = None - self.parameters: Optional[list[str]] = None - self.message: Optional[str] = None - - -class ManagedIntegrationRuntimeNode(_serialization.Model): - """Properties of integration runtime node. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar node_id: The managed integration runtime node id. - :vartype node_id: str - :ivar status: The managed integration runtime node status. Known values are: "Starting", - "Available", "Recycling", and "Unavailable". - :vartype status: str or ~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeNodeStatus - :ivar errors: The errors that occurred on this integration runtime node. - :vartype errors: list[~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeError] - """ - - _validation = { - "node_id": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "node_id": {"key": "nodeId", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "errors": {"key": "errors", "type": "[ManagedIntegrationRuntimeError]"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - errors: Optional[list["_models.ManagedIntegrationRuntimeError"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword errors: The errors that occurred on this integration runtime node. - :paramtype errors: list[~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeError] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.node_id: Optional[str] = None - self.status: Optional[Union[str, "_models.ManagedIntegrationRuntimeNodeStatus"]] = None - self.errors = errors - - -class ManagedIntegrationRuntimeOperationResult(_serialization.Model): - """Properties of managed integration runtime operation result. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The operation type. Could be start or stop. - :vartype type: str - :ivar start_time: The start time of the operation. - :vartype start_time: ~datetime.datetime - :ivar result: The operation result. - :vartype result: str - :ivar error_code: The error code. - :vartype error_code: str - :ivar parameters: Managed integration runtime error parameters. - :vartype parameters: list[str] - :ivar activity_id: The activity id for the operation request. - :vartype activity_id: str - """ - - _validation = { - "type": {"readonly": True}, - "start_time": {"readonly": True}, - "result": {"readonly": True}, - "error_code": {"readonly": True}, - "parameters": {"readonly": True}, - "activity_id": {"readonly": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "start_time": {"key": "startTime", "type": "iso-8601"}, - "result": {"key": "result", "type": "str"}, - "error_code": {"key": "errorCode", "type": "str"}, - "parameters": {"key": "parameters", "type": "[str]"}, - "activity_id": {"key": "activityId", "type": "str"}, - } - - def __init__(self, *, additional_properties: Optional[dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.type: Optional[str] = None - self.start_time: Optional[datetime.datetime] = None - self.result: Optional[str] = None - self.error_code: Optional[str] = None - self.parameters: Optional[list[str]] = None - self.activity_id: Optional[str] = None - - -class ManagedIntegrationRuntimeStatus(IntegrationRuntimeStatus): - """Managed integration runtime status. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of integration runtime. Required. Known values are: "Managed" and - "SelfHosted". - :vartype type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType - :ivar data_factory_name: The data factory name which the integration runtime belong to. - :vartype data_factory_name: str - :ivar state: The state of integration runtime. Known values are: "Initial", "Stopped", - "Started", "Starting", "Stopping", "NeedRegistration", "Online", "Limited", "Offline", and - "AccessDenied". - :vartype state: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeState - :ivar create_time: The time at which the integration runtime was created, in ISO8601 format. - :vartype create_time: ~datetime.datetime - :ivar nodes: The list of nodes for managed integration runtime. - :vartype nodes: list[~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeNode] - :ivar other_errors: The errors that occurred on this integration runtime. - :vartype other_errors: list[~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeError] - :ivar last_operation: The last operation result that occurred on this integration runtime. - :vartype last_operation: - ~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeOperationResult - """ - - _validation = { - "type": {"required": True}, - "data_factory_name": {"readonly": True}, - "state": {"readonly": True}, - "create_time": {"readonly": True}, - "nodes": {"readonly": True}, - "other_errors": {"readonly": True}, - "last_operation": {"readonly": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "data_factory_name": {"key": "dataFactoryName", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "create_time": {"key": "typeProperties.createTime", "type": "iso-8601"}, - "nodes": {"key": "typeProperties.nodes", "type": "[ManagedIntegrationRuntimeNode]"}, - "other_errors": {"key": "typeProperties.otherErrors", "type": "[ManagedIntegrationRuntimeError]"}, - "last_operation": {"key": "typeProperties.lastOperation", "type": "ManagedIntegrationRuntimeOperationResult"}, - } - - def __init__(self, *, additional_properties: Optional[dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "Managed" - self.create_time: Optional[datetime.datetime] = None - self.nodes: Optional[list["_models.ManagedIntegrationRuntimeNode"]] = None - self.other_errors: Optional[list["_models.ManagedIntegrationRuntimeError"]] = None - self.last_operation: Optional["_models.ManagedIntegrationRuntimeOperationResult"] = None - - -class ManagedPrivateEndpoint(_serialization.Model): - """Properties of a managed private endpoint. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar connection_state: The managed private endpoint connection state. - :vartype connection_state: ~azure.mgmt.datafactory.models.ConnectionStateProperties - :ivar fqdns: Fully qualified domain names. - :vartype fqdns: list[str] - :ivar group_id: The groupId to which the managed private endpoint is created. - :vartype group_id: str - :ivar is_reserved: Denotes whether the managed private endpoint is reserved. - :vartype is_reserved: bool - :ivar private_link_resource_id: The ARM resource ID of the resource to which the managed - private endpoint is created. - :vartype private_link_resource_id: str - :ivar provisioning_state: The managed private endpoint provisioning state. - :vartype provisioning_state: str - """ - - _validation = { - "is_reserved": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "connection_state": {"key": "connectionState", "type": "ConnectionStateProperties"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "group_id": {"key": "groupId", "type": "str"}, - "is_reserved": {"key": "isReserved", "type": "bool"}, - "private_link_resource_id": {"key": "privateLinkResourceId", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - connection_state: Optional["_models.ConnectionStateProperties"] = None, - fqdns: Optional[list[str]] = None, - group_id: Optional[str] = None, - private_link_resource_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword connection_state: The managed private endpoint connection state. - :paramtype connection_state: ~azure.mgmt.datafactory.models.ConnectionStateProperties - :keyword fqdns: Fully qualified domain names. - :paramtype fqdns: list[str] - :keyword group_id: The groupId to which the managed private endpoint is created. - :paramtype group_id: str - :keyword private_link_resource_id: The ARM resource ID of the resource to which the managed - private endpoint is created. - :paramtype private_link_resource_id: str - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.connection_state = connection_state - self.fqdns = fqdns - self.group_id = group_id - self.is_reserved: Optional[bool] = None - self.private_link_resource_id = private_link_resource_id - self.provisioning_state: Optional[str] = None - - -class ManagedPrivateEndpointListResponse(_serialization.Model): - """A list of managed private endpoint resources. - - All required parameters must be populated in order to send to server. - - :ivar value: List of managed private endpoints. Required. - :vartype value: list[~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource] - :ivar next_link: The link to the next page of results, if any remaining results exist. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[ManagedPrivateEndpointResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: list["_models.ManagedPrivateEndpointResource"], next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: List of managed private endpoints. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource] - :keyword next_link: The link to the next page of results, if any remaining results exist. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ManagedPrivateEndpointResource(SubResource): - """Managed private endpoint resource type. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar etag: Etag identifies change in the resource. - :vartype etag: str - :ivar properties: Managed private endpoint properties. Required. - :vartype properties: ~azure.mgmt.datafactory.models.ManagedPrivateEndpoint - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "etag": {"readonly": True}, - "properties": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "etag": {"key": "etag", "type": "str"}, - "properties": {"key": "properties", "type": "ManagedPrivateEndpoint"}, - } - - def __init__(self, *, properties: "_models.ManagedPrivateEndpoint", **kwargs: Any) -> None: - """ - :keyword properties: Managed private endpoint properties. Required. - :paramtype properties: ~azure.mgmt.datafactory.models.ManagedPrivateEndpoint - """ - super().__init__(**kwargs) - self.properties = properties - - -class ManagedVirtualNetwork(_serialization.Model): - """A managed Virtual Network associated with the Azure Data Factory. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar v_net_id: Managed Virtual Network ID. - :vartype v_net_id: str - :ivar alias: Managed Virtual Network alias. - :vartype alias: str - """ - - _validation = { - "v_net_id": {"readonly": True}, - "alias": {"readonly": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "v_net_id": {"key": "vNetId", "type": "str"}, - "alias": {"key": "alias", "type": "str"}, - } - - def __init__(self, *, additional_properties: Optional[dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.v_net_id: Optional[str] = None - self.alias: Optional[str] = None - - -class ManagedVirtualNetworkListResponse(_serialization.Model): - """A list of managed Virtual Network resources. - - All required parameters must be populated in order to send to server. - - :ivar value: List of managed Virtual Networks. Required. - :vartype value: list[~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource] - :ivar next_link: The link to the next page of results, if any remaining results exist. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[ManagedVirtualNetworkResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: list["_models.ManagedVirtualNetworkResource"], next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: List of managed Virtual Networks. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource] - :keyword next_link: The link to the next page of results, if any remaining results exist. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ManagedVirtualNetworkReference(_serialization.Model): - """Managed Virtual Network reference type. - - All required parameters must be populated in order to send to server. - - :ivar type: Managed Virtual Network reference type. Required. "ManagedVirtualNetworkReference" - :vartype type: str or ~azure.mgmt.datafactory.models.ManagedVirtualNetworkReferenceType - :ivar reference_name: Reference ManagedVirtualNetwork name. Required. - :vartype reference_name: str - """ - - _validation = { - "type": {"required": True}, - "reference_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "reference_name": {"key": "referenceName", "type": "str"}, - } - - def __init__( - self, *, type: Union[str, "_models.ManagedVirtualNetworkReferenceType"], reference_name: str, **kwargs: Any - ) -> None: - """ - :keyword type: Managed Virtual Network reference type. Required. - "ManagedVirtualNetworkReference" - :paramtype type: str or ~azure.mgmt.datafactory.models.ManagedVirtualNetworkReferenceType - :keyword reference_name: Reference ManagedVirtualNetwork name. Required. - :paramtype reference_name: str - """ - super().__init__(**kwargs) - self.type = type - self.reference_name = reference_name - - -class ManagedVirtualNetworkResource(SubResource): - """Managed Virtual Network resource type. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar etag: Etag identifies change in the resource. - :vartype etag: str - :ivar properties: Managed Virtual Network properties. Required. - :vartype properties: ~azure.mgmt.datafactory.models.ManagedVirtualNetwork - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "etag": {"readonly": True}, - "properties": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "etag": {"key": "etag", "type": "str"}, - "properties": {"key": "properties", "type": "ManagedVirtualNetwork"}, - } - - def __init__(self, *, properties: "_models.ManagedVirtualNetwork", **kwargs: Any) -> None: - """ - :keyword properties: Managed Virtual Network properties. Required. - :paramtype properties: ~azure.mgmt.datafactory.models.ManagedVirtualNetwork - """ - super().__init__(**kwargs) - self.properties = properties - - -class MapperAttributeMapping(_serialization.Model): - """Source and target column mapping details. - - :ivar name: Name of the target column. - :vartype name: str - :ivar type: Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as - 'Derived'. Known values are: "Direct", "Derived", and "Aggregate". - :vartype type: str or ~azure.mgmt.datafactory.models.MappingType - :ivar function_name: Name of the function used for 'Aggregate' and 'Derived' (except - 'Advanced') type mapping. - :vartype function_name: str - :ivar expression: Expression used for 'Aggregate' and 'Derived' type mapping. - :vartype expression: str - :ivar attribute_reference: Reference of the source column used in the mapping. It is used for - 'Direct' mapping type only. - :vartype attribute_reference: ~azure.mgmt.datafactory.models.MapperAttributeReference - :ivar attribute_references: List of references for source columns. It is used for 'Derived' and - 'Aggregate' type mappings only. - :vartype attribute_references: list[~azure.mgmt.datafactory.models.MapperAttributeReference] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "function_name": {"key": "functionName", "type": "str"}, - "expression": {"key": "expression", "type": "str"}, - "attribute_reference": {"key": "attributeReference", "type": "MapperAttributeReference"}, - "attribute_references": {"key": "attributeReferences", "type": "[MapperAttributeReference]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - type: Optional[Union[str, "_models.MappingType"]] = None, - function_name: Optional[str] = None, - expression: Optional[str] = None, - attribute_reference: Optional["_models.MapperAttributeReference"] = None, - attribute_references: Optional[list["_models.MapperAttributeReference"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the target column. - :paramtype name: str - :keyword type: Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved - as 'Derived'. Known values are: "Direct", "Derived", and "Aggregate". - :paramtype type: str or ~azure.mgmt.datafactory.models.MappingType - :keyword function_name: Name of the function used for 'Aggregate' and 'Derived' (except - 'Advanced') type mapping. - :paramtype function_name: str - :keyword expression: Expression used for 'Aggregate' and 'Derived' type mapping. - :paramtype expression: str - :keyword attribute_reference: Reference of the source column used in the mapping. It is used - for 'Direct' mapping type only. - :paramtype attribute_reference: ~azure.mgmt.datafactory.models.MapperAttributeReference - :keyword attribute_references: List of references for source columns. It is used for 'Derived' - and 'Aggregate' type mappings only. - :paramtype attribute_references: list[~azure.mgmt.datafactory.models.MapperAttributeReference] - """ - super().__init__(**kwargs) - self.name = name - self.type = type - self.function_name = function_name - self.expression = expression - self.attribute_reference = attribute_reference - self.attribute_references = attribute_references - - -class MapperAttributeMappings(_serialization.Model): - """Attribute mapping details. - - :ivar attribute_mappings: List of attribute mappings. - :vartype attribute_mappings: list[~azure.mgmt.datafactory.models.MapperAttributeMapping] - """ - - _attribute_map = { - "attribute_mappings": {"key": "attributeMappings", "type": "[MapperAttributeMapping]"}, - } - - def __init__( - self, *, attribute_mappings: Optional[list["_models.MapperAttributeMapping"]] = None, **kwargs: Any - ) -> None: - """ - :keyword attribute_mappings: List of attribute mappings. - :paramtype attribute_mappings: list[~azure.mgmt.datafactory.models.MapperAttributeMapping] - """ - super().__init__(**kwargs) - self.attribute_mappings = attribute_mappings - - -class MapperAttributeReference(_serialization.Model): - """Attribute reference details for the referred column. - - :ivar name: Name of the column. - :vartype name: str - :ivar entity: Name of the table. - :vartype entity: str - :ivar entity_connection_reference: The connection reference for the connection. - :vartype entity_connection_reference: ~azure.mgmt.datafactory.models.MapperConnectionReference - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "entity": {"key": "entity", "type": "str"}, - "entity_connection_reference": {"key": "entityConnectionReference", "type": "MapperConnectionReference"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - entity: Optional[str] = None, - entity_connection_reference: Optional["_models.MapperConnectionReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the column. - :paramtype name: str - :keyword entity: Name of the table. - :paramtype entity: str - :keyword entity_connection_reference: The connection reference for the connection. - :paramtype entity_connection_reference: - ~azure.mgmt.datafactory.models.MapperConnectionReference - """ - super().__init__(**kwargs) - self.name = name - self.entity = entity - self.entity_connection_reference = entity_connection_reference - - -class MapperConnection(_serialization.Model): - """Source connection details. - - All required parameters must be populated in order to send to server. - - :ivar linked_service: Linked service reference. - :vartype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar linked_service_type: Type of the linked service e.g.: AzureBlobFS. - :vartype linked_service_type: str - :ivar type: Type of connection via linked service or dataset. Required. "linkedservicetype" - :vartype type: str or ~azure.mgmt.datafactory.models.ConnectionType - :ivar is_inline_dataset: A boolean indicating whether linked service is of type inline dataset. - Currently only inline datasets are supported. - :vartype is_inline_dataset: bool - :ivar common_dsl_connector_properties: List of name/value pairs for connection properties. - :vartype common_dsl_connector_properties: - list[~azure.mgmt.datafactory.models.MapperDslConnectorProperties] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "linked_service": {"key": "linkedService", "type": "LinkedServiceReference"}, - "linked_service_type": {"key": "linkedServiceType", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "is_inline_dataset": {"key": "isInlineDataset", "type": "bool"}, - "common_dsl_connector_properties": { - "key": "commonDslConnectorProperties", - "type": "[MapperDslConnectorProperties]", - }, - } - - def __init__( - self, - *, - type: Union[str, "_models.ConnectionType"], - linked_service: Optional["_models.LinkedServiceReference"] = None, - linked_service_type: Optional[str] = None, - is_inline_dataset: Optional[bool] = None, - common_dsl_connector_properties: Optional[list["_models.MapperDslConnectorProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword linked_service: Linked service reference. - :paramtype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword linked_service_type: Type of the linked service e.g.: AzureBlobFS. - :paramtype linked_service_type: str - :keyword type: Type of connection via linked service or dataset. Required. "linkedservicetype" - :paramtype type: str or ~azure.mgmt.datafactory.models.ConnectionType - :keyword is_inline_dataset: A boolean indicating whether linked service is of type inline - dataset. Currently only inline datasets are supported. - :paramtype is_inline_dataset: bool - :keyword common_dsl_connector_properties: List of name/value pairs for connection properties. - :paramtype common_dsl_connector_properties: - list[~azure.mgmt.datafactory.models.MapperDslConnectorProperties] - """ - super().__init__(**kwargs) - self.linked_service = linked_service - self.linked_service_type = linked_service_type - self.type = type - self.is_inline_dataset = is_inline_dataset - self.common_dsl_connector_properties = common_dsl_connector_properties - - -class MapperConnectionReference(_serialization.Model): - """Source or target connection reference details. - - :ivar connection_name: Name of the connection. - :vartype connection_name: str - :ivar type: Type of connection via linked service or dataset. "linkedservicetype" - :vartype type: str or ~azure.mgmt.datafactory.models.ConnectionType - """ - - _attribute_map = { - "connection_name": {"key": "connectionName", "type": "str"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__( - self, - *, - connection_name: Optional[str] = None, - type: Optional[Union[str, "_models.ConnectionType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword connection_name: Name of the connection. - :paramtype connection_name: str - :keyword type: Type of connection via linked service or dataset. "linkedservicetype" - :paramtype type: str or ~azure.mgmt.datafactory.models.ConnectionType - """ - super().__init__(**kwargs) - self.connection_name = connection_name - self.type = type - - -class MapperDslConnectorProperties(_serialization.Model): - """Connector properties of a CDC table in terms of name / value pairs. - - :ivar name: Name of the property. - :vartype name: str - :ivar value: Value of the property. - :vartype value: JSON - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "object"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[JSON] = None, **kwargs: Any) -> None: - """ - :keyword name: Name of the property. - :paramtype name: str - :keyword value: Value of the property. - :paramtype value: JSON - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class MapperPolicy(_serialization.Model): - """CDC Policy. - - :ivar mode: Mode of running the CDC: batch vs continuous. - :vartype mode: str - :ivar recurrence: Defines the frequency and interval for running the CDC for batch mode. - :vartype recurrence: ~azure.mgmt.datafactory.models.MapperPolicyRecurrence - """ - - _attribute_map = { - "mode": {"key": "mode", "type": "str"}, - "recurrence": {"key": "recurrence", "type": "MapperPolicyRecurrence"}, - } - - def __init__( - self, - *, - mode: Optional[str] = None, - recurrence: Optional["_models.MapperPolicyRecurrence"] = None, - **kwargs: Any - ) -> None: - """ - :keyword mode: Mode of running the CDC: batch vs continuous. - :paramtype mode: str - :keyword recurrence: Defines the frequency and interval for running the CDC for batch mode. - :paramtype recurrence: ~azure.mgmt.datafactory.models.MapperPolicyRecurrence - """ - super().__init__(**kwargs) - self.mode = mode - self.recurrence = recurrence - - -class MapperPolicyRecurrence(_serialization.Model): - """CDC policy recurrence details. - - :ivar frequency: Frequency of period in terms of 'Hour', 'Minute' or 'Second'. Known values - are: "Hour", "Minute", and "Second". - :vartype frequency: str or ~azure.mgmt.datafactory.models.FrequencyType - :ivar interval: Actual interval value as per chosen frequency. - :vartype interval: int - """ - - _attribute_map = { - "frequency": {"key": "frequency", "type": "str"}, - "interval": {"key": "interval", "type": "int"}, - } - - def __init__( - self, - *, - frequency: Optional[Union[str, "_models.FrequencyType"]] = None, - interval: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword frequency: Frequency of period in terms of 'Hour', 'Minute' or 'Second'. Known values - are: "Hour", "Minute", and "Second". - :paramtype frequency: str or ~azure.mgmt.datafactory.models.FrequencyType - :keyword interval: Actual interval value as per chosen frequency. - :paramtype interval: int - """ - super().__init__(**kwargs) - self.frequency = frequency - self.interval = interval - - -class MapperSourceConnectionsInfo(_serialization.Model): - """A object which contains list of tables and connection details for a source connection. - - :ivar source_entities: List of source tables for a source connection. - :vartype source_entities: list[~azure.mgmt.datafactory.models.MapperTable] - :ivar connection: Source connection details. - :vartype connection: ~azure.mgmt.datafactory.models.MapperConnection - """ - - _attribute_map = { - "source_entities": {"key": "sourceEntities", "type": "[MapperTable]"}, - "connection": {"key": "connection", "type": "MapperConnection"}, - } - - def __init__( - self, - *, - source_entities: Optional[list["_models.MapperTable"]] = None, - connection: Optional["_models.MapperConnection"] = None, - **kwargs: Any - ) -> None: - """ - :keyword source_entities: List of source tables for a source connection. - :paramtype source_entities: list[~azure.mgmt.datafactory.models.MapperTable] - :keyword connection: Source connection details. - :paramtype connection: ~azure.mgmt.datafactory.models.MapperConnection - """ - super().__init__(**kwargs) - self.source_entities = source_entities - self.connection = connection - - -class MapperTable(_serialization.Model): - """CDC table details. - - :ivar name: Name of the table. - :vartype name: str - :ivar schema: List of columns for the source table. - :vartype schema: list[~azure.mgmt.datafactory.models.MapperTableSchema] - :ivar dsl_connector_properties: List of name/value pairs for connection properties. - :vartype dsl_connector_properties: - list[~azure.mgmt.datafactory.models.MapperDslConnectorProperties] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "schema": {"key": "properties.schema", "type": "[MapperTableSchema]"}, - "dsl_connector_properties": { - "key": "properties.dslConnectorProperties", - "type": "[MapperDslConnectorProperties]", - }, - } - - def __init__( - self, - *, - name: Optional[str] = None, - schema: Optional[list["_models.MapperTableSchema"]] = None, - dsl_connector_properties: Optional[list["_models.MapperDslConnectorProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the table. - :paramtype name: str - :keyword schema: List of columns for the source table. - :paramtype schema: list[~azure.mgmt.datafactory.models.MapperTableSchema] - :keyword dsl_connector_properties: List of name/value pairs for connection properties. - :paramtype dsl_connector_properties: - list[~azure.mgmt.datafactory.models.MapperDslConnectorProperties] - """ - super().__init__(**kwargs) - self.name = name - self.schema = schema - self.dsl_connector_properties = dsl_connector_properties - - -class MapperTableSchema(_serialization.Model): - """Schema of a CDC table in terms of column names and their corresponding data types. - - :ivar name: Name of the column. - :vartype name: str - :ivar data_type: Data type of the column. - :vartype data_type: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "data_type": {"key": "dataType", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, data_type: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Name of the column. - :paramtype name: str - :keyword data_type: Data type of the column. - :paramtype data_type: str - """ - super().__init__(**kwargs) - self.name = name - self.data_type = data_type - - -class MapperTargetConnectionsInfo(_serialization.Model): - """A object which contains list of tables and connection details for a target connection. - - :ivar target_entities: List of source tables for a target connection. - :vartype target_entities: list[~azure.mgmt.datafactory.models.MapperTable] - :ivar connection: Source connection details. - :vartype connection: ~azure.mgmt.datafactory.models.MapperConnection - :ivar data_mapper_mappings: List of table mappings. - :vartype data_mapper_mappings: list[~azure.mgmt.datafactory.models.DataMapperMapping] - :ivar relationships: List of relationship info among the tables. - :vartype relationships: list[JSON] - """ - - _attribute_map = { - "target_entities": {"key": "targetEntities", "type": "[MapperTable]"}, - "connection": {"key": "connection", "type": "MapperConnection"}, - "data_mapper_mappings": {"key": "dataMapperMappings", "type": "[DataMapperMapping]"}, - "relationships": {"key": "relationships", "type": "[object]"}, - } - - def __init__( - self, - *, - target_entities: Optional[list["_models.MapperTable"]] = None, - connection: Optional["_models.MapperConnection"] = None, - data_mapper_mappings: Optional[list["_models.DataMapperMapping"]] = None, - relationships: Optional[list[JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword target_entities: List of source tables for a target connection. - :paramtype target_entities: list[~azure.mgmt.datafactory.models.MapperTable] - :keyword connection: Source connection details. - :paramtype connection: ~azure.mgmt.datafactory.models.MapperConnection - :keyword data_mapper_mappings: List of table mappings. - :paramtype data_mapper_mappings: list[~azure.mgmt.datafactory.models.DataMapperMapping] - :keyword relationships: List of relationship info among the tables. - :paramtype relationships: list[JSON] - """ - super().__init__(**kwargs) - self.target_entities = target_entities - self.connection = connection - self.data_mapper_mappings = data_mapper_mappings - self.relationships = relationships - - -class MappingDataFlow(DataFlow): - """Mapping data flow. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of data flow. Required. - :vartype type: str - :ivar description: The description of the data flow. - :vartype description: str - :ivar annotations: List of tags that can be used for describing the data flow. - :vartype annotations: list[JSON] - :ivar folder: The folder that this data flow is in. If not specified, Data flow will appear at - the root level. - :vartype folder: ~azure.mgmt.datafactory.models.DataFlowFolder - :ivar sources: List of sources in data flow. - :vartype sources: list[~azure.mgmt.datafactory.models.DataFlowSource] - :ivar sinks: List of sinks in data flow. - :vartype sinks: list[~azure.mgmt.datafactory.models.DataFlowSink] - :ivar transformations: List of transformations in data flow. - :vartype transformations: list[~azure.mgmt.datafactory.models.Transformation] - :ivar script: DataFlow script. - :vartype script: str - :ivar script_lines: Data flow script lines. - :vartype script_lines: list[str] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DataFlowFolder"}, - "sources": {"key": "typeProperties.sources", "type": "[DataFlowSource]"}, - "sinks": {"key": "typeProperties.sinks", "type": "[DataFlowSink]"}, - "transformations": {"key": "typeProperties.transformations", "type": "[Transformation]"}, - "script": {"key": "typeProperties.script", "type": "str"}, - "script_lines": {"key": "typeProperties.scriptLines", "type": "[str]"}, - } - - def __init__( - self, - *, - description: Optional[str] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DataFlowFolder"] = None, - sources: Optional[list["_models.DataFlowSource"]] = None, - sinks: Optional[list["_models.DataFlowSink"]] = None, - transformations: Optional[list["_models.Transformation"]] = None, - script: Optional[str] = None, - script_lines: Optional[list[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword description: The description of the data flow. - :paramtype description: str - :keyword annotations: List of tags that can be used for describing the data flow. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this data flow is in. If not specified, Data flow will appear - at the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DataFlowFolder - :keyword sources: List of sources in data flow. - :paramtype sources: list[~azure.mgmt.datafactory.models.DataFlowSource] - :keyword sinks: List of sinks in data flow. - :paramtype sinks: list[~azure.mgmt.datafactory.models.DataFlowSink] - :keyword transformations: List of transformations in data flow. - :paramtype transformations: list[~azure.mgmt.datafactory.models.Transformation] - :keyword script: DataFlow script. - :paramtype script: str - :keyword script_lines: Data flow script lines. - :paramtype script_lines: list[str] - """ - super().__init__(description=description, annotations=annotations, folder=folder, **kwargs) - self.type: str = "MappingDataFlow" - self.sources = sources - self.sinks = sinks - self.transformations = transformations - self.script = script - self.script_lines = script_lines - - -class MariaDBLinkedService(LinkedService): - """MariaDB server linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar driver_version: The version of the MariaDB driver. Type: string. V1 or empty for legacy - driver, V2 for new driver. V1 can support connection string and property bag, V2 can only - support connection string. The legacy driver is scheduled for deprecation by October 2024. - :vartype driver_version: JSON - :ivar connection_string: An ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar server: Server name for connection. Type: string. - :vartype server: JSON - :ivar port: The port for the connection. Type: integer. - :vartype port: JSON - :ivar username: Username for authentication. Type: string. - :vartype username: JSON - :ivar database: Database name for connection. Type: string. - :vartype database: JSON - :ivar ssl_mode: This option specifies whether the driver uses TLS encryption and verification - when connecting to MariaDB. E.g., SSLMode=<0/1/2/3/4>. Options: DISABLED (0) / PREFERRED (1) - (Default) / REQUIRED (2) / VERIFY_CA (3) / VERIFY_IDENTITY (4), REQUIRED (2) is recommended to - only allow connections encrypted with SSL/TLS. - :vartype ssl_mode: JSON - :ivar use_system_trust_store: This option specifies whether to use a CA certificate from the - system trust store, or from a specified PEM file. E.g. UseSystemTrustStore=<0/1>; Options: - Enabled (1) / Disabled (0) (Default). - :vartype use_system_trust_store: JSON - :ivar password: The Azure key vault secret reference of password in connection string. - :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "driver_version": {"key": "typeProperties.driverVersion", "type": "object"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "ssl_mode": {"key": "typeProperties.sslMode", "type": "object"}, - "use_system_trust_store": {"key": "typeProperties.useSystemTrustStore", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - driver_version: Optional[JSON] = None, - connection_string: Optional[JSON] = None, - server: Optional[JSON] = None, - port: Optional[JSON] = None, - username: Optional[JSON] = None, - database: Optional[JSON] = None, - ssl_mode: Optional[JSON] = None, - use_system_trust_store: Optional[JSON] = None, - password: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword driver_version: The version of the MariaDB driver. Type: string. V1 or empty for - legacy driver, V2 for new driver. V1 can support connection string and property bag, V2 can - only support connection string. The legacy driver is scheduled for deprecation by October 2024. - :paramtype driver_version: JSON - :keyword connection_string: An ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword server: Server name for connection. Type: string. - :paramtype server: JSON - :keyword port: The port for the connection. Type: integer. - :paramtype port: JSON - :keyword username: Username for authentication. Type: string. - :paramtype username: JSON - :keyword database: Database name for connection. Type: string. - :paramtype database: JSON - :keyword ssl_mode: This option specifies whether the driver uses TLS encryption and - verification when connecting to MariaDB. E.g., SSLMode=<0/1/2/3/4>. Options: DISABLED (0) / - PREFERRED (1) (Default) / REQUIRED (2) / VERIFY_CA (3) / VERIFY_IDENTITY (4), REQUIRED (2) is - recommended to only allow connections encrypted with SSL/TLS. - :paramtype ssl_mode: JSON - :keyword use_system_trust_store: This option specifies whether to use a CA certificate from the - system trust store, or from a specified PEM file. E.g. UseSystemTrustStore=<0/1>; Options: - Enabled (1) / Disabled (0) (Default). - :paramtype use_system_trust_store: JSON - :keyword password: The Azure key vault secret reference of password in connection string. - :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "MariaDB" - self.driver_version = driver_version - self.connection_string = connection_string - self.server = server - self.port = port - self.username = username - self.database = database - self.ssl_mode = ssl_mode - self.use_system_trust_store = use_system_trust_store - self.password = password - self.encrypted_credential = encrypted_credential - - -class MariaDBSource(TabularSource): - """A copy activity MariaDB server source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "MariaDBSource" - self.query = query - - -class MariaDBTableDataset(Dataset): - """MariaDB server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "MariaDBTable" - self.table_name = table_name - - -class MarketoLinkedService(LinkedService): - """Marketo server linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar endpoint: The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com). Required. - :vartype endpoint: JSON - :ivar client_id: The client Id of your Marketo service. Required. - :vartype client_id: JSON - :ivar client_secret: The client secret of your Marketo service. - :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using - HTTPS. The default value is true. - :vartype use_encrypted_endpoints: JSON - :ivar use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :vartype use_host_verification: JSON - :ivar use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :vartype use_peer_verification: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "endpoint": {"required": True}, - "client_id": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "endpoint": {"key": "typeProperties.endpoint", "type": "object"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "client_secret": {"key": "typeProperties.clientSecret", "type": "SecretBase"}, - "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, - "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, - "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - endpoint: JSON, - client_id: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - client_secret: Optional["_models.SecretBase"] = None, - use_encrypted_endpoints: Optional[JSON] = None, - use_host_verification: Optional[JSON] = None, - use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword endpoint: The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com). - Required. - :paramtype endpoint: JSON - :keyword client_id: The client Id of your Marketo service. Required. - :paramtype client_id: JSON - :keyword client_secret: The client secret of your Marketo service. - :paramtype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :keyword use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted - using HTTPS. The default value is true. - :paramtype use_encrypted_endpoints: JSON - :keyword use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :paramtype use_host_verification: JSON - :keyword use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :paramtype use_peer_verification: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Marketo" - self.endpoint = endpoint - self.client_id = client_id - self.client_secret = client_secret - self.use_encrypted_endpoints = use_encrypted_endpoints - self.use_host_verification = use_host_verification - self.use_peer_verification = use_peer_verification - self.encrypted_credential = encrypted_credential - - -class MarketoObjectDataset(Dataset): - """Marketo server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "MarketoObject" - self.table_name = table_name - - -class MarketoSource(TabularSource): - """A copy activity Marketo server source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "MarketoSource" - self.query = query - - -class MetadataItem(_serialization.Model): - """Specify the name and value of custom metadata item. - - :ivar name: Metadata item key name. Type: string (or Expression with resultType string). - :vartype name: JSON - :ivar value: Metadata item value. Type: string (or Expression with resultType string). - :vartype value: JSON - """ - - _attribute_map = { - "name": {"key": "name", "type": "object"}, - "value": {"key": "value", "type": "object"}, - } - - def __init__(self, *, name: Optional[JSON] = None, value: Optional[JSON] = None, **kwargs: Any) -> None: - """ - :keyword name: Metadata item key name. Type: string (or Expression with resultType string). - :paramtype name: JSON - :keyword value: Metadata item value. Type: string (or Expression with resultType string). - :paramtype value: JSON - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class MicrosoftAccessLinkedService(LinkedService): - """Microsoft Access linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: The non-access credential portion of the connection string as well as - an optional encrypted credential. Type: string, or SecureString, or - AzureKeyVaultSecretReference, or Expression with resultType string. Required. - :vartype connection_string: JSON - :ivar authentication_type: Type of authentication used to connect to the Microsoft Access as - ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with - resultType string). - :vartype authentication_type: JSON - :ivar credential: The access credential portion of the connection string specified in - driver-specific property-value format. - :vartype credential: ~azure.mgmt.datafactory.models.SecretBase - :ivar user_name: User name for Basic authentication. Type: string (or Expression with - resultType string). - :vartype user_name: JSON - :ivar password: Password for Basic authentication. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "connection_string": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "object"}, - "credential": {"key": "typeProperties.credential", "type": "SecretBase"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - connection_string: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - authentication_type: Optional[JSON] = None, - credential: Optional["_models.SecretBase"] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: The non-access credential portion of the connection string as well - as an optional encrypted credential. Type: string, or SecureString, or - AzureKeyVaultSecretReference, or Expression with resultType string. Required. - :paramtype connection_string: JSON - :keyword authentication_type: Type of authentication used to connect to the Microsoft Access as - ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with - resultType string). - :paramtype authentication_type: JSON - :keyword credential: The access credential portion of the connection string specified in - driver-specific property-value format. - :paramtype credential: ~azure.mgmt.datafactory.models.SecretBase - :keyword user_name: User name for Basic authentication. Type: string (or Expression with - resultType string). - :paramtype user_name: JSON - :keyword password: Password for Basic authentication. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "MicrosoftAccess" - self.connection_string = connection_string - self.authentication_type = authentication_type - self.credential = credential - self.user_name = user_name - self.password = password - self.encrypted_credential = encrypted_credential - - -class MicrosoftAccessSink(CopySink): - """A copy activity Microsoft Access sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar pre_copy_script: A query to execute before starting the copy. Type: string (or Expression - with resultType string). - :vartype pre_copy_script: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "pre_copy_script": {"key": "preCopyScript", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - pre_copy_script: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword pre_copy_script: A query to execute before starting the copy. Type: string (or - Expression with resultType string). - :paramtype pre_copy_script: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "MicrosoftAccessSink" - self.pre_copy_script = pre_copy_script - - -class MicrosoftAccessSource(CopySource): - """A copy activity source for Microsoft Access. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query: Database query. Type: string (or Expression with resultType string). - :vartype query: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query: Database query. Type: string (or Expression with resultType string). - :paramtype query: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "MicrosoftAccessSource" - self.query = query - self.additional_columns = additional_columns - - -class MicrosoftAccessTableDataset(Dataset): - """The Microsoft Access table dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The Microsoft Access table name. Type: string (or Expression with resultType - string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The Microsoft Access table name. Type: string (or Expression with - resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "MicrosoftAccessTable" - self.table_name = table_name - - -class MongoDbAtlasCollectionDataset(Dataset): - """The MongoDB Atlas database dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar collection: The collection name of the MongoDB Atlas database. Type: string (or - Expression with resultType string). Required. - :vartype collection: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - "collection": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "collection": {"key": "typeProperties.collection", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - collection: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword collection: The collection name of the MongoDB Atlas database. Type: string (or - Expression with resultType string). Required. - :paramtype collection: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "MongoDbAtlasCollection" - self.collection = collection - - -class MongoDbAtlasLinkedService(LinkedService): - """Linked service for MongoDB Atlas data source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: The MongoDB Atlas connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - Required. - :vartype connection_string: JSON - :ivar database: The name of the MongoDB Atlas database that you want to access. Type: string - (or Expression with resultType string). Required. - :vartype database: JSON - :ivar driver_version: The driver version that you want to choose. Allowed value are v1 and v2. - Type: string (or Expression with resultType string). - :vartype driver_version: JSON - """ - - _validation = { - "type": {"required": True}, - "connection_string": {"required": True}, - "database": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "driver_version": {"key": "typeProperties.driverVersion", "type": "object"}, - } - - def __init__( - self, - *, - connection_string: JSON, - database: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - driver_version: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: The MongoDB Atlas connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - Required. - :paramtype connection_string: JSON - :keyword database: The name of the MongoDB Atlas database that you want to access. Type: string - (or Expression with resultType string). Required. - :paramtype database: JSON - :keyword driver_version: The driver version that you want to choose. Allowed value are v1 and - v2. Type: string (or Expression with resultType string). - :paramtype driver_version: JSON - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "MongoDbAtlas" - self.connection_string = connection_string - self.database = database - self.driver_version = driver_version - - -class MongoDbAtlasSink(CopySink): - """A copy activity MongoDB Atlas sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar write_behavior: Specifies whether the document with same key to be overwritten (upsert) - rather than throw exception (insert). The default value is "insert". Type: string (or - Expression with resultType string). Type: string (or Expression with resultType string). - :vartype write_behavior: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - write_behavior: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword write_behavior: Specifies whether the document with same key to be overwritten - (upsert) rather than throw exception (insert). The default value is "insert". Type: string (or - Expression with resultType string). Type: string (or Expression with resultType string). - :paramtype write_behavior: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "MongoDbAtlasSink" - self.write_behavior = write_behavior - - -class MongoDbAtlasSource(CopySource): - """A copy activity source for a MongoDB Atlas database. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar filter: Specifies selection filter using query operators. To return all documents in a - collection, omit this parameter or pass an empty document ({}). Type: string (or Expression - with resultType string). - :vartype filter: JSON - :ivar cursor_methods: Cursor methods for Mongodb query. - :vartype cursor_methods: ~azure.mgmt.datafactory.models.MongoDbCursorMethodsProperties - :ivar batch_size: Specifies the number of documents to return in each batch of the response - from MongoDB Atlas instance. In most cases, modifying the batch size will not affect the user - or the application. This property's main purpose is to avoid hit the limitation of response - size. Type: integer (or Expression with resultType integer). - :vartype batch_size: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "filter": {"key": "filter", "type": "object"}, - "cursor_methods": {"key": "cursorMethods", "type": "MongoDbCursorMethodsProperties"}, - "batch_size": {"key": "batchSize", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - filter: Optional[JSON] = None, # pylint: disable=redefined-builtin - cursor_methods: Optional["_models.MongoDbCursorMethodsProperties"] = None, - batch_size: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword filter: Specifies selection filter using query operators. To return all documents in a - collection, omit this parameter or pass an empty document ({}). Type: string (or Expression - with resultType string). - :paramtype filter: JSON - :keyword cursor_methods: Cursor methods for Mongodb query. - :paramtype cursor_methods: ~azure.mgmt.datafactory.models.MongoDbCursorMethodsProperties - :keyword batch_size: Specifies the number of documents to return in each batch of the response - from MongoDB Atlas instance. In most cases, modifying the batch size will not affect the user - or the application. This property's main purpose is to avoid hit the limitation of response - size. Type: integer (or Expression with resultType integer). - :paramtype batch_size: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "MongoDbAtlasSource" - self.filter = filter - self.cursor_methods = cursor_methods - self.batch_size = batch_size - self.query_timeout = query_timeout - self.additional_columns = additional_columns - - -class MongoDbCollectionDataset(Dataset): - """The MongoDB database dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar collection_name: The table name of the MongoDB database. Type: string (or Expression with - resultType string). Required. - :vartype collection_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - "collection_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "collection_name": {"key": "typeProperties.collectionName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - collection_name: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword collection_name: The table name of the MongoDB database. Type: string (or Expression - with resultType string). Required. - :paramtype collection_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "MongoDbCollection" - self.collection_name = collection_name - - -class MongoDbCursorMethodsProperties(_serialization.Model): - """Cursor methods for Mongodb query. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar project: Specifies the fields to return in the documents that match the query filter. To - return all fields in the matching documents, omit this parameter. Type: string (or Expression - with resultType string). - :vartype project: JSON - :ivar sort: Specifies the order in which the query returns matching documents. Type: string (or - Expression with resultType string). Type: string (or Expression with resultType string). - :vartype sort: JSON - :ivar skip: Specifies the how many documents skipped and where MongoDB begins returning - results. This approach may be useful in implementing paginated results. Type: integer (or - Expression with resultType integer). - :vartype skip: JSON - :ivar limit: Specifies the maximum number of documents the server returns. limit() is analogous - to the LIMIT statement in a SQL database. Type: integer (or Expression with resultType - integer). - :vartype limit: JSON - """ - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "project": {"key": "project", "type": "object"}, - "sort": {"key": "sort", "type": "object"}, - "skip": {"key": "skip", "type": "object"}, - "limit": {"key": "limit", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - project: Optional[JSON] = None, - sort: Optional[JSON] = None, - skip: Optional[JSON] = None, - limit: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword project: Specifies the fields to return in the documents that match the query filter. - To return all fields in the matching documents, omit this parameter. Type: string (or - Expression with resultType string). - :paramtype project: JSON - :keyword sort: Specifies the order in which the query returns matching documents. Type: string - (or Expression with resultType string). Type: string (or Expression with resultType string). - :paramtype sort: JSON - :keyword skip: Specifies the how many documents skipped and where MongoDB begins returning - results. This approach may be useful in implementing paginated results. Type: integer (or - Expression with resultType integer). - :paramtype skip: JSON - :keyword limit: Specifies the maximum number of documents the server returns. limit() is - analogous to the LIMIT statement in a SQL database. Type: integer (or Expression with - resultType integer). - :paramtype limit: JSON - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.project = project - self.sort = sort - self.skip = skip - self.limit = limit - - -class MongoDbLinkedService(LinkedService): - """Linked service for MongoDb data source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar server: The IP address or server name of the MongoDB server. Type: string (or Expression - with resultType string). Required. - :vartype server: JSON - :ivar authentication_type: The authentication type to be used to connect to the MongoDB - database. Known values are: "Basic" and "Anonymous". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.MongoDbAuthenticationType - :ivar database_name: The name of the MongoDB database that you want to access. Type: string (or - Expression with resultType string). Required. - :vartype database_name: JSON - :ivar username: Username for authentication. Type: string (or Expression with resultType - string). - :vartype username: JSON - :ivar password: Password for authentication. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar auth_source: Database to verify the username and password. Type: string (or Expression - with resultType string). - :vartype auth_source: JSON - :ivar port: The TCP port number that the MongoDB server uses to listen for client connections. - The default value is 27017. Type: integer (or Expression with resultType integer), minimum: 0. - :vartype port: JSON - :ivar enable_ssl: Specifies whether the connections to the server are encrypted using SSL. The - default value is false. Type: boolean (or Expression with resultType boolean). - :vartype enable_ssl: JSON - :ivar allow_self_signed_server_cert: Specifies whether to allow self-signed certificates from - the server. The default value is false. Type: boolean (or Expression with resultType boolean). - :vartype allow_self_signed_server_cert: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "server": {"required": True}, - "database_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "database_name": {"key": "typeProperties.databaseName", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "auth_source": {"key": "typeProperties.authSource", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "enable_ssl": {"key": "typeProperties.enableSsl", "type": "object"}, - "allow_self_signed_server_cert": {"key": "typeProperties.allowSelfSignedServerCert", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - server: JSON, - database_name: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - authentication_type: Optional[Union[str, "_models.MongoDbAuthenticationType"]] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - auth_source: Optional[JSON] = None, - port: Optional[JSON] = None, - enable_ssl: Optional[JSON] = None, - allow_self_signed_server_cert: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword server: The IP address or server name of the MongoDB server. Type: string (or - Expression with resultType string). Required. - :paramtype server: JSON - :keyword authentication_type: The authentication type to be used to connect to the MongoDB - database. Known values are: "Basic" and "Anonymous". - :paramtype authentication_type: str or ~azure.mgmt.datafactory.models.MongoDbAuthenticationType - :keyword database_name: The name of the MongoDB database that you want to access. Type: string - (or Expression with resultType string). Required. - :paramtype database_name: JSON - :keyword username: Username for authentication. Type: string (or Expression with resultType - string). - :paramtype username: JSON - :keyword password: Password for authentication. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword auth_source: Database to verify the username and password. Type: string (or Expression - with resultType string). - :paramtype auth_source: JSON - :keyword port: The TCP port number that the MongoDB server uses to listen for client - connections. The default value is 27017. Type: integer (or Expression with resultType integer), - minimum: 0. - :paramtype port: JSON - :keyword enable_ssl: Specifies whether the connections to the server are encrypted using SSL. - The default value is false. Type: boolean (or Expression with resultType boolean). - :paramtype enable_ssl: JSON - :keyword allow_self_signed_server_cert: Specifies whether to allow self-signed certificates - from the server. The default value is false. Type: boolean (or Expression with resultType - boolean). - :paramtype allow_self_signed_server_cert: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "MongoDb" - self.server = server - self.authentication_type = authentication_type - self.database_name = database_name - self.username = username - self.password = password - self.auth_source = auth_source - self.port = port - self.enable_ssl = enable_ssl - self.allow_self_signed_server_cert = allow_self_signed_server_cert - self.encrypted_credential = encrypted_credential - - -class MongoDbSource(CopySource): - """A copy activity source for a MongoDB database. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query: Database query. Should be a SQL-92 query expression. Type: string (or Expression - with resultType string). - :vartype query: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query: Database query. Should be a SQL-92 query expression. Type: string (or - Expression with resultType string). - :paramtype query: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "MongoDbSource" - self.query = query - self.additional_columns = additional_columns - - -class MongoDbV2CollectionDataset(Dataset): - """The MongoDB database dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar collection: The collection name of the MongoDB database. Type: string (or Expression with - resultType string). Required. - :vartype collection: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - "collection": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "collection": {"key": "typeProperties.collection", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - collection: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword collection: The collection name of the MongoDB database. Type: string (or Expression - with resultType string). Required. - :paramtype collection: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "MongoDbV2Collection" - self.collection = collection - - -class MongoDbV2LinkedService(LinkedService): - """Linked service for MongoDB data source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: The MongoDB connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - Required. - :vartype connection_string: JSON - :ivar database: The name of the MongoDB database that you want to access. Type: string (or - Expression with resultType string). Required. - :vartype database: JSON - """ - - _validation = { - "type": {"required": True}, - "connection_string": {"required": True}, - "database": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - } - - def __init__( - self, - *, - connection_string: JSON, - database: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: The MongoDB connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - Required. - :paramtype connection_string: JSON - :keyword database: The name of the MongoDB database that you want to access. Type: string (or - Expression with resultType string). Required. - :paramtype database: JSON - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "MongoDbV2" - self.connection_string = connection_string - self.database = database - - -class MongoDbV2Sink(CopySink): - """A copy activity MongoDB sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar write_behavior: Specifies whether the document with same key to be overwritten (upsert) - rather than throw exception (insert). The default value is "insert". Type: string (or - Expression with resultType string). Type: string (or Expression with resultType string). - :vartype write_behavior: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - write_behavior: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword write_behavior: Specifies whether the document with same key to be overwritten - (upsert) rather than throw exception (insert). The default value is "insert". Type: string (or - Expression with resultType string). Type: string (or Expression with resultType string). - :paramtype write_behavior: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "MongoDbV2Sink" - self.write_behavior = write_behavior - - -class MongoDbV2Source(CopySource): - """A copy activity source for a MongoDB database. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar filter: Specifies selection filter using query operators. To return all documents in a - collection, omit this parameter or pass an empty document ({}). Type: string (or Expression - with resultType string). - :vartype filter: JSON - :ivar cursor_methods: Cursor methods for Mongodb query. - :vartype cursor_methods: ~azure.mgmt.datafactory.models.MongoDbCursorMethodsProperties - :ivar batch_size: Specifies the number of documents to return in each batch of the response - from MongoDB instance. In most cases, modifying the batch size will not affect the user or the - application. This property's main purpose is to avoid hit the limitation of response size. - Type: integer (or Expression with resultType integer). - :vartype batch_size: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "filter": {"key": "filter", "type": "object"}, - "cursor_methods": {"key": "cursorMethods", "type": "MongoDbCursorMethodsProperties"}, - "batch_size": {"key": "batchSize", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - filter: Optional[JSON] = None, # pylint: disable=redefined-builtin - cursor_methods: Optional["_models.MongoDbCursorMethodsProperties"] = None, - batch_size: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword filter: Specifies selection filter using query operators. To return all documents in a - collection, omit this parameter or pass an empty document ({}). Type: string (or Expression - with resultType string). - :paramtype filter: JSON - :keyword cursor_methods: Cursor methods for Mongodb query. - :paramtype cursor_methods: ~azure.mgmt.datafactory.models.MongoDbCursorMethodsProperties - :keyword batch_size: Specifies the number of documents to return in each batch of the response - from MongoDB instance. In most cases, modifying the batch size will not affect the user or the - application. This property's main purpose is to avoid hit the limitation of response size. - Type: integer (or Expression with resultType integer). - :paramtype batch_size: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "MongoDbV2Source" - self.filter = filter - self.cursor_methods = cursor_methods - self.batch_size = batch_size - self.query_timeout = query_timeout - self.additional_columns = additional_columns - - -class MySqlLinkedService(LinkedService): - """Linked service for MySQL data source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar driver_version: The version of the MySQL driver. Type: string. V1 or empty for legacy - driver, V2 for new driver. V1 can support connection string and property bag, V2 can only - support connection string. - :vartype driver_version: JSON - :ivar connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar server: Server name for connection. Type: string. - :vartype server: JSON - :ivar port: The port for the connection. Type: integer. - :vartype port: JSON - :ivar username: Username for authentication. Type: string. - :vartype username: JSON - :ivar database: Database name for connection. Type: string. - :vartype database: JSON - :ivar ssl_mode: SSL mode for connection. Type: integer. 0: disable, 1: prefer, 2: require, 3: - verify-ca, 4: verify-full. - :vartype ssl_mode: JSON - :ivar use_system_trust_store: Use system trust store for connection. Type: integer. 0: enable, - 1: disable. - :vartype use_system_trust_store: JSON - :ivar password: The Azure key vault secret reference of password in connection string. - :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar allow_zero_date_time: This allows the special “zero” date value 0000-00-00 to be - retrieved from the database. Type: boolean. - :vartype allow_zero_date_time: JSON - :ivar connection_timeout: The length of time (in seconds) to wait for a connection to the - server before terminating the attempt and generating an error. Type: integer. - :vartype connection_timeout: JSON - :ivar convert_zero_date_time: True to return DateTime.MinValue for date or datetime columns - that have disallowed values. Type: boolean. - :vartype convert_zero_date_time: JSON - :ivar guid_format: Determines which column type (if any) should be read as a GUID. Type: - string. None: No column types are automatically read as a Guid; Char36: All CHAR(36) columns - are read/written as a Guid using lowercase hex with hyphens, which matches UUID. - :vartype guid_format: JSON - :ivar ssl_cert: The path to the client’s SSL certificate file in PEM format. SslKey must also - be specified. Type: string. - :vartype ssl_cert: JSON - :ivar ssl_key: The path to the client’s SSL private key in PEM format. SslCert must also be - specified. Type: string. - :vartype ssl_key: JSON - :ivar treat_tiny_as_boolean: When set to true, TINYINT(1) values are returned as booleans. - Type: bool. - :vartype treat_tiny_as_boolean: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "driver_version": {"key": "typeProperties.driverVersion", "type": "object"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "ssl_mode": {"key": "typeProperties.sslMode", "type": "object"}, - "use_system_trust_store": {"key": "typeProperties.useSystemTrustStore", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "allow_zero_date_time": {"key": "typeProperties.allowZeroDateTime", "type": "object"}, - "connection_timeout": {"key": "typeProperties.connectionTimeout", "type": "object"}, - "convert_zero_date_time": {"key": "typeProperties.convertZeroDateTime", "type": "object"}, - "guid_format": {"key": "typeProperties.guidFormat", "type": "object"}, - "ssl_cert": {"key": "typeProperties.sslCert", "type": "object"}, - "ssl_key": {"key": "typeProperties.sslKey", "type": "object"}, - "treat_tiny_as_boolean": {"key": "typeProperties.treatTinyAsBoolean", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - driver_version: Optional[JSON] = None, - connection_string: Optional[JSON] = None, - server: Optional[JSON] = None, - port: Optional[JSON] = None, - username: Optional[JSON] = None, - database: Optional[JSON] = None, - ssl_mode: Optional[JSON] = None, - use_system_trust_store: Optional[JSON] = None, - password: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[str] = None, - allow_zero_date_time: Optional[JSON] = None, - connection_timeout: Optional[JSON] = None, - convert_zero_date_time: Optional[JSON] = None, - guid_format: Optional[JSON] = None, - ssl_cert: Optional[JSON] = None, - ssl_key: Optional[JSON] = None, - treat_tiny_as_boolean: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword driver_version: The version of the MySQL driver. Type: string. V1 or empty for legacy - driver, V2 for new driver. V1 can support connection string and property bag, V2 can only - support connection string. - :paramtype driver_version: JSON - :keyword connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword server: Server name for connection. Type: string. - :paramtype server: JSON - :keyword port: The port for the connection. Type: integer. - :paramtype port: JSON - :keyword username: Username for authentication. Type: string. - :paramtype username: JSON - :keyword database: Database name for connection. Type: string. - :paramtype database: JSON - :keyword ssl_mode: SSL mode for connection. Type: integer. 0: disable, 1: prefer, 2: require, - 3: verify-ca, 4: verify-full. - :paramtype ssl_mode: JSON - :keyword use_system_trust_store: Use system trust store for connection. Type: integer. 0: - enable, 1: disable. - :paramtype use_system_trust_store: JSON - :keyword password: The Azure key vault secret reference of password in connection string. - :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword allow_zero_date_time: This allows the special “zero” date value 0000-00-00 to be - retrieved from the database. Type: boolean. - :paramtype allow_zero_date_time: JSON - :keyword connection_timeout: The length of time (in seconds) to wait for a connection to the - server before terminating the attempt and generating an error. Type: integer. - :paramtype connection_timeout: JSON - :keyword convert_zero_date_time: True to return DateTime.MinValue for date or datetime columns - that have disallowed values. Type: boolean. - :paramtype convert_zero_date_time: JSON - :keyword guid_format: Determines which column type (if any) should be read as a GUID. Type: - string. None: No column types are automatically read as a Guid; Char36: All CHAR(36) columns - are read/written as a Guid using lowercase hex with hyphens, which matches UUID. - :paramtype guid_format: JSON - :keyword ssl_cert: The path to the client’s SSL certificate file in PEM format. SslKey must - also be specified. Type: string. - :paramtype ssl_cert: JSON - :keyword ssl_key: The path to the client’s SSL private key in PEM format. SslCert must also be - specified. Type: string. - :paramtype ssl_key: JSON - :keyword treat_tiny_as_boolean: When set to true, TINYINT(1) values are returned as booleans. - Type: bool. - :paramtype treat_tiny_as_boolean: JSON - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "MySql" - self.driver_version = driver_version - self.connection_string = connection_string - self.server = server - self.port = port - self.username = username - self.database = database - self.ssl_mode = ssl_mode - self.use_system_trust_store = use_system_trust_store - self.password = password - self.encrypted_credential = encrypted_credential - self.allow_zero_date_time = allow_zero_date_time - self.connection_timeout = connection_timeout - self.convert_zero_date_time = convert_zero_date_time - self.guid_format = guid_format - self.ssl_cert = ssl_cert - self.ssl_key = ssl_key - self.treat_tiny_as_boolean = treat_tiny_as_boolean - - -class MySqlSource(TabularSource): - """A copy activity source for MySQL databases. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: Database query. Type: string (or Expression with resultType string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: Database query. Type: string (or Expression with resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "MySqlSource" - self.query = query - - -class MySqlTableDataset(Dataset): - """The MySQL table dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The MySQL table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The MySQL table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "MySqlTable" - self.table_name = table_name - - -class NetezzaLinkedService(LinkedService): - """Netezza linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: An ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar server: Server name for connection. Type: string. - :vartype server: JSON - :ivar port: The port for the connection. Type: integer. - :vartype port: JSON - :ivar uid: Username for authentication. Type: string. - :vartype uid: JSON - :ivar database: Database name for connection. Type: string. - :vartype database: JSON - :ivar security_level: Specifies the security level for the driver connection to the data store. - PreferredUnSecured : prefer unsecured, allow fallback to secured connection if required. - OnlyUnSecured : strictly unsecured, no fallback. Known values are: "PreferredUnSecured" and - "OnlyUnSecured". - :vartype security_level: str or ~azure.mgmt.datafactory.models.NetezzaSecurityLevelType - :ivar pwd: The Azure key vault secret reference of password in connection string. - :vartype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "uid": {"key": "typeProperties.uid", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "security_level": {"key": "typeProperties.securityLevel", "type": "str"}, - "pwd": {"key": "typeProperties.pwd", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_string: Optional[JSON] = None, - server: Optional[JSON] = None, - port: Optional[JSON] = None, - uid: Optional[JSON] = None, - database: Optional[JSON] = None, - security_level: Optional[Union[str, "_models.NetezzaSecurityLevelType"]] = None, - pwd: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: An ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword server: Server name for connection. Type: string. - :paramtype server: JSON - :keyword port: The port for the connection. Type: integer. - :paramtype port: JSON - :keyword uid: Username for authentication. Type: string. - :paramtype uid: JSON - :keyword database: Database name for connection. Type: string. - :paramtype database: JSON - :keyword security_level: Specifies the security level for the driver connection to the data - store. PreferredUnSecured : prefer unsecured, allow fallback to secured connection if required. - OnlyUnSecured : strictly unsecured, no fallback. Known values are: "PreferredUnSecured" and - "OnlyUnSecured". - :paramtype security_level: str or ~azure.mgmt.datafactory.models.NetezzaSecurityLevelType - :keyword pwd: The Azure key vault secret reference of password in connection string. - :paramtype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Netezza" - self.connection_string = connection_string - self.server = server - self.port = port - self.uid = uid - self.database = database - self.security_level = security_level - self.pwd = pwd - self.encrypted_credential = encrypted_credential - - -class NetezzaPartitionSettings(_serialization.Model): - """The settings that will be leveraged for Netezza source partitioning. - - :ivar partition_column_name: The name of the column in integer type that will be used for - proceeding range partitioning. Type: string (or Expression with resultType string). - :vartype partition_column_name: JSON - :ivar partition_upper_bound: The maximum value of column specified in partitionColumnName that - will be used for proceeding range partitioning. Type: string (or Expression with resultType - string). - :vartype partition_upper_bound: JSON - :ivar partition_lower_bound: The minimum value of column specified in partitionColumnName that - will be used for proceeding range partitioning. Type: string (or Expression with resultType - string). - :vartype partition_lower_bound: JSON - """ - - _attribute_map = { - "partition_column_name": {"key": "partitionColumnName", "type": "object"}, - "partition_upper_bound": {"key": "partitionUpperBound", "type": "object"}, - "partition_lower_bound": {"key": "partitionLowerBound", "type": "object"}, - } - - def __init__( - self, - *, - partition_column_name: Optional[JSON] = None, - partition_upper_bound: Optional[JSON] = None, - partition_lower_bound: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword partition_column_name: The name of the column in integer type that will be used for - proceeding range partitioning. Type: string (or Expression with resultType string). - :paramtype partition_column_name: JSON - :keyword partition_upper_bound: The maximum value of column specified in partitionColumnName - that will be used for proceeding range partitioning. Type: string (or Expression with - resultType string). - :paramtype partition_upper_bound: JSON - :keyword partition_lower_bound: The minimum value of column specified in partitionColumnName - that will be used for proceeding range partitioning. Type: string (or Expression with - resultType string). - :paramtype partition_lower_bound: JSON - """ - super().__init__(**kwargs) - self.partition_column_name = partition_column_name - self.partition_upper_bound = partition_upper_bound - self.partition_lower_bound = partition_lower_bound - - -class NetezzaSource(TabularSource): - """A copy activity Netezza source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - :ivar partition_option: The partition mechanism that will be used for Netezza read in parallel. - Possible values include: "None", "DataSlice", "DynamicRange". - :vartype partition_option: JSON - :ivar partition_settings: The settings that will be leveraged for Netezza source partitioning. - :vartype partition_settings: ~azure.mgmt.datafactory.models.NetezzaPartitionSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "partition_option": {"key": "partitionOption", "type": "object"}, - "partition_settings": {"key": "partitionSettings", "type": "NetezzaPartitionSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - partition_option: Optional[JSON] = None, - partition_settings: Optional["_models.NetezzaPartitionSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - :keyword partition_option: The partition mechanism that will be used for Netezza read in - parallel. Possible values include: "None", "DataSlice", "DynamicRange". - :paramtype partition_option: JSON - :keyword partition_settings: The settings that will be leveraged for Netezza source - partitioning. - :paramtype partition_settings: ~azure.mgmt.datafactory.models.NetezzaPartitionSettings - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "NetezzaSource" - self.query = query - self.partition_option = partition_option - self.partition_settings = partition_settings - - -class NetezzaTableDataset(Dataset): - """Netezza dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property will be retired. Please consider using schema + table - properties instead. - :vartype table_name: JSON - :ivar table: The table name of the Netezza. Type: string (or Expression with resultType - string). - :vartype table: JSON - :ivar schema_type_properties_schema: The schema name of the Netezza. Type: string (or - Expression with resultType string). - :vartype schema_type_properties_schema: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - table: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property will be retired. Please consider using schema + table - properties instead. - :paramtype table_name: JSON - :keyword table: The table name of the Netezza. Type: string (or Expression with resultType - string). - :paramtype table: JSON - :keyword schema_type_properties_schema: The schema name of the Netezza. Type: string (or - Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "NetezzaTable" - self.table_name = table_name - self.table = table - self.schema_type_properties_schema = schema_type_properties_schema - - -class NotebookParameter(_serialization.Model): - """Notebook parameter. - - :ivar value: Notebook parameter value. Type: string (or Expression with resultType string). - :vartype value: JSON - :ivar type: Notebook parameter type. Known values are: "string", "int", "float", "bool", and - "int". - :vartype type: str or ~azure.mgmt.datafactory.models.NotebookParameterType - """ - - _attribute_map = { - "value": {"key": "value", "type": "object"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[JSON] = None, - type: Optional[Union[str, "_models.NotebookParameterType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Notebook parameter value. Type: string (or Expression with resultType string). - :paramtype value: JSON - :keyword type: Notebook parameter type. Known values are: "string", "int", "float", "bool", and - "int". - :paramtype type: str or ~azure.mgmt.datafactory.models.NotebookParameterType - """ - super().__init__(**kwargs) - self.value = value - self.type = type - - -class ODataLinkedService(LinkedService): - """Open Data Protocol (OData) linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar url: The URL of the OData service endpoint. Type: string (or Expression with resultType - string). Required. - :vartype url: JSON - :ivar authentication_type: Type of authentication used to connect to the OData service. Known - values are: "Basic", "Anonymous", "Windows", "AadServicePrincipal", and - "ManagedServiceIdentity". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.ODataAuthenticationType - :ivar user_name: User name of the OData service. Type: string (or Expression with resultType - string). - :vartype user_name: JSON - :ivar password: Password of the OData service. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar auth_headers: The additional HTTP headers in the request to RESTful API used for - authorization. Type: key value pairs (value should be string type). - :vartype auth_headers: JSON - :ivar tenant: Specify the tenant information (domain name or tenant ID) under which your - application resides. Type: string (or Expression with resultType string). - :vartype tenant: JSON - :ivar service_principal_id: Specify the application id of your application registered in Azure - Active Directory. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed - values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data - factory regions’ cloud type. Type: string (or Expression with resultType string). - :vartype azure_cloud_type: JSON - :ivar aad_resource_id: Specify the resource you are requesting authorization to use Directory. - Type: string (or Expression with resultType string). - :vartype aad_resource_id: JSON - :ivar aad_service_principal_credential_type: Specify the credential type (key or cert) is used - for service principal. Known values are: "ServicePrincipalKey" and "ServicePrincipalCert". - :vartype aad_service_principal_credential_type: str or - ~azure.mgmt.datafactory.models.ODataAadServicePrincipalCredentialType - :ivar service_principal_key: Specify the secret of your application registered in Azure Active - Directory. Type: string (or Expression with resultType string). - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_embedded_cert: Specify the base64 encoded certificate of your - application registered in Azure Active Directory. Type: string (or Expression with resultType - string). - :vartype service_principal_embedded_cert: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_embedded_cert_password: Specify the password of your certificate if - your certificate has a password and you are using AadServicePrincipal authentication. Type: - string (or Expression with resultType string). - :vartype service_principal_embedded_cert_password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "url": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "url": {"key": "typeProperties.url", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "auth_headers": {"key": "typeProperties.authHeaders", "type": "object"}, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "azure_cloud_type": {"key": "typeProperties.azureCloudType", "type": "object"}, - "aad_resource_id": {"key": "typeProperties.aadResourceId", "type": "object"}, - "aad_service_principal_credential_type": { - "key": "typeProperties.aadServicePrincipalCredentialType", - "type": "str", - }, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "service_principal_embedded_cert": {"key": "typeProperties.servicePrincipalEmbeddedCert", "type": "SecretBase"}, - "service_principal_embedded_cert_password": { - "key": "typeProperties.servicePrincipalEmbeddedCertPassword", - "type": "SecretBase", - }, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - url: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - authentication_type: Optional[Union[str, "_models.ODataAuthenticationType"]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - auth_headers: Optional[JSON] = None, - tenant: Optional[JSON] = None, - service_principal_id: Optional[JSON] = None, - azure_cloud_type: Optional[JSON] = None, - aad_resource_id: Optional[JSON] = None, - aad_service_principal_credential_type: Optional[ - Union[str, "_models.ODataAadServicePrincipalCredentialType"] - ] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - service_principal_embedded_cert: Optional["_models.SecretBase"] = None, - service_principal_embedded_cert_password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword url: The URL of the OData service endpoint. Type: string (or Expression with - resultType string). Required. - :paramtype url: JSON - :keyword authentication_type: Type of authentication used to connect to the OData service. - Known values are: "Basic", "Anonymous", "Windows", "AadServicePrincipal", and - "ManagedServiceIdentity". - :paramtype authentication_type: str or ~azure.mgmt.datafactory.models.ODataAuthenticationType - :keyword user_name: User name of the OData service. Type: string (or Expression with resultType - string). - :paramtype user_name: JSON - :keyword password: Password of the OData service. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword auth_headers: The additional HTTP headers in the request to RESTful API used for - authorization. Type: key value pairs (value should be string type). - :paramtype auth_headers: JSON - :keyword tenant: Specify the tenant information (domain name or tenant ID) under which your - application resides. Type: string (or Expression with resultType string). - :paramtype tenant: JSON - :keyword service_principal_id: Specify the application id of your application registered in - Azure Active Directory. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword azure_cloud_type: Indicates the azure cloud type of the service principle auth. - Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is - the data factory regions’ cloud type. Type: string (or Expression with resultType string). - :paramtype azure_cloud_type: JSON - :keyword aad_resource_id: Specify the resource you are requesting authorization to use - Directory. Type: string (or Expression with resultType string). - :paramtype aad_resource_id: JSON - :keyword aad_service_principal_credential_type: Specify the credential type (key or cert) is - used for service principal. Known values are: "ServicePrincipalKey" and "ServicePrincipalCert". - :paramtype aad_service_principal_credential_type: str or - ~azure.mgmt.datafactory.models.ODataAadServicePrincipalCredentialType - :keyword service_principal_key: Specify the secret of your application registered in Azure - Active Directory. Type: string (or Expression with resultType string). - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_embedded_cert: Specify the base64 encoded certificate of your - application registered in Azure Active Directory. Type: string (or Expression with resultType - string). - :paramtype service_principal_embedded_cert: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_embedded_cert_password: Specify the password of your certificate if - your certificate has a password and you are using AadServicePrincipal authentication. Type: - string (or Expression with resultType string). - :paramtype service_principal_embedded_cert_password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "OData" - self.url = url - self.authentication_type = authentication_type - self.user_name = user_name - self.password = password - self.auth_headers = auth_headers - self.tenant = tenant - self.service_principal_id = service_principal_id - self.azure_cloud_type = azure_cloud_type - self.aad_resource_id = aad_resource_id - self.aad_service_principal_credential_type = aad_service_principal_credential_type - self.service_principal_key = service_principal_key - self.service_principal_embedded_cert = service_principal_embedded_cert - self.service_principal_embedded_cert_password = service_principal_embedded_cert_password - self.encrypted_credential = encrypted_credential - - -class ODataResourceDataset(Dataset): - """The Open Data Protocol (OData) resource dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar path: The OData resource path. Type: string (or Expression with resultType string). - :vartype path: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "path": {"key": "typeProperties.path", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - path: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword path: The OData resource path. Type: string (or Expression with resultType string). - :paramtype path: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "ODataResource" - self.path = path - - -class ODataSource(CopySource): - """A copy activity source for OData source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query: OData query. For example, "$top=1". Type: string (or Expression with resultType - string). - :vartype query: JSON - :ivar http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the timeout - to get a response, not the timeout to read response data. Default value: 00:05:00. Type: string - (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype http_request_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "http_request_timeout": {"key": "httpRequestTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query: Optional[JSON] = None, - http_request_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query: OData query. For example, "$top=1". Type: string (or Expression with resultType - string). - :paramtype query: JSON - :keyword http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the - timeout to get a response, not the timeout to read response data. Default value: 00:05:00. - Type: string (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype http_request_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "ODataSource" - self.query = query - self.http_request_timeout = http_request_timeout - self.additional_columns = additional_columns - - -class OdbcLinkedService(LinkedService): - """Open Database Connectivity (ODBC) linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: The non-access credential portion of the connection string as well as - an optional encrypted credential. Type: string, or SecureString, or - AzureKeyVaultSecretReference, or Expression with resultType string. Required. - :vartype connection_string: JSON - :ivar authentication_type: Type of authentication used to connect to the ODBC data store. - Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). - :vartype authentication_type: JSON - :ivar credential: The access credential portion of the connection string specified in - driver-specific property-value format. - :vartype credential: ~azure.mgmt.datafactory.models.SecretBase - :ivar user_name: User name for Basic authentication. Type: string (or Expression with - resultType string). - :vartype user_name: JSON - :ivar password: Password for Basic authentication. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "connection_string": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "object"}, - "credential": {"key": "typeProperties.credential", "type": "SecretBase"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - connection_string: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - authentication_type: Optional[JSON] = None, - credential: Optional["_models.SecretBase"] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: The non-access credential portion of the connection string as well - as an optional encrypted credential. Type: string, or SecureString, or - AzureKeyVaultSecretReference, or Expression with resultType string. Required. - :paramtype connection_string: JSON - :keyword authentication_type: Type of authentication used to connect to the ODBC data store. - Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). - :paramtype authentication_type: JSON - :keyword credential: The access credential portion of the connection string specified in - driver-specific property-value format. - :paramtype credential: ~azure.mgmt.datafactory.models.SecretBase - :keyword user_name: User name for Basic authentication. Type: string (or Expression with - resultType string). - :paramtype user_name: JSON - :keyword password: Password for Basic authentication. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Odbc" - self.connection_string = connection_string - self.authentication_type = authentication_type - self.credential = credential - self.user_name = user_name - self.password = password - self.encrypted_credential = encrypted_credential - - -class OdbcSink(CopySink): - """A copy activity ODBC sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar pre_copy_script: A query to execute before starting the copy. Type: string (or Expression - with resultType string). - :vartype pre_copy_script: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "pre_copy_script": {"key": "preCopyScript", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - pre_copy_script: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword pre_copy_script: A query to execute before starting the copy. Type: string (or - Expression with resultType string). - :paramtype pre_copy_script: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "OdbcSink" - self.pre_copy_script = pre_copy_script - - -class OdbcSource(TabularSource): - """A copy activity source for ODBC databases. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: Database query. Type: string (or Expression with resultType string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: Database query. Type: string (or Expression with resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "OdbcSource" - self.query = query - - -class OdbcTableDataset(Dataset): - """The ODBC table dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The ODBC table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The ODBC table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "OdbcTable" - self.table_name = table_name - - -class Office365Dataset(Dataset): - """The Office365 account. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: Name of the dataset to extract from Office 365. Type: string (or Expression - with resultType string). Required. - :vartype table_name: JSON - :ivar predicate: A predicate expression that can be used to filter the specific rows to extract - from Office 365. Type: string (or Expression with resultType string). - :vartype predicate: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - "table_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "predicate": {"key": "typeProperties.predicate", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - table_name: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - predicate: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: Name of the dataset to extract from Office 365. Type: string (or - Expression with resultType string). Required. - :paramtype table_name: JSON - :keyword predicate: A predicate expression that can be used to filter the specific rows to - extract from Office 365. Type: string (or Expression with resultType string). - :paramtype predicate: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "Office365Table" - self.table_name = table_name - self.predicate = predicate - - -class Office365LinkedService(LinkedService): - """Office365 linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar office365_tenant_id: Azure tenant ID to which the Office 365 account belongs. Type: - string (or Expression with resultType string). Required. - :vartype office365_tenant_id: JSON - :ivar service_principal_tenant_id: Specify the tenant information under which your Azure AD web - application resides. Type: string (or Expression with resultType string). Required. - :vartype service_principal_tenant_id: JSON - :ivar service_principal_id: Specify the application's client ID. Type: string (or Expression - with resultType string). Required. - :vartype service_principal_id: JSON - :ivar service_principal_key: Specify the application's key. Required. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_credential_type: The service principal credential type for - authentication.'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. If - not specified, 'ServicePrincipalKey' is in use. Type: string (or Expression with resultType - string). - :vartype service_principal_credential_type: JSON - :ivar service_principal_embedded_cert: Specify the base64 encoded certificate of your - application registered in Azure Active Directory. Type: string (or Expression with resultType - string). - :vartype service_principal_embedded_cert: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_embedded_cert_password: Specify the password of your certificate if - your certificate has a password and you are using AadServicePrincipal authentication. Type: - string (or Expression with resultType string). - :vartype service_principal_embedded_cert_password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "office365_tenant_id": {"required": True}, - "service_principal_tenant_id": {"required": True}, - "service_principal_id": {"required": True}, - "service_principal_key": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "office365_tenant_id": {"key": "typeProperties.office365TenantId", "type": "object"}, - "service_principal_tenant_id": {"key": "typeProperties.servicePrincipalTenantId", "type": "object"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, - "service_principal_embedded_cert": {"key": "typeProperties.servicePrincipalEmbeddedCert", "type": "SecretBase"}, - "service_principal_embedded_cert_password": { - "key": "typeProperties.servicePrincipalEmbeddedCertPassword", - "type": "SecretBase", - }, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - office365_tenant_id: JSON, - service_principal_tenant_id: JSON, - service_principal_id: JSON, - service_principal_key: "_models.SecretBase", - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - service_principal_credential_type: Optional[JSON] = None, - service_principal_embedded_cert: Optional["_models.SecretBase"] = None, - service_principal_embedded_cert_password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword office365_tenant_id: Azure tenant ID to which the Office 365 account belongs. Type: - string (or Expression with resultType string). Required. - :paramtype office365_tenant_id: JSON - :keyword service_principal_tenant_id: Specify the tenant information under which your Azure AD - web application resides. Type: string (or Expression with resultType string). Required. - :paramtype service_principal_tenant_id: JSON - :keyword service_principal_id: Specify the application's client ID. Type: string (or Expression - with resultType string). Required. - :paramtype service_principal_id: JSON - :keyword service_principal_key: Specify the application's key. Required. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_credential_type: The service principal credential type for - authentication.'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. If - not specified, 'ServicePrincipalKey' is in use. Type: string (or Expression with resultType - string). - :paramtype service_principal_credential_type: JSON - :keyword service_principal_embedded_cert: Specify the base64 encoded certificate of your - application registered in Azure Active Directory. Type: string (or Expression with resultType - string). - :paramtype service_principal_embedded_cert: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_embedded_cert_password: Specify the password of your certificate if - your certificate has a password and you are using AadServicePrincipal authentication. Type: - string (or Expression with resultType string). - :paramtype service_principal_embedded_cert_password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Office365" - self.office365_tenant_id = office365_tenant_id - self.service_principal_tenant_id = service_principal_tenant_id - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.service_principal_credential_type = service_principal_credential_type - self.service_principal_embedded_cert = service_principal_embedded_cert - self.service_principal_embedded_cert_password = service_principal_embedded_cert_password - self.encrypted_credential = encrypted_credential - - -class Office365Source(CopySource): - """A copy activity source for an Office 365 service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar allowed_groups: The groups containing all the users. Type: array of strings (or - Expression with resultType array of strings). - :vartype allowed_groups: JSON - :ivar user_scope_filter_uri: The user scope uri. Type: string (or Expression with resultType - string). - :vartype user_scope_filter_uri: JSON - :ivar date_filter_column: The Column to apply the :code:`` and - :code:``. Type: string (or Expression with resultType string). - :vartype date_filter_column: JSON - :ivar start_time: Start time of the requested range for this dataset. Type: string (or - Expression with resultType string). - :vartype start_time: JSON - :ivar end_time: End time of the requested range for this dataset. Type: string (or Expression - with resultType string). - :vartype end_time: JSON - :ivar output_columns: The columns to be read out from the Office 365 table. Type: array of - objects (or Expression with resultType array of objects). itemType: OutputColumn. Example: [ { - "name": "Id" }, { "name": "CreatedDateTime" } ]. - :vartype output_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "allowed_groups": {"key": "allowedGroups", "type": "object"}, - "user_scope_filter_uri": {"key": "userScopeFilterUri", "type": "object"}, - "date_filter_column": {"key": "dateFilterColumn", "type": "object"}, - "start_time": {"key": "startTime", "type": "object"}, - "end_time": {"key": "endTime", "type": "object"}, - "output_columns": {"key": "outputColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - allowed_groups: Optional[JSON] = None, - user_scope_filter_uri: Optional[JSON] = None, - date_filter_column: Optional[JSON] = None, - start_time: Optional[JSON] = None, - end_time: Optional[JSON] = None, - output_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword allowed_groups: The groups containing all the users. Type: array of strings (or - Expression with resultType array of strings). - :paramtype allowed_groups: JSON - :keyword user_scope_filter_uri: The user scope uri. Type: string (or Expression with resultType - string). - :paramtype user_scope_filter_uri: JSON - :keyword date_filter_column: The Column to apply the :code:`` and - :code:``. Type: string (or Expression with resultType string). - :paramtype date_filter_column: JSON - :keyword start_time: Start time of the requested range for this dataset. Type: string (or - Expression with resultType string). - :paramtype start_time: JSON - :keyword end_time: End time of the requested range for this dataset. Type: string (or - Expression with resultType string). - :paramtype end_time: JSON - :keyword output_columns: The columns to be read out from the Office 365 table. Type: array of - objects (or Expression with resultType array of objects). itemType: OutputColumn. Example: [ { - "name": "Id" }, { "name": "CreatedDateTime" } ]. - :paramtype output_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "Office365Source" - self.allowed_groups = allowed_groups - self.user_scope_filter_uri = user_scope_filter_uri - self.date_filter_column = date_filter_column - self.start_time = start_time - self.end_time = end_time - self.output_columns = output_columns - - -class Operation(_serialization.Model): - """Azure Data Factory API operation definition. - - :ivar name: Operation name: {provider}/{resource}/{operation}. - :vartype name: str - :ivar origin: The intended executor of the operation. - :vartype origin: str - :ivar display: Metadata associated with the operation. - :vartype display: ~azure.mgmt.datafactory.models.OperationDisplay - :ivar service_specification: Details about a service operation. - :vartype service_specification: ~azure.mgmt.datafactory.models.OperationServiceSpecification - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "service_specification": {"key": "properties.serviceSpecification", "type": "OperationServiceSpecification"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - origin: Optional[str] = None, - display: Optional["_models.OperationDisplay"] = None, - service_specification: Optional["_models.OperationServiceSpecification"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Operation name: {provider}/{resource}/{operation}. - :paramtype name: str - :keyword origin: The intended executor of the operation. - :paramtype origin: str - :keyword display: Metadata associated with the operation. - :paramtype display: ~azure.mgmt.datafactory.models.OperationDisplay - :keyword service_specification: Details about a service operation. - :paramtype service_specification: ~azure.mgmt.datafactory.models.OperationServiceSpecification - """ - super().__init__(**kwargs) - self.name = name - self.origin = origin - self.display = display - self.service_specification = service_specification - - -class OperationDisplay(_serialization.Model): - """Metadata associated with the operation. - - :ivar description: The description of the operation. - :vartype description: str - :ivar provider: The name of the provider. - :vartype provider: str - :ivar resource: The name of the resource type on which the operation is performed. - :vartype resource: str - :ivar operation: The type of operation: get, read, delete, etc. - :vartype operation: str - """ - - _attribute_map = { - "description": {"key": "description", "type": "str"}, - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - } - - def __init__( - self, - *, - description: Optional[str] = None, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword description: The description of the operation. - :paramtype description: str - :keyword provider: The name of the provider. - :paramtype provider: str - :keyword resource: The name of the resource type on which the operation is performed. - :paramtype resource: str - :keyword operation: The type of operation: get, read, delete, etc. - :paramtype operation: str - """ - super().__init__(**kwargs) - self.description = description - self.provider = provider - self.resource = resource - self.operation = operation - - -class OperationListResponse(_serialization.Model): - """A list of operations that can be performed by the Data Factory service. - - :ivar value: List of Data Factory operations supported by the Data Factory resource provider. - :vartype value: list[~azure.mgmt.datafactory.models.Operation] - :ivar next_link: The link to the next page of results, if any remaining results exist. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Operation]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[list["_models.Operation"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: List of Data Factory operations supported by the Data Factory resource - provider. - :paramtype value: list[~azure.mgmt.datafactory.models.Operation] - :keyword next_link: The link to the next page of results, if any remaining results exist. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class OperationLogSpecification(_serialization.Model): - """Details about an operation related to logs. - - :ivar name: The name of the log category. - :vartype name: str - :ivar display_name: Localized display name. - :vartype display_name: str - :ivar blob_duration: Blobs created in the customer storage account, per hour. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the log category. - :paramtype name: str - :keyword display_name: Localized display name. - :paramtype display_name: str - :keyword blob_duration: Blobs created in the customer storage account, per hour. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class OperationMetricAvailability(_serialization.Model): - """Defines how often data for a metric becomes available. - - :ivar time_grain: The granularity for the metric. - :vartype time_grain: str - :ivar blob_duration: Blob created in the customer storage account, per hour. - :vartype blob_duration: str - """ - - _attribute_map = { - "time_grain": {"key": "timeGrain", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__(self, *, time_grain: Optional[str] = None, blob_duration: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword time_grain: The granularity for the metric. - :paramtype time_grain: str - :keyword blob_duration: Blob created in the customer storage account, per hour. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.time_grain = time_grain - self.blob_duration = blob_duration - - -class OperationMetricDimension(_serialization.Model): - """Defines the metric dimension. - - :ivar name: The name of the dimension for the metric. - :vartype name: str - :ivar display_name: The display name of the metric dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether the dimension should be exported to Azure Monitor. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the dimension for the metric. - :paramtype name: str - :keyword display_name: The display name of the metric dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether the dimension should be exported to Azure Monitor. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class OperationMetricSpecification(_serialization.Model): - """Details about an operation related to metrics. - - :ivar name: The name of the metric. - :vartype name: str - :ivar display_name: Localized display name of the metric. - :vartype display_name: str - :ivar display_description: The description of the metric. - :vartype display_description: str - :ivar unit: The unit that the metric is measured in. - :vartype unit: str - :ivar aggregation_type: The type of metric aggregation. - :vartype aggregation_type: str - :ivar enable_regional_mdm_account: Whether or not the service is using regional MDM accounts. - :vartype enable_regional_mdm_account: str - :ivar source_mdm_account: The name of the MDM account. - :vartype source_mdm_account: str - :ivar source_mdm_namespace: The name of the MDM namespace. - :vartype source_mdm_namespace: str - :ivar availabilities: Defines how often data for metrics becomes available. - :vartype availabilities: list[~azure.mgmt.datafactory.models.OperationMetricAvailability] - :ivar dimensions: Defines the metric dimension. - :vartype dimensions: list[~azure.mgmt.datafactory.models.OperationMetricDimension] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "enable_regional_mdm_account": {"key": "enableRegionalMdmAccount", "type": "str"}, - "source_mdm_account": {"key": "sourceMdmAccount", "type": "str"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - "availabilities": {"key": "availabilities", "type": "[OperationMetricAvailability]"}, - "dimensions": {"key": "dimensions", "type": "[OperationMetricDimension]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - aggregation_type: Optional[str] = None, - enable_regional_mdm_account: Optional[str] = None, - source_mdm_account: Optional[str] = None, - source_mdm_namespace: Optional[str] = None, - availabilities: Optional[list["_models.OperationMetricAvailability"]] = None, - dimensions: Optional[list["_models.OperationMetricDimension"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the metric. - :paramtype name: str - :keyword display_name: Localized display name of the metric. - :paramtype display_name: str - :keyword display_description: The description of the metric. - :paramtype display_description: str - :keyword unit: The unit that the metric is measured in. - :paramtype unit: str - :keyword aggregation_type: The type of metric aggregation. - :paramtype aggregation_type: str - :keyword enable_regional_mdm_account: Whether or not the service is using regional MDM - accounts. - :paramtype enable_regional_mdm_account: str - :keyword source_mdm_account: The name of the MDM account. - :paramtype source_mdm_account: str - :keyword source_mdm_namespace: The name of the MDM namespace. - :paramtype source_mdm_namespace: str - :keyword availabilities: Defines how often data for metrics becomes available. - :paramtype availabilities: list[~azure.mgmt.datafactory.models.OperationMetricAvailability] - :keyword dimensions: Defines the metric dimension. - :paramtype dimensions: list[~azure.mgmt.datafactory.models.OperationMetricDimension] - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.aggregation_type = aggregation_type - self.enable_regional_mdm_account = enable_regional_mdm_account - self.source_mdm_account = source_mdm_account - self.source_mdm_namespace = source_mdm_namespace - self.availabilities = availabilities - self.dimensions = dimensions - - -class OperationServiceSpecification(_serialization.Model): - """Details about a service operation. - - :ivar log_specifications: Details about operations related to logs. - :vartype log_specifications: list[~azure.mgmt.datafactory.models.OperationLogSpecification] - :ivar metric_specifications: Details about operations related to metrics. - :vartype metric_specifications: - list[~azure.mgmt.datafactory.models.OperationMetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[OperationLogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[OperationMetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[list["_models.OperationLogSpecification"]] = None, - metric_specifications: Optional[list["_models.OperationMetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Details about operations related to logs. - :paramtype log_specifications: list[~azure.mgmt.datafactory.models.OperationLogSpecification] - :keyword metric_specifications: Details about operations related to metrics. - :paramtype metric_specifications: - list[~azure.mgmt.datafactory.models.OperationMetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class OracleCloudStorageLinkedService(LinkedService): - """Linked service for Oracle Cloud Storage. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar access_key_id: The access key identifier of the Oracle Cloud Storage Identity and Access - Management (IAM) user. Type: string (or Expression with resultType string). - :vartype access_key_id: JSON - :ivar secret_access_key: The secret access key of the Oracle Cloud Storage Identity and Access - Management (IAM) user. - :vartype secret_access_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_url: This value specifies the endpoint to access with the Oracle Cloud Storage - Connector. This is an optional property; change it only if you want to try a different service - endpoint or want to switch between https and http. Type: string (or Expression with resultType - string). - :vartype service_url: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "access_key_id": {"key": "typeProperties.accessKeyId", "type": "object"}, - "secret_access_key": {"key": "typeProperties.secretAccessKey", "type": "SecretBase"}, - "service_url": {"key": "typeProperties.serviceUrl", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - access_key_id: Optional[JSON] = None, - secret_access_key: Optional["_models.SecretBase"] = None, - service_url: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword access_key_id: The access key identifier of the Oracle Cloud Storage Identity and - Access Management (IAM) user. Type: string (or Expression with resultType string). - :paramtype access_key_id: JSON - :keyword secret_access_key: The secret access key of the Oracle Cloud Storage Identity and - Access Management (IAM) user. - :paramtype secret_access_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_url: This value specifies the endpoint to access with the Oracle Cloud Storage - Connector. This is an optional property; change it only if you want to try a different service - endpoint or want to switch between https and http. Type: string (or Expression with resultType - string). - :paramtype service_url: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "OracleCloudStorage" - self.access_key_id = access_key_id - self.secret_access_key = secret_access_key - self.service_url = service_url - self.encrypted_credential = encrypted_credential - - -class OracleCloudStorageLocation(DatasetLocation): - """The location of Oracle Cloud Storage dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage location. Required. - :vartype type: str - :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :vartype folder_path: JSON - :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType - string). - :vartype file_name: JSON - :ivar bucket_name: Specify the bucketName of Oracle Cloud Storage. Type: string (or Expression - with resultType string). - :vartype bucket_name: JSON - :ivar version: Specify the version of Oracle Cloud Storage. Type: string (or Expression with - resultType string). - :vartype version: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "folder_path": {"key": "folderPath", "type": "object"}, - "file_name": {"key": "fileName", "type": "object"}, - "bucket_name": {"key": "bucketName", "type": "object"}, - "version": {"key": "version", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - folder_path: Optional[JSON] = None, - file_name: Optional[JSON] = None, - bucket_name: Optional[JSON] = None, - version: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :paramtype folder_path: JSON - :keyword file_name: Specify the file name of dataset. Type: string (or Expression with - resultType string). - :paramtype file_name: JSON - :keyword bucket_name: Specify the bucketName of Oracle Cloud Storage. Type: string (or - Expression with resultType string). - :paramtype bucket_name: JSON - :keyword version: Specify the version of Oracle Cloud Storage. Type: string (or Expression with - resultType string). - :paramtype version: JSON - """ - super().__init__( - additional_properties=additional_properties, folder_path=folder_path, file_name=file_name, **kwargs - ) - self.type: str = "OracleCloudStorageLocation" - self.bucket_name = bucket_name - self.version = version - - -class OracleCloudStorageReadSettings(StoreReadSettings): - """Oracle Cloud Storage read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - :ivar wildcard_folder_path: Oracle Cloud Storage wildcardFolderPath. Type: string (or - Expression with resultType string). - :vartype wildcard_folder_path: JSON - :ivar wildcard_file_name: Oracle Cloud Storage wildcardFileName. Type: string (or Expression - with resultType string). - :vartype wildcard_file_name: JSON - :ivar prefix: The prefix filter for the Oracle Cloud Storage object name. Type: string (or - Expression with resultType string). - :vartype prefix: JSON - :ivar file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :vartype enable_partition_discovery: JSON - :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: - string (or Expression with resultType string). - :vartype partition_root_path: JSON - :ivar delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :vartype delete_files_after_completion: JSON - :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :vartype modified_datetime_start: JSON - :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression - with resultType string). - :vartype modified_datetime_end: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "recursive": {"key": "recursive", "type": "object"}, - "wildcard_folder_path": {"key": "wildcardFolderPath", "type": "object"}, - "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, - "prefix": {"key": "prefix", "type": "object"}, - "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, - "partition_root_path": {"key": "partitionRootPath", "type": "object"}, - "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, - "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, - "modified_datetime_end": {"key": "modifiedDatetimeEnd", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - recursive: Optional[JSON] = None, - wildcard_folder_path: Optional[JSON] = None, - wildcard_file_name: Optional[JSON] = None, - prefix: Optional[JSON] = None, - file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[JSON] = None, - partition_root_path: Optional[JSON] = None, - delete_files_after_completion: Optional[JSON] = None, - modified_datetime_start: Optional[JSON] = None, - modified_datetime_end: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - :keyword wildcard_folder_path: Oracle Cloud Storage wildcardFolderPath. Type: string (or - Expression with resultType string). - :paramtype wildcard_folder_path: JSON - :keyword wildcard_file_name: Oracle Cloud Storage wildcardFileName. Type: string (or Expression - with resultType string). - :paramtype wildcard_file_name: JSON - :keyword prefix: The prefix filter for the Oracle Cloud Storage object name. Type: string (or - Expression with resultType string). - :paramtype prefix: JSON - :keyword file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :paramtype enable_partition_discovery: JSON - :keyword partition_root_path: Specify the root path where partition discovery starts from. - Type: string (or Expression with resultType string). - :paramtype partition_root_path: JSON - :keyword delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :paramtype delete_files_after_completion: JSON - :keyword modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_start: JSON - :keyword modified_datetime_end: The end of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_end: JSON - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "OracleCloudStorageReadSettings" - self.recursive = recursive - self.wildcard_folder_path = wildcard_folder_path - self.wildcard_file_name = wildcard_file_name - self.prefix = prefix - self.file_list_path = file_list_path - self.enable_partition_discovery = enable_partition_discovery - self.partition_root_path = partition_root_path - self.delete_files_after_completion = delete_files_after_completion - self.modified_datetime_start = modified_datetime_start - self.modified_datetime_end = modified_datetime_end - - -class OracleLinkedService(LinkedService): - """Oracle database. This linked service has supported version property. The Version 1.0 is - scheduled for deprecation while your pipeline will continue to run after EOL but without any - bug fix or new features. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. Only used for Version 1.0. - :vartype connection_string: JSON - :ivar server: The location of Oracle database you want to connect to, the supported forms - include connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only - self-hosted IR). Type: string. Only used for Version 2.0. - :vartype server: JSON - :ivar authentication_type: Authentication type for connecting to the Oracle database. Only used - for Version 2.0. "Basic" - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.OracleAuthenticationType - :ivar username: The Oracle database username. Type: string. Only used for Version 2.0. - :vartype username: JSON - :ivar password: The Azure key vault secret reference of password in connection string. - :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar encryption_client: Specifies the encryption client behavior. Supported values are - accepted, rejected, requested or required, default value is required. Type: string. Only used - for Version 2.0. - :vartype encryption_client: JSON - :ivar encryption_types_client: Specifies the encryption algorithms that client can use. - Supported values are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: - string. Only used for Version 2.0. - :vartype encryption_types_client: JSON - :ivar crypto_checksum_client: Specifies the desired data integrity behavior when this client - connects to a server. Supported values are accepted, rejected, requested or required, default - value is required. Type: string. Only used for Version 2.0. - :vartype crypto_checksum_client: JSON - :ivar crypto_checksum_types_client: Specifies the crypto-checksum algorithms that client can - use. Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: - string. Only used for Version 2.0. - :vartype crypto_checksum_types_client: JSON - :ivar initial_lob_fetch_size: Specifies the amount that the source initially fetches for LOB - columns, default value is 0. Type: integer. Only used for Version 2.0. - :vartype initial_lob_fetch_size: JSON - :ivar fetch_size: Specifies the number of bytes that the driver allocates to fetch the data in - one database round-trip, default value is 10485760. Type: integer. Only used for Version 2.0. - :vartype fetch_size: JSON - :ivar statement_cache_size: Specifies the number of cursors or statements to be cached for each - database connection, default value is 0. Type: integer. Only used for Version 2.0. - :vartype statement_cache_size: JSON - :ivar initialization_string: Specifies a command that is issued immediately after connecting to - the database to manage session settings. Type: string. Only used for Version 2.0. - :vartype initialization_string: JSON - :ivar enable_bulk_load: Specifies whether to use bulk copy or batch insert when loading data - into the database, default value is true. Type: boolean. Only used for Version 2.0. - :vartype enable_bulk_load: JSON - :ivar support_v1_data_types: Specifies whether to use the Version 1.0 data type mappings. Do - not set this to true unless you want to keep backward compatibility with Version 1.0's data - type mappings, default value is false. Type: boolean. Only used for Version 2.0. - :vartype support_v1_data_types: JSON - :ivar fetch_tswtz_as_timestamp: Specifies whether the driver returns column value with the - TIMESTAMP WITH TIME ZONE data type as DateTime or string. This setting is ignored if - supportV1DataTypes is not true, default value is true. Type: boolean. Only used for Version - 2.0. - :vartype fetch_tswtz_as_timestamp: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "AzureKeyVaultSecretReference"}, - "encryption_client": {"key": "typeProperties.encryptionClient", "type": "object"}, - "encryption_types_client": {"key": "typeProperties.encryptionTypesClient", "type": "object"}, - "crypto_checksum_client": {"key": "typeProperties.cryptoChecksumClient", "type": "object"}, - "crypto_checksum_types_client": {"key": "typeProperties.cryptoChecksumTypesClient", "type": "object"}, - "initial_lob_fetch_size": {"key": "typeProperties.initialLobFetchSize", "type": "object"}, - "fetch_size": {"key": "typeProperties.fetchSize", "type": "object"}, - "statement_cache_size": {"key": "typeProperties.statementCacheSize", "type": "object"}, - "initialization_string": {"key": "typeProperties.initializationString", "type": "object"}, - "enable_bulk_load": {"key": "typeProperties.enableBulkLoad", "type": "object"}, - "support_v1_data_types": {"key": "typeProperties.supportV1DataTypes", "type": "object"}, - "fetch_tswtz_as_timestamp": {"key": "typeProperties.fetchTswtzAsTimestamp", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_string: Optional[JSON] = None, - server: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.OracleAuthenticationType"]] = None, - username: Optional[JSON] = None, - password: Optional["_models.AzureKeyVaultSecretReference"] = None, - encryption_client: Optional[JSON] = None, - encryption_types_client: Optional[JSON] = None, - crypto_checksum_client: Optional[JSON] = None, - crypto_checksum_types_client: Optional[JSON] = None, - initial_lob_fetch_size: Optional[JSON] = None, - fetch_size: Optional[JSON] = None, - statement_cache_size: Optional[JSON] = None, - initialization_string: Optional[JSON] = None, - enable_bulk_load: Optional[JSON] = None, - support_v1_data_types: Optional[JSON] = None, - fetch_tswtz_as_timestamp: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. Only used for Version 1.0. - :paramtype connection_string: JSON - :keyword server: The location of Oracle database you want to connect to, the supported forms - include connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only - self-hosted IR). Type: string. Only used for Version 2.0. - :paramtype server: JSON - :keyword authentication_type: Authentication type for connecting to the Oracle database. Only - used for Version 2.0. "Basic" - :paramtype authentication_type: str or ~azure.mgmt.datafactory.models.OracleAuthenticationType - :keyword username: The Oracle database username. Type: string. Only used for Version 2.0. - :paramtype username: JSON - :keyword password: The Azure key vault secret reference of password in connection string. - :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword encryption_client: Specifies the encryption client behavior. Supported values are - accepted, rejected, requested or required, default value is required. Type: string. Only used - for Version 2.0. - :paramtype encryption_client: JSON - :keyword encryption_types_client: Specifies the encryption algorithms that client can use. - Supported values are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: - string. Only used for Version 2.0. - :paramtype encryption_types_client: JSON - :keyword crypto_checksum_client: Specifies the desired data integrity behavior when this client - connects to a server. Supported values are accepted, rejected, requested or required, default - value is required. Type: string. Only used for Version 2.0. - :paramtype crypto_checksum_client: JSON - :keyword crypto_checksum_types_client: Specifies the crypto-checksum algorithms that client can - use. Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: - string. Only used for Version 2.0. - :paramtype crypto_checksum_types_client: JSON - :keyword initial_lob_fetch_size: Specifies the amount that the source initially fetches for LOB - columns, default value is 0. Type: integer. Only used for Version 2.0. - :paramtype initial_lob_fetch_size: JSON - :keyword fetch_size: Specifies the number of bytes that the driver allocates to fetch the data - in one database round-trip, default value is 10485760. Type: integer. Only used for Version - 2.0. - :paramtype fetch_size: JSON - :keyword statement_cache_size: Specifies the number of cursors or statements to be cached for - each database connection, default value is 0. Type: integer. Only used for Version 2.0. - :paramtype statement_cache_size: JSON - :keyword initialization_string: Specifies a command that is issued immediately after connecting - to the database to manage session settings. Type: string. Only used for Version 2.0. - :paramtype initialization_string: JSON - :keyword enable_bulk_load: Specifies whether to use bulk copy or batch insert when loading data - into the database, default value is true. Type: boolean. Only used for Version 2.0. - :paramtype enable_bulk_load: JSON - :keyword support_v1_data_types: Specifies whether to use the Version 1.0 data type mappings. Do - not set this to true unless you want to keep backward compatibility with Version 1.0's data - type mappings, default value is false. Type: boolean. Only used for Version 2.0. - :paramtype support_v1_data_types: JSON - :keyword fetch_tswtz_as_timestamp: Specifies whether the driver returns column value with the - TIMESTAMP WITH TIME ZONE data type as DateTime or string. This setting is ignored if - supportV1DataTypes is not true, default value is true. Type: boolean. Only used for Version - 2.0. - :paramtype fetch_tswtz_as_timestamp: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Oracle" - self.connection_string = connection_string - self.server = server - self.authentication_type = authentication_type - self.username = username - self.password = password - self.encryption_client = encryption_client - self.encryption_types_client = encryption_types_client - self.crypto_checksum_client = crypto_checksum_client - self.crypto_checksum_types_client = crypto_checksum_types_client - self.initial_lob_fetch_size = initial_lob_fetch_size - self.fetch_size = fetch_size - self.statement_cache_size = statement_cache_size - self.initialization_string = initialization_string - self.enable_bulk_load = enable_bulk_load - self.support_v1_data_types = support_v1_data_types - self.fetch_tswtz_as_timestamp = fetch_tswtz_as_timestamp - self.encrypted_credential = encrypted_credential - - -class OraclePartitionSettings(_serialization.Model): - """The settings that will be leveraged for Oracle source partitioning. - - :ivar partition_names: Names of the physical partitions of Oracle table. - :vartype partition_names: JSON - :ivar partition_column_name: The name of the column in integer type that will be used for - proceeding range partitioning. Type: string (or Expression with resultType string). - :vartype partition_column_name: JSON - :ivar partition_upper_bound: The maximum value of column specified in partitionColumnName that - will be used for proceeding range partitioning. Type: string (or Expression with resultType - string). - :vartype partition_upper_bound: JSON - :ivar partition_lower_bound: The minimum value of column specified in partitionColumnName that - will be used for proceeding range partitioning. Type: string (or Expression with resultType - string). - :vartype partition_lower_bound: JSON - """ - - _attribute_map = { - "partition_names": {"key": "partitionNames", "type": "object"}, - "partition_column_name": {"key": "partitionColumnName", "type": "object"}, - "partition_upper_bound": {"key": "partitionUpperBound", "type": "object"}, - "partition_lower_bound": {"key": "partitionLowerBound", "type": "object"}, - } - - def __init__( - self, - *, - partition_names: Optional[JSON] = None, - partition_column_name: Optional[JSON] = None, - partition_upper_bound: Optional[JSON] = None, - partition_lower_bound: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword partition_names: Names of the physical partitions of Oracle table. - :paramtype partition_names: JSON - :keyword partition_column_name: The name of the column in integer type that will be used for - proceeding range partitioning. Type: string (or Expression with resultType string). - :paramtype partition_column_name: JSON - :keyword partition_upper_bound: The maximum value of column specified in partitionColumnName - that will be used for proceeding range partitioning. Type: string (or Expression with - resultType string). - :paramtype partition_upper_bound: JSON - :keyword partition_lower_bound: The minimum value of column specified in partitionColumnName - that will be used for proceeding range partitioning. Type: string (or Expression with - resultType string). - :paramtype partition_lower_bound: JSON - """ - super().__init__(**kwargs) - self.partition_names = partition_names - self.partition_column_name = partition_column_name - self.partition_upper_bound = partition_upper_bound - self.partition_lower_bound = partition_lower_bound - - -class OracleServiceCloudLinkedService(LinkedService): - """Oracle Service Cloud linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar host: The URL of the Oracle Service Cloud instance. Required. - :vartype host: JSON - :ivar username: The user name that you use to access Oracle Service Cloud server. Required. - :vartype username: JSON - :ivar password: The password corresponding to the user name that you provided in the username - key. Required. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using - HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). - :vartype use_encrypted_endpoints: JSON - :ivar use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. Type: boolean (or Expression with resultType boolean). - :vartype use_host_verification: JSON - :ivar use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. Type: boolean (or Expression with resultType - boolean). - :vartype use_peer_verification: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "host": {"required": True}, - "username": {"required": True}, - "password": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, - "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, - "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - host: JSON, - username: JSON, - password: "_models.SecretBase", - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - use_encrypted_endpoints: Optional[JSON] = None, - use_host_verification: Optional[JSON] = None, - use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword host: The URL of the Oracle Service Cloud instance. Required. - :paramtype host: JSON - :keyword username: The user name that you use to access Oracle Service Cloud server. Required. - :paramtype username: JSON - :keyword password: The password corresponding to the user name that you provided in the - username key. Required. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted - using HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). - :paramtype use_encrypted_endpoints: JSON - :keyword use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. Type: boolean (or Expression with resultType boolean). - :paramtype use_host_verification: JSON - :keyword use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. Type: boolean (or Expression with resultType - boolean). - :paramtype use_peer_verification: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "OracleServiceCloud" - self.host = host - self.username = username - self.password = password - self.use_encrypted_endpoints = use_encrypted_endpoints - self.use_host_verification = use_host_verification - self.use_peer_verification = use_peer_verification - self.encrypted_credential = encrypted_credential - - -class OracleServiceCloudObjectDataset(Dataset): - """Oracle Service Cloud dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "OracleServiceCloudObject" - self.table_name = table_name - - -class OracleServiceCloudSource(TabularSource): - """A copy activity Oracle Service Cloud source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "OracleServiceCloudSource" - self.query = query - - -class OracleSink(CopySink): - """A copy activity Oracle sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :vartype pre_copy_script: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "pre_copy_script": {"key": "preCopyScript", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - pre_copy_script: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :paramtype pre_copy_script: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "OracleSink" - self.pre_copy_script = pre_copy_script - - -class OracleSource(CopySource): - """A copy activity Oracle source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar oracle_reader_query: Oracle reader query. Type: string (or Expression with resultType - string). - :vartype oracle_reader_query: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar partition_option: The partition mechanism that will be used for Oracle read in parallel. - Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - :vartype partition_option: JSON - :ivar partition_settings: The settings that will be leveraged for Oracle source partitioning. - :vartype partition_settings: ~azure.mgmt.datafactory.models.OraclePartitionSettings - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar number_precision: The decimal precision used to represent Oracle NUMBER type without - precision and scale. The range is 1 to 256 and default value is 256 if not specified. Type: - integer (or Expression with resultType integer). Only used for Version 2.0. - :vartype number_precision: JSON - :ivar number_scale: The decimal scale used to represent Oracle NUMBER type without precision - and scale. The range is 0 to 130 and default value is 130 if not specified. Type: integer (or - Expression with resultType integer). Only used for Version 2.0. - :vartype number_scale: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "oracle_reader_query": {"key": "oracleReaderQuery", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "partition_option": {"key": "partitionOption", "type": "object"}, - "partition_settings": {"key": "partitionSettings", "type": "OraclePartitionSettings"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "number_precision": {"key": "numberPrecision", "type": "object"}, - "number_scale": {"key": "numberScale", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - oracle_reader_query: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - partition_option: Optional[JSON] = None, - partition_settings: Optional["_models.OraclePartitionSettings"] = None, - additional_columns: Optional[JSON] = None, - number_precision: Optional[JSON] = None, - number_scale: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword oracle_reader_query: Oracle reader query. Type: string (or Expression with resultType - string). - :paramtype oracle_reader_query: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword partition_option: The partition mechanism that will be used for Oracle read in - parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - :paramtype partition_option: JSON - :keyword partition_settings: The settings that will be leveraged for Oracle source - partitioning. - :paramtype partition_settings: ~azure.mgmt.datafactory.models.OraclePartitionSettings - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword number_precision: The decimal precision used to represent Oracle NUMBER type without - precision and scale. The range is 1 to 256 and default value is 256 if not specified. Type: - integer (or Expression with resultType integer). Only used for Version 2.0. - :paramtype number_precision: JSON - :keyword number_scale: The decimal scale used to represent Oracle NUMBER type without precision - and scale. The range is 0 to 130 and default value is 130 if not specified. Type: integer (or - Expression with resultType integer). Only used for Version 2.0. - :paramtype number_scale: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "OracleSource" - self.oracle_reader_query = oracle_reader_query - self.query_timeout = query_timeout - self.partition_option = partition_option - self.partition_settings = partition_settings - self.additional_columns = additional_columns - self.number_precision = number_precision - self.number_scale = number_scale - - -class OracleTableDataset(Dataset): - """The on-premises Oracle database dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property will be retired. Please consider using schema + table - properties instead. - :vartype table_name: JSON - :ivar schema_type_properties_schema: The schema name of the on-premises Oracle database. Type: - string (or Expression with resultType string). - :vartype schema_type_properties_schema: JSON - :ivar table: The table name of the on-premises Oracle database. Type: string (or Expression - with resultType string). - :vartype table: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - table: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property will be retired. Please consider using schema + table - properties instead. - :paramtype table_name: JSON - :keyword schema_type_properties_schema: The schema name of the on-premises Oracle database. - Type: string (or Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - :keyword table: The table name of the on-premises Oracle database. Type: string (or Expression - with resultType string). - :paramtype table: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "OracleTable" - self.table_name = table_name - self.schema_type_properties_schema = schema_type_properties_schema - self.table = table - - -class OrcDataset(Dataset): - """ORC dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar location: The location of the ORC data storage. - :vartype location: ~azure.mgmt.datafactory.models.DatasetLocation - :ivar orc_compression_codec: The data orcCompressionCodec. Type: string (or Expression with - resultType string). - :vartype orc_compression_codec: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "location": {"key": "typeProperties.location", "type": "DatasetLocation"}, - "orc_compression_codec": {"key": "typeProperties.orcCompressionCodec", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - location: Optional["_models.DatasetLocation"] = None, - orc_compression_codec: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword location: The location of the ORC data storage. - :paramtype location: ~azure.mgmt.datafactory.models.DatasetLocation - :keyword orc_compression_codec: The data orcCompressionCodec. Type: string (or Expression with - resultType string). - :paramtype orc_compression_codec: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "Orc" - self.location = location - self.orc_compression_codec = orc_compression_codec - - -class OrcFormat(DatasetStorageFormat): - """The data stored in Optimized Row Columnar (ORC) format. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage format. Required. - :vartype type: str - :ivar serializer: Serializer. Type: string (or Expression with resultType string). - :vartype serializer: JSON - :ivar deserializer: Deserializer. Type: string (or Expression with resultType string). - :vartype deserializer: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "serializer": {"key": "serializer", "type": "object"}, - "deserializer": {"key": "deserializer", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - serializer: Optional[JSON] = None, - deserializer: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword serializer: Serializer. Type: string (or Expression with resultType string). - :paramtype serializer: JSON - :keyword deserializer: Deserializer. Type: string (or Expression with resultType string). - :paramtype deserializer: JSON - """ - super().__init__( - additional_properties=additional_properties, serializer=serializer, deserializer=deserializer, **kwargs - ) - self.type: str = "OrcFormat" - - -class OrcSink(CopySink): - """A copy activity ORC sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar store_settings: ORC store settings. - :vartype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings - :ivar format_settings: ORC format settings. - :vartype format_settings: ~azure.mgmt.datafactory.models.OrcWriteSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "store_settings": {"key": "storeSettings", "type": "StoreWriteSettings"}, - "format_settings": {"key": "formatSettings", "type": "OrcWriteSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - store_settings: Optional["_models.StoreWriteSettings"] = None, - format_settings: Optional["_models.OrcWriteSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword store_settings: ORC store settings. - :paramtype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings - :keyword format_settings: ORC format settings. - :paramtype format_settings: ~azure.mgmt.datafactory.models.OrcWriteSettings - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "OrcSink" - self.store_settings = store_settings - self.format_settings = format_settings - - -class OrcSource(CopySource): - """A copy activity ORC source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar store_settings: ORC store settings. - :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "store_settings": {"key": "storeSettings", "type": "StoreReadSettings"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - store_settings: Optional["_models.StoreReadSettings"] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword store_settings: ORC store settings. - :paramtype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "OrcSource" - self.store_settings = store_settings - self.additional_columns = additional_columns - - -class OrcWriteSettings(FormatWriteSettings): - """Orc write settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The write setting type. Required. - :vartype type: str - :ivar max_rows_per_file: Limit the written file's row count to be smaller than or equal to the - specified count. Type: integer (or Expression with resultType integer). - :vartype max_rows_per_file: JSON - :ivar file_name_prefix: Specifies the file name pattern :code:``_\\ - :code:``.\\ :code:`` when copy from non-file based store without - partitionOptions. Type: string (or Expression with resultType string). - :vartype file_name_prefix: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_rows_per_file": {"key": "maxRowsPerFile", "type": "object"}, - "file_name_prefix": {"key": "fileNamePrefix", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_rows_per_file: Optional[JSON] = None, - file_name_prefix: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_rows_per_file: Limit the written file's row count to be smaller than or equal to - the specified count. Type: integer (or Expression with resultType integer). - :paramtype max_rows_per_file: JSON - :keyword file_name_prefix: Specifies the file name pattern :code:``_\\ - :code:``.\\ :code:`` when copy from non-file based store without - partitionOptions. Type: string (or Expression with resultType string). - :paramtype file_name_prefix: JSON - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "OrcWriteSettings" - self.max_rows_per_file = max_rows_per_file - self.file_name_prefix = file_name_prefix - - -class OutputColumn(_serialization.Model): - """The columns to be read out from the Office 365 table. - - :ivar name: Name of the table column. Type: string. - :vartype name: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Name of the table column. Type: string. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class PackageStore(_serialization.Model): - """Package store for the SSIS integration runtime. - - All required parameters must be populated in order to send to server. - - :ivar name: The name of the package store. Required. - :vartype name: str - :ivar package_store_linked_service: The package store linked service reference. Required. - :vartype package_store_linked_service: ~azure.mgmt.datafactory.models.EntityReference - """ - - _validation = { - "name": {"required": True}, - "package_store_linked_service": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "package_store_linked_service": {"key": "packageStoreLinkedService", "type": "EntityReference"}, - } - - def __init__(self, *, name: str, package_store_linked_service: "_models.EntityReference", **kwargs: Any) -> None: - """ - :keyword name: The name of the package store. Required. - :paramtype name: str - :keyword package_store_linked_service: The package store linked service reference. Required. - :paramtype package_store_linked_service: ~azure.mgmt.datafactory.models.EntityReference - """ - super().__init__(**kwargs) - self.name = name - self.package_store_linked_service = package_store_linked_service - - -class ParameterSpecification(_serialization.Model): - """Definition of a single parameter for an entity. - - All required parameters must be populated in order to send to server. - - :ivar type: Parameter type. Required. Known values are: "Object", "String", "Int", "Float", - "Bool", "Array", "SecureString", and "Int". - :vartype type: str or ~azure.mgmt.datafactory.models.ParameterType - :ivar default_value: Default value of parameter. - :vartype default_value: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "default_value": {"key": "defaultValue", "type": "object"}, - } - - def __init__( - self, *, type: Union[str, "_models.ParameterType"], default_value: Optional[JSON] = None, **kwargs: Any - ) -> None: - """ - :keyword type: Parameter type. Required. Known values are: "Object", "String", "Int", "Float", - "Bool", "Array", "SecureString", and "Int". - :paramtype type: str or ~azure.mgmt.datafactory.models.ParameterType - :keyword default_value: Default value of parameter. - :paramtype default_value: JSON - """ - super().__init__(**kwargs) - self.type = type - self.default_value = default_value - - -class ParquetDataset(Dataset): - """Parquet dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar location: The location of the parquet storage. - :vartype location: ~azure.mgmt.datafactory.models.DatasetLocation - :ivar compression_codec: The data compressionCodec. Type: string (or Expression with resultType - string). - :vartype compression_codec: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "location": {"key": "typeProperties.location", "type": "DatasetLocation"}, - "compression_codec": {"key": "typeProperties.compressionCodec", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - location: Optional["_models.DatasetLocation"] = None, - compression_codec: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword location: The location of the parquet storage. - :paramtype location: ~azure.mgmt.datafactory.models.DatasetLocation - :keyword compression_codec: The data compressionCodec. Type: string (or Expression with - resultType string). - :paramtype compression_codec: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "Parquet" - self.location = location - self.compression_codec = compression_codec - - -class ParquetFormat(DatasetStorageFormat): - """The data stored in Parquet format. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage format. Required. - :vartype type: str - :ivar serializer: Serializer. Type: string (or Expression with resultType string). - :vartype serializer: JSON - :ivar deserializer: Deserializer. Type: string (or Expression with resultType string). - :vartype deserializer: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "serializer": {"key": "serializer", "type": "object"}, - "deserializer": {"key": "deserializer", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - serializer: Optional[JSON] = None, - deserializer: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword serializer: Serializer. Type: string (or Expression with resultType string). - :paramtype serializer: JSON - :keyword deserializer: Deserializer. Type: string (or Expression with resultType string). - :paramtype deserializer: JSON - """ - super().__init__( - additional_properties=additional_properties, serializer=serializer, deserializer=deserializer, **kwargs - ) - self.type: str = "ParquetFormat" - - -class ParquetReadSettings(FormatReadSettings): - """Parquet read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar compression_properties: Compression settings. - :vartype compression_properties: ~azure.mgmt.datafactory.models.CompressionReadSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "compression_properties": {"key": "compressionProperties", "type": "CompressionReadSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - compression_properties: Optional["_models.CompressionReadSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword compression_properties: Compression settings. - :paramtype compression_properties: ~azure.mgmt.datafactory.models.CompressionReadSettings - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "ParquetReadSettings" - self.compression_properties = compression_properties - - -class ParquetSink(CopySink): - """A copy activity Parquet sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar store_settings: Parquet store settings. - :vartype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings - :ivar format_settings: Parquet format settings. - :vartype format_settings: ~azure.mgmt.datafactory.models.ParquetWriteSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "store_settings": {"key": "storeSettings", "type": "StoreWriteSettings"}, - "format_settings": {"key": "formatSettings", "type": "ParquetWriteSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - store_settings: Optional["_models.StoreWriteSettings"] = None, - format_settings: Optional["_models.ParquetWriteSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword store_settings: Parquet store settings. - :paramtype store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings - :keyword format_settings: Parquet format settings. - :paramtype format_settings: ~azure.mgmt.datafactory.models.ParquetWriteSettings - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "ParquetSink" - self.store_settings = store_settings - self.format_settings = format_settings - - -class ParquetSource(CopySource): - """A copy activity Parquet source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar store_settings: Parquet store settings. - :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - :ivar format_settings: Parquet format settings. - :vartype format_settings: ~azure.mgmt.datafactory.models.ParquetReadSettings - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "store_settings": {"key": "storeSettings", "type": "StoreReadSettings"}, - "format_settings": {"key": "formatSettings", "type": "ParquetReadSettings"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - store_settings: Optional["_models.StoreReadSettings"] = None, - format_settings: Optional["_models.ParquetReadSettings"] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword store_settings: Parquet store settings. - :paramtype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - :keyword format_settings: Parquet format settings. - :paramtype format_settings: ~azure.mgmt.datafactory.models.ParquetReadSettings - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "ParquetSource" - self.store_settings = store_settings - self.format_settings = format_settings - self.additional_columns = additional_columns - - -class ParquetWriteSettings(FormatWriteSettings): - """Parquet write settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The write setting type. Required. - :vartype type: str - :ivar max_rows_per_file: Limit the written file's row count to be smaller than or equal to the - specified count. Type: integer (or Expression with resultType integer). - :vartype max_rows_per_file: JSON - :ivar file_name_prefix: Specifies the file name pattern :code:``_\\ - :code:``.\\ :code:`` when copy from non-file based store without - partitionOptions. Type: string (or Expression with resultType string). - :vartype file_name_prefix: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_rows_per_file": {"key": "maxRowsPerFile", "type": "object"}, - "file_name_prefix": {"key": "fileNamePrefix", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_rows_per_file: Optional[JSON] = None, - file_name_prefix: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_rows_per_file: Limit the written file's row count to be smaller than or equal to - the specified count. Type: integer (or Expression with resultType integer). - :paramtype max_rows_per_file: JSON - :keyword file_name_prefix: Specifies the file name pattern :code:``_\\ - :code:``.\\ :code:`` when copy from non-file based store without - partitionOptions. Type: string (or Expression with resultType string). - :paramtype file_name_prefix: JSON - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "ParquetWriteSettings" - self.max_rows_per_file = max_rows_per_file - self.file_name_prefix = file_name_prefix - - -class PaypalLinkedService(LinkedService): - """Paypal Service linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar host: The URL of the PayPal instance. (i.e. api.sandbox.paypal.com). Required. - :vartype host: JSON - :ivar client_id: The client ID associated with your PayPal application. Required. - :vartype client_id: JSON - :ivar client_secret: The client secret associated with your PayPal application. - :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using - HTTPS. The default value is true. - :vartype use_encrypted_endpoints: JSON - :ivar use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :vartype use_host_verification: JSON - :ivar use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :vartype use_peer_verification: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "host": {"required": True}, - "client_id": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "client_secret": {"key": "typeProperties.clientSecret", "type": "SecretBase"}, - "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, - "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, - "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - host: JSON, - client_id: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - client_secret: Optional["_models.SecretBase"] = None, - use_encrypted_endpoints: Optional[JSON] = None, - use_host_verification: Optional[JSON] = None, - use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword host: The URL of the PayPal instance. (i.e. api.sandbox.paypal.com). Required. - :paramtype host: JSON - :keyword client_id: The client ID associated with your PayPal application. Required. - :paramtype client_id: JSON - :keyword client_secret: The client secret associated with your PayPal application. - :paramtype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :keyword use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted - using HTTPS. The default value is true. - :paramtype use_encrypted_endpoints: JSON - :keyword use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :paramtype use_host_verification: JSON - :keyword use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :paramtype use_peer_verification: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Paypal" - self.host = host - self.client_id = client_id - self.client_secret = client_secret - self.use_encrypted_endpoints = use_encrypted_endpoints - self.use_host_verification = use_host_verification - self.use_peer_verification = use_peer_verification - self.encrypted_credential = encrypted_credential - - -class PaypalObjectDataset(Dataset): - """Paypal Service dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "PaypalObject" - self.table_name = table_name - - -class PaypalSource(TabularSource): - """A copy activity Paypal Service source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "PaypalSource" - self.query = query - - -class PhoenixLinkedService(LinkedService): - """Phoenix server linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar host: The IP address or host name of the Phoenix server. (i.e. 192.168.222.160). - Required. - :vartype host: JSON - :ivar port: The TCP port that the Phoenix server uses to listen for client connections. The - default value is 8765. - :vartype port: JSON - :ivar http_path: The partial URL corresponding to the Phoenix server. (i.e. - /gateway/sandbox/phoenix/version). The default value is hbasephoenix if using - WindowsAzureHDInsightService. - :vartype http_path: JSON - :ivar authentication_type: The authentication mechanism used to connect to the Phoenix server. - Required. Known values are: "Anonymous", "UsernameAndPassword", and - "WindowsAzureHDInsightService". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.PhoenixAuthenticationType - :ivar username: The user name used to connect to the Phoenix server. - :vartype username: JSON - :ivar password: The password corresponding to the user name. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar enable_ssl: Specifies whether the connections to the server are encrypted using SSL. The - default value is false. - :vartype enable_ssl: JSON - :ivar trusted_cert_path: The full path of the .pem file containing trusted CA certificates for - verifying the server when connecting over SSL. This property can only be set when using SSL on - self-hosted IR. The default value is the cacerts.pem file installed with the IR. - :vartype trusted_cert_path: JSON - :ivar use_system_trust_store: Specifies whether to use a CA certificate from the system trust - store or from a specified PEM file. The default value is false. - :vartype use_system_trust_store: JSON - :ivar allow_host_name_cn_mismatch: Specifies whether to require a CA-issued SSL certificate - name to match the host name of the server when connecting over SSL. The default value is false. - :vartype allow_host_name_cn_mismatch: JSON - :ivar allow_self_signed_server_cert: Specifies whether to allow self-signed certificates from - the server. The default value is false. - :vartype allow_self_signed_server_cert: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "host": {"required": True}, - "authentication_type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "http_path": {"key": "typeProperties.httpPath", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "enable_ssl": {"key": "typeProperties.enableSsl", "type": "object"}, - "trusted_cert_path": {"key": "typeProperties.trustedCertPath", "type": "object"}, - "use_system_trust_store": {"key": "typeProperties.useSystemTrustStore", "type": "object"}, - "allow_host_name_cn_mismatch": {"key": "typeProperties.allowHostNameCNMismatch", "type": "object"}, - "allow_self_signed_server_cert": {"key": "typeProperties.allowSelfSignedServerCert", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - host: JSON, - authentication_type: Union[str, "_models.PhoenixAuthenticationType"], - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - port: Optional[JSON] = None, - http_path: Optional[JSON] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - enable_ssl: Optional[JSON] = None, - trusted_cert_path: Optional[JSON] = None, - use_system_trust_store: Optional[JSON] = None, - allow_host_name_cn_mismatch: Optional[JSON] = None, - allow_self_signed_server_cert: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword host: The IP address or host name of the Phoenix server. (i.e. 192.168.222.160). - Required. - :paramtype host: JSON - :keyword port: The TCP port that the Phoenix server uses to listen for client connections. The - default value is 8765. - :paramtype port: JSON - :keyword http_path: The partial URL corresponding to the Phoenix server. (i.e. - /gateway/sandbox/phoenix/version). The default value is hbasephoenix if using - WindowsAzureHDInsightService. - :paramtype http_path: JSON - :keyword authentication_type: The authentication mechanism used to connect to the Phoenix - server. Required. Known values are: "Anonymous", "UsernameAndPassword", and - "WindowsAzureHDInsightService". - :paramtype authentication_type: str or ~azure.mgmt.datafactory.models.PhoenixAuthenticationType - :keyword username: The user name used to connect to the Phoenix server. - :paramtype username: JSON - :keyword password: The password corresponding to the user name. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword enable_ssl: Specifies whether the connections to the server are encrypted using SSL. - The default value is false. - :paramtype enable_ssl: JSON - :keyword trusted_cert_path: The full path of the .pem file containing trusted CA certificates - for verifying the server when connecting over SSL. This property can only be set when using SSL - on self-hosted IR. The default value is the cacerts.pem file installed with the IR. - :paramtype trusted_cert_path: JSON - :keyword use_system_trust_store: Specifies whether to use a CA certificate from the system - trust store or from a specified PEM file. The default value is false. - :paramtype use_system_trust_store: JSON - :keyword allow_host_name_cn_mismatch: Specifies whether to require a CA-issued SSL certificate - name to match the host name of the server when connecting over SSL. The default value is false. - :paramtype allow_host_name_cn_mismatch: JSON - :keyword allow_self_signed_server_cert: Specifies whether to allow self-signed certificates - from the server. The default value is false. - :paramtype allow_self_signed_server_cert: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Phoenix" - self.host = host - self.port = port - self.http_path = http_path - self.authentication_type = authentication_type - self.username = username - self.password = password - self.enable_ssl = enable_ssl - self.trusted_cert_path = trusted_cert_path - self.use_system_trust_store = use_system_trust_store - self.allow_host_name_cn_mismatch = allow_host_name_cn_mismatch - self.allow_self_signed_server_cert = allow_self_signed_server_cert - self.encrypted_credential = encrypted_credential - - -class PhoenixObjectDataset(Dataset): - """Phoenix server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property will be retired. Please consider using schema + table - properties instead. - :vartype table_name: JSON - :ivar table: The table name of the Phoenix. Type: string (or Expression with resultType - string). - :vartype table: JSON - :ivar schema_type_properties_schema: The schema name of the Phoenix. Type: string (or - Expression with resultType string). - :vartype schema_type_properties_schema: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - table: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property will be retired. Please consider using schema + table - properties instead. - :paramtype table_name: JSON - :keyword table: The table name of the Phoenix. Type: string (or Expression with resultType - string). - :paramtype table: JSON - :keyword schema_type_properties_schema: The schema name of the Phoenix. Type: string (or - Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "PhoenixObject" - self.table_name = table_name - self.table = table - self.schema_type_properties_schema = schema_type_properties_schema - - -class PhoenixSource(TabularSource): - """A copy activity Phoenix server source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "PhoenixSource" - self.query = query - - -class PipelineElapsedTimeMetricPolicy(_serialization.Model): - """Pipeline ElapsedTime Metric Policy. - - :ivar duration: TimeSpan value, after which an Azure Monitoring Metric is fired. - :vartype duration: JSON - """ - - _attribute_map = { - "duration": {"key": "duration", "type": "object"}, - } - - def __init__(self, *, duration: Optional[JSON] = None, **kwargs: Any) -> None: - """ - :keyword duration: TimeSpan value, after which an Azure Monitoring Metric is fired. - :paramtype duration: JSON - """ - super().__init__(**kwargs) - self.duration = duration - - -class PipelineExternalComputeScaleProperties(_serialization.Model): - """PipelineExternalComputeScale properties for managed integration runtime. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar time_to_live: Time to live (in minutes) setting of integration runtime which will execute - pipeline and external activity. - :vartype time_to_live: int - :ivar number_of_pipeline_nodes: Number of the pipeline nodes, which should be greater than 0 - and less than 11. - :vartype number_of_pipeline_nodes: int - :ivar number_of_external_nodes: Number of the the external nodes, which should be greater than - 0 and less than 11. - :vartype number_of_external_nodes: int - """ - - _validation = { - "time_to_live": {"minimum": 5}, - "number_of_pipeline_nodes": {"maximum": 10, "minimum": 1}, - "number_of_external_nodes": {"maximum": 10, "minimum": 1}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "time_to_live": {"key": "timeToLive", "type": "int"}, - "number_of_pipeline_nodes": {"key": "numberOfPipelineNodes", "type": "int"}, - "number_of_external_nodes": {"key": "numberOfExternalNodes", "type": "int"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - time_to_live: Optional[int] = None, - number_of_pipeline_nodes: Optional[int] = None, - number_of_external_nodes: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword time_to_live: Time to live (in minutes) setting of integration runtime which will - execute pipeline and external activity. - :paramtype time_to_live: int - :keyword number_of_pipeline_nodes: Number of the pipeline nodes, which should be greater than 0 - and less than 11. - :paramtype number_of_pipeline_nodes: int - :keyword number_of_external_nodes: Number of the the external nodes, which should be greater - than 0 and less than 11. - :paramtype number_of_external_nodes: int - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.time_to_live = time_to_live - self.number_of_pipeline_nodes = number_of_pipeline_nodes - self.number_of_external_nodes = number_of_external_nodes - - -class PipelineFolder(_serialization.Model): - """The folder that this Pipeline is in. If not specified, Pipeline will appear at the root level. - - :ivar name: The name of the folder that this Pipeline is in. - :vartype name: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the folder that this Pipeline is in. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class PipelineListResponse(_serialization.Model): - """A list of pipeline resources. - - All required parameters must be populated in order to send to server. - - :ivar value: List of pipelines. Required. - :vartype value: list[~azure.mgmt.datafactory.models.PipelineResource] - :ivar next_link: The link to the next page of results, if any remaining results exist. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[PipelineResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: list["_models.PipelineResource"], next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: List of pipelines. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.PipelineResource] - :keyword next_link: The link to the next page of results, if any remaining results exist. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class PipelinePolicy(_serialization.Model): - """Pipeline Policy. - - :ivar elapsed_time_metric: Pipeline ElapsedTime Metric Policy. - :vartype elapsed_time_metric: ~azure.mgmt.datafactory.models.PipelineElapsedTimeMetricPolicy - """ - - _attribute_map = { - "elapsed_time_metric": {"key": "elapsedTimeMetric", "type": "PipelineElapsedTimeMetricPolicy"}, - } - - def __init__( - self, *, elapsed_time_metric: Optional["_models.PipelineElapsedTimeMetricPolicy"] = None, **kwargs: Any - ) -> None: - """ - :keyword elapsed_time_metric: Pipeline ElapsedTime Metric Policy. - :paramtype elapsed_time_metric: ~azure.mgmt.datafactory.models.PipelineElapsedTimeMetricPolicy - """ - super().__init__(**kwargs) - self.elapsed_time_metric = elapsed_time_metric - - -class PipelineReference(_serialization.Model): - """Pipeline reference type. - - All required parameters must be populated in order to send to server. - - :ivar type: Pipeline reference type. Required. "PipelineReference" - :vartype type: str or ~azure.mgmt.datafactory.models.PipelineReferenceType - :ivar reference_name: Reference pipeline name. Required. - :vartype reference_name: str - :ivar name: Reference name. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "reference_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "reference_name": {"key": "referenceName", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__( - self, - *, - type: Union[str, "_models.PipelineReferenceType"], - reference_name: str, - name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Pipeline reference type. Required. "PipelineReference" - :paramtype type: str or ~azure.mgmt.datafactory.models.PipelineReferenceType - :keyword reference_name: Reference pipeline name. Required. - :paramtype reference_name: str - :keyword name: Reference name. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.reference_name = reference_name - self.name = name - - -class PipelineResource(SubResource): - """Pipeline resource type. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar etag: Etag identifies change in the resource. - :vartype etag: str - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar description: The description of the pipeline. - :vartype description: str - :ivar activities: List of activities in pipeline. - :vartype activities: list[~azure.mgmt.datafactory.models.Activity] - :ivar parameters: List of parameters for pipeline. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar variables: List of variables for pipeline. - :vartype variables: dict[str, ~azure.mgmt.datafactory.models.VariableSpecification] - :ivar concurrency: The max number of concurrent runs for the pipeline. - :vartype concurrency: int - :ivar annotations: List of tags that can be used for describing the Pipeline. - :vartype annotations: list[JSON] - :ivar run_dimensions: Dimensions emitted by Pipeline. - :vartype run_dimensions: dict[str, JSON] - :ivar folder: The folder that this Pipeline is in. If not specified, Pipeline will appear at - the root level. - :vartype folder: ~azure.mgmt.datafactory.models.PipelineFolder - :ivar policy: Pipeline Policy. - :vartype policy: ~azure.mgmt.datafactory.models.PipelinePolicy - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "etag": {"readonly": True}, - "concurrency": {"minimum": 1}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "etag": {"key": "etag", "type": "str"}, - "additional_properties": {"key": "", "type": "{object}"}, - "description": {"key": "properties.description", "type": "str"}, - "activities": {"key": "properties.activities", "type": "[Activity]"}, - "parameters": {"key": "properties.parameters", "type": "{ParameterSpecification}"}, - "variables": {"key": "properties.variables", "type": "{VariableSpecification}"}, - "concurrency": {"key": "properties.concurrency", "type": "int"}, - "annotations": {"key": "properties.annotations", "type": "[object]"}, - "run_dimensions": {"key": "properties.runDimensions", "type": "{object}"}, - "folder": {"key": "properties.folder", "type": "PipelineFolder"}, - "policy": {"key": "properties.policy", "type": "PipelinePolicy"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - activities: Optional[list["_models.Activity"]] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - variables: Optional[dict[str, "_models.VariableSpecification"]] = None, - concurrency: Optional[int] = None, - annotations: Optional[list[JSON]] = None, - run_dimensions: Optional[dict[str, JSON]] = None, - folder: Optional["_models.PipelineFolder"] = None, - policy: Optional["_models.PipelinePolicy"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: The description of the pipeline. - :paramtype description: str - :keyword activities: List of activities in pipeline. - :paramtype activities: list[~azure.mgmt.datafactory.models.Activity] - :keyword parameters: List of parameters for pipeline. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword variables: List of variables for pipeline. - :paramtype variables: dict[str, ~azure.mgmt.datafactory.models.VariableSpecification] - :keyword concurrency: The max number of concurrent runs for the pipeline. - :paramtype concurrency: int - :keyword annotations: List of tags that can be used for describing the Pipeline. - :paramtype annotations: list[JSON] - :keyword run_dimensions: Dimensions emitted by Pipeline. - :paramtype run_dimensions: dict[str, JSON] - :keyword folder: The folder that this Pipeline is in. If not specified, Pipeline will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.PipelineFolder - :keyword policy: Pipeline Policy. - :paramtype policy: ~azure.mgmt.datafactory.models.PipelinePolicy - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.description = description - self.activities = activities - self.parameters = parameters - self.variables = variables - self.concurrency = concurrency - self.annotations = annotations - self.run_dimensions = run_dimensions - self.folder = folder - self.policy = policy - - -class PipelineRun(_serialization.Model): - """Information about a pipeline run. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar run_id: Identifier of a run. - :vartype run_id: str - :ivar run_group_id: Identifier that correlates all the recovery runs of a pipeline run. - :vartype run_group_id: str - :ivar is_latest: Indicates if the recovered pipeline run is the latest in its group. - :vartype is_latest: bool - :ivar pipeline_name: The pipeline name. - :vartype pipeline_name: str - :ivar parameters: The full or partial list of parameter name, value pair used in the pipeline - run. - :vartype parameters: dict[str, str] - :ivar run_dimensions: Run dimensions emitted by Pipeline run. - :vartype run_dimensions: dict[str, str] - :ivar invoked_by: Entity that started the pipeline run. - :vartype invoked_by: ~azure.mgmt.datafactory.models.PipelineRunInvokedBy - :ivar last_updated: The last updated timestamp for the pipeline run event in ISO8601 format. - :vartype last_updated: ~datetime.datetime - :ivar run_start: The start time of a pipeline run in ISO8601 format. - :vartype run_start: ~datetime.datetime - :ivar run_end: The end time of a pipeline run in ISO8601 format. - :vartype run_end: ~datetime.datetime - :ivar duration_in_ms: The duration of a pipeline run. - :vartype duration_in_ms: int - :ivar status: The status of a pipeline run. Possible values: Queued, InProgress, Succeeded, - Failed, Canceling, Cancelled. - :vartype status: str - :ivar message: The message from a pipeline run. - :vartype message: str - """ - - _validation = { - "run_id": {"readonly": True}, - "run_group_id": {"readonly": True}, - "is_latest": {"readonly": True}, - "pipeline_name": {"readonly": True}, - "parameters": {"readonly": True}, - "run_dimensions": {"readonly": True}, - "invoked_by": {"readonly": True}, - "last_updated": {"readonly": True}, - "run_start": {"readonly": True}, - "run_end": {"readonly": True}, - "duration_in_ms": {"readonly": True}, - "status": {"readonly": True}, - "message": {"readonly": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "run_id": {"key": "runId", "type": "str"}, - "run_group_id": {"key": "runGroupId", "type": "str"}, - "is_latest": {"key": "isLatest", "type": "bool"}, - "pipeline_name": {"key": "pipelineName", "type": "str"}, - "parameters": {"key": "parameters", "type": "{str}"}, - "run_dimensions": {"key": "runDimensions", "type": "{str}"}, - "invoked_by": {"key": "invokedBy", "type": "PipelineRunInvokedBy"}, - "last_updated": {"key": "lastUpdated", "type": "iso-8601"}, - "run_start": {"key": "runStart", "type": "iso-8601"}, - "run_end": {"key": "runEnd", "type": "iso-8601"}, - "duration_in_ms": {"key": "durationInMs", "type": "int"}, - "status": {"key": "status", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, additional_properties: Optional[dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.run_id: Optional[str] = None - self.run_group_id: Optional[str] = None - self.is_latest: Optional[bool] = None - self.pipeline_name: Optional[str] = None - self.parameters: Optional[dict[str, str]] = None - self.run_dimensions: Optional[dict[str, str]] = None - self.invoked_by: Optional["_models.PipelineRunInvokedBy"] = None - self.last_updated: Optional[datetime.datetime] = None - self.run_start: Optional[datetime.datetime] = None - self.run_end: Optional[datetime.datetime] = None - self.duration_in_ms: Optional[int] = None - self.status: Optional[str] = None - self.message: Optional[str] = None - - -class PipelineRunInvokedBy(_serialization.Model): - """Provides entity name and id that started the pipeline run. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the entity that started the pipeline run. - :vartype name: str - :ivar id: The ID of the entity that started the run. - :vartype id: str - :ivar invoked_by_type: The type of the entity that started the run. - :vartype invoked_by_type: str - :ivar pipeline_name: The name of the pipeline that triggered the run, if any. - :vartype pipeline_name: str - :ivar pipeline_run_id: The run id of the pipeline that triggered the run, if any. - :vartype pipeline_run_id: str - """ - - _validation = { - "name": {"readonly": True}, - "id": {"readonly": True}, - "invoked_by_type": {"readonly": True}, - "pipeline_name": {"readonly": True}, - "pipeline_run_id": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "id": {"key": "id", "type": "str"}, - "invoked_by_type": {"key": "invokedByType", "type": "str"}, - "pipeline_name": {"key": "pipelineName", "type": "str"}, - "pipeline_run_id": {"key": "pipelineRunId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name: Optional[str] = None - self.id: Optional[str] = None - self.invoked_by_type: Optional[str] = None - self.pipeline_name: Optional[str] = None - self.pipeline_run_id: Optional[str] = None - - -class PipelineRunsQueryResponse(_serialization.Model): - """A list pipeline runs. - - All required parameters must be populated in order to send to server. - - :ivar value: List of pipeline runs. Required. - :vartype value: list[~azure.mgmt.datafactory.models.PipelineRun] - :ivar continuation_token: The continuation token for getting the next page of results, if any - remaining results exist, null otherwise. - :vartype continuation_token: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[PipelineRun]"}, - "continuation_token": {"key": "continuationToken", "type": "str"}, - } - - def __init__( - self, *, value: list["_models.PipelineRun"], continuation_token: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: List of pipeline runs. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.PipelineRun] - :keyword continuation_token: The continuation token for getting the next page of results, if - any remaining results exist, null otherwise. - :paramtype continuation_token: str - """ - super().__init__(**kwargs) - self.value = value - self.continuation_token = continuation_token - - -class PolybaseSettings(_serialization.Model): - """PolyBase settings. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar reject_type: Reject type. Known values are: "value" and "percentage". - :vartype reject_type: str or ~azure.mgmt.datafactory.models.PolybaseSettingsRejectType - :ivar reject_value: Specifies the value or the percentage of rows that can be rejected before - the query fails. Type: number (or Expression with resultType number), minimum: 0. - :vartype reject_value: JSON - :ivar reject_sample_value: Determines the number of rows to attempt to retrieve before the - PolyBase recalculates the percentage of rejected rows. Type: integer (or Expression with - resultType integer), minimum: 0. - :vartype reject_sample_value: JSON - :ivar use_type_default: Specifies how to handle missing values in delimited text files when - PolyBase retrieves data from the text file. Type: boolean (or Expression with resultType - boolean). - :vartype use_type_default: JSON - """ - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "reject_type": {"key": "rejectType", "type": "str"}, - "reject_value": {"key": "rejectValue", "type": "object"}, - "reject_sample_value": {"key": "rejectSampleValue", "type": "object"}, - "use_type_default": {"key": "useTypeDefault", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - reject_type: Optional[Union[str, "_models.PolybaseSettingsRejectType"]] = None, - reject_value: Optional[JSON] = None, - reject_sample_value: Optional[JSON] = None, - use_type_default: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword reject_type: Reject type. Known values are: "value" and "percentage". - :paramtype reject_type: str or ~azure.mgmt.datafactory.models.PolybaseSettingsRejectType - :keyword reject_value: Specifies the value or the percentage of rows that can be rejected - before the query fails. Type: number (or Expression with resultType number), minimum: 0. - :paramtype reject_value: JSON - :keyword reject_sample_value: Determines the number of rows to attempt to retrieve before the - PolyBase recalculates the percentage of rejected rows. Type: integer (or Expression with - resultType integer), minimum: 0. - :paramtype reject_sample_value: JSON - :keyword use_type_default: Specifies how to handle missing values in delimited text files when - PolyBase retrieves data from the text file. Type: boolean (or Expression with resultType - boolean). - :paramtype use_type_default: JSON - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.reject_type = reject_type - self.reject_value = reject_value - self.reject_sample_value = reject_sample_value - self.use_type_default = use_type_default - - -class PostgreSqlLinkedService(LinkedService): - """Linked service for PostgreSQL data source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. Required. - :vartype connection_string: JSON - :ivar password: The Azure key vault secret reference of password in connection string. - :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "connection_string": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - connection_string: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - password: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. Required. - :paramtype connection_string: JSON - :keyword password: The Azure key vault secret reference of password in connection string. - :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "PostgreSql" - self.connection_string = connection_string - self.password = password - self.encrypted_credential = encrypted_credential - - -class PostgreSqlSource(TabularSource): - """A copy activity source for PostgreSQL databases. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: Database query. Type: string (or Expression with resultType string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: Database query. Type: string (or Expression with resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "PostgreSqlSource" - self.query = query - - -class PostgreSqlTableDataset(Dataset): - """The PostgreSQL table dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property will be retired. Please consider using schema + table - properties instead. - :vartype table_name: JSON - :ivar table: The PostgreSQL table name. Type: string (or Expression with resultType string). - :vartype table: JSON - :ivar schema_type_properties_schema: The PostgreSQL schema name. Type: string (or Expression - with resultType string). - :vartype schema_type_properties_schema: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - table: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property will be retired. Please consider using schema + table - properties instead. - :paramtype table_name: JSON - :keyword table: The PostgreSQL table name. Type: string (or Expression with resultType string). - :paramtype table: JSON - :keyword schema_type_properties_schema: The PostgreSQL schema name. Type: string (or Expression - with resultType string). - :paramtype schema_type_properties_schema: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "PostgreSqlTable" - self.table_name = table_name - self.table = table - self.schema_type_properties_schema = schema_type_properties_schema - - -class PostgreSqlV2LinkedService(LinkedService): - """Linked service for PostgreSQLV2 data source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar server: Server name for connection. Type: string. Required. - :vartype server: JSON - :ivar port: The port for the connection. Type: integer. - :vartype port: JSON - :ivar username: Username for authentication. Type: string. Required. - :vartype username: JSON - :ivar database: Database name for connection. Type: string. Required. - :vartype database: JSON - :ivar authentication_type: The authentication type to use. Type: string. Required. - :vartype authentication_type: JSON - :ivar ssl_mode: SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: - require, 4: verify-ca, 5: verify-full. Type: integer. Required. - :vartype ssl_mode: JSON - :ivar schema: Sets the schema search path. Type: string. - :vartype schema: JSON - :ivar pooling: Whether connection pooling should be used. Type: boolean. - :vartype pooling: JSON - :ivar connection_timeout: The time to wait (in seconds) while trying to establish a connection - before terminating the attempt and generating an error. Type: integer. - :vartype connection_timeout: JSON - :ivar command_timeout: The time to wait (in seconds) while trying to execute a command before - terminating the attempt and generating an error. Set to zero for infinity. Type: integer. - :vartype command_timeout: JSON - :ivar trust_server_certificate: Whether to trust the server certificate without validating it. - Type: boolean. - :vartype trust_server_certificate: JSON - :ivar ssl_certificate: Location of a client certificate to be sent to the server. Type: string. - :vartype ssl_certificate: JSON - :ivar ssl_key: Location of a client key for a client certificate to be sent to the server. - Type: string. - :vartype ssl_key: JSON - :ivar ssl_password: Password for a key for a client certificate. Type: string. - :vartype ssl_password: JSON - :ivar read_buffer_size: Determines the size of the internal buffer uses when reading. - Increasing may improve performance if transferring large values from the database. Type: - integer. - :vartype read_buffer_size: JSON - :ivar log_parameters: When enabled, parameter values are logged when commands are executed. - Type: boolean. - :vartype log_parameters: JSON - :ivar timezone: Gets or sets the session timezone. Type: string. - :vartype timezone: JSON - :ivar encoding: Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL - string data. Type: string. - :vartype encoding: JSON - :ivar password: The Azure key vault secret reference of password in connection string. Type: - string. - :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "server": {"required": True}, - "username": {"required": True}, - "database": {"required": True}, - "authentication_type": {"required": True}, - "ssl_mode": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "object"}, - "ssl_mode": {"key": "typeProperties.sslMode", "type": "object"}, - "schema": {"key": "typeProperties.schema", "type": "object"}, - "pooling": {"key": "typeProperties.pooling", "type": "object"}, - "connection_timeout": {"key": "typeProperties.connectionTimeout", "type": "object"}, - "command_timeout": {"key": "typeProperties.commandTimeout", "type": "object"}, - "trust_server_certificate": {"key": "typeProperties.trustServerCertificate", "type": "object"}, - "ssl_certificate": {"key": "typeProperties.sslCertificate", "type": "object"}, - "ssl_key": {"key": "typeProperties.sslKey", "type": "object"}, - "ssl_password": {"key": "typeProperties.sslPassword", "type": "object"}, - "read_buffer_size": {"key": "typeProperties.readBufferSize", "type": "object"}, - "log_parameters": {"key": "typeProperties.logParameters", "type": "object"}, - "timezone": {"key": "typeProperties.timezone", "type": "object"}, - "encoding": {"key": "typeProperties.encoding", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - server: JSON, - username: JSON, - database: JSON, - authentication_type: JSON, - ssl_mode: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - port: Optional[JSON] = None, - schema: Optional[JSON] = None, - pooling: Optional[JSON] = None, - connection_timeout: Optional[JSON] = None, - command_timeout: Optional[JSON] = None, - trust_server_certificate: Optional[JSON] = None, - ssl_certificate: Optional[JSON] = None, - ssl_key: Optional[JSON] = None, - ssl_password: Optional[JSON] = None, - read_buffer_size: Optional[JSON] = None, - log_parameters: Optional[JSON] = None, - timezone: Optional[JSON] = None, - encoding: Optional[JSON] = None, - password: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword server: Server name for connection. Type: string. Required. - :paramtype server: JSON - :keyword port: The port for the connection. Type: integer. - :paramtype port: JSON - :keyword username: Username for authentication. Type: string. Required. - :paramtype username: JSON - :keyword database: Database name for connection. Type: string. Required. - :paramtype database: JSON - :keyword authentication_type: The authentication type to use. Type: string. Required. - :paramtype authentication_type: JSON - :keyword ssl_mode: SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: - require, 4: verify-ca, 5: verify-full. Type: integer. Required. - :paramtype ssl_mode: JSON - :keyword schema: Sets the schema search path. Type: string. - :paramtype schema: JSON - :keyword pooling: Whether connection pooling should be used. Type: boolean. - :paramtype pooling: JSON - :keyword connection_timeout: The time to wait (in seconds) while trying to establish a - connection before terminating the attempt and generating an error. Type: integer. - :paramtype connection_timeout: JSON - :keyword command_timeout: The time to wait (in seconds) while trying to execute a command - before terminating the attempt and generating an error. Set to zero for infinity. Type: - integer. - :paramtype command_timeout: JSON - :keyword trust_server_certificate: Whether to trust the server certificate without validating - it. Type: boolean. - :paramtype trust_server_certificate: JSON - :keyword ssl_certificate: Location of a client certificate to be sent to the server. Type: - string. - :paramtype ssl_certificate: JSON - :keyword ssl_key: Location of a client key for a client certificate to be sent to the server. - Type: string. - :paramtype ssl_key: JSON - :keyword ssl_password: Password for a key for a client certificate. Type: string. - :paramtype ssl_password: JSON - :keyword read_buffer_size: Determines the size of the internal buffer uses when reading. - Increasing may improve performance if transferring large values from the database. Type: - integer. - :paramtype read_buffer_size: JSON - :keyword log_parameters: When enabled, parameter values are logged when commands are executed. - Type: boolean. - :paramtype log_parameters: JSON - :keyword timezone: Gets or sets the session timezone. Type: string. - :paramtype timezone: JSON - :keyword encoding: Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL - string data. Type: string. - :paramtype encoding: JSON - :keyword password: The Azure key vault secret reference of password in connection string. Type: - string. - :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "PostgreSqlV2" - self.server = server - self.port = port - self.username = username - self.database = database - self.authentication_type = authentication_type - self.ssl_mode = ssl_mode - self.schema = schema - self.pooling = pooling - self.connection_timeout = connection_timeout - self.command_timeout = command_timeout - self.trust_server_certificate = trust_server_certificate - self.ssl_certificate = ssl_certificate - self.ssl_key = ssl_key - self.ssl_password = ssl_password - self.read_buffer_size = read_buffer_size - self.log_parameters = log_parameters - self.timezone = timezone - self.encoding = encoding - self.password = password - self.encrypted_credential = encrypted_credential - - -class PostgreSqlV2Source(TabularSource): - """A copy activity source for PostgreSQL databases. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: Database query. Type: string (or Expression with resultType string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: Database query. Type: string (or Expression with resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "PostgreSqlV2Source" - self.query = query - - -class PostgreSqlV2TableDataset(Dataset): - """The PostgreSQLV2 table dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table: The PostgreSQL table name. Type: string (or Expression with resultType string). - :vartype table: JSON - :ivar schema_type_properties_schema: The PostgreSQL schema name. Type: string (or Expression - with resultType string). - :vartype schema_type_properties_schema: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table": {"key": "typeProperties.table", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table: The PostgreSQL table name. Type: string (or Expression with resultType string). - :paramtype table: JSON - :keyword schema_type_properties_schema: The PostgreSQL schema name. Type: string (or Expression - with resultType string). - :paramtype schema_type_properties_schema: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "PostgreSqlV2Table" - self.table = table - self.schema_type_properties_schema = schema_type_properties_schema - - -class PowerQuerySink(DataFlowSink): - """Power query sink. - - All required parameters must be populated in order to send to server. - - :ivar name: Transformation name. Required. - :vartype name: str - :ivar description: Transformation description. - :vartype description: str - :ivar dataset: Dataset reference. - :vartype dataset: ~azure.mgmt.datafactory.models.DatasetReference - :ivar linked_service: Linked service reference. - :vartype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar flowlet: Flowlet Reference. - :vartype flowlet: ~azure.mgmt.datafactory.models.DataFlowReference - :ivar schema_linked_service: Schema linked service reference. - :vartype schema_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar rejected_data_linked_service: Rejected data linked service reference. - :vartype rejected_data_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar script: sink script. - :vartype script: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "dataset": {"key": "dataset", "type": "DatasetReference"}, - "linked_service": {"key": "linkedService", "type": "LinkedServiceReference"}, - "flowlet": {"key": "flowlet", "type": "DataFlowReference"}, - "schema_linked_service": {"key": "schemaLinkedService", "type": "LinkedServiceReference"}, - "rejected_data_linked_service": {"key": "rejectedDataLinkedService", "type": "LinkedServiceReference"}, - "script": {"key": "script", "type": "str"}, - } - - def __init__( - self, - *, - name: str, - description: Optional[str] = None, - dataset: Optional["_models.DatasetReference"] = None, - linked_service: Optional["_models.LinkedServiceReference"] = None, - flowlet: Optional["_models.DataFlowReference"] = None, - schema_linked_service: Optional["_models.LinkedServiceReference"] = None, - rejected_data_linked_service: Optional["_models.LinkedServiceReference"] = None, - script: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Transformation name. Required. - :paramtype name: str - :keyword description: Transformation description. - :paramtype description: str - :keyword dataset: Dataset reference. - :paramtype dataset: ~azure.mgmt.datafactory.models.DatasetReference - :keyword linked_service: Linked service reference. - :paramtype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword flowlet: Flowlet Reference. - :paramtype flowlet: ~azure.mgmt.datafactory.models.DataFlowReference - :keyword schema_linked_service: Schema linked service reference. - :paramtype schema_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword rejected_data_linked_service: Rejected data linked service reference. - :paramtype rejected_data_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword script: sink script. - :paramtype script: str - """ - super().__init__( - name=name, - description=description, - dataset=dataset, - linked_service=linked_service, - flowlet=flowlet, - schema_linked_service=schema_linked_service, - rejected_data_linked_service=rejected_data_linked_service, - **kwargs - ) - self.script = script - - -class PowerQuerySinkMapping(_serialization.Model): - """Map Power Query mashup query to sink dataset(s). - - :ivar query_name: Name of the query in Power Query mashup document. - :vartype query_name: str - :ivar dataflow_sinks: List of sinks mapped to Power Query mashup query. - :vartype dataflow_sinks: list[~azure.mgmt.datafactory.models.PowerQuerySink] - """ - - _attribute_map = { - "query_name": {"key": "queryName", "type": "str"}, - "dataflow_sinks": {"key": "dataflowSinks", "type": "[PowerQuerySink]"}, - } - - def __init__( - self, - *, - query_name: Optional[str] = None, - dataflow_sinks: Optional[list["_models.PowerQuerySink"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword query_name: Name of the query in Power Query mashup document. - :paramtype query_name: str - :keyword dataflow_sinks: List of sinks mapped to Power Query mashup query. - :paramtype dataflow_sinks: list[~azure.mgmt.datafactory.models.PowerQuerySink] - """ - super().__init__(**kwargs) - self.query_name = query_name - self.dataflow_sinks = dataflow_sinks - - -class PowerQuerySource(DataFlowSource): - """Power query source. - - All required parameters must be populated in order to send to server. - - :ivar name: Transformation name. Required. - :vartype name: str - :ivar description: Transformation description. - :vartype description: str - :ivar dataset: Dataset reference. - :vartype dataset: ~azure.mgmt.datafactory.models.DatasetReference - :ivar linked_service: Linked service reference. - :vartype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar flowlet: Flowlet Reference. - :vartype flowlet: ~azure.mgmt.datafactory.models.DataFlowReference - :ivar schema_linked_service: Schema linked service reference. - :vartype schema_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar script: source script. - :vartype script: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "dataset": {"key": "dataset", "type": "DatasetReference"}, - "linked_service": {"key": "linkedService", "type": "LinkedServiceReference"}, - "flowlet": {"key": "flowlet", "type": "DataFlowReference"}, - "schema_linked_service": {"key": "schemaLinkedService", "type": "LinkedServiceReference"}, - "script": {"key": "script", "type": "str"}, - } - - def __init__( - self, - *, - name: str, - description: Optional[str] = None, - dataset: Optional["_models.DatasetReference"] = None, - linked_service: Optional["_models.LinkedServiceReference"] = None, - flowlet: Optional["_models.DataFlowReference"] = None, - schema_linked_service: Optional["_models.LinkedServiceReference"] = None, - script: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Transformation name. Required. - :paramtype name: str - :keyword description: Transformation description. - :paramtype description: str - :keyword dataset: Dataset reference. - :paramtype dataset: ~azure.mgmt.datafactory.models.DatasetReference - :keyword linked_service: Linked service reference. - :paramtype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword flowlet: Flowlet Reference. - :paramtype flowlet: ~azure.mgmt.datafactory.models.DataFlowReference - :keyword schema_linked_service: Schema linked service reference. - :paramtype schema_linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword script: source script. - :paramtype script: str - """ - super().__init__( - name=name, - description=description, - dataset=dataset, - linked_service=linked_service, - flowlet=flowlet, - schema_linked_service=schema_linked_service, - **kwargs - ) - self.script = script - - -class PrestoLinkedService(LinkedService): - """Presto server linked service. This linked service has supported version property. The Version - 1.0 is scheduled for deprecation while your pipeline will continue to run after EOL but without - any bug fix or new features. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar host: The IP address or host name of the Presto server. (i.e. 192.168.222.160). Required. - :vartype host: JSON - :ivar server_version: The version of the Presto server. (i.e. 0.148-t) Only used for Version - 1.0. - :vartype server_version: JSON - :ivar catalog: The catalog context for all request against the server. Required. - :vartype catalog: JSON - :ivar port: The TCP port that the Presto server uses to listen for client connections. The - default value is 8080 when disable SSL, default value is 443 when enable SSL. - :vartype port: JSON - :ivar authentication_type: The authentication mechanism used to connect to the Presto server. - Required. Known values are: "Anonymous" and "LDAP". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.PrestoAuthenticationType - :ivar username: The user name used to connect to the Presto server. - :vartype username: JSON - :ivar password: The password corresponding to the user name. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar enable_ssl: Specifies whether the connections to the server are encrypted using SSL. The - default value for legacy version is False. The default value for version 2.0 is True. - :vartype enable_ssl: JSON - :ivar enable_server_certificate_validation: Specifies whether the connections to the server - will validate server certificate, the default value is True. Only used for Version 2.0. - :vartype enable_server_certificate_validation: JSON - :ivar trusted_cert_path: The full path of the .pem file containing trusted CA certificates for - verifying the server when connecting over SSL. This property can only be set when using SSL on - self-hosted IR. The default value is the cacerts.pem file installed with the IR. Only used for - Version 1.0. - :vartype trusted_cert_path: JSON - :ivar use_system_trust_store: Specifies whether to use a CA certificate from the system trust - store or from a specified PEM file. The default value is false. Only used for Version 1.0. - :vartype use_system_trust_store: JSON - :ivar allow_host_name_cn_mismatch: Specifies whether to require a CA-issued SSL certificate - name to match the host name of the server when connecting over SSL. The default value is false. - Only used for Version 1.0. - :vartype allow_host_name_cn_mismatch: JSON - :ivar allow_self_signed_server_cert: Specifies whether to allow self-signed certificates from - the server. The default value is false. Only used for Version 1.0. - :vartype allow_self_signed_server_cert: JSON - :ivar time_zone_id: The local time zone used by the connection. Valid values for this option - are specified in the IANA Time Zone Database. The default value for Version 1.0 is the client - system time zone. The default value for Version 2.0 is server system timeZone. - :vartype time_zone_id: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "host": {"required": True}, - "catalog": {"required": True}, - "authentication_type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "server_version": {"key": "typeProperties.serverVersion", "type": "object"}, - "catalog": {"key": "typeProperties.catalog", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "enable_ssl": {"key": "typeProperties.enableSsl", "type": "object"}, - "enable_server_certificate_validation": { - "key": "typeProperties.enableServerCertificateValidation", - "type": "object", - }, - "trusted_cert_path": {"key": "typeProperties.trustedCertPath", "type": "object"}, - "use_system_trust_store": {"key": "typeProperties.useSystemTrustStore", "type": "object"}, - "allow_host_name_cn_mismatch": {"key": "typeProperties.allowHostNameCNMismatch", "type": "object"}, - "allow_self_signed_server_cert": {"key": "typeProperties.allowSelfSignedServerCert", "type": "object"}, - "time_zone_id": {"key": "typeProperties.timeZoneID", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - host: JSON, - catalog: JSON, - authentication_type: Union[str, "_models.PrestoAuthenticationType"], - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - server_version: Optional[JSON] = None, - port: Optional[JSON] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - enable_ssl: Optional[JSON] = None, - enable_server_certificate_validation: Optional[JSON] = None, - trusted_cert_path: Optional[JSON] = None, - use_system_trust_store: Optional[JSON] = None, - allow_host_name_cn_mismatch: Optional[JSON] = None, - allow_self_signed_server_cert: Optional[JSON] = None, - time_zone_id: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword host: The IP address or host name of the Presto server. (i.e. 192.168.222.160). - Required. - :paramtype host: JSON - :keyword server_version: The version of the Presto server. (i.e. 0.148-t) Only used for Version - 1.0. - :paramtype server_version: JSON - :keyword catalog: The catalog context for all request against the server. Required. - :paramtype catalog: JSON - :keyword port: The TCP port that the Presto server uses to listen for client connections. The - default value is 8080 when disable SSL, default value is 443 when enable SSL. - :paramtype port: JSON - :keyword authentication_type: The authentication mechanism used to connect to the Presto - server. Required. Known values are: "Anonymous" and "LDAP". - :paramtype authentication_type: str or ~azure.mgmt.datafactory.models.PrestoAuthenticationType - :keyword username: The user name used to connect to the Presto server. - :paramtype username: JSON - :keyword password: The password corresponding to the user name. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword enable_ssl: Specifies whether the connections to the server are encrypted using SSL. - The default value for legacy version is False. The default value for version 2.0 is True. - :paramtype enable_ssl: JSON - :keyword enable_server_certificate_validation: Specifies whether the connections to the server - will validate server certificate, the default value is True. Only used for Version 2.0. - :paramtype enable_server_certificate_validation: JSON - :keyword trusted_cert_path: The full path of the .pem file containing trusted CA certificates - for verifying the server when connecting over SSL. This property can only be set when using SSL - on self-hosted IR. The default value is the cacerts.pem file installed with the IR. Only used - for Version 1.0. - :paramtype trusted_cert_path: JSON - :keyword use_system_trust_store: Specifies whether to use a CA certificate from the system - trust store or from a specified PEM file. The default value is false. Only used for Version - 1.0. - :paramtype use_system_trust_store: JSON - :keyword allow_host_name_cn_mismatch: Specifies whether to require a CA-issued SSL certificate - name to match the host name of the server when connecting over SSL. The default value is false. - Only used for Version 1.0. - :paramtype allow_host_name_cn_mismatch: JSON - :keyword allow_self_signed_server_cert: Specifies whether to allow self-signed certificates - from the server. The default value is false. Only used for Version 1.0. - :paramtype allow_self_signed_server_cert: JSON - :keyword time_zone_id: The local time zone used by the connection. Valid values for this option - are specified in the IANA Time Zone Database. The default value for Version 1.0 is the client - system time zone. The default value for Version 2.0 is server system timeZone. - :paramtype time_zone_id: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Presto" - self.host = host - self.server_version = server_version - self.catalog = catalog - self.port = port - self.authentication_type = authentication_type - self.username = username - self.password = password - self.enable_ssl = enable_ssl - self.enable_server_certificate_validation = enable_server_certificate_validation - self.trusted_cert_path = trusted_cert_path - self.use_system_trust_store = use_system_trust_store - self.allow_host_name_cn_mismatch = allow_host_name_cn_mismatch - self.allow_self_signed_server_cert = allow_self_signed_server_cert - self.time_zone_id = time_zone_id - self.encrypted_credential = encrypted_credential - - -class PrestoObjectDataset(Dataset): - """Presto server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property will be retired. Please consider using schema + table - properties instead. - :vartype table_name: JSON - :ivar table: The table name of the Presto. Type: string (or Expression with resultType string). - :vartype table: JSON - :ivar schema_type_properties_schema: The schema name of the Presto. Type: string (or Expression - with resultType string). - :vartype schema_type_properties_schema: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - table: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property will be retired. Please consider using schema + table - properties instead. - :paramtype table_name: JSON - :keyword table: The table name of the Presto. Type: string (or Expression with resultType - string). - :paramtype table: JSON - :keyword schema_type_properties_schema: The schema name of the Presto. Type: string (or - Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "PrestoObject" - self.table_name = table_name - self.table = table - self.schema_type_properties_schema = schema_type_properties_schema - - -class PrestoSource(TabularSource): - """A copy activity Presto server source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "PrestoSource" - self.query = query - - -class PrivateEndpoint(_serialization.Model): - """Private endpoint which a connection belongs to. - - :ivar id: The resource Id for private endpoint. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: The resource Id for private endpoint. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class PrivateEndpointConnectionListResponse(_serialization.Model): - """A list of linked service resources. - - All required parameters must be populated in order to send to server. - - :ivar value: List of Private Endpoint Connections. Required. - :vartype value: list[~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource] - :ivar next_link: The link to the next page of results, if any remaining results exist. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[PrivateEndpointConnectionResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: list["_models.PrivateEndpointConnectionResource"], - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: List of Private Endpoint Connections. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource] - :keyword next_link: The link to the next page of results, if any remaining results exist. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class PrivateEndpointConnectionResource(SubResource): - """Private Endpoint Connection ARM resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar etag: Etag identifies change in the resource. - :vartype etag: str - :ivar properties: Core resource properties. - :vartype properties: ~azure.mgmt.datafactory.models.RemotePrivateEndpointConnection - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "etag": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "etag": {"key": "etag", "type": "str"}, - "properties": {"key": "properties", "type": "RemotePrivateEndpointConnection"}, - } - - def __init__( - self, *, properties: Optional["_models.RemotePrivateEndpointConnection"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Core resource properties. - :paramtype properties: ~azure.mgmt.datafactory.models.RemotePrivateEndpointConnection - """ - super().__init__(**kwargs) - self.properties = properties - - -class PrivateLinkConnectionApprovalRequest(_serialization.Model): - """A request to approve or reject a private endpoint connection. - - :ivar private_link_service_connection_state: The state of a private link connection. - :vartype private_link_service_connection_state: - ~azure.mgmt.datafactory.models.PrivateLinkConnectionState - :ivar private_endpoint: The resource of private endpoint. - :vartype private_endpoint: ~azure.mgmt.datafactory.models.PrivateEndpoint - """ - - _attribute_map = { - "private_link_service_connection_state": { - "key": "privateLinkServiceConnectionState", - "type": "PrivateLinkConnectionState", - }, - "private_endpoint": {"key": "privateEndpoint", "type": "PrivateEndpoint"}, - } - - def __init__( - self, - *, - private_link_service_connection_state: Optional["_models.PrivateLinkConnectionState"] = None, - private_endpoint: Optional["_models.PrivateEndpoint"] = None, - **kwargs: Any - ) -> None: - """ - :keyword private_link_service_connection_state: The state of a private link connection. - :paramtype private_link_service_connection_state: - ~azure.mgmt.datafactory.models.PrivateLinkConnectionState - :keyword private_endpoint: The resource of private endpoint. - :paramtype private_endpoint: ~azure.mgmt.datafactory.models.PrivateEndpoint - """ - super().__init__(**kwargs) - self.private_link_service_connection_state = private_link_service_connection_state - self.private_endpoint = private_endpoint - - -class PrivateLinkConnectionApprovalRequestResource(SubResource): # pylint: disable=name-too-long - """Private Endpoint Connection Approval ARM resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar etag: Etag identifies change in the resource. - :vartype etag: str - :ivar properties: Core resource properties. - :vartype properties: ~azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequest - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "etag": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "etag": {"key": "etag", "type": "str"}, - "properties": {"key": "properties", "type": "PrivateLinkConnectionApprovalRequest"}, - } - - def __init__( - self, *, properties: Optional["_models.PrivateLinkConnectionApprovalRequest"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Core resource properties. - :paramtype properties: ~azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequest - """ - super().__init__(**kwargs) - self.properties = properties - - -class PrivateLinkConnectionState(_serialization.Model): - """The state of a private link connection. - - :ivar status: Status of a private link connection. - :vartype status: str - :ivar description: Description of a private link connection. - :vartype description: str - :ivar actions_required: ActionsRequired for a private link connection. - :vartype actions_required: str - """ - - _attribute_map = { - "status": {"key": "status", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "actions_required": {"key": "actionsRequired", "type": "str"}, - } - - def __init__( - self, - *, - status: Optional[str] = None, - description: Optional[str] = None, - actions_required: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword status: Status of a private link connection. - :paramtype status: str - :keyword description: Description of a private link connection. - :paramtype description: str - :keyword actions_required: ActionsRequired for a private link connection. - :paramtype actions_required: str - """ - super().__init__(**kwargs) - self.status = status - self.description = description - self.actions_required = actions_required - - -class PrivateLinkResource(SubResource): - """A private link resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar etag: Etag identifies change in the resource. - :vartype etag: str - :ivar properties: Core resource properties. - :vartype properties: ~azure.mgmt.datafactory.models.PrivateLinkResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "etag": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "etag": {"key": "etag", "type": "str"}, - "properties": {"key": "properties", "type": "PrivateLinkResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.PrivateLinkResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Core resource properties. - :paramtype properties: ~azure.mgmt.datafactory.models.PrivateLinkResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class PrivateLinkResourceProperties(_serialization.Model): - """Properties of a private link resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar group_id: GroupId of a private link resource. - :vartype group_id: str - :ivar required_members: RequiredMembers of a private link resource. - :vartype required_members: list[str] - :ivar required_zone_names: RequiredZoneNames of a private link resource. - :vartype required_zone_names: list[str] - """ - - _validation = { - "group_id": {"readonly": True}, - "required_members": {"readonly": True}, - "required_zone_names": {"readonly": True}, - } - - _attribute_map = { - "group_id": {"key": "groupId", "type": "str"}, - "required_members": {"key": "requiredMembers", "type": "[str]"}, - "required_zone_names": {"key": "requiredZoneNames", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.group_id: Optional[str] = None - self.required_members: Optional[list[str]] = None - self.required_zone_names: Optional[list[str]] = None - - -class PrivateLinkResourcesWrapper(_serialization.Model): - """Wrapper for a collection of private link resources. - - All required parameters must be populated in order to send to server. - - :ivar value: Required. - :vartype value: list[~azure.mgmt.datafactory.models.PrivateLinkResource] - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[PrivateLinkResource]"}, - } - - def __init__(self, *, value: list["_models.PrivateLinkResource"], **kwargs: Any) -> None: - """ - :keyword value: Required. - :paramtype value: list[~azure.mgmt.datafactory.models.PrivateLinkResource] - """ - super().__init__(**kwargs) - self.value = value - - -class PurviewConfiguration(_serialization.Model): - """Purview configuration. - - :ivar purview_resource_id: Purview resource id. - :vartype purview_resource_id: str - """ - - _attribute_map = { - "purview_resource_id": {"key": "purviewResourceId", "type": "str"}, - } - - def __init__(self, *, purview_resource_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword purview_resource_id: Purview resource id. - :paramtype purview_resource_id: str - """ - super().__init__(**kwargs) - self.purview_resource_id = purview_resource_id - - -class QueryDataFlowDebugSessionsResponse(_serialization.Model): - """A list of active debug sessions. - - :ivar value: Array with all active debug sessions. - :vartype value: list[~azure.mgmt.datafactory.models.DataFlowDebugSessionInfo] - :ivar next_link: The link to the next page of results, if any remaining results exist. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DataFlowDebugSessionInfo]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[list["_models.DataFlowDebugSessionInfo"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Array with all active debug sessions. - :paramtype value: list[~azure.mgmt.datafactory.models.DataFlowDebugSessionInfo] - :keyword next_link: The link to the next page of results, if any remaining results exist. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class QuickbaseLinkedService(LinkedService): - """Linked service for Quickbase. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar url: The url to connect Quickbase source. Type: string (or Expression with resultType - string). Required. - :vartype url: JSON - :ivar user_token: The user token for the Quickbase source. Required. - :vartype user_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "url": {"required": True}, - "user_token": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "url": {"key": "typeProperties.url", "type": "object"}, - "user_token": {"key": "typeProperties.userToken", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - url: JSON, - user_token: "_models.SecretBase", - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword url: The url to connect Quickbase source. Type: string (or Expression with resultType - string). Required. - :paramtype url: JSON - :keyword user_token: The user token for the Quickbase source. Required. - :paramtype user_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Quickbase" - self.url = url - self.user_token = user_token - self.encrypted_credential = encrypted_credential - - -class QuickBooksLinkedService(LinkedService): - """QuickBooks server linked service. This linked service has supported version property. The - Version 1.0 is scheduled for deprecation while your pipeline will continue to run after EOL but - without any bug fix or new features. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_properties: Properties used to connect to QuickBooks. It is mutually exclusive - with any other properties in the linked service. Type: object. - :vartype connection_properties: JSON - :ivar endpoint: The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com). - :vartype endpoint: JSON - :ivar company_id: The company ID of the QuickBooks company to authorize. - :vartype company_id: JSON - :ivar consumer_key: The consumer key for OAuth 2.0 authentication. - :vartype consumer_key: JSON - :ivar consumer_secret: The consumer secret for OAuth 2.0 authentication. - :vartype consumer_secret: ~azure.mgmt.datafactory.models.SecretBase - :ivar access_token: The access token for OAuth 2.0 authentication. - :vartype access_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar access_token_secret: The access token secret is deprecated for OAuth 1.0 authentication. - Only used for version 1.0. - :vartype access_token_secret: ~azure.mgmt.datafactory.models.SecretBase - :ivar refresh_token: The refresh token for OAuth 2.0 authentication. - :vartype refresh_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using - HTTPS. The default value is true. Only used for version 1.0. - :vartype use_encrypted_endpoints: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_properties": {"key": "typeProperties.connectionProperties", "type": "object"}, - "endpoint": {"key": "typeProperties.endpoint", "type": "object"}, - "company_id": {"key": "typeProperties.companyId", "type": "object"}, - "consumer_key": {"key": "typeProperties.consumerKey", "type": "object"}, - "consumer_secret": {"key": "typeProperties.consumerSecret", "type": "SecretBase"}, - "access_token": {"key": "typeProperties.accessToken", "type": "SecretBase"}, - "access_token_secret": {"key": "typeProperties.accessTokenSecret", "type": "SecretBase"}, - "refresh_token": {"key": "typeProperties.refreshToken", "type": "SecretBase"}, - "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_properties: Optional[JSON] = None, - endpoint: Optional[JSON] = None, - company_id: Optional[JSON] = None, - consumer_key: Optional[JSON] = None, - consumer_secret: Optional["_models.SecretBase"] = None, - access_token: Optional["_models.SecretBase"] = None, - access_token_secret: Optional["_models.SecretBase"] = None, - refresh_token: Optional["_models.SecretBase"] = None, - use_encrypted_endpoints: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_properties: Properties used to connect to QuickBooks. It is mutually - exclusive with any other properties in the linked service. Type: object. - :paramtype connection_properties: JSON - :keyword endpoint: The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com). - :paramtype endpoint: JSON - :keyword company_id: The company ID of the QuickBooks company to authorize. - :paramtype company_id: JSON - :keyword consumer_key: The consumer key for OAuth 2.0 authentication. - :paramtype consumer_key: JSON - :keyword consumer_secret: The consumer secret for OAuth 2.0 authentication. - :paramtype consumer_secret: ~azure.mgmt.datafactory.models.SecretBase - :keyword access_token: The access token for OAuth 2.0 authentication. - :paramtype access_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword access_token_secret: The access token secret is deprecated for OAuth 1.0 - authentication. Only used for version 1.0. - :paramtype access_token_secret: ~azure.mgmt.datafactory.models.SecretBase - :keyword refresh_token: The refresh token for OAuth 2.0 authentication. - :paramtype refresh_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted - using HTTPS. The default value is true. Only used for version 1.0. - :paramtype use_encrypted_endpoints: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "QuickBooks" - self.connection_properties = connection_properties - self.endpoint = endpoint - self.company_id = company_id - self.consumer_key = consumer_key - self.consumer_secret = consumer_secret - self.access_token = access_token - self.access_token_secret = access_token_secret - self.refresh_token = refresh_token - self.use_encrypted_endpoints = use_encrypted_endpoints - self.encrypted_credential = encrypted_credential - - -class QuickBooksObjectDataset(Dataset): - """QuickBooks server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "QuickBooksObject" - self.table_name = table_name - - -class QuickBooksSource(TabularSource): - """A copy activity QuickBooks server source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "QuickBooksSource" - self.query = query - - -class RecurrenceSchedule(_serialization.Model): - """The recurrence schedule. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar minutes: The minutes. - :vartype minutes: list[int] - :ivar hours: The hours. - :vartype hours: list[int] - :ivar week_days: The days of the week. - :vartype week_days: list[str or ~azure.mgmt.datafactory.models.DaysOfWeek] - :ivar month_days: The month days. - :vartype month_days: list[int] - :ivar monthly_occurrences: The monthly occurrences. - :vartype monthly_occurrences: list[~azure.mgmt.datafactory.models.RecurrenceScheduleOccurrence] - """ - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "minutes": {"key": "minutes", "type": "[int]"}, - "hours": {"key": "hours", "type": "[int]"}, - "week_days": {"key": "weekDays", "type": "[str]"}, - "month_days": {"key": "monthDays", "type": "[int]"}, - "monthly_occurrences": {"key": "monthlyOccurrences", "type": "[RecurrenceScheduleOccurrence]"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - minutes: Optional[list[int]] = None, - hours: Optional[list[int]] = None, - week_days: Optional[list[Union[str, "_models.DaysOfWeek"]]] = None, - month_days: Optional[list[int]] = None, - monthly_occurrences: Optional[list["_models.RecurrenceScheduleOccurrence"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword minutes: The minutes. - :paramtype minutes: list[int] - :keyword hours: The hours. - :paramtype hours: list[int] - :keyword week_days: The days of the week. - :paramtype week_days: list[str or ~azure.mgmt.datafactory.models.DaysOfWeek] - :keyword month_days: The month days. - :paramtype month_days: list[int] - :keyword monthly_occurrences: The monthly occurrences. - :paramtype monthly_occurrences: - list[~azure.mgmt.datafactory.models.RecurrenceScheduleOccurrence] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.minutes = minutes - self.hours = hours - self.week_days = week_days - self.month_days = month_days - self.monthly_occurrences = monthly_occurrences - - -class RecurrenceScheduleOccurrence(_serialization.Model): - """The recurrence schedule occurrence. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar day: The day of the week. Known values are: "Sunday", "Monday", "Tuesday", "Wednesday", - "Thursday", "Friday", and "Saturday". - :vartype day: str or ~azure.mgmt.datafactory.models.DayOfWeek - :ivar occurrence: The occurrence. - :vartype occurrence: int - """ - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "day": {"key": "day", "type": "str"}, - "occurrence": {"key": "occurrence", "type": "int"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - day: Optional[Union[str, "_models.DayOfWeek"]] = None, - occurrence: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword day: The day of the week. Known values are: "Sunday", "Monday", "Tuesday", - "Wednesday", "Thursday", "Friday", and "Saturday". - :paramtype day: str or ~azure.mgmt.datafactory.models.DayOfWeek - :keyword occurrence: The occurrence. - :paramtype occurrence: int - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.day = day - self.occurrence = occurrence - - -class RedirectIncompatibleRowSettings(_serialization.Model): - """Redirect incompatible row settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar linked_service_name: Name of the Azure Storage, Storage SAS, or Azure Data Lake Store - linked service used for redirecting incompatible row. Must be specified if - redirectIncompatibleRowSettings is specified. Type: string (or Expression with resultType - string). Required. - :vartype linked_service_name: JSON - :ivar path: The path for storing the redirect incompatible row data. Type: string (or - Expression with resultType string). - :vartype path: JSON - """ - - _validation = { - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "linked_service_name": {"key": "linkedServiceName", "type": "object"}, - "path": {"key": "path", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - path: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword linked_service_name: Name of the Azure Storage, Storage SAS, or Azure Data Lake Store - linked service used for redirecting incompatible row. Must be specified if - redirectIncompatibleRowSettings is specified. Type: string (or Expression with resultType - string). Required. - :paramtype linked_service_name: JSON - :keyword path: The path for storing the redirect incompatible row data. Type: string (or - Expression with resultType string). - :paramtype path: JSON - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.linked_service_name = linked_service_name - self.path = path - - -class RedshiftUnloadSettings(_serialization.Model): - """The Amazon S3 settings needed for the interim Amazon S3 when copying from Amazon Redshift with - unload. With this, data from Amazon Redshift source will be unloaded into S3 first and then - copied into the targeted sink from the interim S3. - - All required parameters must be populated in order to send to server. - - :ivar s3_linked_service_name: The name of the Amazon S3 linked service which will be used for - the unload operation when copying from the Amazon Redshift source. Required. - :vartype s3_linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar bucket_name: The bucket of the interim Amazon S3 which will be used to store the unloaded - data from Amazon Redshift source. The bucket must be in the same region as the Amazon Redshift - source. Type: string (or Expression with resultType string). Required. - :vartype bucket_name: JSON - """ - - _validation = { - "s3_linked_service_name": {"required": True}, - "bucket_name": {"required": True}, - } - - _attribute_map = { - "s3_linked_service_name": {"key": "s3LinkedServiceName", "type": "LinkedServiceReference"}, - "bucket_name": {"key": "bucketName", "type": "object"}, - } - - def __init__( - self, *, s3_linked_service_name: "_models.LinkedServiceReference", bucket_name: JSON, **kwargs: Any - ) -> None: - """ - :keyword s3_linked_service_name: The name of the Amazon S3 linked service which will be used - for the unload operation when copying from the Amazon Redshift source. Required. - :paramtype s3_linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword bucket_name: The bucket of the interim Amazon S3 which will be used to store the - unloaded data from Amazon Redshift source. The bucket must be in the same region as the Amazon - Redshift source. Type: string (or Expression with resultType string). Required. - :paramtype bucket_name: JSON - """ - super().__init__(**kwargs) - self.s3_linked_service_name = s3_linked_service_name - self.bucket_name = bucket_name - - -class RelationalSource(CopySource): - """A copy activity source for various relational databases. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query: Database query. Type: string (or Expression with resultType string). - :vartype query: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query: Database query. Type: string (or Expression with resultType string). - :paramtype query: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "RelationalSource" - self.query = query - self.additional_columns = additional_columns - - -class RelationalTableDataset(Dataset): - """The relational table dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The relational table name. Type: string (or Expression with resultType - string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The relational table name. Type: string (or Expression with resultType - string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "RelationalTable" - self.table_name = table_name - - -class RemotePrivateEndpointConnection(_serialization.Model): - """A remote private endpoint connection. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: - :vartype provisioning_state: str - :ivar private_endpoint: PrivateEndpoint of a remote private endpoint connection. - :vartype private_endpoint: ~azure.mgmt.datafactory.models.ArmIdWrapper - :ivar private_link_service_connection_state: The state of a private link connection. - :vartype private_link_service_connection_state: - ~azure.mgmt.datafactory.models.PrivateLinkConnectionState - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "private_endpoint": {"key": "privateEndpoint", "type": "ArmIdWrapper"}, - "private_link_service_connection_state": { - "key": "privateLinkServiceConnectionState", - "type": "PrivateLinkConnectionState", - }, - } - - def __init__( - self, - *, - private_endpoint: Optional["_models.ArmIdWrapper"] = None, - private_link_service_connection_state: Optional["_models.PrivateLinkConnectionState"] = None, - **kwargs: Any - ) -> None: - """ - :keyword private_endpoint: PrivateEndpoint of a remote private endpoint connection. - :paramtype private_endpoint: ~azure.mgmt.datafactory.models.ArmIdWrapper - :keyword private_link_service_connection_state: The state of a private link connection. - :paramtype private_link_service_connection_state: - ~azure.mgmt.datafactory.models.PrivateLinkConnectionState - """ - super().__init__(**kwargs) - self.provisioning_state: Optional[str] = None - self.private_endpoint = private_endpoint - self.private_link_service_connection_state = private_link_service_connection_state - - -class RerunTumblingWindowTrigger(Trigger): - """Trigger that schedules pipeline reruns for all fixed time interval windows from a requested - start time to requested end time. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Trigger type. Required. - :vartype type: str - :ivar description: Trigger description. - :vartype description: str - :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are - called on the Trigger. Known values are: "Started", "Stopped", and "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState - :ivar annotations: List of tags that can be used for describing the trigger. - :vartype annotations: list[JSON] - :ivar parent_trigger: The parent trigger reference. Required. - :vartype parent_trigger: JSON - :ivar requested_start_time: The start time for the time period for which restatement is - initiated. Only UTC time is currently supported. Required. - :vartype requested_start_time: ~datetime.datetime - :ivar requested_end_time: The end time for the time period for which restatement is initiated. - Only UTC time is currently supported. Required. - :vartype requested_end_time: ~datetime.datetime - :ivar rerun_concurrency: The max number of parallel time windows (ready for execution) for - which a rerun is triggered. Required. - :vartype rerun_concurrency: int - """ - - _validation = { - "type": {"required": True}, - "runtime_state": {"readonly": True}, - "parent_trigger": {"required": True}, - "requested_start_time": {"required": True}, - "requested_end_time": {"required": True}, - "rerun_concurrency": {"required": True, "maximum": 50, "minimum": 1}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "runtime_state": {"key": "runtimeState", "type": "str"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "parent_trigger": {"key": "typeProperties.parentTrigger", "type": "object"}, - "requested_start_time": {"key": "typeProperties.requestedStartTime", "type": "iso-8601"}, - "requested_end_time": {"key": "typeProperties.requestedEndTime", "type": "iso-8601"}, - "rerun_concurrency": {"key": "typeProperties.rerunConcurrency", "type": "int"}, - } - - def __init__( - self, - *, - parent_trigger: JSON, - requested_start_time: datetime.datetime, - requested_end_time: datetime.datetime, - rerun_concurrency: int, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - annotations: Optional[list[JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Trigger description. - :paramtype description: str - :keyword annotations: List of tags that can be used for describing the trigger. - :paramtype annotations: list[JSON] - :keyword parent_trigger: The parent trigger reference. Required. - :paramtype parent_trigger: JSON - :keyword requested_start_time: The start time for the time period for which restatement is - initiated. Only UTC time is currently supported. Required. - :paramtype requested_start_time: ~datetime.datetime - :keyword requested_end_time: The end time for the time period for which restatement is - initiated. Only UTC time is currently supported. Required. - :paramtype requested_end_time: ~datetime.datetime - :keyword rerun_concurrency: The max number of parallel time windows (ready for execution) for - which a rerun is triggered. Required. - :paramtype rerun_concurrency: int - """ - super().__init__( - additional_properties=additional_properties, description=description, annotations=annotations, **kwargs - ) - self.type: str = "RerunTumblingWindowTrigger" - self.parent_trigger = parent_trigger - self.requested_start_time = requested_start_time - self.requested_end_time = requested_end_time - self.rerun_concurrency = rerun_concurrency - - -class ResponsysLinkedService(LinkedService): - """Responsys linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar endpoint: The endpoint of the Responsys server. Required. - :vartype endpoint: JSON - :ivar client_id: The client ID associated with the Responsys application. Type: string (or - Expression with resultType string). Required. - :vartype client_id: JSON - :ivar client_secret: The client secret associated with the Responsys application. Type: string - (or Expression with resultType string). - :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using - HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). - :vartype use_encrypted_endpoints: JSON - :ivar use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. Type: boolean (or Expression with resultType boolean). - :vartype use_host_verification: JSON - :ivar use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. Type: boolean (or Expression with resultType - boolean). - :vartype use_peer_verification: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "endpoint": {"required": True}, - "client_id": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "endpoint": {"key": "typeProperties.endpoint", "type": "object"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "client_secret": {"key": "typeProperties.clientSecret", "type": "SecretBase"}, - "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, - "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, - "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - endpoint: JSON, - client_id: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - client_secret: Optional["_models.SecretBase"] = None, - use_encrypted_endpoints: Optional[JSON] = None, - use_host_verification: Optional[JSON] = None, - use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword endpoint: The endpoint of the Responsys server. Required. - :paramtype endpoint: JSON - :keyword client_id: The client ID associated with the Responsys application. Type: string (or - Expression with resultType string). Required. - :paramtype client_id: JSON - :keyword client_secret: The client secret associated with the Responsys application. Type: - string (or Expression with resultType string). - :paramtype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :keyword use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted - using HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). - :paramtype use_encrypted_endpoints: JSON - :keyword use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. Type: boolean (or Expression with resultType boolean). - :paramtype use_host_verification: JSON - :keyword use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. Type: boolean (or Expression with resultType - boolean). - :paramtype use_peer_verification: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Responsys" - self.endpoint = endpoint - self.client_id = client_id - self.client_secret = client_secret - self.use_encrypted_endpoints = use_encrypted_endpoints - self.use_host_verification = use_host_verification - self.use_peer_verification = use_peer_verification - self.encrypted_credential = encrypted_credential - - -class ResponsysObjectDataset(Dataset): - """Responsys dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "ResponsysObject" - self.table_name = table_name - - -class ResponsysSource(TabularSource): - """A copy activity Responsys source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "ResponsysSource" - self.query = query - - -class RestResourceDataset(Dataset): - """A Rest service dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar relative_url: The relative URL to the resource that the RESTful API provides. Type: - string (or Expression with resultType string). - :vartype relative_url: JSON - :ivar request_method: The HTTP method used to call the RESTful API. The default is GET. Type: - string (or Expression with resultType string). - :vartype request_method: JSON - :ivar request_body: The HTTP request body to the RESTful API if requestMethod is POST. Type: - string (or Expression with resultType string). - :vartype request_body: JSON - :ivar additional_headers: The additional HTTP headers in the request to the RESTful API. - :vartype additional_headers: dict[str, JSON] - :ivar pagination_rules: The pagination rules to compose next page requests. - :vartype pagination_rules: dict[str, JSON] - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "relative_url": {"key": "typeProperties.relativeUrl", "type": "object"}, - "request_method": {"key": "typeProperties.requestMethod", "type": "object"}, - "request_body": {"key": "typeProperties.requestBody", "type": "object"}, - "additional_headers": {"key": "typeProperties.additionalHeaders", "type": "{object}"}, - "pagination_rules": {"key": "typeProperties.paginationRules", "type": "{object}"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - relative_url: Optional[JSON] = None, - request_method: Optional[JSON] = None, - request_body: Optional[JSON] = None, - additional_headers: Optional[dict[str, JSON]] = None, - pagination_rules: Optional[dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword relative_url: The relative URL to the resource that the RESTful API provides. Type: - string (or Expression with resultType string). - :paramtype relative_url: JSON - :keyword request_method: The HTTP method used to call the RESTful API. The default is GET. - Type: string (or Expression with resultType string). - :paramtype request_method: JSON - :keyword request_body: The HTTP request body to the RESTful API if requestMethod is POST. Type: - string (or Expression with resultType string). - :paramtype request_body: JSON - :keyword additional_headers: The additional HTTP headers in the request to the RESTful API. - :paramtype additional_headers: dict[str, JSON] - :keyword pagination_rules: The pagination rules to compose next page requests. - :paramtype pagination_rules: dict[str, JSON] - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "RestResource" - self.relative_url = relative_url - self.request_method = request_method - self.request_body = request_body - self.additional_headers = additional_headers - self.pagination_rules = pagination_rules - - -class RestServiceLinkedService(LinkedService): - """Rest Service linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar url: The base URL of the REST service. Type: string (or Expression with resultType - string). Required. - :vartype url: JSON - :ivar enable_server_certificate_validation: Whether to validate server side SSL certificate - when connecting to the endpoint.The default value is true. Type: boolean (or Expression with - resultType boolean). - :vartype enable_server_certificate_validation: JSON - :ivar authentication_type: Type of authentication used to connect to the REST service. - Required. Known values are: "Anonymous", "Basic", "AadServicePrincipal", - "ManagedServiceIdentity", and "OAuth2ClientCredential". - :vartype authentication_type: str or - ~azure.mgmt.datafactory.models.RestServiceAuthenticationType - :ivar user_name: The user name used in Basic authentication type. Type: string (or Expression - with resultType string). - :vartype user_name: JSON - :ivar password: The password used in Basic authentication type. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar auth_headers: The additional HTTP headers in the request to RESTful API used for - authorization. Type: object (or Expression with resultType object). - :vartype auth_headers: JSON - :ivar service_principal_id: The application's client ID used in AadServicePrincipal - authentication type. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The application's key used in AadServicePrincipal authentication - type. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: The tenant information (domain name or tenant ID) used in AadServicePrincipal - authentication type under which your application resides. Type: string (or Expression with - resultType string). - :vartype tenant: JSON - :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed - values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data - factory regions’ cloud type. Type: string (or Expression with resultType string). - :vartype azure_cloud_type: JSON - :ivar aad_resource_id: The resource you are requesting authorization to use. Type: string (or - Expression with resultType string). - :vartype aad_resource_id: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - :ivar client_id: The client ID associated with your application. Type: string (or Expression - with resultType string). - :vartype client_id: JSON - :ivar client_secret: The client secret associated with your application. - :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :ivar token_endpoint: The token endpoint of the authorization server to acquire access token. - Type: string (or Expression with resultType string). - :vartype token_endpoint: JSON - :ivar resource: The target service or resource to which the access will be requested. Type: - string (or Expression with resultType string). - :vartype resource: JSON - :ivar scope: The scope of the access required. It describes what kind of access will be - requested. Type: string (or Expression with resultType string). - :vartype scope: JSON - :ivar service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :vartype service_principal_credential_type: JSON - :ivar service_principal_embedded_cert: Specify the base64 encoded certificate of your - application registered in Azure Active Directory. Type: string (or Expression with resultType - string). - :vartype service_principal_embedded_cert: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_embedded_cert_password: Specify the password of your certificate if - your certificate has a password and you are using AadServicePrincipal authentication. Type: - string (or Expression with resultType string). - :vartype service_principal_embedded_cert_password: ~azure.mgmt.datafactory.models.SecretBase - """ - - _validation = { - "type": {"required": True}, - "url": {"required": True}, - "authentication_type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "url": {"key": "typeProperties.url", "type": "object"}, - "enable_server_certificate_validation": { - "key": "typeProperties.enableServerCertificateValidation", - "type": "object", - }, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "auth_headers": {"key": "typeProperties.authHeaders", "type": "object"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "azure_cloud_type": {"key": "typeProperties.azureCloudType", "type": "object"}, - "aad_resource_id": {"key": "typeProperties.aadResourceId", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "client_secret": {"key": "typeProperties.clientSecret", "type": "SecretBase"}, - "token_endpoint": {"key": "typeProperties.tokenEndpoint", "type": "object"}, - "resource": {"key": "typeProperties.resource", "type": "object"}, - "scope": {"key": "typeProperties.scope", "type": "object"}, - "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, - "service_principal_embedded_cert": {"key": "typeProperties.servicePrincipalEmbeddedCert", "type": "SecretBase"}, - "service_principal_embedded_cert_password": { - "key": "typeProperties.servicePrincipalEmbeddedCertPassword", - "type": "SecretBase", - }, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - url: JSON, - authentication_type: Union[str, "_models.RestServiceAuthenticationType"], - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - enable_server_certificate_validation: Optional[JSON] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - auth_headers: Optional[JSON] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - tenant: Optional[JSON] = None, - azure_cloud_type: Optional[JSON] = None, - aad_resource_id: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - credential: Optional["_models.CredentialReference"] = None, - client_id: Optional[JSON] = None, - client_secret: Optional["_models.SecretBase"] = None, - token_endpoint: Optional[JSON] = None, - resource: Optional[JSON] = None, - scope: Optional[JSON] = None, - service_principal_credential_type: Optional[JSON] = None, - service_principal_embedded_cert: Optional["_models.SecretBase"] = None, - service_principal_embedded_cert_password: Optional["_models.SecretBase"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword url: The base URL of the REST service. Type: string (or Expression with resultType - string). Required. - :paramtype url: JSON - :keyword enable_server_certificate_validation: Whether to validate server side SSL certificate - when connecting to the endpoint.The default value is true. Type: boolean (or Expression with - resultType boolean). - :paramtype enable_server_certificate_validation: JSON - :keyword authentication_type: Type of authentication used to connect to the REST service. - Required. Known values are: "Anonymous", "Basic", "AadServicePrincipal", - "ManagedServiceIdentity", and "OAuth2ClientCredential". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.RestServiceAuthenticationType - :keyword user_name: The user name used in Basic authentication type. Type: string (or - Expression with resultType string). - :paramtype user_name: JSON - :keyword password: The password used in Basic authentication type. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword auth_headers: The additional HTTP headers in the request to RESTful API used for - authorization. Type: object (or Expression with resultType object). - :paramtype auth_headers: JSON - :keyword service_principal_id: The application's client ID used in AadServicePrincipal - authentication type. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The application's key used in AadServicePrincipal - authentication type. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: The tenant information (domain name or tenant ID) used in AadServicePrincipal - authentication type under which your application resides. Type: string (or Expression with - resultType string). - :paramtype tenant: JSON - :keyword azure_cloud_type: Indicates the azure cloud type of the service principle auth. - Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is - the data factory regions’ cloud type. Type: string (or Expression with resultType string). - :paramtype azure_cloud_type: JSON - :keyword aad_resource_id: The resource you are requesting authorization to use. Type: string - (or Expression with resultType string). - :paramtype aad_resource_id: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - :keyword client_id: The client ID associated with your application. Type: string (or Expression - with resultType string). - :paramtype client_id: JSON - :keyword client_secret: The client secret associated with your application. - :paramtype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :keyword token_endpoint: The token endpoint of the authorization server to acquire access - token. Type: string (or Expression with resultType string). - :paramtype token_endpoint: JSON - :keyword resource: The target service or resource to which the access will be requested. Type: - string (or Expression with resultType string). - :paramtype resource: JSON - :keyword scope: The scope of the access required. It describes what kind of access will be - requested. Type: string (or Expression with resultType string). - :paramtype scope: JSON - :keyword service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :paramtype service_principal_credential_type: JSON - :keyword service_principal_embedded_cert: Specify the base64 encoded certificate of your - application registered in Azure Active Directory. Type: string (or Expression with resultType - string). - :paramtype service_principal_embedded_cert: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_embedded_cert_password: Specify the password of your certificate if - your certificate has a password and you are using AadServicePrincipal authentication. Type: - string (or Expression with resultType string). - :paramtype service_principal_embedded_cert_password: ~azure.mgmt.datafactory.models.SecretBase - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "RestService" - self.url = url - self.enable_server_certificate_validation = enable_server_certificate_validation - self.authentication_type = authentication_type - self.user_name = user_name - self.password = password - self.auth_headers = auth_headers - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.tenant = tenant - self.azure_cloud_type = azure_cloud_type - self.aad_resource_id = aad_resource_id - self.encrypted_credential = encrypted_credential - self.credential = credential - self.client_id = client_id - self.client_secret = client_secret - self.token_endpoint = token_endpoint - self.resource = resource - self.scope = scope - self.service_principal_credential_type = service_principal_credential_type - self.service_principal_embedded_cert = service_principal_embedded_cert - self.service_principal_embedded_cert_password = service_principal_embedded_cert_password - - -class RestSink(CopySink): - """A copy activity Rest service Sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar request_method: The HTTP method used to call the RESTful API. The default is POST. Type: - string (or Expression with resultType string). - :vartype request_method: JSON - :ivar additional_headers: The additional HTTP headers in the request to the RESTful API. Type: - key value pairs (value should be string type). - :vartype additional_headers: JSON - :ivar http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the timeout - to get a response, not the timeout to read response data. Default value: 00:01:40. Type: string - (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype http_request_timeout: JSON - :ivar request_interval: The time to await before sending next request, in milliseconds. - :vartype request_interval: JSON - :ivar http_compression_type: Http Compression Type to Send data in compressed format with - Optimal Compression Level, Default is None. And The Only Supported option is Gzip. Type: string - (or Expression with resultType string). - :vartype http_compression_type: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "request_method": {"key": "requestMethod", "type": "object"}, - "additional_headers": {"key": "additionalHeaders", "type": "object"}, - "http_request_timeout": {"key": "httpRequestTimeout", "type": "object"}, - "request_interval": {"key": "requestInterval", "type": "object"}, - "http_compression_type": {"key": "httpCompressionType", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - request_method: Optional[JSON] = None, - additional_headers: Optional[JSON] = None, - http_request_timeout: Optional[JSON] = None, - request_interval: Optional[JSON] = None, - http_compression_type: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword request_method: The HTTP method used to call the RESTful API. The default is POST. - Type: string (or Expression with resultType string). - :paramtype request_method: JSON - :keyword additional_headers: The additional HTTP headers in the request to the RESTful API. - Type: key value pairs (value should be string type). - :paramtype additional_headers: JSON - :keyword http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the - timeout to get a response, not the timeout to read response data. Default value: 00:01:40. - Type: string (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype http_request_timeout: JSON - :keyword request_interval: The time to await before sending next request, in milliseconds. - :paramtype request_interval: JSON - :keyword http_compression_type: Http Compression Type to Send data in compressed format with - Optimal Compression Level, Default is None. And The Only Supported option is Gzip. Type: string - (or Expression with resultType string). - :paramtype http_compression_type: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "RestSink" - self.request_method = request_method - self.additional_headers = additional_headers - self.http_request_timeout = http_request_timeout - self.request_interval = request_interval - self.http_compression_type = http_compression_type - - -class RestSource(CopySource): - """A copy activity Rest service source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar request_method: The HTTP method used to call the RESTful API. The default is GET. Type: - string (or Expression with resultType string). - :vartype request_method: JSON - :ivar request_body: The HTTP request body to the RESTful API if requestMethod is POST. Type: - string (or Expression with resultType string). - :vartype request_body: JSON - :ivar additional_headers: The additional HTTP headers in the request to the RESTful API. Type: - string (or Expression with resultType string). - :vartype additional_headers: JSON - :ivar pagination_rules: The pagination rules to compose next page requests. Type: string (or - Expression with resultType string). - :vartype pagination_rules: JSON - :ivar http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the timeout - to get a response, not the timeout to read response data. Default value: 00:01:40. Type: string - (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype http_request_timeout: JSON - :ivar request_interval: The time to await before sending next page request. - :vartype request_interval: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - key value pairs (value should be string type). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "request_method": {"key": "requestMethod", "type": "object"}, - "request_body": {"key": "requestBody", "type": "object"}, - "additional_headers": {"key": "additionalHeaders", "type": "object"}, - "pagination_rules": {"key": "paginationRules", "type": "object"}, - "http_request_timeout": {"key": "httpRequestTimeout", "type": "object"}, - "request_interval": {"key": "requestInterval", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - request_method: Optional[JSON] = None, - request_body: Optional[JSON] = None, - additional_headers: Optional[JSON] = None, - pagination_rules: Optional[JSON] = None, - http_request_timeout: Optional[JSON] = None, - request_interval: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword request_method: The HTTP method used to call the RESTful API. The default is GET. - Type: string (or Expression with resultType string). - :paramtype request_method: JSON - :keyword request_body: The HTTP request body to the RESTful API if requestMethod is POST. Type: - string (or Expression with resultType string). - :paramtype request_body: JSON - :keyword additional_headers: The additional HTTP headers in the request to the RESTful API. - Type: string (or Expression with resultType string). - :paramtype additional_headers: JSON - :keyword pagination_rules: The pagination rules to compose next page requests. Type: string (or - Expression with resultType string). - :paramtype pagination_rules: JSON - :keyword http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the - timeout to get a response, not the timeout to read response data. Default value: 00:01:40. - Type: string (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype http_request_timeout: JSON - :keyword request_interval: The time to await before sending next page request. - :paramtype request_interval: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - key value pairs (value should be string type). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "RestSource" - self.request_method = request_method - self.request_body = request_body - self.additional_headers = additional_headers - self.pagination_rules = pagination_rules - self.http_request_timeout = http_request_timeout - self.request_interval = request_interval - self.additional_columns = additional_columns - - -class RetryPolicy(_serialization.Model): - """Execution policy for an activity. - - :ivar count: Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with - resultType integer), minimum: 0. - :vartype count: JSON - :ivar interval_in_seconds: Interval between retries in seconds. Default is 30. - :vartype interval_in_seconds: int - """ - - _validation = { - "interval_in_seconds": {"maximum": 86400, "minimum": 30}, - } - - _attribute_map = { - "count": {"key": "count", "type": "object"}, - "interval_in_seconds": {"key": "intervalInSeconds", "type": "int"}, - } - - def __init__( - self, *, count: Optional[JSON] = None, interval_in_seconds: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword count: Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression - with resultType integer), minimum: 0. - :paramtype count: JSON - :keyword interval_in_seconds: Interval between retries in seconds. Default is 30. - :paramtype interval_in_seconds: int - """ - super().__init__(**kwargs) - self.count = count - self.interval_in_seconds = interval_in_seconds - - -class RunFilterParameters(_serialization.Model): - """Query parameters for listing runs. - - All required parameters must be populated in order to send to server. - - :ivar continuation_token: The continuation token for getting the next page of results. Null for - first page. - :vartype continuation_token: str - :ivar last_updated_after: The time at or after which the run event was updated in 'ISO 8601' - format. Required. - :vartype last_updated_after: ~datetime.datetime - :ivar last_updated_before: The time at or before which the run event was updated in 'ISO 8601' - format. Required. - :vartype last_updated_before: ~datetime.datetime - :ivar filters: List of filters. - :vartype filters: list[~azure.mgmt.datafactory.models.RunQueryFilter] - :ivar order_by: List of OrderBy option. - :vartype order_by: list[~azure.mgmt.datafactory.models.RunQueryOrderBy] - """ - - _validation = { - "last_updated_after": {"required": True}, - "last_updated_before": {"required": True}, - } - - _attribute_map = { - "continuation_token": {"key": "continuationToken", "type": "str"}, - "last_updated_after": {"key": "lastUpdatedAfter", "type": "iso-8601"}, - "last_updated_before": {"key": "lastUpdatedBefore", "type": "iso-8601"}, - "filters": {"key": "filters", "type": "[RunQueryFilter]"}, - "order_by": {"key": "orderBy", "type": "[RunQueryOrderBy]"}, - } - - def __init__( - self, - *, - last_updated_after: datetime.datetime, - last_updated_before: datetime.datetime, - continuation_token: Optional[str] = None, - filters: Optional[list["_models.RunQueryFilter"]] = None, - order_by: Optional[list["_models.RunQueryOrderBy"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword continuation_token: The continuation token for getting the next page of results. Null - for first page. - :paramtype continuation_token: str - :keyword last_updated_after: The time at or after which the run event was updated in 'ISO 8601' - format. Required. - :paramtype last_updated_after: ~datetime.datetime - :keyword last_updated_before: The time at or before which the run event was updated in 'ISO - 8601' format. Required. - :paramtype last_updated_before: ~datetime.datetime - :keyword filters: List of filters. - :paramtype filters: list[~azure.mgmt.datafactory.models.RunQueryFilter] - :keyword order_by: List of OrderBy option. - :paramtype order_by: list[~azure.mgmt.datafactory.models.RunQueryOrderBy] - """ - super().__init__(**kwargs) - self.continuation_token = continuation_token - self.last_updated_after = last_updated_after - self.last_updated_before = last_updated_before - self.filters = filters - self.order_by = order_by - - -class RunQueryFilter(_serialization.Model): - """Query filter option for listing runs. - - All required parameters must be populated in order to send to server. - - :ivar operand: Parameter name to be used for filter. The allowed operands to query pipeline - runs are PipelineName, RunStart, RunEnd and Status; to query activity runs are ActivityName, - ActivityRunStart, ActivityRunEnd, ActivityType and Status, and to query trigger runs are - TriggerName, TriggerRunTimestamp and Status. Required. Known values are: "PipelineName", - "Status", "RunStart", "RunEnd", "ActivityName", "ActivityRunStart", "ActivityRunEnd", - "ActivityType", "TriggerName", "TriggerRunTimestamp", "RunGroupId", and "LatestOnly". - :vartype operand: str or ~azure.mgmt.datafactory.models.RunQueryFilterOperand - :ivar operator: Operator to be used for filter. Required. Known values are: "Equals", - "NotEquals", "In", "NotIn", and "In". - :vartype operator: str or ~azure.mgmt.datafactory.models.RunQueryFilterOperator - :ivar values: List of filter values. Required. - :vartype values: list[str] - """ - - _validation = { - "operand": {"required": True}, - "operator": {"required": True}, - "values": {"required": True}, - } - - _attribute_map = { - "operand": {"key": "operand", "type": "str"}, - "operator": {"key": "operator", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - } - - def __init__( - self, - *, - operand: Union[str, "_models.RunQueryFilterOperand"], - operator: Union[str, "_models.RunQueryFilterOperator"], - values: list[str], - **kwargs: Any - ) -> None: - """ - :keyword operand: Parameter name to be used for filter. The allowed operands to query pipeline - runs are PipelineName, RunStart, RunEnd and Status; to query activity runs are ActivityName, - ActivityRunStart, ActivityRunEnd, ActivityType and Status, and to query trigger runs are - TriggerName, TriggerRunTimestamp and Status. Required. Known values are: "PipelineName", - "Status", "RunStart", "RunEnd", "ActivityName", "ActivityRunStart", "ActivityRunEnd", - "ActivityType", "TriggerName", "TriggerRunTimestamp", "RunGroupId", and "LatestOnly". - :paramtype operand: str or ~azure.mgmt.datafactory.models.RunQueryFilterOperand - :keyword operator: Operator to be used for filter. Required. Known values are: "Equals", - "NotEquals", "In", "NotIn", and "In". - :paramtype operator: str or ~azure.mgmt.datafactory.models.RunQueryFilterOperator - :keyword values: List of filter values. Required. - :paramtype values: list[str] - """ - super().__init__(**kwargs) - self.operand = operand - self.operator = operator - self.values = values - - -class RunQueryOrderBy(_serialization.Model): - """An object to provide order by options for listing runs. - - All required parameters must be populated in order to send to server. - - :ivar order_by: Parameter name to be used for order by. The allowed parameters to order by for - pipeline runs are PipelineName, RunStart, RunEnd and Status; for activity runs are - ActivityName, ActivityRunStart, ActivityRunEnd and Status; for trigger runs are TriggerName, - TriggerRunTimestamp and Status. Required. Known values are: "RunStart", "RunEnd", - "PipelineName", "Status", "ActivityName", "ActivityRunStart", "ActivityRunEnd", "TriggerName", - and "TriggerRunTimestamp". - :vartype order_by: str or ~azure.mgmt.datafactory.models.RunQueryOrderByField - :ivar order: Sorting order of the parameter. Required. Known values are: "ASC" and "DESC". - :vartype order: str or ~azure.mgmt.datafactory.models.RunQueryOrder - """ - - _validation = { - "order_by": {"required": True}, - "order": {"required": True}, - } - - _attribute_map = { - "order_by": {"key": "orderBy", "type": "str"}, - "order": {"key": "order", "type": "str"}, - } - - def __init__( - self, - *, - order_by: Union[str, "_models.RunQueryOrderByField"], - order: Union[str, "_models.RunQueryOrder"], - **kwargs: Any - ) -> None: - """ - :keyword order_by: Parameter name to be used for order by. The allowed parameters to order by - for pipeline runs are PipelineName, RunStart, RunEnd and Status; for activity runs are - ActivityName, ActivityRunStart, ActivityRunEnd and Status; for trigger runs are TriggerName, - TriggerRunTimestamp and Status. Required. Known values are: "RunStart", "RunEnd", - "PipelineName", "Status", "ActivityName", "ActivityRunStart", "ActivityRunEnd", "TriggerName", - and "TriggerRunTimestamp". - :paramtype order_by: str or ~azure.mgmt.datafactory.models.RunQueryOrderByField - :keyword order: Sorting order of the parameter. Required. Known values are: "ASC" and "DESC". - :paramtype order: str or ~azure.mgmt.datafactory.models.RunQueryOrder - """ - super().__init__(**kwargs) - self.order_by = order_by - self.order = order - - -class SalesforceLinkedService(LinkedService): - """Linked service for Salesforce. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar environment_url: The URL of Salesforce instance. Default is - 'https://login.salesforce.com'. To copy data from sandbox, specify - 'https://test.salesforce.com'. To copy data from custom domain, specify, for example, - 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - :vartype environment_url: JSON - :ivar username: The username for Basic authentication of the Salesforce instance. Type: string - (or Expression with resultType string). - :vartype username: JSON - :ivar password: The password for Basic authentication of the Salesforce instance. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar security_token: The security token is optional to remotely access Salesforce instance. - :vartype security_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar api_version: The Salesforce API version used in ADF. Type: string (or Expression with - resultType string). - :vartype api_version: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "environment_url": {"key": "typeProperties.environmentUrl", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "security_token": {"key": "typeProperties.securityToken", "type": "SecretBase"}, - "api_version": {"key": "typeProperties.apiVersion", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - environment_url: Optional[JSON] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - security_token: Optional["_models.SecretBase"] = None, - api_version: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword environment_url: The URL of Salesforce instance. Default is - 'https://login.salesforce.com'. To copy data from sandbox, specify - 'https://test.salesforce.com'. To copy data from custom domain, specify, for example, - 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - :paramtype environment_url: JSON - :keyword username: The username for Basic authentication of the Salesforce instance. Type: - string (or Expression with resultType string). - :paramtype username: JSON - :keyword password: The password for Basic authentication of the Salesforce instance. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword security_token: The security token is optional to remotely access Salesforce instance. - :paramtype security_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword api_version: The Salesforce API version used in ADF. Type: string (or Expression with - resultType string). - :paramtype api_version: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Salesforce" - self.environment_url = environment_url - self.username = username - self.password = password - self.security_token = security_token - self.api_version = api_version - self.encrypted_credential = encrypted_credential - - -class SalesforceMarketingCloudLinkedService(LinkedService): - """Salesforce Marketing Cloud linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_properties: Properties used to connect to Salesforce Marketing Cloud. It is - mutually exclusive with any other properties in the linked service. Type: object. - :vartype connection_properties: JSON - :ivar client_id: The client ID associated with the Salesforce Marketing Cloud application. - Type: string (or Expression with resultType string). - :vartype client_id: JSON - :ivar client_secret: The client secret associated with the Salesforce Marketing Cloud - application. Type: string (or Expression with resultType string). - :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using - HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). - :vartype use_encrypted_endpoints: JSON - :ivar use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. Type: boolean (or Expression with resultType boolean). - :vartype use_host_verification: JSON - :ivar use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. Type: boolean (or Expression with resultType - boolean). - :vartype use_peer_verification: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_properties": {"key": "typeProperties.connectionProperties", "type": "object"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "client_secret": {"key": "typeProperties.clientSecret", "type": "SecretBase"}, - "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, - "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, - "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_properties: Optional[JSON] = None, - client_id: Optional[JSON] = None, - client_secret: Optional["_models.SecretBase"] = None, - use_encrypted_endpoints: Optional[JSON] = None, - use_host_verification: Optional[JSON] = None, - use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_properties: Properties used to connect to Salesforce Marketing Cloud. It is - mutually exclusive with any other properties in the linked service. Type: object. - :paramtype connection_properties: JSON - :keyword client_id: The client ID associated with the Salesforce Marketing Cloud application. - Type: string (or Expression with resultType string). - :paramtype client_id: JSON - :keyword client_secret: The client secret associated with the Salesforce Marketing Cloud - application. Type: string (or Expression with resultType string). - :paramtype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :keyword use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted - using HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). - :paramtype use_encrypted_endpoints: JSON - :keyword use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. Type: boolean (or Expression with resultType boolean). - :paramtype use_host_verification: JSON - :keyword use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. Type: boolean (or Expression with resultType - boolean). - :paramtype use_peer_verification: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "SalesforceMarketingCloud" - self.connection_properties = connection_properties - self.client_id = client_id - self.client_secret = client_secret - self.use_encrypted_endpoints = use_encrypted_endpoints - self.use_host_verification = use_host_verification - self.use_peer_verification = use_peer_verification - self.encrypted_credential = encrypted_credential - - -class SalesforceMarketingCloudObjectDataset(Dataset): - """Salesforce Marketing Cloud dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SalesforceMarketingCloudObject" - self.table_name = table_name - - -class SalesforceMarketingCloudSource(TabularSource): - """A copy activity Salesforce Marketing Cloud source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "SalesforceMarketingCloudSource" - self.query = query - - -class SalesforceObjectDataset(Dataset): - """The Salesforce object dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar object_api_name: The Salesforce object API name. Type: string (or Expression with - resultType string). - :vartype object_api_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "object_api_name": {"key": "typeProperties.objectApiName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - object_api_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword object_api_name: The Salesforce object API name. Type: string (or Expression with - resultType string). - :paramtype object_api_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SalesforceObject" - self.object_api_name = object_api_name - - -class SalesforceServiceCloudLinkedService(LinkedService): - """Linked service for Salesforce Service Cloud. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar environment_url: The URL of Salesforce Service Cloud instance. Default is - 'https://login.salesforce.com'. To copy data from sandbox, specify - 'https://test.salesforce.com'. To copy data from custom domain, specify, for example, - 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - :vartype environment_url: JSON - :ivar username: The username for Basic authentication of the Salesforce instance. Type: string - (or Expression with resultType string). - :vartype username: JSON - :ivar password: The password for Basic authentication of the Salesforce instance. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar security_token: The security token is optional to remotely access Salesforce instance. - :vartype security_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar api_version: The Salesforce API version used in ADF. Type: string (or Expression with - resultType string). - :vartype api_version: JSON - :ivar extended_properties: Extended properties appended to the connection string. Type: string - (or Expression with resultType string). - :vartype extended_properties: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "environment_url": {"key": "typeProperties.environmentUrl", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "security_token": {"key": "typeProperties.securityToken", "type": "SecretBase"}, - "api_version": {"key": "typeProperties.apiVersion", "type": "object"}, - "extended_properties": {"key": "typeProperties.extendedProperties", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - environment_url: Optional[JSON] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - security_token: Optional["_models.SecretBase"] = None, - api_version: Optional[JSON] = None, - extended_properties: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword environment_url: The URL of Salesforce Service Cloud instance. Default is - 'https://login.salesforce.com'. To copy data from sandbox, specify - 'https://test.salesforce.com'. To copy data from custom domain, specify, for example, - 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - :paramtype environment_url: JSON - :keyword username: The username for Basic authentication of the Salesforce instance. Type: - string (or Expression with resultType string). - :paramtype username: JSON - :keyword password: The password for Basic authentication of the Salesforce instance. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword security_token: The security token is optional to remotely access Salesforce instance. - :paramtype security_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword api_version: The Salesforce API version used in ADF. Type: string (or Expression with - resultType string). - :paramtype api_version: JSON - :keyword extended_properties: Extended properties appended to the connection string. Type: - string (or Expression with resultType string). - :paramtype extended_properties: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "SalesforceServiceCloud" - self.environment_url = environment_url - self.username = username - self.password = password - self.security_token = security_token - self.api_version = api_version - self.extended_properties = extended_properties - self.encrypted_credential = encrypted_credential - - -class SalesforceServiceCloudObjectDataset(Dataset): - """The Salesforce Service Cloud object dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar object_api_name: The Salesforce Service Cloud object API name. Type: string (or - Expression with resultType string). - :vartype object_api_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "object_api_name": {"key": "typeProperties.objectApiName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - object_api_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword object_api_name: The Salesforce Service Cloud object API name. Type: string (or - Expression with resultType string). - :paramtype object_api_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SalesforceServiceCloudObject" - self.object_api_name = object_api_name - - -class SalesforceServiceCloudSink(CopySink): - """A copy activity Salesforce Service Cloud sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar write_behavior: The write behavior for the operation. Default is Insert. Known values - are: "Insert" and "Upsert". - :vartype write_behavior: str or ~azure.mgmt.datafactory.models.SalesforceSinkWriteBehavior - :ivar external_id_field_name: The name of the external ID field for upsert operation. Default - value is 'Id' column. Type: string (or Expression with resultType string). - :vartype external_id_field_name: JSON - :ivar ignore_null_values: The flag indicating whether or not to ignore null values from input - dataset (except key fields) during write operation. Default value is false. If set it to true, - it means ADF will leave the data in the destination object unchanged when doing upsert/update - operation and insert defined default value when doing insert operation, versus ADF will update - the data in the destination object to NULL when doing upsert/update operation and insert NULL - value when doing insert operation. Type: boolean (or Expression with resultType boolean). - :vartype ignore_null_values: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "str"}, - "external_id_field_name": {"key": "externalIdFieldName", "type": "object"}, - "ignore_null_values": {"key": "ignoreNullValues", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - write_behavior: Optional[Union[str, "_models.SalesforceSinkWriteBehavior"]] = None, - external_id_field_name: Optional[JSON] = None, - ignore_null_values: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword write_behavior: The write behavior for the operation. Default is Insert. Known values - are: "Insert" and "Upsert". - :paramtype write_behavior: str or ~azure.mgmt.datafactory.models.SalesforceSinkWriteBehavior - :keyword external_id_field_name: The name of the external ID field for upsert operation. - Default value is 'Id' column. Type: string (or Expression with resultType string). - :paramtype external_id_field_name: JSON - :keyword ignore_null_values: The flag indicating whether or not to ignore null values from - input dataset (except key fields) during write operation. Default value is false. If set it to - true, it means ADF will leave the data in the destination object unchanged when doing - upsert/update operation and insert defined default value when doing insert operation, versus - ADF will update the data in the destination object to NULL when doing upsert/update operation - and insert NULL value when doing insert operation. Type: boolean (or Expression with resultType - boolean). - :paramtype ignore_null_values: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "SalesforceServiceCloudSink" - self.write_behavior = write_behavior - self.external_id_field_name = external_id_field_name - self.ignore_null_values = ignore_null_values - - -class SalesforceServiceCloudSource(CopySource): - """A copy activity Salesforce Service Cloud source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query: Database query. Type: string (or Expression with resultType string). - :vartype query: JSON - :ivar read_behavior: The read behavior for the operation. Default is Query. Allowed values: - Query/QueryAll. Type: string (or Expression with resultType string). - :vartype read_behavior: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "read_behavior": {"key": "readBehavior", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query: Optional[JSON] = None, - read_behavior: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query: Database query. Type: string (or Expression with resultType string). - :paramtype query: JSON - :keyword read_behavior: The read behavior for the operation. Default is Query. Allowed values: - Query/QueryAll. Type: string (or Expression with resultType string). - :paramtype read_behavior: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "SalesforceServiceCloudSource" - self.query = query - self.read_behavior = read_behavior - self.additional_columns = additional_columns - - -class SalesforceServiceCloudV2LinkedService(LinkedService): - """Linked service for Salesforce Service Cloud V2. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar environment_url: The URL of Salesforce Service Cloud instance. For example, - 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - :vartype environment_url: JSON - :ivar authentication_type: The authentication type to be used to connect to the Salesforce. - Currently, we only support OAuth2ClientCredentials, it is also the default value. - :vartype authentication_type: JSON - :ivar client_id: The client Id for OAuth 2.0 Client Credentials Flow authentication of the - Salesforce instance. Type: string (or Expression with resultType string). - :vartype client_id: JSON - :ivar client_secret: The client secret for OAuth 2.0 Client Credentials Flow authentication of - the Salesforce instance. - :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :ivar api_version: The Salesforce API version used in ADF. The version must be larger than or - equal to 47.0 which is required by Salesforce BULK API 2.0. Type: string (or Expression with - resultType string). - :vartype api_version: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "environment_url": {"key": "typeProperties.environmentUrl", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "object"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "client_secret": {"key": "typeProperties.clientSecret", "type": "SecretBase"}, - "api_version": {"key": "typeProperties.apiVersion", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - environment_url: Optional[JSON] = None, - authentication_type: Optional[JSON] = None, - client_id: Optional[JSON] = None, - client_secret: Optional["_models.SecretBase"] = None, - api_version: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword environment_url: The URL of Salesforce Service Cloud instance. For example, - 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - :paramtype environment_url: JSON - :keyword authentication_type: The authentication type to be used to connect to the Salesforce. - Currently, we only support OAuth2ClientCredentials, it is also the default value. - :paramtype authentication_type: JSON - :keyword client_id: The client Id for OAuth 2.0 Client Credentials Flow authentication of the - Salesforce instance. Type: string (or Expression with resultType string). - :paramtype client_id: JSON - :keyword client_secret: The client secret for OAuth 2.0 Client Credentials Flow authentication - of the Salesforce instance. - :paramtype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :keyword api_version: The Salesforce API version used in ADF. The version must be larger than - or equal to 47.0 which is required by Salesforce BULK API 2.0. Type: string (or Expression with - resultType string). - :paramtype api_version: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "SalesforceServiceCloudV2" - self.environment_url = environment_url - self.authentication_type = authentication_type - self.client_id = client_id - self.client_secret = client_secret - self.api_version = api_version - self.encrypted_credential = encrypted_credential - - -class SalesforceServiceCloudV2ObjectDataset(Dataset): - """The Salesforce Service Cloud V2 object dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar object_api_name: The Salesforce Service Cloud V2 object API name. Type: string (or - Expression with resultType string). - :vartype object_api_name: JSON - :ivar report_id: The Salesforce Service Cloud V2 reportId. Type: string (or Expression with - resultType string). - :vartype report_id: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "object_api_name": {"key": "typeProperties.objectApiName", "type": "object"}, - "report_id": {"key": "typeProperties.reportId", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - object_api_name: Optional[JSON] = None, - report_id: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword object_api_name: The Salesforce Service Cloud V2 object API name. Type: string (or - Expression with resultType string). - :paramtype object_api_name: JSON - :keyword report_id: The Salesforce Service Cloud V2 reportId. Type: string (or Expression with - resultType string). - :paramtype report_id: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SalesforceServiceCloudV2Object" - self.object_api_name = object_api_name - self.report_id = report_id - - -class SalesforceServiceCloudV2Sink(CopySink): - """A copy activity Salesforce Service Cloud V2 sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar write_behavior: The write behavior for the operation. Default is Insert. Known values - are: "Insert" and "Upsert". - :vartype write_behavior: str or ~azure.mgmt.datafactory.models.SalesforceV2SinkWriteBehavior - :ivar external_id_field_name: The name of the external ID field for upsert operation. Default - value is 'Id' column. Type: string (or Expression with resultType string). - :vartype external_id_field_name: JSON - :ivar ignore_null_values: The flag indicating whether or not to ignore null values from input - dataset (except key fields) during write operation. Default value is false. If set it to true, - it means ADF will leave the data in the destination object unchanged when doing upsert/update - operation and insert defined default value when doing insert operation, versus ADF will update - the data in the destination object to NULL when doing upsert/update operation and insert NULL - value when doing insert operation. Type: boolean (or Expression with resultType boolean). - :vartype ignore_null_values: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "str"}, - "external_id_field_name": {"key": "externalIdFieldName", "type": "object"}, - "ignore_null_values": {"key": "ignoreNullValues", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - write_behavior: Optional[Union[str, "_models.SalesforceV2SinkWriteBehavior"]] = None, - external_id_field_name: Optional[JSON] = None, - ignore_null_values: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword write_behavior: The write behavior for the operation. Default is Insert. Known values - are: "Insert" and "Upsert". - :paramtype write_behavior: str or ~azure.mgmt.datafactory.models.SalesforceV2SinkWriteBehavior - :keyword external_id_field_name: The name of the external ID field for upsert operation. - Default value is 'Id' column. Type: string (or Expression with resultType string). - :paramtype external_id_field_name: JSON - :keyword ignore_null_values: The flag indicating whether or not to ignore null values from - input dataset (except key fields) during write operation. Default value is false. If set it to - true, it means ADF will leave the data in the destination object unchanged when doing - upsert/update operation and insert defined default value when doing insert operation, versus - ADF will update the data in the destination object to NULL when doing upsert/update operation - and insert NULL value when doing insert operation. Type: boolean (or Expression with resultType - boolean). - :paramtype ignore_null_values: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "SalesforceServiceCloudV2Sink" - self.write_behavior = write_behavior - self.external_id_field_name = external_id_field_name - self.ignore_null_values = ignore_null_values - - -class SalesforceServiceCloudV2Source(CopySource): - """A copy activity Salesforce Service Cloud V2 source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar soql_query: Deprecating, please use 'query' property instead. Type: string (or Expression - with resultType string). - :vartype soql_query: JSON - :ivar query: You can only use Salesforce Object Query Language (SOQL) query with limitations. - For SOQL limitations, see this article: - https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/queries.htm#SOQL%20Considerations. - If query is not specified, all the data of the Salesforce object specified in - ObjectApiName/reportId in dataset will be retrieved. Type: string (or Expression with - resultType string). - :vartype query: JSON - :ivar include_deleted_objects: This property control whether query result contains Deleted - objects. Default is false. Type: boolean (or Expression with resultType boolean). - :vartype include_deleted_objects: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "soql_query": {"key": "SOQLQuery", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "include_deleted_objects": {"key": "includeDeletedObjects", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - soql_query: Optional[JSON] = None, - query: Optional[JSON] = None, - include_deleted_objects: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword soql_query: Deprecating, please use 'query' property instead. Type: string (or - Expression with resultType string). - :paramtype soql_query: JSON - :keyword query: You can only use Salesforce Object Query Language (SOQL) query with - limitations. For SOQL limitations, see this article: - https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/queries.htm#SOQL%20Considerations. - If query is not specified, all the data of the Salesforce object specified in - ObjectApiName/reportId in dataset will be retrieved. Type: string (or Expression with - resultType string). - :paramtype query: JSON - :keyword include_deleted_objects: This property control whether query result contains Deleted - objects. Default is false. Type: boolean (or Expression with resultType boolean). - :paramtype include_deleted_objects: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "SalesforceServiceCloudV2Source" - self.soql_query = soql_query - self.query = query - self.include_deleted_objects = include_deleted_objects - self.additional_columns = additional_columns - - -class SalesforceSink(CopySink): - """A copy activity Salesforce sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar write_behavior: The write behavior for the operation. Default is Insert. Known values - are: "Insert" and "Upsert". - :vartype write_behavior: str or ~azure.mgmt.datafactory.models.SalesforceSinkWriteBehavior - :ivar external_id_field_name: The name of the external ID field for upsert operation. Default - value is 'Id' column. Type: string (or Expression with resultType string). - :vartype external_id_field_name: JSON - :ivar ignore_null_values: The flag indicating whether or not to ignore null values from input - dataset (except key fields) during write operation. Default value is false. If set it to true, - it means ADF will leave the data in the destination object unchanged when doing upsert/update - operation and insert defined default value when doing insert operation, versus ADF will update - the data in the destination object to NULL when doing upsert/update operation and insert NULL - value when doing insert operation. Type: boolean (or Expression with resultType boolean). - :vartype ignore_null_values: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "str"}, - "external_id_field_name": {"key": "externalIdFieldName", "type": "object"}, - "ignore_null_values": {"key": "ignoreNullValues", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - write_behavior: Optional[Union[str, "_models.SalesforceSinkWriteBehavior"]] = None, - external_id_field_name: Optional[JSON] = None, - ignore_null_values: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword write_behavior: The write behavior for the operation. Default is Insert. Known values - are: "Insert" and "Upsert". - :paramtype write_behavior: str or ~azure.mgmt.datafactory.models.SalesforceSinkWriteBehavior - :keyword external_id_field_name: The name of the external ID field for upsert operation. - Default value is 'Id' column. Type: string (or Expression with resultType string). - :paramtype external_id_field_name: JSON - :keyword ignore_null_values: The flag indicating whether or not to ignore null values from - input dataset (except key fields) during write operation. Default value is false. If set it to - true, it means ADF will leave the data in the destination object unchanged when doing - upsert/update operation and insert defined default value when doing insert operation, versus - ADF will update the data in the destination object to NULL when doing upsert/update operation - and insert NULL value when doing insert operation. Type: boolean (or Expression with resultType - boolean). - :paramtype ignore_null_values: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "SalesforceSink" - self.write_behavior = write_behavior - self.external_id_field_name = external_id_field_name - self.ignore_null_values = ignore_null_values - - -class SalesforceSource(TabularSource): - """A copy activity Salesforce source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: Database query. Type: string (or Expression with resultType string). - :vartype query: JSON - :ivar read_behavior: The read behavior for the operation. Default is Query. Allowed values: - Query/QueryAll. Type: string (or Expression with resultType string). - :vartype read_behavior: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "read_behavior": {"key": "readBehavior", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - read_behavior: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: Database query. Type: string (or Expression with resultType string). - :paramtype query: JSON - :keyword read_behavior: The read behavior for the operation. Default is Query. Allowed values: - Query/QueryAll. Type: string (or Expression with resultType string). - :paramtype read_behavior: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "SalesforceSource" - self.query = query - self.read_behavior = read_behavior - - -class SalesforceV2LinkedService(LinkedService): - """Linked service for Salesforce V2. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar environment_url: The URL of Salesforce instance. For example, - 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - :vartype environment_url: JSON - :ivar authentication_type: The authentication type to be used to connect to the Salesforce. - Currently, we only support OAuth2ClientCredentials, it is also the default value. - :vartype authentication_type: JSON - :ivar client_id: The client Id for OAuth 2.0 Client Credentials Flow authentication of the - Salesforce instance. Type: string (or Expression with resultType string). - :vartype client_id: JSON - :ivar client_secret: The client secret for OAuth 2.0 Client Credentials Flow authentication of - the Salesforce instance. - :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :ivar api_version: The Salesforce API version used in ADF. The version must be larger than or - equal to 47.0 which is required by Salesforce BULK API 2.0. Type: string (or Expression with - resultType string). - :vartype api_version: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "environment_url": {"key": "typeProperties.environmentUrl", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "object"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "client_secret": {"key": "typeProperties.clientSecret", "type": "SecretBase"}, - "api_version": {"key": "typeProperties.apiVersion", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - environment_url: Optional[JSON] = None, - authentication_type: Optional[JSON] = None, - client_id: Optional[JSON] = None, - client_secret: Optional["_models.SecretBase"] = None, - api_version: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword environment_url: The URL of Salesforce instance. For example, - 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - :paramtype environment_url: JSON - :keyword authentication_type: The authentication type to be used to connect to the Salesforce. - Currently, we only support OAuth2ClientCredentials, it is also the default value. - :paramtype authentication_type: JSON - :keyword client_id: The client Id for OAuth 2.0 Client Credentials Flow authentication of the - Salesforce instance. Type: string (or Expression with resultType string). - :paramtype client_id: JSON - :keyword client_secret: The client secret for OAuth 2.0 Client Credentials Flow authentication - of the Salesforce instance. - :paramtype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :keyword api_version: The Salesforce API version used in ADF. The version must be larger than - or equal to 47.0 which is required by Salesforce BULK API 2.0. Type: string (or Expression with - resultType string). - :paramtype api_version: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "SalesforceV2" - self.environment_url = environment_url - self.authentication_type = authentication_type - self.client_id = client_id - self.client_secret = client_secret - self.api_version = api_version - self.encrypted_credential = encrypted_credential - - -class SalesforceV2ObjectDataset(Dataset): - """The Salesforce V2 object dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar object_api_name: The Salesforce V2 object API name. Type: string (or Expression with - resultType string). - :vartype object_api_name: JSON - :ivar report_id: The Salesforce V2 report Id. Type: string (or Expression with resultType - string). - :vartype report_id: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "object_api_name": {"key": "typeProperties.objectApiName", "type": "object"}, - "report_id": {"key": "typeProperties.reportId", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - object_api_name: Optional[JSON] = None, - report_id: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword object_api_name: The Salesforce V2 object API name. Type: string (or Expression with - resultType string). - :paramtype object_api_name: JSON - :keyword report_id: The Salesforce V2 report Id. Type: string (or Expression with resultType - string). - :paramtype report_id: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SalesforceV2Object" - self.object_api_name = object_api_name - self.report_id = report_id - - -class SalesforceV2Sink(CopySink): - """A copy activity Salesforce V2 sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar write_behavior: The write behavior for the operation. Default is Insert. Known values - are: "Insert" and "Upsert". - :vartype write_behavior: str or ~azure.mgmt.datafactory.models.SalesforceV2SinkWriteBehavior - :ivar external_id_field_name: The name of the external ID field for upsert operation. Default - value is 'Id' column. Type: string (or Expression with resultType string). - :vartype external_id_field_name: JSON - :ivar ignore_null_values: The flag indicating whether or not to ignore null values from input - dataset (except key fields) during write operation. Default value is false. If set it to true, - it means ADF will leave the data in the destination object unchanged when doing upsert/update - operation and insert defined default value when doing insert operation, versus ADF will update - the data in the destination object to NULL when doing upsert/update operation and insert NULL - value when doing insert operation. Type: boolean (or Expression with resultType boolean). - :vartype ignore_null_values: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "str"}, - "external_id_field_name": {"key": "externalIdFieldName", "type": "object"}, - "ignore_null_values": {"key": "ignoreNullValues", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - write_behavior: Optional[Union[str, "_models.SalesforceV2SinkWriteBehavior"]] = None, - external_id_field_name: Optional[JSON] = None, - ignore_null_values: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword write_behavior: The write behavior for the operation. Default is Insert. Known values - are: "Insert" and "Upsert". - :paramtype write_behavior: str or ~azure.mgmt.datafactory.models.SalesforceV2SinkWriteBehavior - :keyword external_id_field_name: The name of the external ID field for upsert operation. - Default value is 'Id' column. Type: string (or Expression with resultType string). - :paramtype external_id_field_name: JSON - :keyword ignore_null_values: The flag indicating whether or not to ignore null values from - input dataset (except key fields) during write operation. Default value is false. If set it to - true, it means ADF will leave the data in the destination object unchanged when doing - upsert/update operation and insert defined default value when doing insert operation, versus - ADF will update the data in the destination object to NULL when doing upsert/update operation - and insert NULL value when doing insert operation. Type: boolean (or Expression with resultType - boolean). - :paramtype ignore_null_values: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "SalesforceV2Sink" - self.write_behavior = write_behavior - self.external_id_field_name = external_id_field_name - self.ignore_null_values = ignore_null_values - - -class SalesforceV2Source(TabularSource): - """A copy activity Salesforce V2 source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar soql_query: Deprecating, please use 'query' property instead. Type: string (or Expression - with resultType string). - :vartype soql_query: JSON - :ivar query: You can only use Salesforce Object Query Language (SOQL) query with limitations. - For SOQL limitations, see this article: - https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/queries.htm#SOQL%20Considerations. - If query is not specified, all the data of the Salesforce object specified in - ObjectApiName/reportId in dataset will be retrieved. Type: string (or Expression with - resultType string). - :vartype query: JSON - :ivar include_deleted_objects: This property control whether query result contains Deleted - objects. Default is false. Type: boolean (or Expression with resultType boolean). - :vartype include_deleted_objects: JSON - :ivar page_size: Page size for each http request, too large pageSize will caused timeout, - default 300,000. Type: integer (or Expression with resultType integer). - :vartype page_size: JSON - :ivar partition_option: Partition option for the SalesforceV2 connector in copy activity, - AutoDetect or None. Type: string (or Expression with resultType string). - :vartype partition_option: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "soql_query": {"key": "SOQLQuery", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "include_deleted_objects": {"key": "includeDeletedObjects", "type": "object"}, - "page_size": {"key": "pageSize", "type": "object"}, - "partition_option": {"key": "partitionOption", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - soql_query: Optional[JSON] = None, - query: Optional[JSON] = None, - include_deleted_objects: Optional[JSON] = None, - page_size: Optional[JSON] = None, - partition_option: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword soql_query: Deprecating, please use 'query' property instead. Type: string (or - Expression with resultType string). - :paramtype soql_query: JSON - :keyword query: You can only use Salesforce Object Query Language (SOQL) query with - limitations. For SOQL limitations, see this article: - https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/queries.htm#SOQL%20Considerations. - If query is not specified, all the data of the Salesforce object specified in - ObjectApiName/reportId in dataset will be retrieved. Type: string (or Expression with - resultType string). - :paramtype query: JSON - :keyword include_deleted_objects: This property control whether query result contains Deleted - objects. Default is false. Type: boolean (or Expression with resultType boolean). - :paramtype include_deleted_objects: JSON - :keyword page_size: Page size for each http request, too large pageSize will caused timeout, - default 300,000. Type: integer (or Expression with resultType integer). - :paramtype page_size: JSON - :keyword partition_option: Partition option for the SalesforceV2 connector in copy activity, - AutoDetect or None. Type: string (or Expression with resultType string). - :paramtype partition_option: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "SalesforceV2Source" - self.soql_query = soql_query - self.query = query - self.include_deleted_objects = include_deleted_objects - self.page_size = page_size - self.partition_option = partition_option - - -class SapBwCubeDataset(Dataset): - """The SAP BW cube dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SapBwCube" - - -class SapBWLinkedService(LinkedService): - """SAP Business Warehouse Linked Service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar server: Host name of the SAP BW instance. Type: string (or Expression with resultType - string). Required. - :vartype server: JSON - :ivar system_number: System number of the BW system. (Usually a two-digit decimal number - represented as a string.) Type: string (or Expression with resultType string). Required. - :vartype system_number: JSON - :ivar client_id: Client ID of the client on the BW system. (Usually a three-digit decimal - number represented as a string) Type: string (or Expression with resultType string). Required. - :vartype client_id: JSON - :ivar user_name: Username to access the SAP BW server. Type: string (or Expression with - resultType string). - :vartype user_name: JSON - :ivar password: Password to access the SAP BW server. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "server": {"required": True}, - "system_number": {"required": True}, - "client_id": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "system_number": {"key": "typeProperties.systemNumber", "type": "object"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - server: JSON, - system_number: JSON, - client_id: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword server: Host name of the SAP BW instance. Type: string (or Expression with resultType - string). Required. - :paramtype server: JSON - :keyword system_number: System number of the BW system. (Usually a two-digit decimal number - represented as a string.) Type: string (or Expression with resultType string). Required. - :paramtype system_number: JSON - :keyword client_id: Client ID of the client on the BW system. (Usually a three-digit decimal - number represented as a string) Type: string (or Expression with resultType string). Required. - :paramtype client_id: JSON - :keyword user_name: Username to access the SAP BW server. Type: string (or Expression with - resultType string). - :paramtype user_name: JSON - :keyword password: Password to access the SAP BW server. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "SapBW" - self.server = server - self.system_number = system_number - self.client_id = client_id - self.user_name = user_name - self.password = password - self.encrypted_credential = encrypted_credential - - -class SapBwSource(TabularSource): - """A copy activity source for SapBW server via MDX. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: MDX query. Type: string (or Expression with resultType string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: MDX query. Type: string (or Expression with resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "SapBwSource" - self.query = query - - -class SapCloudForCustomerLinkedService(LinkedService): - """Linked service for SAP Cloud for Customer. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar url: The URL of SAP Cloud for Customer OData API. For example, - '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: string (or Expression with - resultType string). Required. - :vartype url: JSON - :ivar username: The username for Basic authentication. Type: string (or Expression with - resultType string). - :vartype username: JSON - :ivar password: The password for Basic authentication. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Either encryptedCredential or - username/password must be provided. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "url": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "url": {"key": "typeProperties.url", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - url: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword url: The URL of SAP Cloud for Customer OData API. For example, - '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: string (or Expression with - resultType string). Required. - :paramtype url: JSON - :keyword username: The username for Basic authentication. Type: string (or Expression with - resultType string). - :paramtype username: JSON - :keyword password: The password for Basic authentication. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Either encryptedCredential or - username/password must be provided. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "SapCloudForCustomer" - self.url = url - self.username = username - self.password = password - self.encrypted_credential = encrypted_credential - - -class SapCloudForCustomerResourceDataset(Dataset): - """The path of the SAP Cloud for Customer OData entity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar path: The path of the SAP Cloud for Customer OData entity. Type: string (or Expression - with resultType string). Required. - :vartype path: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - "path": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "path": {"key": "typeProperties.path", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - path: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword path: The path of the SAP Cloud for Customer OData entity. Type: string (or Expression - with resultType string). Required. - :paramtype path: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SapCloudForCustomerResource" - self.path = path - - -class SapCloudForCustomerSink(CopySink): - """A copy activity SAP Cloud for Customer sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar write_behavior: The write behavior for the operation. Default is 'Insert'. Known values - are: "Insert" and "Update". - :vartype write_behavior: str or - ~azure.mgmt.datafactory.models.SapCloudForCustomerSinkWriteBehavior - :ivar http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the timeout - to get a response, not the timeout to read response data. Default value: 00:05:00. Type: string - (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype http_request_timeout: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "str"}, - "http_request_timeout": {"key": "httpRequestTimeout", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - write_behavior: Optional[Union[str, "_models.SapCloudForCustomerSinkWriteBehavior"]] = None, - http_request_timeout: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword write_behavior: The write behavior for the operation. Default is 'Insert'. Known - values are: "Insert" and "Update". - :paramtype write_behavior: str or - ~azure.mgmt.datafactory.models.SapCloudForCustomerSinkWriteBehavior - :keyword http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the - timeout to get a response, not the timeout to read response data. Default value: 00:05:00. - Type: string (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype http_request_timeout: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "SapCloudForCustomerSink" - self.write_behavior = write_behavior - self.http_request_timeout = http_request_timeout - - -class SapCloudForCustomerSource(TabularSource): - """A copy activity source for SAP Cloud for Customer source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: SAP Cloud for Customer OData query. For example, "$top=1". Type: string (or - Expression with resultType string). - :vartype query: JSON - :ivar http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the timeout - to get a response, not the timeout to read response data. Default value: 00:05:00. Type: string - (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype http_request_timeout: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "http_request_timeout": {"key": "httpRequestTimeout", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - http_request_timeout: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: SAP Cloud for Customer OData query. For example, "$top=1". Type: string (or - Expression with resultType string). - :paramtype query: JSON - :keyword http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the - timeout to get a response, not the timeout to read response data. Default value: 00:05:00. - Type: string (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype http_request_timeout: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "SapCloudForCustomerSource" - self.query = query - self.http_request_timeout = http_request_timeout - - -class SapEccLinkedService(LinkedService): - """Linked service for SAP ERP Central Component(SAP ECC). - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar url: The URL of SAP ECC OData API. For example, - '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or Expression with - resultType string). Required. - :vartype url: JSON - :ivar username: The username for Basic authentication. Type: string (or Expression with - resultType string). - :vartype username: JSON - :ivar password: The password for Basic authentication. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Either encryptedCredential or - username/password must be provided. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "url": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "url": {"key": "typeProperties.url", "type": "object"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - url: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword url: The URL of SAP ECC OData API. For example, - '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or Expression with - resultType string). Required. - :paramtype url: JSON - :keyword username: The username for Basic authentication. Type: string (or Expression with - resultType string). - :paramtype username: JSON - :keyword password: The password for Basic authentication. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Either encryptedCredential or - username/password must be provided. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "SapEcc" - self.url = url - self.username = username - self.password = password - self.encrypted_credential = encrypted_credential - - -class SapEccResourceDataset(Dataset): - """The path of the SAP ECC OData entity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar path: The path of the SAP ECC OData entity. Type: string (or Expression with resultType - string). Required. - :vartype path: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - "path": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "path": {"key": "typeProperties.path", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - path: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword path: The path of the SAP ECC OData entity. Type: string (or Expression with - resultType string). Required. - :paramtype path: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SapEccResource" - self.path = path - - -class SapEccSource(TabularSource): - """A copy activity source for SAP ECC source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: SAP ECC OData query. For example, "$top=1". Type: string (or Expression with - resultType string). - :vartype query: JSON - :ivar http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the timeout - to get a response, not the timeout to read response data. Default value: 00:05:00. Type: string - (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype http_request_timeout: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "http_request_timeout": {"key": "httpRequestTimeout", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - http_request_timeout: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: SAP ECC OData query. For example, "$top=1". Type: string (or Expression with - resultType string). - :paramtype query: JSON - :keyword http_request_timeout: The timeout (TimeSpan) to get an HTTP response. It is the - timeout to get a response, not the timeout to read response data. Default value: 00:05:00. - Type: string (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype http_request_timeout: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "SapEccSource" - self.query = query - self.http_request_timeout = http_request_timeout - - -class SapHanaLinkedService(LinkedService): - """SAP HANA Linked Service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: SAP HANA ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar server: Host name of the SAP HANA server. Type: string (or Expression with resultType - string). - :vartype server: JSON - :ivar authentication_type: The authentication type to be used to connect to the SAP HANA - server. Known values are: "Basic" and "Windows". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.SapHanaAuthenticationType - :ivar user_name: Username to access the SAP HANA server. Type: string (or Expression with - resultType string). - :vartype user_name: JSON - :ivar password: Password to access the SAP HANA server. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_string: Optional[JSON] = None, - server: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.SapHanaAuthenticationType"]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: SAP HANA ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword server: Host name of the SAP HANA server. Type: string (or Expression with resultType - string). - :paramtype server: JSON - :keyword authentication_type: The authentication type to be used to connect to the SAP HANA - server. Known values are: "Basic" and "Windows". - :paramtype authentication_type: str or ~azure.mgmt.datafactory.models.SapHanaAuthenticationType - :keyword user_name: Username to access the SAP HANA server. Type: string (or Expression with - resultType string). - :paramtype user_name: JSON - :keyword password: Password to access the SAP HANA server. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "SapHana" - self.connection_string = connection_string - self.server = server - self.authentication_type = authentication_type - self.user_name = user_name - self.password = password - self.encrypted_credential = encrypted_credential - - -class SapHanaPartitionSettings(_serialization.Model): - """The settings that will be leveraged for SAP HANA source partitioning. - - :ivar partition_column_name: The name of the column that will be used for proceeding range - partitioning. Type: string (or Expression with resultType string). - :vartype partition_column_name: JSON - """ - - _attribute_map = { - "partition_column_name": {"key": "partitionColumnName", "type": "object"}, - } - - def __init__(self, *, partition_column_name: Optional[JSON] = None, **kwargs: Any) -> None: - """ - :keyword partition_column_name: The name of the column that will be used for proceeding range - partitioning. Type: string (or Expression with resultType string). - :paramtype partition_column_name: JSON - """ - super().__init__(**kwargs) - self.partition_column_name = partition_column_name - - -class SapHanaSource(TabularSource): - """A copy activity source for SAP HANA source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: SAP HANA Sql query. Type: string (or Expression with resultType string). - :vartype query: JSON - :ivar packet_size: The packet size of data read from SAP HANA. Type: integer(or Expression with - resultType integer). - :vartype packet_size: JSON - :ivar partition_option: The partition mechanism that will be used for SAP HANA read in - parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "SapHanaDynamicRange". - :vartype partition_option: JSON - :ivar partition_settings: The settings that will be leveraged for SAP HANA source partitioning. - :vartype partition_settings: ~azure.mgmt.datafactory.models.SapHanaPartitionSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "packet_size": {"key": "packetSize", "type": "object"}, - "partition_option": {"key": "partitionOption", "type": "object"}, - "partition_settings": {"key": "partitionSettings", "type": "SapHanaPartitionSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - packet_size: Optional[JSON] = None, - partition_option: Optional[JSON] = None, - partition_settings: Optional["_models.SapHanaPartitionSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: SAP HANA Sql query. Type: string (or Expression with resultType string). - :paramtype query: JSON - :keyword packet_size: The packet size of data read from SAP HANA. Type: integer(or Expression - with resultType integer). - :paramtype packet_size: JSON - :keyword partition_option: The partition mechanism that will be used for SAP HANA read in - parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "SapHanaDynamicRange". - :paramtype partition_option: JSON - :keyword partition_settings: The settings that will be leveraged for SAP HANA source - partitioning. - :paramtype partition_settings: ~azure.mgmt.datafactory.models.SapHanaPartitionSettings - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "SapHanaSource" - self.query = query - self.packet_size = packet_size - self.partition_option = partition_option - self.partition_settings = partition_settings - - -class SapHanaTableDataset(Dataset): - """SAP HANA Table properties. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar schema_type_properties_schema: The schema name of SAP HANA. Type: string (or Expression - with resultType string). - :vartype schema_type_properties_schema: JSON - :ivar table: The table name of SAP HANA. Type: string (or Expression with resultType string). - :vartype table: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - schema_type_properties_schema: Optional[JSON] = None, - table: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword schema_type_properties_schema: The schema name of SAP HANA. Type: string (or - Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - :keyword table: The table name of SAP HANA. Type: string (or Expression with resultType - string). - :paramtype table: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SapHanaTable" - self.schema_type_properties_schema = schema_type_properties_schema - self.table = table - - -class SapOdpLinkedService(LinkedService): - """SAP ODP Linked Service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar server: Host name of the SAP instance where the table is located. Type: string (or - Expression with resultType string). - :vartype server: JSON - :ivar system_number: System number of the SAP system where the table is located. (Usually a - two-digit decimal number represented as a string.) Type: string (or Expression with resultType - string). - :vartype system_number: JSON - :ivar client_id: Client ID of the client on the SAP system where the table is located. (Usually - a three-digit decimal number represented as a string) Type: string (or Expression with - resultType string). - :vartype client_id: JSON - :ivar language: Language of the SAP system where the table is located. The default value is EN. - Type: string (or Expression with resultType string). - :vartype language: JSON - :ivar system_id: SystemID of the SAP system where the table is located. Type: string (or - Expression with resultType string). - :vartype system_id: JSON - :ivar user_name: Username to access the SAP server where the table is located. Type: string (or - Expression with resultType string). - :vartype user_name: JSON - :ivar password: Password to access the SAP server where the table is located. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar message_server: The hostname of the SAP Message Server. Type: string (or Expression with - resultType string). - :vartype message_server: JSON - :ivar message_server_service: The service name or port number of the Message Server. Type: - string (or Expression with resultType string). - :vartype message_server_service: JSON - :ivar snc_mode: SNC activation flag (Boolean) to access the SAP server where the table is - located. Type: boolean (or Expression with resultType boolean). - :vartype snc_mode: JSON - :ivar snc_my_name: Initiator's SNC name to access the SAP server where the table is located. - Type: string (or Expression with resultType string). - :vartype snc_my_name: JSON - :ivar snc_partner_name: Communication partner's SNC name to access the SAP server where the - table is located. Type: string (or Expression with resultType string). - :vartype snc_partner_name: JSON - :ivar snc_library_path: External security product's library to access the SAP server where the - table is located. Type: string (or Expression with resultType string). - :vartype snc_library_path: JSON - :ivar snc_qop: SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string - (or Expression with resultType string). - :vartype snc_qop: JSON - :ivar x509_certificate_path: SNC X509 certificate file path. Type: string (or Expression with - resultType string). - :vartype x509_certificate_path: JSON - :ivar logon_group: The Logon Group for the SAP System. Type: string (or Expression with - resultType string). - :vartype logon_group: JSON - :ivar subscriber_name: The subscriber name. Type: string (or Expression with resultType - string). - :vartype subscriber_name: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "system_number": {"key": "typeProperties.systemNumber", "type": "object"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "language": {"key": "typeProperties.language", "type": "object"}, - "system_id": {"key": "typeProperties.systemId", "type": "object"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "message_server": {"key": "typeProperties.messageServer", "type": "object"}, - "message_server_service": {"key": "typeProperties.messageServerService", "type": "object"}, - "snc_mode": {"key": "typeProperties.sncMode", "type": "object"}, - "snc_my_name": {"key": "typeProperties.sncMyName", "type": "object"}, - "snc_partner_name": {"key": "typeProperties.sncPartnerName", "type": "object"}, - "snc_library_path": {"key": "typeProperties.sncLibraryPath", "type": "object"}, - "snc_qop": {"key": "typeProperties.sncQop", "type": "object"}, - "x509_certificate_path": {"key": "typeProperties.x509CertificatePath", "type": "object"}, - "logon_group": {"key": "typeProperties.logonGroup", "type": "object"}, - "subscriber_name": {"key": "typeProperties.subscriberName", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - server: Optional[JSON] = None, - system_number: Optional[JSON] = None, - client_id: Optional[JSON] = None, - language: Optional[JSON] = None, - system_id: Optional[JSON] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - message_server: Optional[JSON] = None, - message_server_service: Optional[JSON] = None, - snc_mode: Optional[JSON] = None, - snc_my_name: Optional[JSON] = None, - snc_partner_name: Optional[JSON] = None, - snc_library_path: Optional[JSON] = None, - snc_qop: Optional[JSON] = None, - x509_certificate_path: Optional[JSON] = None, - logon_group: Optional[JSON] = None, - subscriber_name: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword server: Host name of the SAP instance where the table is located. Type: string (or - Expression with resultType string). - :paramtype server: JSON - :keyword system_number: System number of the SAP system where the table is located. (Usually a - two-digit decimal number represented as a string.) Type: string (or Expression with resultType - string). - :paramtype system_number: JSON - :keyword client_id: Client ID of the client on the SAP system where the table is located. - (Usually a three-digit decimal number represented as a string) Type: string (or Expression with - resultType string). - :paramtype client_id: JSON - :keyword language: Language of the SAP system where the table is located. The default value is - EN. Type: string (or Expression with resultType string). - :paramtype language: JSON - :keyword system_id: SystemID of the SAP system where the table is located. Type: string (or - Expression with resultType string). - :paramtype system_id: JSON - :keyword user_name: Username to access the SAP server where the table is located. Type: string - (or Expression with resultType string). - :paramtype user_name: JSON - :keyword password: Password to access the SAP server where the table is located. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword message_server: The hostname of the SAP Message Server. Type: string (or Expression - with resultType string). - :paramtype message_server: JSON - :keyword message_server_service: The service name or port number of the Message Server. Type: - string (or Expression with resultType string). - :paramtype message_server_service: JSON - :keyword snc_mode: SNC activation flag (Boolean) to access the SAP server where the table is - located. Type: boolean (or Expression with resultType boolean). - :paramtype snc_mode: JSON - :keyword snc_my_name: Initiator's SNC name to access the SAP server where the table is located. - Type: string (or Expression with resultType string). - :paramtype snc_my_name: JSON - :keyword snc_partner_name: Communication partner's SNC name to access the SAP server where the - table is located. Type: string (or Expression with resultType string). - :paramtype snc_partner_name: JSON - :keyword snc_library_path: External security product's library to access the SAP server where - the table is located. Type: string (or Expression with resultType string). - :paramtype snc_library_path: JSON - :keyword snc_qop: SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string - (or Expression with resultType string). - :paramtype snc_qop: JSON - :keyword x509_certificate_path: SNC X509 certificate file path. Type: string (or Expression - with resultType string). - :paramtype x509_certificate_path: JSON - :keyword logon_group: The Logon Group for the SAP System. Type: string (or Expression with - resultType string). - :paramtype logon_group: JSON - :keyword subscriber_name: The subscriber name. Type: string (or Expression with resultType - string). - :paramtype subscriber_name: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "SapOdp" - self.server = server - self.system_number = system_number - self.client_id = client_id - self.language = language - self.system_id = system_id - self.user_name = user_name - self.password = password - self.message_server = message_server - self.message_server_service = message_server_service - self.snc_mode = snc_mode - self.snc_my_name = snc_my_name - self.snc_partner_name = snc_partner_name - self.snc_library_path = snc_library_path - self.snc_qop = snc_qop - self.x509_certificate_path = x509_certificate_path - self.logon_group = logon_group - self.subscriber_name = subscriber_name - self.encrypted_credential = encrypted_credential - - -class SapOdpResourceDataset(Dataset): - """SAP ODP Resource properties. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar context: The context of the SAP ODP Object. Type: string (or Expression with resultType - string). Required. - :vartype context: JSON - :ivar object_name: The name of the SAP ODP Object. Type: string (or Expression with resultType - string). Required. - :vartype object_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - "context": {"required": True}, - "object_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "context": {"key": "typeProperties.context", "type": "object"}, - "object_name": {"key": "typeProperties.objectName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - context: JSON, - object_name: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword context: The context of the SAP ODP Object. Type: string (or Expression with - resultType string). Required. - :paramtype context: JSON - :keyword object_name: The name of the SAP ODP Object. Type: string (or Expression with - resultType string). Required. - :paramtype object_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SapOdpResource" - self.context = context - self.object_name = object_name - - -class SapOdpSource(TabularSource): - """A copy activity source for SAP ODP source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar extraction_mode: The extraction mode. Allowed value include: Full, Delta and Recovery. - The default value is Full. Type: string (or Expression with resultType string). - :vartype extraction_mode: JSON - :ivar subscriber_process: The subscriber process to manage the delta process. Type: string (or - Expression with resultType string). - :vartype subscriber_process: JSON - :ivar selection: Specifies the selection conditions from source data. Type: array of - objects(selection) (or Expression with resultType array of objects). - :vartype selection: JSON - :ivar projection: Specifies the columns to be selected from source data. Type: array of - objects(projection) (or Expression with resultType array of objects). - :vartype projection: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "extraction_mode": {"key": "extractionMode", "type": "object"}, - "subscriber_process": {"key": "subscriberProcess", "type": "object"}, - "selection": {"key": "selection", "type": "object"}, - "projection": {"key": "projection", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - extraction_mode: Optional[JSON] = None, - subscriber_process: Optional[JSON] = None, - selection: Optional[JSON] = None, - projection: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword extraction_mode: The extraction mode. Allowed value include: Full, Delta and Recovery. - The default value is Full. Type: string (or Expression with resultType string). - :paramtype extraction_mode: JSON - :keyword subscriber_process: The subscriber process to manage the delta process. Type: string - (or Expression with resultType string). - :paramtype subscriber_process: JSON - :keyword selection: Specifies the selection conditions from source data. Type: array of - objects(selection) (or Expression with resultType array of objects). - :paramtype selection: JSON - :keyword projection: Specifies the columns to be selected from source data. Type: array of - objects(projection) (or Expression with resultType array of objects). - :paramtype projection: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "SapOdpSource" - self.extraction_mode = extraction_mode - self.subscriber_process = subscriber_process - self.selection = selection - self.projection = projection - - -class SapOpenHubLinkedService(LinkedService): - """SAP Business Warehouse Open Hub Destination Linked Service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar server: Host name of the SAP BW instance where the open hub destination is located. Type: - string (or Expression with resultType string). - :vartype server: JSON - :ivar system_number: System number of the BW system where the open hub destination is located. - (Usually a two-digit decimal number represented as a string.) Type: string (or Expression with - resultType string). - :vartype system_number: JSON - :ivar client_id: Client ID of the client on the BW system where the open hub destination is - located. (Usually a three-digit decimal number represented as a string) Type: string (or - Expression with resultType string). - :vartype client_id: JSON - :ivar language: Language of the BW system where the open hub destination is located. The - default value is EN. Type: string (or Expression with resultType string). - :vartype language: JSON - :ivar system_id: SystemID of the SAP system where the table is located. Type: string (or - Expression with resultType string). - :vartype system_id: JSON - :ivar user_name: Username to access the SAP BW server where the open hub destination is - located. Type: string (or Expression with resultType string). - :vartype user_name: JSON - :ivar password: Password to access the SAP BW server where the open hub destination is located. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar message_server: The hostname of the SAP Message Server. Type: string (or Expression with - resultType string). - :vartype message_server: JSON - :ivar message_server_service: The service name or port number of the Message Server. Type: - string (or Expression with resultType string). - :vartype message_server_service: JSON - :ivar logon_group: The Logon Group for the SAP System. Type: string (or Expression with - resultType string). - :vartype logon_group: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "system_number": {"key": "typeProperties.systemNumber", "type": "object"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "language": {"key": "typeProperties.language", "type": "object"}, - "system_id": {"key": "typeProperties.systemId", "type": "object"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "message_server": {"key": "typeProperties.messageServer", "type": "object"}, - "message_server_service": {"key": "typeProperties.messageServerService", "type": "object"}, - "logon_group": {"key": "typeProperties.logonGroup", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - server: Optional[JSON] = None, - system_number: Optional[JSON] = None, - client_id: Optional[JSON] = None, - language: Optional[JSON] = None, - system_id: Optional[JSON] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - message_server: Optional[JSON] = None, - message_server_service: Optional[JSON] = None, - logon_group: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword server: Host name of the SAP BW instance where the open hub destination is located. - Type: string (or Expression with resultType string). - :paramtype server: JSON - :keyword system_number: System number of the BW system where the open hub destination is - located. (Usually a two-digit decimal number represented as a string.) Type: string (or - Expression with resultType string). - :paramtype system_number: JSON - :keyword client_id: Client ID of the client on the BW system where the open hub destination is - located. (Usually a three-digit decimal number represented as a string) Type: string (or - Expression with resultType string). - :paramtype client_id: JSON - :keyword language: Language of the BW system where the open hub destination is located. The - default value is EN. Type: string (or Expression with resultType string). - :paramtype language: JSON - :keyword system_id: SystemID of the SAP system where the table is located. Type: string (or - Expression with resultType string). - :paramtype system_id: JSON - :keyword user_name: Username to access the SAP BW server where the open hub destination is - located. Type: string (or Expression with resultType string). - :paramtype user_name: JSON - :keyword password: Password to access the SAP BW server where the open hub destination is - located. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword message_server: The hostname of the SAP Message Server. Type: string (or Expression - with resultType string). - :paramtype message_server: JSON - :keyword message_server_service: The service name or port number of the Message Server. Type: - string (or Expression with resultType string). - :paramtype message_server_service: JSON - :keyword logon_group: The Logon Group for the SAP System. Type: string (or Expression with - resultType string). - :paramtype logon_group: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "SapOpenHub" - self.server = server - self.system_number = system_number - self.client_id = client_id - self.language = language - self.system_id = system_id - self.user_name = user_name - self.password = password - self.message_server = message_server - self.message_server_service = message_server_service - self.logon_group = logon_group - self.encrypted_credential = encrypted_credential - - -class SapOpenHubSource(TabularSource): - """A copy activity source for SAP Business Warehouse Open Hub Destination source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar exclude_last_request: Whether to exclude the records of the last request. The default - value is true. Type: boolean (or Expression with resultType boolean). - :vartype exclude_last_request: JSON - :ivar base_request_id: The ID of request for delta loading. Once it is set, only data with - requestId larger than the value of this property will be retrieved. The default value is 0. - Type: integer (or Expression with resultType integer ). - :vartype base_request_id: JSON - :ivar custom_rfc_read_table_function_module: Specifies the custom RFC function module that will - be used to read data from SAP Table. Type: string (or Expression with resultType string). - :vartype custom_rfc_read_table_function_module: JSON - :ivar sap_data_column_delimiter: The single character that will be used as delimiter passed to - SAP RFC as well as splitting the output data retrieved. Type: string (or Expression with - resultType string). - :vartype sap_data_column_delimiter: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "exclude_last_request": {"key": "excludeLastRequest", "type": "object"}, - "base_request_id": {"key": "baseRequestId", "type": "object"}, - "custom_rfc_read_table_function_module": {"key": "customRfcReadTableFunctionModule", "type": "object"}, - "sap_data_column_delimiter": {"key": "sapDataColumnDelimiter", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - exclude_last_request: Optional[JSON] = None, - base_request_id: Optional[JSON] = None, - custom_rfc_read_table_function_module: Optional[JSON] = None, - sap_data_column_delimiter: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword exclude_last_request: Whether to exclude the records of the last request. The default - value is true. Type: boolean (or Expression with resultType boolean). - :paramtype exclude_last_request: JSON - :keyword base_request_id: The ID of request for delta loading. Once it is set, only data with - requestId larger than the value of this property will be retrieved. The default value is 0. - Type: integer (or Expression with resultType integer ). - :paramtype base_request_id: JSON - :keyword custom_rfc_read_table_function_module: Specifies the custom RFC function module that - will be used to read data from SAP Table. Type: string (or Expression with resultType string). - :paramtype custom_rfc_read_table_function_module: JSON - :keyword sap_data_column_delimiter: The single character that will be used as delimiter passed - to SAP RFC as well as splitting the output data retrieved. Type: string (or Expression with - resultType string). - :paramtype sap_data_column_delimiter: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "SapOpenHubSource" - self.exclude_last_request = exclude_last_request - self.base_request_id = base_request_id - self.custom_rfc_read_table_function_module = custom_rfc_read_table_function_module - self.sap_data_column_delimiter = sap_data_column_delimiter - - -class SapOpenHubTableDataset(Dataset): - """Sap Business Warehouse Open Hub Destination Table properties. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar open_hub_destination_name: The name of the Open Hub Destination with destination type as - Database Table. Type: string (or Expression with resultType string). Required. - :vartype open_hub_destination_name: JSON - :ivar exclude_last_request: Whether to exclude the records of the last request. The default - value is true. Type: boolean (or Expression with resultType boolean). - :vartype exclude_last_request: JSON - :ivar base_request_id: The ID of request for delta loading. Once it is set, only data with - requestId larger than the value of this property will be retrieved. The default value is 0. - Type: integer (or Expression with resultType integer ). - :vartype base_request_id: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - "open_hub_destination_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "open_hub_destination_name": {"key": "typeProperties.openHubDestinationName", "type": "object"}, - "exclude_last_request": {"key": "typeProperties.excludeLastRequest", "type": "object"}, - "base_request_id": {"key": "typeProperties.baseRequestId", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - open_hub_destination_name: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - exclude_last_request: Optional[JSON] = None, - base_request_id: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword open_hub_destination_name: The name of the Open Hub Destination with destination type - as Database Table. Type: string (or Expression with resultType string). Required. - :paramtype open_hub_destination_name: JSON - :keyword exclude_last_request: Whether to exclude the records of the last request. The default - value is true. Type: boolean (or Expression with resultType boolean). - :paramtype exclude_last_request: JSON - :keyword base_request_id: The ID of request for delta loading. Once it is set, only data with - requestId larger than the value of this property will be retrieved. The default value is 0. - Type: integer (or Expression with resultType integer ). - :paramtype base_request_id: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SapOpenHubTable" - self.open_hub_destination_name = open_hub_destination_name - self.exclude_last_request = exclude_last_request - self.base_request_id = base_request_id - - -class SapTableLinkedService(LinkedService): - """SAP Table Linked Service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar server: Host name of the SAP instance where the table is located. Type: string (or - Expression with resultType string). - :vartype server: JSON - :ivar system_number: System number of the SAP system where the table is located. (Usually a - two-digit decimal number represented as a string.) Type: string (or Expression with resultType - string). - :vartype system_number: JSON - :ivar client_id: Client ID of the client on the SAP system where the table is located. (Usually - a three-digit decimal number represented as a string) Type: string (or Expression with - resultType string). - :vartype client_id: JSON - :ivar language: Language of the SAP system where the table is located. The default value is EN. - Type: string (or Expression with resultType string). - :vartype language: JSON - :ivar system_id: SystemID of the SAP system where the table is located. Type: string (or - Expression with resultType string). - :vartype system_id: JSON - :ivar user_name: Username to access the SAP server where the table is located. Type: string (or - Expression with resultType string). - :vartype user_name: JSON - :ivar password: Password to access the SAP server where the table is located. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar message_server: The hostname of the SAP Message Server. Type: string (or Expression with - resultType string). - :vartype message_server: JSON - :ivar message_server_service: The service name or port number of the Message Server. Type: - string (or Expression with resultType string). - :vartype message_server_service: JSON - :ivar snc_mode: SNC activation flag (Boolean) to access the SAP server where the table is - located. Type: boolean (or Expression with resultType boolean). - :vartype snc_mode: JSON - :ivar snc_my_name: Initiator's SNC name to access the SAP server where the table is located. - Type: string (or Expression with resultType string). - :vartype snc_my_name: JSON - :ivar snc_partner_name: Communication partner's SNC name to access the SAP server where the - table is located. Type: string (or Expression with resultType string). - :vartype snc_partner_name: JSON - :ivar snc_library_path: External security product's library to access the SAP server where the - table is located. Type: string (or Expression with resultType string). - :vartype snc_library_path: JSON - :ivar snc_qop: SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string - (or Expression with resultType string). - :vartype snc_qop: JSON - :ivar logon_group: The Logon Group for the SAP System. Type: string (or Expression with - resultType string). - :vartype logon_group: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "system_number": {"key": "typeProperties.systemNumber", "type": "object"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "language": {"key": "typeProperties.language", "type": "object"}, - "system_id": {"key": "typeProperties.systemId", "type": "object"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "message_server": {"key": "typeProperties.messageServer", "type": "object"}, - "message_server_service": {"key": "typeProperties.messageServerService", "type": "object"}, - "snc_mode": {"key": "typeProperties.sncMode", "type": "object"}, - "snc_my_name": {"key": "typeProperties.sncMyName", "type": "object"}, - "snc_partner_name": {"key": "typeProperties.sncPartnerName", "type": "object"}, - "snc_library_path": {"key": "typeProperties.sncLibraryPath", "type": "object"}, - "snc_qop": {"key": "typeProperties.sncQop", "type": "object"}, - "logon_group": {"key": "typeProperties.logonGroup", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - server: Optional[JSON] = None, - system_number: Optional[JSON] = None, - client_id: Optional[JSON] = None, - language: Optional[JSON] = None, - system_id: Optional[JSON] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - message_server: Optional[JSON] = None, - message_server_service: Optional[JSON] = None, - snc_mode: Optional[JSON] = None, - snc_my_name: Optional[JSON] = None, - snc_partner_name: Optional[JSON] = None, - snc_library_path: Optional[JSON] = None, - snc_qop: Optional[JSON] = None, - logon_group: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword server: Host name of the SAP instance where the table is located. Type: string (or - Expression with resultType string). - :paramtype server: JSON - :keyword system_number: System number of the SAP system where the table is located. (Usually a - two-digit decimal number represented as a string.) Type: string (or Expression with resultType - string). - :paramtype system_number: JSON - :keyword client_id: Client ID of the client on the SAP system where the table is located. - (Usually a three-digit decimal number represented as a string) Type: string (or Expression with - resultType string). - :paramtype client_id: JSON - :keyword language: Language of the SAP system where the table is located. The default value is - EN. Type: string (or Expression with resultType string). - :paramtype language: JSON - :keyword system_id: SystemID of the SAP system where the table is located. Type: string (or - Expression with resultType string). - :paramtype system_id: JSON - :keyword user_name: Username to access the SAP server where the table is located. Type: string - (or Expression with resultType string). - :paramtype user_name: JSON - :keyword password: Password to access the SAP server where the table is located. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword message_server: The hostname of the SAP Message Server. Type: string (or Expression - with resultType string). - :paramtype message_server: JSON - :keyword message_server_service: The service name or port number of the Message Server. Type: - string (or Expression with resultType string). - :paramtype message_server_service: JSON - :keyword snc_mode: SNC activation flag (Boolean) to access the SAP server where the table is - located. Type: boolean (or Expression with resultType boolean). - :paramtype snc_mode: JSON - :keyword snc_my_name: Initiator's SNC name to access the SAP server where the table is located. - Type: string (or Expression with resultType string). - :paramtype snc_my_name: JSON - :keyword snc_partner_name: Communication partner's SNC name to access the SAP server where the - table is located. Type: string (or Expression with resultType string). - :paramtype snc_partner_name: JSON - :keyword snc_library_path: External security product's library to access the SAP server where - the table is located. Type: string (or Expression with resultType string). - :paramtype snc_library_path: JSON - :keyword snc_qop: SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string - (or Expression with resultType string). - :paramtype snc_qop: JSON - :keyword logon_group: The Logon Group for the SAP System. Type: string (or Expression with - resultType string). - :paramtype logon_group: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "SapTable" - self.server = server - self.system_number = system_number - self.client_id = client_id - self.language = language - self.system_id = system_id - self.user_name = user_name - self.password = password - self.message_server = message_server - self.message_server_service = message_server_service - self.snc_mode = snc_mode - self.snc_my_name = snc_my_name - self.snc_partner_name = snc_partner_name - self.snc_library_path = snc_library_path - self.snc_qop = snc_qop - self.logon_group = logon_group - self.encrypted_credential = encrypted_credential - - -class SapTablePartitionSettings(_serialization.Model): - """The settings that will be leveraged for SAP table source partitioning. - - :ivar partition_column_name: The name of the column that will be used for proceeding range - partitioning. Type: string (or Expression with resultType string). - :vartype partition_column_name: JSON - :ivar partition_upper_bound: The maximum value of column specified in partitionColumnName that - will be used for proceeding range partitioning. Type: string (or Expression with resultType - string). - :vartype partition_upper_bound: JSON - :ivar partition_lower_bound: The minimum value of column specified in partitionColumnName that - will be used for proceeding range partitioning. Type: string (or Expression with resultType - string). - :vartype partition_lower_bound: JSON - :ivar max_partitions_number: The maximum value of partitions the table will be split into. - Type: integer (or Expression with resultType string). - :vartype max_partitions_number: JSON - """ - - _attribute_map = { - "partition_column_name": {"key": "partitionColumnName", "type": "object"}, - "partition_upper_bound": {"key": "partitionUpperBound", "type": "object"}, - "partition_lower_bound": {"key": "partitionLowerBound", "type": "object"}, - "max_partitions_number": {"key": "maxPartitionsNumber", "type": "object"}, - } - - def __init__( - self, - *, - partition_column_name: Optional[JSON] = None, - partition_upper_bound: Optional[JSON] = None, - partition_lower_bound: Optional[JSON] = None, - max_partitions_number: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword partition_column_name: The name of the column that will be used for proceeding range - partitioning. Type: string (or Expression with resultType string). - :paramtype partition_column_name: JSON - :keyword partition_upper_bound: The maximum value of column specified in partitionColumnName - that will be used for proceeding range partitioning. Type: string (or Expression with - resultType string). - :paramtype partition_upper_bound: JSON - :keyword partition_lower_bound: The minimum value of column specified in partitionColumnName - that will be used for proceeding range partitioning. Type: string (or Expression with - resultType string). - :paramtype partition_lower_bound: JSON - :keyword max_partitions_number: The maximum value of partitions the table will be split into. - Type: integer (or Expression with resultType string). - :paramtype max_partitions_number: JSON - """ - super().__init__(**kwargs) - self.partition_column_name = partition_column_name - self.partition_upper_bound = partition_upper_bound - self.partition_lower_bound = partition_lower_bound - self.max_partitions_number = max_partitions_number - - -class SapTableResourceDataset(Dataset): - """SAP Table Resource properties. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The name of the SAP Table. Type: string (or Expression with resultType - string). Required. - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - "table_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - table_name: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The name of the SAP Table. Type: string (or Expression with resultType - string). Required. - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SapTableResource" - self.table_name = table_name - - -class SapTableSource(TabularSource): - """A copy activity source for SAP Table source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar row_count: The number of rows to be retrieved. Type: integer(or Expression with - resultType integer). - :vartype row_count: JSON - :ivar row_skips: The number of rows that will be skipped. Type: integer (or Expression with - resultType integer). - :vartype row_skips: JSON - :ivar rfc_table_fields: The fields of the SAP table that will be retrieved. For example, - column0, column1. Type: string (or Expression with resultType string). - :vartype rfc_table_fields: JSON - :ivar rfc_table_options: The options for the filtering of the SAP Table. For example, COLUMN0 - EQ SOME VALUE. Type: string (or Expression with resultType string). - :vartype rfc_table_options: JSON - :ivar batch_size: Specifies the maximum number of rows that will be retrieved at a time when - retrieving data from SAP Table. Type: integer (or Expression with resultType integer). - :vartype batch_size: JSON - :ivar custom_rfc_read_table_function_module: Specifies the custom RFC function module that will - be used to read data from SAP Table. Type: string (or Expression with resultType string). - :vartype custom_rfc_read_table_function_module: JSON - :ivar sap_data_column_delimiter: The single character that will be used as delimiter passed to - SAP RFC as well as splitting the output data retrieved. Type: string (or Expression with - resultType string). - :vartype sap_data_column_delimiter: JSON - :ivar partition_option: The partition mechanism that will be used for SAP table read in - parallel. Possible values include: "None", "PartitionOnInt", "PartitionOnCalendarYear", - "PartitionOnCalendarMonth", "PartitionOnCalendarDate", "PartitionOnTime". - :vartype partition_option: JSON - :ivar partition_settings: The settings that will be leveraged for SAP table source - partitioning. - :vartype partition_settings: ~azure.mgmt.datafactory.models.SapTablePartitionSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "row_count": {"key": "rowCount", "type": "object"}, - "row_skips": {"key": "rowSkips", "type": "object"}, - "rfc_table_fields": {"key": "rfcTableFields", "type": "object"}, - "rfc_table_options": {"key": "rfcTableOptions", "type": "object"}, - "batch_size": {"key": "batchSize", "type": "object"}, - "custom_rfc_read_table_function_module": {"key": "customRfcReadTableFunctionModule", "type": "object"}, - "sap_data_column_delimiter": {"key": "sapDataColumnDelimiter", "type": "object"}, - "partition_option": {"key": "partitionOption", "type": "object"}, - "partition_settings": {"key": "partitionSettings", "type": "SapTablePartitionSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - row_count: Optional[JSON] = None, - row_skips: Optional[JSON] = None, - rfc_table_fields: Optional[JSON] = None, - rfc_table_options: Optional[JSON] = None, - batch_size: Optional[JSON] = None, - custom_rfc_read_table_function_module: Optional[JSON] = None, - sap_data_column_delimiter: Optional[JSON] = None, - partition_option: Optional[JSON] = None, - partition_settings: Optional["_models.SapTablePartitionSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword row_count: The number of rows to be retrieved. Type: integer(or Expression with - resultType integer). - :paramtype row_count: JSON - :keyword row_skips: The number of rows that will be skipped. Type: integer (or Expression with - resultType integer). - :paramtype row_skips: JSON - :keyword rfc_table_fields: The fields of the SAP table that will be retrieved. For example, - column0, column1. Type: string (or Expression with resultType string). - :paramtype rfc_table_fields: JSON - :keyword rfc_table_options: The options for the filtering of the SAP Table. For example, - COLUMN0 EQ SOME VALUE. Type: string (or Expression with resultType string). - :paramtype rfc_table_options: JSON - :keyword batch_size: Specifies the maximum number of rows that will be retrieved at a time when - retrieving data from SAP Table. Type: integer (or Expression with resultType integer). - :paramtype batch_size: JSON - :keyword custom_rfc_read_table_function_module: Specifies the custom RFC function module that - will be used to read data from SAP Table. Type: string (or Expression with resultType string). - :paramtype custom_rfc_read_table_function_module: JSON - :keyword sap_data_column_delimiter: The single character that will be used as delimiter passed - to SAP RFC as well as splitting the output data retrieved. Type: string (or Expression with - resultType string). - :paramtype sap_data_column_delimiter: JSON - :keyword partition_option: The partition mechanism that will be used for SAP table read in - parallel. Possible values include: "None", "PartitionOnInt", "PartitionOnCalendarYear", - "PartitionOnCalendarMonth", "PartitionOnCalendarDate", "PartitionOnTime". - :paramtype partition_option: JSON - :keyword partition_settings: The settings that will be leveraged for SAP table source - partitioning. - :paramtype partition_settings: ~azure.mgmt.datafactory.models.SapTablePartitionSettings - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "SapTableSource" - self.row_count = row_count - self.row_skips = row_skips - self.rfc_table_fields = rfc_table_fields - self.rfc_table_options = rfc_table_options - self.batch_size = batch_size - self.custom_rfc_read_table_function_module = custom_rfc_read_table_function_module - self.sap_data_column_delimiter = sap_data_column_delimiter - self.partition_option = partition_option - self.partition_settings = partition_settings - - -class ScheduleTrigger(MultiplePipelineTrigger): - """Trigger that creates pipeline runs periodically, on schedule. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Trigger type. Required. - :vartype type: str - :ivar description: Trigger description. - :vartype description: str - :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are - called on the Trigger. Known values are: "Started", "Stopped", and "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState - :ivar annotations: List of tags that can be used for describing the trigger. - :vartype annotations: list[JSON] - :ivar pipelines: Pipelines that need to be started. - :vartype pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] - :ivar recurrence: Recurrence schedule configuration. Required. - :vartype recurrence: ~azure.mgmt.datafactory.models.ScheduleTriggerRecurrence - """ - - _validation = { - "type": {"required": True}, - "runtime_state": {"readonly": True}, - "recurrence": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "runtime_state": {"key": "runtimeState", "type": "str"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "pipelines": {"key": "pipelines", "type": "[TriggerPipelineReference]"}, - "recurrence": {"key": "typeProperties.recurrence", "type": "ScheduleTriggerRecurrence"}, - } - - def __init__( - self, - *, - recurrence: "_models.ScheduleTriggerRecurrence", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - annotations: Optional[list[JSON]] = None, - pipelines: Optional[list["_models.TriggerPipelineReference"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Trigger description. - :paramtype description: str - :keyword annotations: List of tags that can be used for describing the trigger. - :paramtype annotations: list[JSON] - :keyword pipelines: Pipelines that need to be started. - :paramtype pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] - :keyword recurrence: Recurrence schedule configuration. Required. - :paramtype recurrence: ~azure.mgmt.datafactory.models.ScheduleTriggerRecurrence - """ - super().__init__( - additional_properties=additional_properties, - description=description, - annotations=annotations, - pipelines=pipelines, - **kwargs - ) - self.type: str = "ScheduleTrigger" - self.recurrence = recurrence - - -class ScheduleTriggerRecurrence(_serialization.Model): - """The workflow trigger recurrence. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar frequency: The frequency. Known values are: "NotSpecified", "Minute", "Hour", "Day", - "Week", "Month", and "Year". - :vartype frequency: str or ~azure.mgmt.datafactory.models.RecurrenceFrequency - :ivar interval: The interval. - :vartype interval: int - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar time_zone: The time zone. - :vartype time_zone: str - :ivar schedule: The recurrence schedule. - :vartype schedule: ~azure.mgmt.datafactory.models.RecurrenceSchedule - """ - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "frequency": {"key": "frequency", "type": "str"}, - "interval": {"key": "interval", "type": "int"}, - "start_time": {"key": "startTime", "type": "iso-8601"}, - "end_time": {"key": "endTime", "type": "iso-8601"}, - "time_zone": {"key": "timeZone", "type": "str"}, - "schedule": {"key": "schedule", "type": "RecurrenceSchedule"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - frequency: Optional[Union[str, "_models.RecurrenceFrequency"]] = None, - interval: Optional[int] = None, - start_time: Optional[datetime.datetime] = None, - end_time: Optional[datetime.datetime] = None, - time_zone: Optional[str] = None, - schedule: Optional["_models.RecurrenceSchedule"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword frequency: The frequency. Known values are: "NotSpecified", "Minute", "Hour", "Day", - "Week", "Month", and "Year". - :paramtype frequency: str or ~azure.mgmt.datafactory.models.RecurrenceFrequency - :keyword interval: The interval. - :paramtype interval: int - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword time_zone: The time zone. - :paramtype time_zone: str - :keyword schedule: The recurrence schedule. - :paramtype schedule: ~azure.mgmt.datafactory.models.RecurrenceSchedule - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.frequency = frequency - self.interval = interval - self.start_time = start_time - self.end_time = end_time - self.time_zone = time_zone - self.schedule = schedule - - -class ScriptAction(_serialization.Model): - """Custom script action to run on HDI ondemand cluster once it's up. - - All required parameters must be populated in order to send to server. - - :ivar name: The user provided name of the script action. Required. - :vartype name: str - :ivar uri: The URI for the script action. Required. - :vartype uri: str - :ivar roles: The node types on which the script action should be executed. Required. - :vartype roles: JSON - :ivar parameters: The parameters for the script action. - :vartype parameters: str - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - "roles": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "roles": {"key": "roles", "type": "object"}, - "parameters": {"key": "parameters", "type": "str"}, - } - - def __init__(self, *, name: str, uri: str, roles: JSON, parameters: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The user provided name of the script action. Required. - :paramtype name: str - :keyword uri: The URI for the script action. Required. - :paramtype uri: str - :keyword roles: The node types on which the script action should be executed. Required. - :paramtype roles: JSON - :keyword parameters: The parameters for the script action. - :paramtype parameters: str - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.roles = roles - self.parameters = parameters - - -class ScriptActivity(ExecutionActivity): - """Script activity type. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar script_block_execution_timeout: ScriptBlock execution timeout. Type: string (or - Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype script_block_execution_timeout: JSON - :ivar scripts: Array of script blocks. Type: array. - :vartype scripts: list[~azure.mgmt.datafactory.models.ScriptActivityScriptBlock] - :ivar log_settings: Log settings of script activity. - :vartype log_settings: ~azure.mgmt.datafactory.models.ScriptActivityTypePropertiesLogSettings - :ivar return_multistatement_result: Enable to retrieve result sets from multiple SQL statements - and the number of rows affected by the DML statement. Supported connector: SnowflakeV2. Type: - boolean (or Expression with resultType boolean). - :vartype return_multistatement_result: JSON - :ivar treat_decimal_as_string: Indicates whether to treat decimal values as strings to avoid - value overflow issue. This option is enabled for SnowflakeV2 connector only. Type: boolean (or - Expression with resultType boolean). - :vartype treat_decimal_as_string: JSON - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "script_block_execution_timeout": {"key": "typeProperties.scriptBlockExecutionTimeout", "type": "object"}, - "scripts": {"key": "typeProperties.scripts", "type": "[ScriptActivityScriptBlock]"}, - "log_settings": {"key": "typeProperties.logSettings", "type": "ScriptActivityTypePropertiesLogSettings"}, - "return_multistatement_result": {"key": "typeProperties.returnMultistatementResult", "type": "object"}, - "treat_decimal_as_string": {"key": "typeProperties.treatDecimalAsString", "type": "object"}, - } - - def __init__( - self, - *, - name: str, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - script_block_execution_timeout: Optional[JSON] = None, - scripts: Optional[list["_models.ScriptActivityScriptBlock"]] = None, - log_settings: Optional["_models.ScriptActivityTypePropertiesLogSettings"] = None, - return_multistatement_result: Optional[JSON] = None, - treat_decimal_as_string: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword script_block_execution_timeout: ScriptBlock execution timeout. Type: string (or - Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype script_block_execution_timeout: JSON - :keyword scripts: Array of script blocks. Type: array. - :paramtype scripts: list[~azure.mgmt.datafactory.models.ScriptActivityScriptBlock] - :keyword log_settings: Log settings of script activity. - :paramtype log_settings: ~azure.mgmt.datafactory.models.ScriptActivityTypePropertiesLogSettings - :keyword return_multistatement_result: Enable to retrieve result sets from multiple SQL - statements and the number of rows affected by the DML statement. Supported connector: - SnowflakeV2. Type: boolean (or Expression with resultType boolean). - :paramtype return_multistatement_result: JSON - :keyword treat_decimal_as_string: Indicates whether to treat decimal values as strings to avoid - value overflow issue. This option is enabled for SnowflakeV2 connector only. Type: boolean (or - Expression with resultType boolean). - :paramtype treat_decimal_as_string: JSON - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "Script" - self.script_block_execution_timeout = script_block_execution_timeout - self.scripts = scripts - self.log_settings = log_settings - self.return_multistatement_result = return_multistatement_result - self.treat_decimal_as_string = treat_decimal_as_string - - -class ScriptActivityParameter(_serialization.Model): - """Parameters of a script block. - - :ivar name: The name of the parameter. Type: string (or Expression with resultType string). - :vartype name: JSON - :ivar type: The type of the parameter. Known values are: "Boolean", "DateTime", - "DateTimeOffset", "Decimal", "Double", "Guid", "Int16", "Int32", "Int64", "Single", "String", - and "Timespan". - :vartype type: str or ~azure.mgmt.datafactory.models.ScriptActivityParameterType - :ivar value: The value of the parameter. Type: string (or Expression with resultType string). - :vartype value: JSON - :ivar direction: The direction of the parameter. Known values are: "Input", "Output", and - "InputOutput". - :vartype direction: str or ~azure.mgmt.datafactory.models.ScriptActivityParameterDirection - :ivar size: The size of the output direction parameter. - :vartype size: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "object"}, - "type": {"key": "type", "type": "str"}, - "value": {"key": "value", "type": "object"}, - "direction": {"key": "direction", "type": "str"}, - "size": {"key": "size", "type": "int"}, - } - - def __init__( - self, - *, - name: Optional[JSON] = None, - type: Optional[Union[str, "_models.ScriptActivityParameterType"]] = None, - value: Optional[JSON] = None, - direction: Optional[Union[str, "_models.ScriptActivityParameterDirection"]] = None, - size: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the parameter. Type: string (or Expression with resultType string). - :paramtype name: JSON - :keyword type: The type of the parameter. Known values are: "Boolean", "DateTime", - "DateTimeOffset", "Decimal", "Double", "Guid", "Int16", "Int32", "Int64", "Single", "String", - and "Timespan". - :paramtype type: str or ~azure.mgmt.datafactory.models.ScriptActivityParameterType - :keyword value: The value of the parameter. Type: string (or Expression with resultType - string). - :paramtype value: JSON - :keyword direction: The direction of the parameter. Known values are: "Input", "Output", and - "InputOutput". - :paramtype direction: str or ~azure.mgmt.datafactory.models.ScriptActivityParameterDirection - :keyword size: The size of the output direction parameter. - :paramtype size: int - """ - super().__init__(**kwargs) - self.name = name - self.type = type - self.value = value - self.direction = direction - self.size = size - - -class ScriptActivityScriptBlock(_serialization.Model): - """Script block of scripts. - - All required parameters must be populated in order to send to server. - - :ivar text: The query text. Type: string (or Expression with resultType string). Required. - :vartype text: JSON - :ivar type: The type of the query. Please refer to the ScriptType for valid options. Type: - string (or Expression with resultType string). Required. - :vartype type: JSON - :ivar parameters: Array of script parameters. Type: array. - :vartype parameters: list[~azure.mgmt.datafactory.models.ScriptActivityParameter] - """ - - _validation = { - "text": {"required": True}, - "type": {"required": True}, - } - - _attribute_map = { - "text": {"key": "text", "type": "object"}, - "type": {"key": "type", "type": "object"}, - "parameters": {"key": "parameters", "type": "[ScriptActivityParameter]"}, - } - - def __init__( - self, - *, - text: JSON, - type: JSON, - parameters: Optional[list["_models.ScriptActivityParameter"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword text: The query text. Type: string (or Expression with resultType string). Required. - :paramtype text: JSON - :keyword type: The type of the query. Please refer to the ScriptType for valid options. Type: - string (or Expression with resultType string). Required. - :paramtype type: JSON - :keyword parameters: Array of script parameters. Type: array. - :paramtype parameters: list[~azure.mgmt.datafactory.models.ScriptActivityParameter] - """ - super().__init__(**kwargs) - self.text = text - self.type = type - self.parameters = parameters - - -class ScriptActivityTypePropertiesLogSettings(_serialization.Model): - """Log settings of script activity. - - All required parameters must be populated in order to send to server. - - :ivar log_destination: The destination of logs. Type: string. Required. Known values are: - "ActivityOutput" and "ExternalStore". - :vartype log_destination: str or ~azure.mgmt.datafactory.models.ScriptActivityLogDestination - :ivar log_location_settings: Log location settings customer needs to provide when enabling log. - :vartype log_location_settings: ~azure.mgmt.datafactory.models.LogLocationSettings - """ - - _validation = { - "log_destination": {"required": True}, - } - - _attribute_map = { - "log_destination": {"key": "logDestination", "type": "str"}, - "log_location_settings": {"key": "logLocationSettings", "type": "LogLocationSettings"}, - } - - def __init__( - self, - *, - log_destination: Union[str, "_models.ScriptActivityLogDestination"], - log_location_settings: Optional["_models.LogLocationSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_destination: The destination of logs. Type: string. Required. Known values are: - "ActivityOutput" and "ExternalStore". - :paramtype log_destination: str or ~azure.mgmt.datafactory.models.ScriptActivityLogDestination - :keyword log_location_settings: Log location settings customer needs to provide when enabling - log. - :paramtype log_location_settings: ~azure.mgmt.datafactory.models.LogLocationSettings - """ - super().__init__(**kwargs) - self.log_destination = log_destination - self.log_location_settings = log_location_settings - - -class SecureInputOutputPolicy(_serialization.Model): - """Execution policy for an activity that supports secure input and output. - - :ivar secure_input: When set to true, Input from activity is considered as secure and will not - be logged to monitoring. - :vartype secure_input: bool - :ivar secure_output: When set to true, Output from activity is considered as secure and will - not be logged to monitoring. - :vartype secure_output: bool - """ - - _attribute_map = { - "secure_input": {"key": "secureInput", "type": "bool"}, - "secure_output": {"key": "secureOutput", "type": "bool"}, - } - - def __init__( - self, *, secure_input: Optional[bool] = None, secure_output: Optional[bool] = None, **kwargs: Any - ) -> None: - """ - :keyword secure_input: When set to true, Input from activity is considered as secure and will - not be logged to monitoring. - :paramtype secure_input: bool - :keyword secure_output: When set to true, Output from activity is considered as secure and will - not be logged to monitoring. - :paramtype secure_output: bool - """ - super().__init__(**kwargs) - self.secure_input = secure_input - self.secure_output = secure_output - - -class SecureString(SecretBase): - """Azure Data Factory secure string definition. The string value will be masked with asterisks '*' - during Get or List API calls. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the secret. Required. - :vartype type: str - :ivar value: Value of secure string. Required. - :vartype value: str - """ - - _validation = { - "type": {"required": True}, - "value": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, value: str, **kwargs: Any) -> None: - """ - :keyword value: Value of secure string. Required. - :paramtype value: str - """ - super().__init__(**kwargs) - self.type: str = "SecureString" - self.value = value - - -class SelfDependencyTumblingWindowTriggerReference(DependencyReference): # pylint: disable=name-too-long - """Self referenced tumbling window trigger dependency. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of dependency reference. Required. - :vartype type: str - :ivar offset: Timespan applied to the start time of a tumbling window when evaluating - dependency. Required. - :vartype offset: str - :ivar size: The size of the window when evaluating the dependency. If undefined the frequency - of the tumbling window will be used. - :vartype size: str - """ - - _validation = { - "type": {"required": True}, - "offset": { - "required": True, - "max_length": 15, - "min_length": 8, - "pattern": r"-((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))", - }, - "size": {"max_length": 15, "min_length": 8, "pattern": r"((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))"}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "offset": {"key": "offset", "type": "str"}, - "size": {"key": "size", "type": "str"}, - } - - def __init__(self, *, offset: str, size: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword offset: Timespan applied to the start time of a tumbling window when evaluating - dependency. Required. - :paramtype offset: str - :keyword size: The size of the window when evaluating the dependency. If undefined the - frequency of the tumbling window will be used. - :paramtype size: str - """ - super().__init__(**kwargs) - self.type: str = "SelfDependencyTumblingWindowTriggerReference" - self.offset = offset - self.size = size - - -class SelfHostedIntegrationRuntime(IntegrationRuntime): - """Self-hosted integration runtime. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of integration runtime. Required. Known values are: "Managed" and - "SelfHosted". - :vartype type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType - :ivar description: Integration runtime description. - :vartype description: str - :ivar linked_info: The base definition of a linked integration runtime. - :vartype linked_info: ~azure.mgmt.datafactory.models.LinkedIntegrationRuntimeType - :ivar self_contained_interactive_authoring_enabled: An alternative option to ensure interactive - authoring function when your self-hosted integration runtime is unable to establish a - connection with Azure Relay. - :vartype self_contained_interactive_authoring_enabled: bool - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "linked_info": {"key": "typeProperties.linkedInfo", "type": "LinkedIntegrationRuntimeType"}, - "self_contained_interactive_authoring_enabled": { - "key": "typeProperties.selfContainedInteractiveAuthoringEnabled", - "type": "bool", - }, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - linked_info: Optional["_models.LinkedIntegrationRuntimeType"] = None, - self_contained_interactive_authoring_enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Integration runtime description. - :paramtype description: str - :keyword linked_info: The base definition of a linked integration runtime. - :paramtype linked_info: ~azure.mgmt.datafactory.models.LinkedIntegrationRuntimeType - :keyword self_contained_interactive_authoring_enabled: An alternative option to ensure - interactive authoring function when your self-hosted integration runtime is unable to establish - a connection with Azure Relay. - :paramtype self_contained_interactive_authoring_enabled: bool - """ - super().__init__(additional_properties=additional_properties, description=description, **kwargs) - self.type: str = "SelfHosted" - self.linked_info = linked_info - self.self_contained_interactive_authoring_enabled = self_contained_interactive_authoring_enabled - - -class SelfHostedIntegrationRuntimeNode(_serialization.Model): - """Properties of Self-hosted integration runtime node. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar node_name: Name of the integration runtime node. - :vartype node_name: str - :ivar machine_name: Machine name of the integration runtime node. - :vartype machine_name: str - :ivar host_service_uri: URI for the host machine of the integration runtime. - :vartype host_service_uri: str - :ivar status: Status of the integration runtime node. Known values are: "NeedRegistration", - "Online", "Limited", "Offline", "Upgrading", "Initializing", and "InitializeFailed". - :vartype status: str or ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNodeStatus - :ivar capabilities: The integration runtime capabilities dictionary. - :vartype capabilities: dict[str, str] - :ivar version_status: Status of the integration runtime node version. - :vartype version_status: str - :ivar version: Version of the integration runtime node. - :vartype version: str - :ivar register_time: The time at which the integration runtime node was registered in ISO8601 - format. - :vartype register_time: ~datetime.datetime - :ivar last_connect_time: The most recent time at which the integration runtime was connected in - ISO8601 format. - :vartype last_connect_time: ~datetime.datetime - :ivar expiry_time: The time at which the integration runtime will expire in ISO8601 format. - :vartype expiry_time: ~datetime.datetime - :ivar last_start_time: The time the node last started up. - :vartype last_start_time: ~datetime.datetime - :ivar last_stop_time: The integration runtime node last stop time. - :vartype last_stop_time: ~datetime.datetime - :ivar last_update_result: The result of the last integration runtime node update. Known values - are: "None", "Succeed", and "Fail". - :vartype last_update_result: str or - ~azure.mgmt.datafactory.models.IntegrationRuntimeUpdateResult - :ivar last_start_update_time: The last time for the integration runtime node update start. - :vartype last_start_update_time: ~datetime.datetime - :ivar last_end_update_time: The last time for the integration runtime node update end. - :vartype last_end_update_time: ~datetime.datetime - :ivar is_active_dispatcher: Indicates whether this node is the active dispatcher for - integration runtime requests. - :vartype is_active_dispatcher: bool - :ivar concurrent_jobs_limit: Maximum concurrent jobs on the integration runtime node. - :vartype concurrent_jobs_limit: int - :ivar max_concurrent_jobs: The maximum concurrent jobs in this integration runtime. - :vartype max_concurrent_jobs: int - """ - - _validation = { - "node_name": {"readonly": True}, - "machine_name": {"readonly": True}, - "host_service_uri": {"readonly": True}, - "status": {"readonly": True}, - "capabilities": {"readonly": True}, - "version_status": {"readonly": True}, - "version": {"readonly": True}, - "register_time": {"readonly": True}, - "last_connect_time": {"readonly": True}, - "expiry_time": {"readonly": True}, - "last_start_time": {"readonly": True}, - "last_stop_time": {"readonly": True}, - "last_update_result": {"readonly": True}, - "last_start_update_time": {"readonly": True}, - "last_end_update_time": {"readonly": True}, - "is_active_dispatcher": {"readonly": True}, - "concurrent_jobs_limit": {"readonly": True}, - "max_concurrent_jobs": {"readonly": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "node_name": {"key": "nodeName", "type": "str"}, - "machine_name": {"key": "machineName", "type": "str"}, - "host_service_uri": {"key": "hostServiceUri", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "capabilities": {"key": "capabilities", "type": "{str}"}, - "version_status": {"key": "versionStatus", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "register_time": {"key": "registerTime", "type": "iso-8601"}, - "last_connect_time": {"key": "lastConnectTime", "type": "iso-8601"}, - "expiry_time": {"key": "expiryTime", "type": "iso-8601"}, - "last_start_time": {"key": "lastStartTime", "type": "iso-8601"}, - "last_stop_time": {"key": "lastStopTime", "type": "iso-8601"}, - "last_update_result": {"key": "lastUpdateResult", "type": "str"}, - "last_start_update_time": {"key": "lastStartUpdateTime", "type": "iso-8601"}, - "last_end_update_time": {"key": "lastEndUpdateTime", "type": "iso-8601"}, - "is_active_dispatcher": {"key": "isActiveDispatcher", "type": "bool"}, - "concurrent_jobs_limit": {"key": "concurrentJobsLimit", "type": "int"}, - "max_concurrent_jobs": {"key": "maxConcurrentJobs", "type": "int"}, - } - - def __init__(self, *, additional_properties: Optional[dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.node_name: Optional[str] = None - self.machine_name: Optional[str] = None - self.host_service_uri: Optional[str] = None - self.status: Optional[Union[str, "_models.SelfHostedIntegrationRuntimeNodeStatus"]] = None - self.capabilities: Optional[dict[str, str]] = None - self.version_status: Optional[str] = None - self.version: Optional[str] = None - self.register_time: Optional[datetime.datetime] = None - self.last_connect_time: Optional[datetime.datetime] = None - self.expiry_time: Optional[datetime.datetime] = None - self.last_start_time: Optional[datetime.datetime] = None - self.last_stop_time: Optional[datetime.datetime] = None - self.last_update_result: Optional[Union[str, "_models.IntegrationRuntimeUpdateResult"]] = None - self.last_start_update_time: Optional[datetime.datetime] = None - self.last_end_update_time: Optional[datetime.datetime] = None - self.is_active_dispatcher: Optional[bool] = None - self.concurrent_jobs_limit: Optional[int] = None - self.max_concurrent_jobs: Optional[int] = None - - -class SelfHostedIntegrationRuntimeStatus(IntegrationRuntimeStatus): - """Self-hosted integration runtime status. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of integration runtime. Required. Known values are: "Managed" and - "SelfHosted". - :vartype type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType - :ivar data_factory_name: The data factory name which the integration runtime belong to. - :vartype data_factory_name: str - :ivar state: The state of integration runtime. Known values are: "Initial", "Stopped", - "Started", "Starting", "Stopping", "NeedRegistration", "Online", "Limited", "Offline", and - "AccessDenied". - :vartype state: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeState - :ivar create_time: The time at which the integration runtime was created, in ISO8601 format. - :vartype create_time: ~datetime.datetime - :ivar task_queue_id: The task queue id of the integration runtime. - :vartype task_queue_id: str - :ivar internal_channel_encryption: It is used to set the encryption mode for node-node - communication channel (when more than 2 self-hosted integration runtime nodes exist). Known - values are: "NotSet", "SslEncrypted", and "NotEncrypted". - :vartype internal_channel_encryption: str or - ~azure.mgmt.datafactory.models.IntegrationRuntimeInternalChannelEncryptionMode - :ivar version: Version of the integration runtime. - :vartype version: str - :ivar nodes: The list of nodes for this integration runtime. - :vartype nodes: list[~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode] - :ivar scheduled_update_date: The date at which the integration runtime will be scheduled to - update, in ISO8601 format. - :vartype scheduled_update_date: ~datetime.datetime - :ivar update_delay_offset: The time in the date scheduled by service to update the integration - runtime, e.g., PT03H is 3 hours. - :vartype update_delay_offset: str - :ivar local_time_zone_offset: The local time zone offset in hours. - :vartype local_time_zone_offset: str - :ivar capabilities: Object with additional information about integration runtime capabilities. - :vartype capabilities: dict[str, str] - :ivar service_urls: The URLs for the services used in integration runtime backend service. - :vartype service_urls: list[str] - :ivar auto_update: Whether Self-hosted integration runtime auto update has been turned on. - Known values are: "On" and "Off". - :vartype auto_update: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeAutoUpdate - :ivar version_status: Status of the integration runtime version. - :vartype version_status: str - :ivar links: The list of linked integration runtimes that are created to share with this - integration runtime. - :vartype links: list[~azure.mgmt.datafactory.models.LinkedIntegrationRuntime] - :ivar pushed_version: The version that the integration runtime is going to update to. - :vartype pushed_version: str - :ivar latest_version: The latest version on download center. - :vartype latest_version: str - :ivar auto_update_eta: The estimated time when the self-hosted integration runtime will be - updated. - :vartype auto_update_eta: ~datetime.datetime - :ivar self_contained_interactive_authoring_enabled: An alternative option to ensure interactive - authoring function when your self-hosted integration runtime is unable to establish a - connection with Azure Relay. - :vartype self_contained_interactive_authoring_enabled: bool - """ - - _validation = { - "type": {"required": True}, - "data_factory_name": {"readonly": True}, - "state": {"readonly": True}, - "create_time": {"readonly": True}, - "task_queue_id": {"readonly": True}, - "internal_channel_encryption": {"readonly": True}, - "version": {"readonly": True}, - "scheduled_update_date": {"readonly": True}, - "update_delay_offset": {"readonly": True}, - "local_time_zone_offset": {"readonly": True}, - "capabilities": {"readonly": True}, - "service_urls": {"readonly": True}, - "auto_update": {"readonly": True}, - "version_status": {"readonly": True}, - "pushed_version": {"readonly": True}, - "latest_version": {"readonly": True}, - "auto_update_eta": {"readonly": True}, - "self_contained_interactive_authoring_enabled": {"readonly": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "data_factory_name": {"key": "dataFactoryName", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "create_time": {"key": "typeProperties.createTime", "type": "iso-8601"}, - "task_queue_id": {"key": "typeProperties.taskQueueId", "type": "str"}, - "internal_channel_encryption": {"key": "typeProperties.internalChannelEncryption", "type": "str"}, - "version": {"key": "typeProperties.version", "type": "str"}, - "nodes": {"key": "typeProperties.nodes", "type": "[SelfHostedIntegrationRuntimeNode]"}, - "scheduled_update_date": {"key": "typeProperties.scheduledUpdateDate", "type": "iso-8601"}, - "update_delay_offset": {"key": "typeProperties.updateDelayOffset", "type": "str"}, - "local_time_zone_offset": {"key": "typeProperties.localTimeZoneOffset", "type": "str"}, - "capabilities": {"key": "typeProperties.capabilities", "type": "{str}"}, - "service_urls": {"key": "typeProperties.serviceUrls", "type": "[str]"}, - "auto_update": {"key": "typeProperties.autoUpdate", "type": "str"}, - "version_status": {"key": "typeProperties.versionStatus", "type": "str"}, - "links": {"key": "typeProperties.links", "type": "[LinkedIntegrationRuntime]"}, - "pushed_version": {"key": "typeProperties.pushedVersion", "type": "str"}, - "latest_version": {"key": "typeProperties.latestVersion", "type": "str"}, - "auto_update_eta": {"key": "typeProperties.autoUpdateETA", "type": "iso-8601"}, - "self_contained_interactive_authoring_enabled": { - "key": "typeProperties.selfContainedInteractiveAuthoringEnabled", - "type": "bool", - }, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - nodes: Optional[list["_models.SelfHostedIntegrationRuntimeNode"]] = None, - links: Optional[list["_models.LinkedIntegrationRuntime"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword nodes: The list of nodes for this integration runtime. - :paramtype nodes: list[~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode] - :keyword links: The list of linked integration runtimes that are created to share with this - integration runtime. - :paramtype links: list[~azure.mgmt.datafactory.models.LinkedIntegrationRuntime] - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "SelfHosted" - self.create_time: Optional[datetime.datetime] = None - self.task_queue_id: Optional[str] = None - self.internal_channel_encryption: Optional[ - Union[str, "_models.IntegrationRuntimeInternalChannelEncryptionMode"] - ] = None - self.version: Optional[str] = None - self.nodes = nodes - self.scheduled_update_date: Optional[datetime.datetime] = None - self.update_delay_offset: Optional[str] = None - self.local_time_zone_offset: Optional[str] = None - self.capabilities: Optional[dict[str, str]] = None - self.service_urls: Optional[list[str]] = None - self.auto_update: Optional[Union[str, "_models.IntegrationRuntimeAutoUpdate"]] = None - self.version_status: Optional[str] = None - self.links = links - self.pushed_version: Optional[str] = None - self.latest_version: Optional[str] = None - self.auto_update_eta: Optional[datetime.datetime] = None - self.self_contained_interactive_authoring_enabled: Optional[bool] = None - - -class ServiceNowLinkedService(LinkedService): - """ServiceNow server linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar endpoint: The endpoint of the ServiceNow server. (i.e. - :code:``.service-now.com). Required. - :vartype endpoint: JSON - :ivar authentication_type: The authentication type to use. Required. Known values are: "Basic" - and "OAuth2". - :vartype authentication_type: str or - ~azure.mgmt.datafactory.models.ServiceNowAuthenticationType - :ivar username: The user name used to connect to the ServiceNow server for Basic and OAuth2 - authentication. - :vartype username: JSON - :ivar password: The password corresponding to the user name for Basic and OAuth2 - authentication. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar client_id: The client id for OAuth2 authentication. - :vartype client_id: JSON - :ivar client_secret: The client secret for OAuth2 authentication. - :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using - HTTPS. The default value is true. - :vartype use_encrypted_endpoints: JSON - :ivar use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :vartype use_host_verification: JSON - :ivar use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :vartype use_peer_verification: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "endpoint": {"required": True}, - "authentication_type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "endpoint": {"key": "typeProperties.endpoint", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "client_secret": {"key": "typeProperties.clientSecret", "type": "SecretBase"}, - "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, - "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, - "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - endpoint: JSON, - authentication_type: Union[str, "_models.ServiceNowAuthenticationType"], - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - client_id: Optional[JSON] = None, - client_secret: Optional["_models.SecretBase"] = None, - use_encrypted_endpoints: Optional[JSON] = None, - use_host_verification: Optional[JSON] = None, - use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword endpoint: The endpoint of the ServiceNow server. (i.e. - :code:``.service-now.com). Required. - :paramtype endpoint: JSON - :keyword authentication_type: The authentication type to use. Required. Known values are: - "Basic" and "OAuth2". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.ServiceNowAuthenticationType - :keyword username: The user name used to connect to the ServiceNow server for Basic and OAuth2 - authentication. - :paramtype username: JSON - :keyword password: The password corresponding to the user name for Basic and OAuth2 - authentication. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword client_id: The client id for OAuth2 authentication. - :paramtype client_id: JSON - :keyword client_secret: The client secret for OAuth2 authentication. - :paramtype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :keyword use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted - using HTTPS. The default value is true. - :paramtype use_encrypted_endpoints: JSON - :keyword use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :paramtype use_host_verification: JSON - :keyword use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :paramtype use_peer_verification: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "ServiceNow" - self.endpoint = endpoint - self.authentication_type = authentication_type - self.username = username - self.password = password - self.client_id = client_id - self.client_secret = client_secret - self.use_encrypted_endpoints = use_encrypted_endpoints - self.use_host_verification = use_host_verification - self.use_peer_verification = use_peer_verification - self.encrypted_credential = encrypted_credential - - -class ServiceNowObjectDataset(Dataset): - """ServiceNow server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "ServiceNowObject" - self.table_name = table_name - - -class ServiceNowSource(TabularSource): - """A copy activity ServiceNow server source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "ServiceNowSource" - self.query = query - - -class ServiceNowV2LinkedService(LinkedService): - """ServiceNowV2 server linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar endpoint: The endpoint of the ServiceNowV2 server. (i.e. - :code:``.service-now.com). Required. - :vartype endpoint: JSON - :ivar authentication_type: The authentication type to use. Required. Known values are: "Basic" - and "OAuth2". - :vartype authentication_type: str or - ~azure.mgmt.datafactory.models.ServiceNowV2AuthenticationType - :ivar username: The user name used to connect to the ServiceNowV2 server for Basic and OAuth2 - authentication. - :vartype username: JSON - :ivar password: The password corresponding to the user name for Basic and OAuth2 - authentication. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar client_id: The client id for OAuth2 authentication. - :vartype client_id: JSON - :ivar client_secret: The client secret for OAuth2 authentication. - :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :ivar grant_type: GrantType for OAuth2 authentication. Default value is password. - :vartype grant_type: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "endpoint": {"required": True}, - "authentication_type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "endpoint": {"key": "typeProperties.endpoint", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "client_secret": {"key": "typeProperties.clientSecret", "type": "SecretBase"}, - "grant_type": {"key": "typeProperties.grantType", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - endpoint: JSON, - authentication_type: Union[str, "_models.ServiceNowV2AuthenticationType"], - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - client_id: Optional[JSON] = None, - client_secret: Optional["_models.SecretBase"] = None, - grant_type: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword endpoint: The endpoint of the ServiceNowV2 server. (i.e. - :code:``.service-now.com). Required. - :paramtype endpoint: JSON - :keyword authentication_type: The authentication type to use. Required. Known values are: - "Basic" and "OAuth2". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.ServiceNowV2AuthenticationType - :keyword username: The user name used to connect to the ServiceNowV2 server for Basic and - OAuth2 authentication. - :paramtype username: JSON - :keyword password: The password corresponding to the user name for Basic and OAuth2 - authentication. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword client_id: The client id for OAuth2 authentication. - :paramtype client_id: JSON - :keyword client_secret: The client secret for OAuth2 authentication. - :paramtype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :keyword grant_type: GrantType for OAuth2 authentication. Default value is password. - :paramtype grant_type: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "ServiceNowV2" - self.endpoint = endpoint - self.authentication_type = authentication_type - self.username = username - self.password = password - self.client_id = client_id - self.client_secret = client_secret - self.grant_type = grant_type - self.encrypted_credential = encrypted_credential - - -class ServiceNowV2ObjectDataset(Dataset): - """ServiceNowV2 server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - :ivar value_type: Type of value copied from source. Known values are: "actual" and "display". - :vartype value_type: str or ~azure.mgmt.datafactory.models.ValueType - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "value_type": {"key": "typeProperties.valueType", "type": "str"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - value_type: Optional[Union[str, "_models.ValueType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - :keyword value_type: Type of value copied from source. Known values are: "actual" and - "display". - :paramtype value_type: str or ~azure.mgmt.datafactory.models.ValueType - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "ServiceNowV2Object" - self.table_name = table_name - self.value_type = value_type - - -class ServiceNowV2Source(TabularSource): - """A copy activity ServiceNowV2 server source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar expression: Expression to filter data from source. - :vartype expression: ~azure.mgmt.datafactory.models.ExpressionV2 - :ivar page_size: Page size of the result. Type: integer (or Expression with resultType - integer). - :vartype page_size: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "expression": {"key": "expression", "type": "ExpressionV2"}, - "page_size": {"key": "pageSize", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - expression: Optional["_models.ExpressionV2"] = None, - page_size: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword expression: Expression to filter data from source. - :paramtype expression: ~azure.mgmt.datafactory.models.ExpressionV2 - :keyword page_size: Page size of the result. Type: integer (or Expression with resultType - integer). - :paramtype page_size: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "ServiceNowV2Source" - self.expression = expression - self.page_size = page_size - - -class ServicePrincipalCredential(Credential): - """Service principal credential. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of credential. Required. - :vartype type: str - :ivar description: Credential description. - :vartype description: str - :ivar annotations: List of tags that can be used for describing the Credential. - :vartype annotations: list[JSON] - :ivar service_principal_id: The app ID of the service principal used to authenticate. - :vartype service_principal_id: JSON - :ivar service_principal_key: The key of the service principal used to authenticate. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar tenant: The ID of the tenant to which the service principal belongs. - :vartype tenant: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "AzureKeyVaultSecretReference"}, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - annotations: Optional[list[JSON]] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.AzureKeyVaultSecretReference"] = None, - tenant: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Credential description. - :paramtype description: str - :keyword annotations: List of tags that can be used for describing the Credential. - :paramtype annotations: list[JSON] - :keyword service_principal_id: The app ID of the service principal used to authenticate. - :paramtype service_principal_id: JSON - :keyword service_principal_key: The key of the service principal used to authenticate. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword tenant: The ID of the tenant to which the service principal belongs. - :paramtype tenant: JSON - """ - super().__init__( - additional_properties=additional_properties, description=description, annotations=annotations, **kwargs - ) - self.type: str = "ServicePrincipal" - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.tenant = tenant - - -class SetVariableActivity(ControlActivity): - """Set value for a Variable. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.SecureInputOutputPolicy - :ivar variable_name: Name of the variable whose value needs to be set. - :vartype variable_name: str - :ivar value: Value to be set. Could be a static value or Expression. - :vartype value: JSON - :ivar set_system_variable: If set to true, it sets the pipeline run return value. - :vartype set_system_variable: bool - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "policy": {"key": "policy", "type": "SecureInputOutputPolicy"}, - "variable_name": {"key": "typeProperties.variableName", "type": "str"}, - "value": {"key": "typeProperties.value", "type": "object"}, - "set_system_variable": {"key": "typeProperties.setSystemVariable", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - policy: Optional["_models.SecureInputOutputPolicy"] = None, - variable_name: Optional[str] = None, - value: Optional[JSON] = None, - set_system_variable: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.SecureInputOutputPolicy - :keyword variable_name: Name of the variable whose value needs to be set. - :paramtype variable_name: str - :keyword value: Value to be set. Could be a static value or Expression. - :paramtype value: JSON - :keyword set_system_variable: If set to true, it sets the pipeline run return value. - :paramtype set_system_variable: bool - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - **kwargs - ) - self.type: str = "SetVariable" - self.policy = policy - self.variable_name = variable_name - self.value = value - self.set_system_variable = set_system_variable - - -class SftpLocation(DatasetLocation): - """The location of SFTP dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage location. Required. - :vartype type: str - :ivar folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :vartype folder_path: JSON - :ivar file_name: Specify the file name of dataset. Type: string (or Expression with resultType - string). - :vartype file_name: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "folder_path": {"key": "folderPath", "type": "object"}, - "file_name": {"key": "fileName", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - folder_path: Optional[JSON] = None, - file_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword folder_path: Specify the folder path of dataset. Type: string (or Expression with - resultType string). - :paramtype folder_path: JSON - :keyword file_name: Specify the file name of dataset. Type: string (or Expression with - resultType string). - :paramtype file_name: JSON - """ - super().__init__( - additional_properties=additional_properties, folder_path=folder_path, file_name=file_name, **kwargs - ) - self.type: str = "SftpLocation" - - -class SftpReadSettings(StoreReadSettings): - """Sftp read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :vartype recursive: JSON - :ivar wildcard_folder_path: Sftp wildcardFolderPath. Type: string (or Expression with - resultType string). - :vartype wildcard_folder_path: JSON - :ivar wildcard_file_name: Sftp wildcardFileName. Type: string (or Expression with resultType - string). - :vartype wildcard_file_name: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :vartype enable_partition_discovery: JSON - :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: - string (or Expression with resultType string). - :vartype partition_root_path: JSON - :ivar file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :vartype file_list_path: JSON - :ivar delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :vartype delete_files_after_completion: JSON - :ivar modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :vartype modified_datetime_start: JSON - :ivar modified_datetime_end: The end of file's modified datetime. Type: string (or Expression - with resultType string). - :vartype modified_datetime_end: JSON - :ivar disable_chunking: If true, disable parallel reading within each file. Default is false. - Type: boolean (or Expression with resultType boolean). - :vartype disable_chunking: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "recursive": {"key": "recursive", "type": "object"}, - "wildcard_folder_path": {"key": "wildcardFolderPath", "type": "object"}, - "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, - "partition_root_path": {"key": "partitionRootPath", "type": "object"}, - "file_list_path": {"key": "fileListPath", "type": "object"}, - "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, - "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, - "modified_datetime_end": {"key": "modifiedDatetimeEnd", "type": "object"}, - "disable_chunking": {"key": "disableChunking", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - recursive: Optional[JSON] = None, - wildcard_folder_path: Optional[JSON] = None, - wildcard_file_name: Optional[JSON] = None, - enable_partition_discovery: Optional[JSON] = None, - partition_root_path: Optional[JSON] = None, - file_list_path: Optional[JSON] = None, - delete_files_after_completion: Optional[JSON] = None, - modified_datetime_start: Optional[JSON] = None, - modified_datetime_end: Optional[JSON] = None, - disable_chunking: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword recursive: If true, files under the folder path will be read recursively. Default is - true. Type: boolean (or Expression with resultType boolean). - :paramtype recursive: JSON - :keyword wildcard_folder_path: Sftp wildcardFolderPath. Type: string (or Expression with - resultType string). - :paramtype wildcard_folder_path: JSON - :keyword wildcard_file_name: Sftp wildcardFileName. Type: string (or Expression with resultType - string). - :paramtype wildcard_file_name: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: - boolean (or Expression with resultType boolean). - :paramtype enable_partition_discovery: JSON - :keyword partition_root_path: Specify the root path where partition discovery starts from. - Type: string (or Expression with resultType string). - :paramtype partition_root_path: JSON - :keyword file_list_path: Point to a text file that lists each file (relative path to the path - configured in the dataset) that you want to copy. Type: string (or Expression with resultType - string). - :paramtype file_list_path: JSON - :keyword delete_files_after_completion: Indicates whether the source files need to be deleted - after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - :paramtype delete_files_after_completion: JSON - :keyword modified_datetime_start: The start of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_start: JSON - :keyword modified_datetime_end: The end of file's modified datetime. Type: string (or - Expression with resultType string). - :paramtype modified_datetime_end: JSON - :keyword disable_chunking: If true, disable parallel reading within each file. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_chunking: JSON - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "SftpReadSettings" - self.recursive = recursive - self.wildcard_folder_path = wildcard_folder_path - self.wildcard_file_name = wildcard_file_name - self.enable_partition_discovery = enable_partition_discovery - self.partition_root_path = partition_root_path - self.file_list_path = file_list_path - self.delete_files_after_completion = delete_files_after_completion - self.modified_datetime_start = modified_datetime_start - self.modified_datetime_end = modified_datetime_end - self.disable_chunking = disable_chunking - - -class SftpServerLinkedService(LinkedService): - """A linked service for an SSH File Transfer Protocol (SFTP) server. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar host: The SFTP server host name. Type: string (or Expression with resultType string). - Required. - :vartype host: JSON - :ivar port: The TCP port number that the SFTP server uses to listen for client connections. - Default value is 22. Type: integer (or Expression with resultType integer), minimum: 0. - :vartype port: JSON - :ivar authentication_type: The authentication type to be used to connect to the FTP server. - Known values are: "Basic", "SshPublicKey", and "MultiFactor". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.SftpAuthenticationType - :ivar user_name: The username used to log on to the SFTP server. Type: string (or Expression - with resultType string). - :vartype user_name: JSON - :ivar password: Password to logon the SFTP server for Basic authentication. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar private_key_path: The SSH private key file path for SshPublicKey authentication. Only - valid for on-premises copy. For on-premises copy with SshPublicKey authentication, either - PrivateKeyPath or PrivateKeyContent should be specified. SSH private key should be OpenSSH - format. Type: string (or Expression with resultType string). - :vartype private_key_path: JSON - :ivar private_key_content: Base64 encoded SSH private key content for SshPublicKey - authentication. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or - PrivateKeyContent should be specified. SSH private key should be OpenSSH format. - :vartype private_key_content: ~azure.mgmt.datafactory.models.SecretBase - :ivar pass_phrase: The password to decrypt the SSH private key if the SSH private key is - encrypted. - :vartype pass_phrase: ~azure.mgmt.datafactory.models.SecretBase - :ivar skip_host_key_validation: If true, skip the SSH host key validation. Default value is - false. Type: boolean (or Expression with resultType boolean). - :vartype skip_host_key_validation: JSON - :ivar host_key_fingerprint: The host key finger-print of the SFTP server. When - SkipHostKeyValidation is false, HostKeyFingerprint should be specified. Type: string (or - Expression with resultType string). - :vartype host_key_fingerprint: JSON - """ - - _validation = { - "type": {"required": True}, - "host": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "private_key_path": {"key": "typeProperties.privateKeyPath", "type": "object"}, - "private_key_content": {"key": "typeProperties.privateKeyContent", "type": "SecretBase"}, - "pass_phrase": {"key": "typeProperties.passPhrase", "type": "SecretBase"}, - "skip_host_key_validation": {"key": "typeProperties.skipHostKeyValidation", "type": "object"}, - "host_key_fingerprint": {"key": "typeProperties.hostKeyFingerprint", "type": "object"}, - } - - def __init__( - self, - *, - host: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - port: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.SftpAuthenticationType"]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - private_key_path: Optional[JSON] = None, - private_key_content: Optional["_models.SecretBase"] = None, - pass_phrase: Optional["_models.SecretBase"] = None, - skip_host_key_validation: Optional[JSON] = None, - host_key_fingerprint: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword host: The SFTP server host name. Type: string (or Expression with resultType string). - Required. - :paramtype host: JSON - :keyword port: The TCP port number that the SFTP server uses to listen for client connections. - Default value is 22. Type: integer (or Expression with resultType integer), minimum: 0. - :paramtype port: JSON - :keyword authentication_type: The authentication type to be used to connect to the FTP server. - Known values are: "Basic", "SshPublicKey", and "MultiFactor". - :paramtype authentication_type: str or ~azure.mgmt.datafactory.models.SftpAuthenticationType - :keyword user_name: The username used to log on to the SFTP server. Type: string (or Expression - with resultType string). - :paramtype user_name: JSON - :keyword password: Password to logon the SFTP server for Basic authentication. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword private_key_path: The SSH private key file path for SshPublicKey authentication. Only - valid for on-premises copy. For on-premises copy with SshPublicKey authentication, either - PrivateKeyPath or PrivateKeyContent should be specified. SSH private key should be OpenSSH - format. Type: string (or Expression with resultType string). - :paramtype private_key_path: JSON - :keyword private_key_content: Base64 encoded SSH private key content for SshPublicKey - authentication. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or - PrivateKeyContent should be specified. SSH private key should be OpenSSH format. - :paramtype private_key_content: ~azure.mgmt.datafactory.models.SecretBase - :keyword pass_phrase: The password to decrypt the SSH private key if the SSH private key is - encrypted. - :paramtype pass_phrase: ~azure.mgmt.datafactory.models.SecretBase - :keyword skip_host_key_validation: If true, skip the SSH host key validation. Default value is - false. Type: boolean (or Expression with resultType boolean). - :paramtype skip_host_key_validation: JSON - :keyword host_key_fingerprint: The host key finger-print of the SFTP server. When - SkipHostKeyValidation is false, HostKeyFingerprint should be specified. Type: string (or - Expression with resultType string). - :paramtype host_key_fingerprint: JSON - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Sftp" - self.host = host - self.port = port - self.authentication_type = authentication_type - self.user_name = user_name - self.password = password - self.encrypted_credential = encrypted_credential - self.private_key_path = private_key_path - self.private_key_content = private_key_content - self.pass_phrase = pass_phrase - self.skip_host_key_validation = skip_host_key_validation - self.host_key_fingerprint = host_key_fingerprint - - -class SftpWriteSettings(StoreWriteSettings): - """Sftp write settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The write setting type. Required. - :vartype type: str - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar copy_behavior: The type of copy behavior for copy sink. - :vartype copy_behavior: JSON - :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :vartype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - :ivar operation_timeout: Specifies the timeout for writing each chunk to SFTP server. Default - value: 01:00:00 (one hour). Type: string (or Expression with resultType string). - :vartype operation_timeout: JSON - :ivar use_temp_file_rename: Upload to temporary file(s) and rename. Disable this option if your - SFTP server doesn't support rename operation. Type: boolean (or Expression with resultType - boolean). - :vartype use_temp_file_rename: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "copy_behavior": {"key": "copyBehavior", "type": "object"}, - "metadata": {"key": "metadata", "type": "[MetadataItem]"}, - "operation_timeout": {"key": "operationTimeout", "type": "object"}, - "use_temp_file_rename": {"key": "useTempFileRename", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - copy_behavior: Optional[JSON] = None, - metadata: Optional[list["_models.MetadataItem"]] = None, - operation_timeout: Optional[JSON] = None, - use_temp_file_rename: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword copy_behavior: The type of copy behavior for copy sink. - :paramtype copy_behavior: JSON - :keyword metadata: Specify the custom metadata to be added to sink data. Type: array of objects - (or Expression with resultType array of objects). - :paramtype metadata: list[~azure.mgmt.datafactory.models.MetadataItem] - :keyword operation_timeout: Specifies the timeout for writing each chunk to SFTP server. - Default value: 01:00:00 (one hour). Type: string (or Expression with resultType string). - :paramtype operation_timeout: JSON - :keyword use_temp_file_rename: Upload to temporary file(s) and rename. Disable this option if - your SFTP server doesn't support rename operation. Type: boolean (or Expression with resultType - boolean). - :paramtype use_temp_file_rename: JSON - """ - super().__init__( - additional_properties=additional_properties, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - copy_behavior=copy_behavior, - metadata=metadata, - **kwargs - ) - self.type: str = "SftpWriteSettings" - self.operation_timeout = operation_timeout - self.use_temp_file_rename = use_temp_file_rename - - -class SharePointOnlineListLinkedService(LinkedService): - """SharePoint Online List linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar site_url: The URL of the SharePoint Online site. For example, - https://contoso.sharepoint.com/sites/siteName. Type: string (or Expression with resultType - string). Required. - :vartype site_url: JSON - :ivar tenant_id: The tenant ID under which your application resides. You can find it from Azure - portal Active Directory overview page. Type: string (or Expression with resultType string). - Required. - :vartype tenant_id: JSON - :ivar service_principal_id: The application (client) ID of your application registered in Azure - Active Directory. Make sure to grant SharePoint site permission to this application. Type: - string (or Expression with resultType string). Required. - :vartype service_principal_id: JSON - :ivar service_principal_key: The client secret of your application registered in Azure Active - Directory. Type: string (or Expression with resultType string). - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :vartype service_principal_credential_type: JSON - :ivar service_principal_embedded_cert: Specify the base64 encoded certificate of your - application registered in Azure Active Directory. Type: string (or Expression with resultType - string). - :vartype service_principal_embedded_cert: ~azure.mgmt.datafactory.models.SecretBase - :ivar service_principal_embedded_cert_password: Specify the password of your certificate if - your certificate has a password and you are using AadServicePrincipal authentication. Type: - string (or Expression with resultType string). - :vartype service_principal_embedded_cert_password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "site_url": {"required": True}, - "tenant_id": {"required": True}, - "service_principal_id": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "site_url": {"key": "typeProperties.siteUrl", "type": "object"}, - "tenant_id": {"key": "typeProperties.tenantId", "type": "object"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, - "service_principal_embedded_cert": {"key": "typeProperties.servicePrincipalEmbeddedCert", "type": "SecretBase"}, - "service_principal_embedded_cert_password": { - "key": "typeProperties.servicePrincipalEmbeddedCertPassword", - "type": "SecretBase", - }, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - site_url: JSON, - tenant_id: JSON, - service_principal_id: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - service_principal_credential_type: Optional[JSON] = None, - service_principal_embedded_cert: Optional["_models.SecretBase"] = None, - service_principal_embedded_cert_password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword site_url: The URL of the SharePoint Online site. For example, - https://contoso.sharepoint.com/sites/siteName. Type: string (or Expression with resultType - string). Required. - :paramtype site_url: JSON - :keyword tenant_id: The tenant ID under which your application resides. You can find it from - Azure portal Active Directory overview page. Type: string (or Expression with resultType - string). Required. - :paramtype tenant_id: JSON - :keyword service_principal_id: The application (client) ID of your application registered in - Azure Active Directory. Make sure to grant SharePoint site permission to this application. - Type: string (or Expression with resultType string). Required. - :paramtype service_principal_id: JSON - :keyword service_principal_key: The client secret of your application registered in Azure - Active Directory. Type: string (or Expression with resultType string). - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :paramtype service_principal_credential_type: JSON - :keyword service_principal_embedded_cert: Specify the base64 encoded certificate of your - application registered in Azure Active Directory. Type: string (or Expression with resultType - string). - :paramtype service_principal_embedded_cert: ~azure.mgmt.datafactory.models.SecretBase - :keyword service_principal_embedded_cert_password: Specify the password of your certificate if - your certificate has a password and you are using AadServicePrincipal authentication. Type: - string (or Expression with resultType string). - :paramtype service_principal_embedded_cert_password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "SharePointOnlineList" - self.site_url = site_url - self.tenant_id = tenant_id - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.service_principal_credential_type = service_principal_credential_type - self.service_principal_embedded_cert = service_principal_embedded_cert - self.service_principal_embedded_cert_password = service_principal_embedded_cert_password - self.encrypted_credential = encrypted_credential - - -class SharePointOnlineListResourceDataset(Dataset): - """The sharepoint online list resource dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar list_name: The name of the SharePoint Online list. Type: string (or Expression with - resultType string). - :vartype list_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "list_name": {"key": "typeProperties.listName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - list_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword list_name: The name of the SharePoint Online list. Type: string (or Expression with - resultType string). - :paramtype list_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SharePointOnlineListResource" - self.list_name = list_name - - -class SharePointOnlineListSource(CopySource): - """A copy activity source for sharePoint online list source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query: The OData query to filter the data in SharePoint Online list. For example, - "$top=1". Type: string (or Expression with resultType string). - :vartype query: JSON - :ivar http_request_timeout: The wait time to get a response from SharePoint Online. Default - value is 5 minutes (00:05:00). Type: string (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype http_request_timeout: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "http_request_timeout": {"key": "httpRequestTimeout", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query: Optional[JSON] = None, - http_request_timeout: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query: The OData query to filter the data in SharePoint Online list. For example, - "$top=1". Type: string (or Expression with resultType string). - :paramtype query: JSON - :keyword http_request_timeout: The wait time to get a response from SharePoint Online. Default - value is 5 minutes (00:05:00). Type: string (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype http_request_timeout: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "SharePointOnlineListSource" - self.query = query - self.http_request_timeout = http_request_timeout - - -class ShopifyLinkedService(LinkedService): - """Shopify Service linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar host: The endpoint of the Shopify server. (i.e. mystore.myshopify.com). Required. - :vartype host: JSON - :ivar access_token: The API access token that can be used to access Shopify’s data. The token - won't expire if it is offline mode. - :vartype access_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using - HTTPS. The default value is true. - :vartype use_encrypted_endpoints: JSON - :ivar use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :vartype use_host_verification: JSON - :ivar use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :vartype use_peer_verification: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "host": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "access_token": {"key": "typeProperties.accessToken", "type": "SecretBase"}, - "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, - "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, - "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - host: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - access_token: Optional["_models.SecretBase"] = None, - use_encrypted_endpoints: Optional[JSON] = None, - use_host_verification: Optional[JSON] = None, - use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword host: The endpoint of the Shopify server. (i.e. mystore.myshopify.com). Required. - :paramtype host: JSON - :keyword access_token: The API access token that can be used to access Shopify’s data. The - token won't expire if it is offline mode. - :paramtype access_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted - using HTTPS. The default value is true. - :paramtype use_encrypted_endpoints: JSON - :keyword use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :paramtype use_host_verification: JSON - :keyword use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :paramtype use_peer_verification: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Shopify" - self.host = host - self.access_token = access_token - self.use_encrypted_endpoints = use_encrypted_endpoints - self.use_host_verification = use_host_verification - self.use_peer_verification = use_peer_verification - self.encrypted_credential = encrypted_credential - - -class ShopifyObjectDataset(Dataset): - """Shopify Service dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "ShopifyObject" - self.table_name = table_name - - -class ShopifySource(TabularSource): - """A copy activity Shopify Service source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "ShopifySource" - self.query = query - - -class SkipErrorFile(_serialization.Model): - """Skip error file. - - :ivar file_missing: Skip if file is deleted by other client during copy. Default is true. Type: - boolean (or Expression with resultType boolean). - :vartype file_missing: JSON - :ivar data_inconsistency: Skip if source/sink file changed by other concurrent write. Default - is false. Type: boolean (or Expression with resultType boolean). - :vartype data_inconsistency: JSON - """ - - _attribute_map = { - "file_missing": {"key": "fileMissing", "type": "object"}, - "data_inconsistency": {"key": "dataInconsistency", "type": "object"}, - } - - def __init__( - self, *, file_missing: Optional[JSON] = None, data_inconsistency: Optional[JSON] = None, **kwargs: Any - ) -> None: - """ - :keyword file_missing: Skip if file is deleted by other client during copy. Default is true. - Type: boolean (or Expression with resultType boolean). - :paramtype file_missing: JSON - :keyword data_inconsistency: Skip if source/sink file changed by other concurrent write. - Default is false. Type: boolean (or Expression with resultType boolean). - :paramtype data_inconsistency: JSON - """ - super().__init__(**kwargs) - self.file_missing = file_missing - self.data_inconsistency = data_inconsistency - - -class SmartsheetLinkedService(LinkedService): - """Linked service for Smartsheet. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar api_token: The api token for the Smartsheet source. Required. - :vartype api_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "api_token": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "api_token": {"key": "typeProperties.apiToken", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - api_token: "_models.SecretBase", - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword api_token: The api token for the Smartsheet source. Required. - :paramtype api_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Smartsheet" - self.api_token = api_token - self.encrypted_credential = encrypted_credential - - -class SnowflakeDataset(Dataset): - """The snowflake dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar schema_type_properties_schema: The schema name of the Snowflake database. Type: string - (or Expression with resultType string). - :vartype schema_type_properties_schema: JSON - :ivar table: The table name of the Snowflake database. Type: string (or Expression with - resultType string). - :vartype table: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - schema_type_properties_schema: Optional[JSON] = None, - table: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword schema_type_properties_schema: The schema name of the Snowflake database. Type: string - (or Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - :keyword table: The table name of the Snowflake database. Type: string (or Expression with - resultType string). - :paramtype table: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SnowflakeTable" - self.schema_type_properties_schema = schema_type_properties_schema - self.table = table - - -class SnowflakeExportCopyCommand(ExportSettings): - """Snowflake export command settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The export setting type. Required. - :vartype type: str - :ivar additional_copy_options: Additional copy options directly passed to snowflake Copy - Command. Type: key value pairs (value should be string type) (or Expression with resultType - object). Example: "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", "TIME_FORMAT": - "'HH24:MI:SS.FF'" }. - :vartype additional_copy_options: dict[str, JSON] - :ivar additional_format_options: Additional format options directly passed to snowflake Copy - Command. Type: key value pairs (value should be string type) (or Expression with resultType - object). Example: "additionalFormatOptions": { "OVERWRITE": "TRUE", "MAX_FILE_SIZE": "'FALSE'" - }. - :vartype additional_format_options: dict[str, JSON] - :ivar storage_integration: The name of the snowflake storage integration to use for the copy - operation. Type: string (or Expression with resultType string). - :vartype storage_integration: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "additional_copy_options": {"key": "additionalCopyOptions", "type": "{object}"}, - "additional_format_options": {"key": "additionalFormatOptions", "type": "{object}"}, - "storage_integration": {"key": "storageIntegration", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - additional_copy_options: Optional[dict[str, JSON]] = None, - additional_format_options: Optional[dict[str, JSON]] = None, - storage_integration: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword additional_copy_options: Additional copy options directly passed to snowflake Copy - Command. Type: key value pairs (value should be string type) (or Expression with resultType - object). Example: "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", "TIME_FORMAT": - "'HH24:MI:SS.FF'" }. - :paramtype additional_copy_options: dict[str, JSON] - :keyword additional_format_options: Additional format options directly passed to snowflake Copy - Command. Type: key value pairs (value should be string type) (or Expression with resultType - object). Example: "additionalFormatOptions": { "OVERWRITE": "TRUE", "MAX_FILE_SIZE": "'FALSE'" - }. - :paramtype additional_format_options: dict[str, JSON] - :keyword storage_integration: The name of the snowflake storage integration to use for the copy - operation. Type: string (or Expression with resultType string). - :paramtype storage_integration: JSON - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "SnowflakeExportCopyCommand" - self.additional_copy_options = additional_copy_options - self.additional_format_options = additional_format_options - self.storage_integration = storage_integration - - -class SnowflakeImportCopyCommand(ImportSettings): - """Snowflake import command settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The import setting type. Required. - :vartype type: str - :ivar additional_copy_options: Additional copy options directly passed to snowflake Copy - Command. Type: key value pairs (value should be string type) (or Expression with resultType - object). Example: "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", "TIME_FORMAT": - "'HH24:MI:SS.FF'" }. - :vartype additional_copy_options: dict[str, JSON] - :ivar additional_format_options: Additional format options directly passed to snowflake Copy - Command. Type: key value pairs (value should be string type) (or Expression with resultType - object). Example: "additionalFormatOptions": { "FORCE": "TRUE", "LOAD_UNCERTAIN_FILES": - "'FALSE'" }. - :vartype additional_format_options: dict[str, JSON] - :ivar storage_integration: The name of the snowflake storage integration to use for the copy - operation. Type: string (or Expression with resultType string). - :vartype storage_integration: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "additional_copy_options": {"key": "additionalCopyOptions", "type": "{object}"}, - "additional_format_options": {"key": "additionalFormatOptions", "type": "{object}"}, - "storage_integration": {"key": "storageIntegration", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - additional_copy_options: Optional[dict[str, JSON]] = None, - additional_format_options: Optional[dict[str, JSON]] = None, - storage_integration: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword additional_copy_options: Additional copy options directly passed to snowflake Copy - Command. Type: key value pairs (value should be string type) (or Expression with resultType - object). Example: "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", "TIME_FORMAT": - "'HH24:MI:SS.FF'" }. - :paramtype additional_copy_options: dict[str, JSON] - :keyword additional_format_options: Additional format options directly passed to snowflake Copy - Command. Type: key value pairs (value should be string type) (or Expression with resultType - object). Example: "additionalFormatOptions": { "FORCE": "TRUE", "LOAD_UNCERTAIN_FILES": - "'FALSE'" }. - :paramtype additional_format_options: dict[str, JSON] - :keyword storage_integration: The name of the snowflake storage integration to use for the copy - operation. Type: string (or Expression with resultType string). - :paramtype storage_integration: JSON - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "SnowflakeImportCopyCommand" - self.additional_copy_options = additional_copy_options - self.additional_format_options = additional_format_options - self.storage_integration = storage_integration - - -class SnowflakeLinkedService(LinkedService): - """Snowflake linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: The connection string of snowflake. Type: string, SecureString. - Required. - :vartype connection_string: JSON - :ivar password: The Azure key vault secret reference of password in connection string. - :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "connection_string": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - connection_string: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - password: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: The connection string of snowflake. Type: string, SecureString. - Required. - :paramtype connection_string: JSON - :keyword password: The Azure key vault secret reference of password in connection string. - :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Snowflake" - self.connection_string = connection_string - self.password = password - self.encrypted_credential = encrypted_credential - - -class SnowflakeSink(CopySink): - """A copy activity snowflake sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :vartype pre_copy_script: JSON - :ivar import_settings: Snowflake import settings. - :vartype import_settings: ~azure.mgmt.datafactory.models.SnowflakeImportCopyCommand - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "pre_copy_script": {"key": "preCopyScript", "type": "object"}, - "import_settings": {"key": "importSettings", "type": "SnowflakeImportCopyCommand"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - pre_copy_script: Optional[JSON] = None, - import_settings: Optional["_models.SnowflakeImportCopyCommand"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :paramtype pre_copy_script: JSON - :keyword import_settings: Snowflake import settings. - :paramtype import_settings: ~azure.mgmt.datafactory.models.SnowflakeImportCopyCommand - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "SnowflakeSink" - self.pre_copy_script = pre_copy_script - self.import_settings = import_settings - - -class SnowflakeSource(CopySource): - """A copy activity snowflake source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query: Snowflake Sql query. Type: string (or Expression with resultType string). - :vartype query: JSON - :ivar export_settings: Snowflake export settings. Required. - :vartype export_settings: ~azure.mgmt.datafactory.models.SnowflakeExportCopyCommand - """ - - _validation = { - "type": {"required": True}, - "export_settings": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "export_settings": {"key": "exportSettings", "type": "SnowflakeExportCopyCommand"}, - } - - def __init__( - self, - *, - export_settings: "_models.SnowflakeExportCopyCommand", - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query: Snowflake Sql query. Type: string (or Expression with resultType string). - :paramtype query: JSON - :keyword export_settings: Snowflake export settings. Required. - :paramtype export_settings: ~azure.mgmt.datafactory.models.SnowflakeExportCopyCommand - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "SnowflakeSource" - self.query = query - self.export_settings = export_settings - - -class SnowflakeV2Dataset(Dataset): - """The snowflake dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar schema_type_properties_schema: The schema name of the Snowflake database. Type: string - (or Expression with resultType string). - :vartype schema_type_properties_schema: JSON - :ivar table: The table name of the Snowflake database. Type: string (or Expression with - resultType string). - :vartype table: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - schema_type_properties_schema: Optional[JSON] = None, - table: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword schema_type_properties_schema: The schema name of the Snowflake database. Type: string - (or Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - :keyword table: The table name of the Snowflake database. Type: string (or Expression with - resultType string). - :paramtype table: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SnowflakeV2Table" - self.schema_type_properties_schema = schema_type_properties_schema - self.table = table - - -class SnowflakeV2LinkedService(LinkedService): - """Snowflake linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar account_identifier: The account identifier of your Snowflake account, e.g. - xy12345.east-us-2.azure. Required. - :vartype account_identifier: JSON - :ivar user: The name of the Snowflake user. - :vartype user: JSON - :ivar password: The Azure key vault secret reference of password in connection string. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar database: The name of the Snowflake database. Required. - :vartype database: JSON - :ivar warehouse: The name of the Snowflake warehouse. Required. - :vartype warehouse: JSON - :ivar authentication_type: The type used for authentication. Type: string. Known values are: - "Basic", "KeyPair", and "AADServicePrincipal". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.SnowflakeAuthenticationType - :ivar client_id: The client ID of the application registered in Azure Active Directory for - AADServicePrincipal authentication. - :vartype client_id: JSON - :ivar client_secret: The Azure key vault secret reference of client secret for - AADServicePrincipal authentication. - :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant_id: The tenant ID of the application registered in Azure Active Directory for - AADServicePrincipal authentication. - :vartype tenant_id: JSON - :ivar scope: The scope of the application registered in Azure Active Directory for - AADServicePrincipal authentication. - :vartype scope: JSON - :ivar private_key: The Azure key vault secret reference of privateKey for KeyPair auth. - :vartype private_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar private_key_passphrase: The Azure key vault secret reference of private key password for - KeyPair auth with encrypted private key. - :vartype private_key_passphrase: ~azure.mgmt.datafactory.models.SecretBase - :ivar role: The default access control role to use in the Snowflake session. Type: string (or - Expression with resultType string). - :vartype role: JSON - :ivar host: The host name of the Snowflake account. Type: string (or Expression with resultType - string). - :vartype host: JSON - :ivar schema: Schema name for connection. Type: string (or Expression with resultType string). - :vartype schema: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar use_utc_timestamps: Indicates whether to use UTC timezone for timestamp data types. Type: - boolean. - :vartype use_utc_timestamps: JSON - """ - - _validation = { - "type": {"required": True}, - "account_identifier": {"required": True}, - "database": {"required": True}, - "warehouse": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "account_identifier": {"key": "typeProperties.accountIdentifier", "type": "object"}, - "user": {"key": "typeProperties.user", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "warehouse": {"key": "typeProperties.warehouse", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "client_secret": {"key": "typeProperties.clientSecret", "type": "SecretBase"}, - "tenant_id": {"key": "typeProperties.tenantId", "type": "object"}, - "scope": {"key": "typeProperties.scope", "type": "object"}, - "private_key": {"key": "typeProperties.privateKey", "type": "SecretBase"}, - "private_key_passphrase": {"key": "typeProperties.privateKeyPassphrase", "type": "SecretBase"}, - "role": {"key": "typeProperties.role", "type": "object"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "schema": {"key": "typeProperties.schema", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "use_utc_timestamps": {"key": "typeProperties.useUtcTimestamps", "type": "object"}, - } - - def __init__( - self, - *, - account_identifier: JSON, - database: JSON, - warehouse: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - user: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - authentication_type: Union[str, "_models.SnowflakeAuthenticationType"] = "Basic", - client_id: Optional[JSON] = None, - client_secret: Optional["_models.SecretBase"] = None, - tenant_id: Optional[JSON] = None, - scope: Optional[JSON] = None, - private_key: Optional["_models.SecretBase"] = None, - private_key_passphrase: Optional["_models.SecretBase"] = None, - role: Optional[JSON] = None, - host: Optional[JSON] = None, - schema: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - use_utc_timestamps: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword account_identifier: The account identifier of your Snowflake account, e.g. - xy12345.east-us-2.azure. Required. - :paramtype account_identifier: JSON - :keyword user: The name of the Snowflake user. - :paramtype user: JSON - :keyword password: The Azure key vault secret reference of password in connection string. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword database: The name of the Snowflake database. Required. - :paramtype database: JSON - :keyword warehouse: The name of the Snowflake warehouse. Required. - :paramtype warehouse: JSON - :keyword authentication_type: The type used for authentication. Type: string. Known values are: - "Basic", "KeyPair", and "AADServicePrincipal". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.SnowflakeAuthenticationType - :keyword client_id: The client ID of the application registered in Azure Active Directory for - AADServicePrincipal authentication. - :paramtype client_id: JSON - :keyword client_secret: The Azure key vault secret reference of client secret for - AADServicePrincipal authentication. - :paramtype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant_id: The tenant ID of the application registered in Azure Active Directory for - AADServicePrincipal authentication. - :paramtype tenant_id: JSON - :keyword scope: The scope of the application registered in Azure Active Directory for - AADServicePrincipal authentication. - :paramtype scope: JSON - :keyword private_key: The Azure key vault secret reference of privateKey for KeyPair auth. - :paramtype private_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword private_key_passphrase: The Azure key vault secret reference of private key password - for KeyPair auth with encrypted private key. - :paramtype private_key_passphrase: ~azure.mgmt.datafactory.models.SecretBase - :keyword role: The default access control role to use in the Snowflake session. Type: string - (or Expression with resultType string). - :paramtype role: JSON - :keyword host: The host name of the Snowflake account. Type: string (or Expression with - resultType string). - :paramtype host: JSON - :keyword schema: Schema name for connection. Type: string (or Expression with resultType - string). - :paramtype schema: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword use_utc_timestamps: Indicates whether to use UTC timezone for timestamp data types. - Type: boolean. - :paramtype use_utc_timestamps: JSON - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "SnowflakeV2" - self.account_identifier = account_identifier - self.user = user - self.password = password - self.database = database - self.warehouse = warehouse - self.authentication_type = authentication_type - self.client_id = client_id - self.client_secret = client_secret - self.tenant_id = tenant_id - self.scope = scope - self.private_key = private_key - self.private_key_passphrase = private_key_passphrase - self.role = role - self.host = host - self.schema = schema - self.encrypted_credential = encrypted_credential - self.use_utc_timestamps = use_utc_timestamps - - -class SnowflakeV2Sink(CopySink): - """A copy activity snowflake sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :vartype pre_copy_script: JSON - :ivar import_settings: Snowflake import settings. - :vartype import_settings: ~azure.mgmt.datafactory.models.SnowflakeImportCopyCommand - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "pre_copy_script": {"key": "preCopyScript", "type": "object"}, - "import_settings": {"key": "importSettings", "type": "SnowflakeImportCopyCommand"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - pre_copy_script: Optional[JSON] = None, - import_settings: Optional["_models.SnowflakeImportCopyCommand"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :paramtype pre_copy_script: JSON - :keyword import_settings: Snowflake import settings. - :paramtype import_settings: ~azure.mgmt.datafactory.models.SnowflakeImportCopyCommand - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "SnowflakeV2Sink" - self.pre_copy_script = pre_copy_script - self.import_settings = import_settings - - -class SnowflakeV2Source(CopySource): - """A copy activity snowflake source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query: Snowflake Sql query. Type: string (or Expression with resultType string). - :vartype query: JSON - :ivar export_settings: Snowflake export settings. Required. - :vartype export_settings: ~azure.mgmt.datafactory.models.SnowflakeExportCopyCommand - """ - - _validation = { - "type": {"required": True}, - "export_settings": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "export_settings": {"key": "exportSettings", "type": "SnowflakeExportCopyCommand"}, - } - - def __init__( - self, - *, - export_settings: "_models.SnowflakeExportCopyCommand", - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query: Snowflake Sql query. Type: string (or Expression with resultType string). - :paramtype query: JSON - :keyword export_settings: Snowflake export settings. Required. - :paramtype export_settings: ~azure.mgmt.datafactory.models.SnowflakeExportCopyCommand - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "SnowflakeV2Source" - self.query = query - self.export_settings = export_settings - - -class SparkConfigurationParametrizationReference(_serialization.Model): # pylint: disable=name-too-long - """Spark configuration reference. - - All required parameters must be populated in order to send to server. - - :ivar type: Spark configuration reference type. Required. "SparkConfigurationReference" - :vartype type: str or ~azure.mgmt.datafactory.models.SparkConfigurationReferenceType - :ivar reference_name: Reference spark configuration name. Type: string (or Expression with - resultType string). Required. - :vartype reference_name: JSON - """ - - _validation = { - "type": {"required": True}, - "reference_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "reference_name": {"key": "referenceName", "type": "object"}, - } - - def __init__( - self, *, type: Union[str, "_models.SparkConfigurationReferenceType"], reference_name: JSON, **kwargs: Any - ) -> None: - """ - :keyword type: Spark configuration reference type. Required. "SparkConfigurationReference" - :paramtype type: str or ~azure.mgmt.datafactory.models.SparkConfigurationReferenceType - :keyword reference_name: Reference spark configuration name. Type: string (or Expression with - resultType string). Required. - :paramtype reference_name: JSON - """ - super().__init__(**kwargs) - self.type = type - self.reference_name = reference_name - - -class SparkLinkedService(LinkedService): - """Spark Server linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar host: IP address or host name of the Spark server. Required. - :vartype host: JSON - :ivar port: The TCP port that the Spark server uses to listen for client connections. Required. - :vartype port: JSON - :ivar server_type: The type of Spark server. Known values are: "SharkServer", "SharkServer2", - and "SparkThriftServer". - :vartype server_type: str or ~azure.mgmt.datafactory.models.SparkServerType - :ivar thrift_transport_protocol: The transport protocol to use in the Thrift layer. Known - values are: "Binary", "SASL", and "HTTP ". - :vartype thrift_transport_protocol: str or - ~azure.mgmt.datafactory.models.SparkThriftTransportProtocol - :ivar authentication_type: The authentication method used to access the Spark server. Required. - Known values are: "Anonymous", "Username", "UsernameAndPassword", and - "WindowsAzureHDInsightService". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.SparkAuthenticationType - :ivar username: The user name that you use to access Spark Server. - :vartype username: JSON - :ivar password: The password corresponding to the user name that you provided in the Username - field. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar http_path: The partial URL corresponding to the Spark server. - :vartype http_path: JSON - :ivar enable_ssl: Specifies whether the connections to the server are encrypted using SSL. The - default value is false. - :vartype enable_ssl: JSON - :ivar enable_server_certificate_validation: Specifies whether the connections to the server - will validate server certificate, the default value is True. Only used for Version 2.0. - :vartype enable_server_certificate_validation: JSON - :ivar trusted_cert_path: The full path of the .pem file containing trusted CA certificates for - verifying the server when connecting over SSL. This property can only be set when using SSL on - self-hosted IR. The default value is the cacerts.pem file installed with the IR. - :vartype trusted_cert_path: JSON - :ivar use_system_trust_store: Specifies whether to use a CA certificate from the system trust - store or from a specified PEM file. The default value is false. - :vartype use_system_trust_store: JSON - :ivar allow_host_name_cn_mismatch: Specifies whether to require a CA-issued SSL certificate - name to match the host name of the server when connecting over SSL. The default value is false. - :vartype allow_host_name_cn_mismatch: JSON - :ivar allow_self_signed_server_cert: Specifies whether to allow self-signed certificates from - the server. The default value is false. - :vartype allow_self_signed_server_cert: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "host": {"required": True}, - "port": {"required": True}, - "authentication_type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "server_type": {"key": "typeProperties.serverType", "type": "str"}, - "thrift_transport_protocol": {"key": "typeProperties.thriftTransportProtocol", "type": "str"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "http_path": {"key": "typeProperties.httpPath", "type": "object"}, - "enable_ssl": {"key": "typeProperties.enableSsl", "type": "object"}, - "enable_server_certificate_validation": { - "key": "typeProperties.enableServerCertificateValidation", - "type": "object", - }, - "trusted_cert_path": {"key": "typeProperties.trustedCertPath", "type": "object"}, - "use_system_trust_store": {"key": "typeProperties.useSystemTrustStore", "type": "object"}, - "allow_host_name_cn_mismatch": {"key": "typeProperties.allowHostNameCNMismatch", "type": "object"}, - "allow_self_signed_server_cert": {"key": "typeProperties.allowSelfSignedServerCert", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - host: JSON, - port: JSON, - authentication_type: Union[str, "_models.SparkAuthenticationType"], - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - server_type: Optional[Union[str, "_models.SparkServerType"]] = None, - thrift_transport_protocol: Optional[Union[str, "_models.SparkThriftTransportProtocol"]] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - http_path: Optional[JSON] = None, - enable_ssl: Optional[JSON] = None, - enable_server_certificate_validation: Optional[JSON] = None, - trusted_cert_path: Optional[JSON] = None, - use_system_trust_store: Optional[JSON] = None, - allow_host_name_cn_mismatch: Optional[JSON] = None, - allow_self_signed_server_cert: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword host: IP address or host name of the Spark server. Required. - :paramtype host: JSON - :keyword port: The TCP port that the Spark server uses to listen for client connections. - Required. - :paramtype port: JSON - :keyword server_type: The type of Spark server. Known values are: "SharkServer", - "SharkServer2", and "SparkThriftServer". - :paramtype server_type: str or ~azure.mgmt.datafactory.models.SparkServerType - :keyword thrift_transport_protocol: The transport protocol to use in the Thrift layer. Known - values are: "Binary", "SASL", and "HTTP ". - :paramtype thrift_transport_protocol: str or - ~azure.mgmt.datafactory.models.SparkThriftTransportProtocol - :keyword authentication_type: The authentication method used to access the Spark server. - Required. Known values are: "Anonymous", "Username", "UsernameAndPassword", and - "WindowsAzureHDInsightService". - :paramtype authentication_type: str or ~azure.mgmt.datafactory.models.SparkAuthenticationType - :keyword username: The user name that you use to access Spark Server. - :paramtype username: JSON - :keyword password: The password corresponding to the user name that you provided in the - Username field. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword http_path: The partial URL corresponding to the Spark server. - :paramtype http_path: JSON - :keyword enable_ssl: Specifies whether the connections to the server are encrypted using SSL. - The default value is false. - :paramtype enable_ssl: JSON - :keyword enable_server_certificate_validation: Specifies whether the connections to the server - will validate server certificate, the default value is True. Only used for Version 2.0. - :paramtype enable_server_certificate_validation: JSON - :keyword trusted_cert_path: The full path of the .pem file containing trusted CA certificates - for verifying the server when connecting over SSL. This property can only be set when using SSL - on self-hosted IR. The default value is the cacerts.pem file installed with the IR. - :paramtype trusted_cert_path: JSON - :keyword use_system_trust_store: Specifies whether to use a CA certificate from the system - trust store or from a specified PEM file. The default value is false. - :paramtype use_system_trust_store: JSON - :keyword allow_host_name_cn_mismatch: Specifies whether to require a CA-issued SSL certificate - name to match the host name of the server when connecting over SSL. The default value is false. - :paramtype allow_host_name_cn_mismatch: JSON - :keyword allow_self_signed_server_cert: Specifies whether to allow self-signed certificates - from the server. The default value is false. - :paramtype allow_self_signed_server_cert: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Spark" - self.host = host - self.port = port - self.server_type = server_type - self.thrift_transport_protocol = thrift_transport_protocol - self.authentication_type = authentication_type - self.username = username - self.password = password - self.http_path = http_path - self.enable_ssl = enable_ssl - self.enable_server_certificate_validation = enable_server_certificate_validation - self.trusted_cert_path = trusted_cert_path - self.use_system_trust_store = use_system_trust_store - self.allow_host_name_cn_mismatch = allow_host_name_cn_mismatch - self.allow_self_signed_server_cert = allow_self_signed_server_cert - self.encrypted_credential = encrypted_credential - - -class SparkObjectDataset(Dataset): - """Spark Server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property will be retired. Please consider using schema + table - properties instead. - :vartype table_name: JSON - :ivar table: The table name of the Spark. Type: string (or Expression with resultType string). - :vartype table: JSON - :ivar schema_type_properties_schema: The schema name of the Spark. Type: string (or Expression - with resultType string). - :vartype schema_type_properties_schema: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - table: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property will be retired. Please consider using schema + table - properties instead. - :paramtype table_name: JSON - :keyword table: The table name of the Spark. Type: string (or Expression with resultType - string). - :paramtype table: JSON - :keyword schema_type_properties_schema: The schema name of the Spark. Type: string (or - Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SparkObject" - self.table_name = table_name - self.table = table - self.schema_type_properties_schema = schema_type_properties_schema - - -class SparkSource(TabularSource): - """A copy activity Spark Server source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "SparkSource" - self.query = query - - -class SqlAlwaysEncryptedProperties(_serialization.Model): - """Sql always encrypted properties. - - All required parameters must be populated in order to send to server. - - :ivar always_encrypted_akv_auth_type: Sql always encrypted AKV authentication type. Type: - string. Required. Known values are: "ServicePrincipal", "ManagedIdentity", and - "UserAssignedManagedIdentity". - :vartype always_encrypted_akv_auth_type: str or - ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedAkvAuthType - :ivar service_principal_id: The client ID of the application in Azure Active Directory used for - Azure Key Vault authentication. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The key of the service principal used to authenticate against - Azure Key Vault. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "always_encrypted_akv_auth_type": {"required": True}, - } - - _attribute_map = { - "always_encrypted_akv_auth_type": {"key": "alwaysEncryptedAkvAuthType", "type": "str"}, - "service_principal_id": {"key": "servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "servicePrincipalKey", "type": "SecretBase"}, - "credential": {"key": "credential", "type": "CredentialReference"}, - } - - def __init__( - self, - *, - always_encrypted_akv_auth_type: Union[str, "_models.SqlAlwaysEncryptedAkvAuthType"], - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword always_encrypted_akv_auth_type: Sql always encrypted AKV authentication type. Type: - string. Required. Known values are: "ServicePrincipal", "ManagedIdentity", and - "UserAssignedManagedIdentity". - :paramtype always_encrypted_akv_auth_type: str or - ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedAkvAuthType - :keyword service_principal_id: The client ID of the application in Azure Active Directory used - for Azure Key Vault authentication. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The key of the service principal used to authenticate against - Azure Key Vault. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__(**kwargs) - self.always_encrypted_akv_auth_type = always_encrypted_akv_auth_type - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.credential = credential - - -class SqlDWSink(CopySink): - """A copy activity SQL Data Warehouse sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :vartype pre_copy_script: JSON - :ivar allow_poly_base: Indicates to use PolyBase to copy data into SQL Data Warehouse when - applicable. Type: boolean (or Expression with resultType boolean). - :vartype allow_poly_base: JSON - :ivar poly_base_settings: Specifies PolyBase-related settings when allowPolyBase is true. - :vartype poly_base_settings: ~azure.mgmt.datafactory.models.PolybaseSettings - :ivar allow_copy_command: Indicates to use Copy Command to copy data into SQL Data Warehouse. - Type: boolean (or Expression with resultType boolean). - :vartype allow_copy_command: JSON - :ivar copy_command_settings: Specifies Copy Command related settings when allowCopyCommand is - true. - :vartype copy_command_settings: ~azure.mgmt.datafactory.models.DWCopyCommandSettings - :ivar table_option: The option to handle sink table, such as autoCreate. For now only - 'autoCreate' value is supported. Type: string (or Expression with resultType string). - :vartype table_option: JSON - :ivar sql_writer_use_table_lock: Whether to use table lock during bulk copy. Type: boolean (or - Expression with resultType boolean). - :vartype sql_writer_use_table_lock: JSON - :ivar write_behavior: Write behavior when copying data into azure SQL DW. Type: - SqlDWWriteBehaviorEnum (or Expression with resultType SqlDWWriteBehaviorEnum). - :vartype write_behavior: JSON - :ivar upsert_settings: SQL DW upsert settings. - :vartype upsert_settings: ~azure.mgmt.datafactory.models.SqlDWUpsertSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "pre_copy_script": {"key": "preCopyScript", "type": "object"}, - "allow_poly_base": {"key": "allowPolyBase", "type": "object"}, - "poly_base_settings": {"key": "polyBaseSettings", "type": "PolybaseSettings"}, - "allow_copy_command": {"key": "allowCopyCommand", "type": "object"}, - "copy_command_settings": {"key": "copyCommandSettings", "type": "DWCopyCommandSettings"}, - "table_option": {"key": "tableOption", "type": "object"}, - "sql_writer_use_table_lock": {"key": "sqlWriterUseTableLock", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "object"}, - "upsert_settings": {"key": "upsertSettings", "type": "SqlDWUpsertSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - pre_copy_script: Optional[JSON] = None, - allow_poly_base: Optional[JSON] = None, - poly_base_settings: Optional["_models.PolybaseSettings"] = None, - allow_copy_command: Optional[JSON] = None, - copy_command_settings: Optional["_models.DWCopyCommandSettings"] = None, - table_option: Optional[JSON] = None, - sql_writer_use_table_lock: Optional[JSON] = None, - write_behavior: Optional[JSON] = None, - upsert_settings: Optional["_models.SqlDWUpsertSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :paramtype pre_copy_script: JSON - :keyword allow_poly_base: Indicates to use PolyBase to copy data into SQL Data Warehouse when - applicable. Type: boolean (or Expression with resultType boolean). - :paramtype allow_poly_base: JSON - :keyword poly_base_settings: Specifies PolyBase-related settings when allowPolyBase is true. - :paramtype poly_base_settings: ~azure.mgmt.datafactory.models.PolybaseSettings - :keyword allow_copy_command: Indicates to use Copy Command to copy data into SQL Data - Warehouse. Type: boolean (or Expression with resultType boolean). - :paramtype allow_copy_command: JSON - :keyword copy_command_settings: Specifies Copy Command related settings when allowCopyCommand - is true. - :paramtype copy_command_settings: ~azure.mgmt.datafactory.models.DWCopyCommandSettings - :keyword table_option: The option to handle sink table, such as autoCreate. For now only - 'autoCreate' value is supported. Type: string (or Expression with resultType string). - :paramtype table_option: JSON - :keyword sql_writer_use_table_lock: Whether to use table lock during bulk copy. Type: boolean - (or Expression with resultType boolean). - :paramtype sql_writer_use_table_lock: JSON - :keyword write_behavior: Write behavior when copying data into azure SQL DW. Type: - SqlDWWriteBehaviorEnum (or Expression with resultType SqlDWWriteBehaviorEnum). - :paramtype write_behavior: JSON - :keyword upsert_settings: SQL DW upsert settings. - :paramtype upsert_settings: ~azure.mgmt.datafactory.models.SqlDWUpsertSettings - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "SqlDWSink" - self.pre_copy_script = pre_copy_script - self.allow_poly_base = allow_poly_base - self.poly_base_settings = poly_base_settings - self.allow_copy_command = allow_copy_command - self.copy_command_settings = copy_command_settings - self.table_option = table_option - self.sql_writer_use_table_lock = sql_writer_use_table_lock - self.write_behavior = write_behavior - self.upsert_settings = upsert_settings - - -class SqlDWSource(TabularSource): - """A copy activity SQL Data Warehouse source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar sql_reader_query: SQL Data Warehouse reader query. Type: string (or Expression with - resultType string). - :vartype sql_reader_query: JSON - :ivar sql_reader_stored_procedure_name: Name of the stored procedure for a SQL Data Warehouse - source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression - with resultType string). - :vartype sql_reader_stored_procedure_name: JSON - :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. - Example: "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression with resultType - object), itemType: StoredProcedureParameter. - :vartype stored_procedure_parameters: JSON - :ivar isolation_level: Specifies the transaction locking behavior for the SQL source. Allowed - values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value - is ReadCommitted. Type: string (or Expression with resultType string). - :vartype isolation_level: JSON - :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. - Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or - Expression with resultType string). - :vartype partition_option: JSON - :ivar partition_settings: The settings that will be leveraged for Sql source partitioning. - :vartype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "sql_reader_query": {"key": "sqlReaderQuery", "type": "object"}, - "sql_reader_stored_procedure_name": {"key": "sqlReaderStoredProcedureName", "type": "object"}, - "stored_procedure_parameters": {"key": "storedProcedureParameters", "type": "object"}, - "isolation_level": {"key": "isolationLevel", "type": "object"}, - "partition_option": {"key": "partitionOption", "type": "object"}, - "partition_settings": {"key": "partitionSettings", "type": "SqlPartitionSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - sql_reader_query: Optional[JSON] = None, - sql_reader_stored_procedure_name: Optional[JSON] = None, - stored_procedure_parameters: Optional[JSON] = None, - isolation_level: Optional[JSON] = None, - partition_option: Optional[JSON] = None, - partition_settings: Optional["_models.SqlPartitionSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword sql_reader_query: SQL Data Warehouse reader query. Type: string (or Expression with - resultType string). - :paramtype sql_reader_query: JSON - :keyword sql_reader_stored_procedure_name: Name of the stored procedure for a SQL Data - Warehouse source. This cannot be used at the same time as SqlReaderQuery. Type: string (or - Expression with resultType string). - :paramtype sql_reader_stored_procedure_name: JSON - :keyword stored_procedure_parameters: Value and type setting for stored procedure parameters. - Example: "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression with resultType - object), itemType: StoredProcedureParameter. - :paramtype stored_procedure_parameters: JSON - :keyword isolation_level: Specifies the transaction locking behavior for the SQL source. - Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default - value is ReadCommitted. Type: string (or Expression with resultType string). - :paramtype isolation_level: JSON - :keyword partition_option: The partition mechanism that will be used for Sql read in parallel. - Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or - Expression with resultType string). - :paramtype partition_option: JSON - :keyword partition_settings: The settings that will be leveraged for Sql source partitioning. - :paramtype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "SqlDWSource" - self.sql_reader_query = sql_reader_query - self.sql_reader_stored_procedure_name = sql_reader_stored_procedure_name - self.stored_procedure_parameters = stored_procedure_parameters - self.isolation_level = isolation_level - self.partition_option = partition_option - self.partition_settings = partition_settings - - -class SqlDWUpsertSettings(_serialization.Model): - """Sql DW upsert option settings. - - :ivar interim_schema_name: Schema name for interim table. Type: string (or Expression with - resultType string). - :vartype interim_schema_name: JSON - :ivar keys: Key column names for unique row identification. Type: array of strings (or - Expression with resultType array of strings). - :vartype keys: JSON - """ - - _attribute_map = { - "interim_schema_name": {"key": "interimSchemaName", "type": "object"}, - "keys": {"key": "keys", "type": "object"}, - } - - def __init__( - self, *, interim_schema_name: Optional[JSON] = None, keys: Optional[JSON] = None, **kwargs: Any - ) -> None: - """ - :keyword interim_schema_name: Schema name for interim table. Type: string (or Expression with - resultType string). - :paramtype interim_schema_name: JSON - :keyword keys: Key column names for unique row identification. Type: array of strings (or - Expression with resultType array of strings). - :paramtype keys: JSON - """ - super().__init__(**kwargs) - self.interim_schema_name = interim_schema_name - self.keys = keys - - -class SqlMISink(CopySink): - """A copy activity Azure SQL Managed Instance sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar sql_writer_stored_procedure_name: SQL writer stored procedure name. Type: string (or - Expression with resultType string). - :vartype sql_writer_stored_procedure_name: JSON - :ivar sql_writer_table_type: SQL writer table type. Type: string (or Expression with resultType - string). - :vartype sql_writer_table_type: JSON - :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :vartype pre_copy_script: JSON - :ivar stored_procedure_parameters: SQL stored procedure parameters. - :vartype stored_procedure_parameters: JSON - :ivar stored_procedure_table_type_parameter_name: The stored procedure parameter name of the - table type. Type: string (or Expression with resultType string). - :vartype stored_procedure_table_type_parameter_name: JSON - :ivar table_option: The option to handle sink table, such as autoCreate. For now only - 'autoCreate' value is supported. Type: string (or Expression with resultType string). - :vartype table_option: JSON - :ivar sql_writer_use_table_lock: Whether to use table lock during bulk copy. Type: boolean (or - Expression with resultType boolean). - :vartype sql_writer_use_table_lock: JSON - :ivar write_behavior: White behavior when copying data into azure SQL MI. Type: string (or - Expression with resultType string). - :vartype write_behavior: JSON - :ivar upsert_settings: SQL upsert settings. - :vartype upsert_settings: ~azure.mgmt.datafactory.models.SqlUpsertSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "sql_writer_stored_procedure_name": {"key": "sqlWriterStoredProcedureName", "type": "object"}, - "sql_writer_table_type": {"key": "sqlWriterTableType", "type": "object"}, - "pre_copy_script": {"key": "preCopyScript", "type": "object"}, - "stored_procedure_parameters": {"key": "storedProcedureParameters", "type": "object"}, - "stored_procedure_table_type_parameter_name": { - "key": "storedProcedureTableTypeParameterName", - "type": "object", - }, - "table_option": {"key": "tableOption", "type": "object"}, - "sql_writer_use_table_lock": {"key": "sqlWriterUseTableLock", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "object"}, - "upsert_settings": {"key": "upsertSettings", "type": "SqlUpsertSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - sql_writer_stored_procedure_name: Optional[JSON] = None, - sql_writer_table_type: Optional[JSON] = None, - pre_copy_script: Optional[JSON] = None, - stored_procedure_parameters: Optional[JSON] = None, - stored_procedure_table_type_parameter_name: Optional[JSON] = None, - table_option: Optional[JSON] = None, - sql_writer_use_table_lock: Optional[JSON] = None, - write_behavior: Optional[JSON] = None, - upsert_settings: Optional["_models.SqlUpsertSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword sql_writer_stored_procedure_name: SQL writer stored procedure name. Type: string (or - Expression with resultType string). - :paramtype sql_writer_stored_procedure_name: JSON - :keyword sql_writer_table_type: SQL writer table type. Type: string (or Expression with - resultType string). - :paramtype sql_writer_table_type: JSON - :keyword pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :paramtype pre_copy_script: JSON - :keyword stored_procedure_parameters: SQL stored procedure parameters. - :paramtype stored_procedure_parameters: JSON - :keyword stored_procedure_table_type_parameter_name: The stored procedure parameter name of the - table type. Type: string (or Expression with resultType string). - :paramtype stored_procedure_table_type_parameter_name: JSON - :keyword table_option: The option to handle sink table, such as autoCreate. For now only - 'autoCreate' value is supported. Type: string (or Expression with resultType string). - :paramtype table_option: JSON - :keyword sql_writer_use_table_lock: Whether to use table lock during bulk copy. Type: boolean - (or Expression with resultType boolean). - :paramtype sql_writer_use_table_lock: JSON - :keyword write_behavior: White behavior when copying data into azure SQL MI. Type: string (or - Expression with resultType string). - :paramtype write_behavior: JSON - :keyword upsert_settings: SQL upsert settings. - :paramtype upsert_settings: ~azure.mgmt.datafactory.models.SqlUpsertSettings - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "SqlMISink" - self.sql_writer_stored_procedure_name = sql_writer_stored_procedure_name - self.sql_writer_table_type = sql_writer_table_type - self.pre_copy_script = pre_copy_script - self.stored_procedure_parameters = stored_procedure_parameters - self.stored_procedure_table_type_parameter_name = stored_procedure_table_type_parameter_name - self.table_option = table_option - self.sql_writer_use_table_lock = sql_writer_use_table_lock - self.write_behavior = write_behavior - self.upsert_settings = upsert_settings - - -class SqlMISource(TabularSource): - """A copy activity Azure SQL Managed Instance source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar sql_reader_query: SQL reader query. Type: string (or Expression with resultType string). - :vartype sql_reader_query: JSON - :ivar sql_reader_stored_procedure_name: Name of the stored procedure for a Azure SQL Managed - Instance source. This cannot be used at the same time as SqlReaderQuery. Type: string (or - Expression with resultType string). - :vartype sql_reader_stored_procedure_name: JSON - :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. - Example: "{Parameter1: {value: "1", type: "int"}}". - :vartype stored_procedure_parameters: JSON - :ivar isolation_level: Specifies the transaction locking behavior for the SQL source. Allowed - values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value - is ReadCommitted. Type: string (or Expression with resultType string). - :vartype isolation_level: JSON - :ivar produce_additional_types: Which additional types to produce. - :vartype produce_additional_types: JSON - :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. - Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or - Expression with resultType string). - :vartype partition_option: JSON - :ivar partition_settings: The settings that will be leveraged for Sql source partitioning. - :vartype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "sql_reader_query": {"key": "sqlReaderQuery", "type": "object"}, - "sql_reader_stored_procedure_name": {"key": "sqlReaderStoredProcedureName", "type": "object"}, - "stored_procedure_parameters": {"key": "storedProcedureParameters", "type": "object"}, - "isolation_level": {"key": "isolationLevel", "type": "object"}, - "produce_additional_types": {"key": "produceAdditionalTypes", "type": "object"}, - "partition_option": {"key": "partitionOption", "type": "object"}, - "partition_settings": {"key": "partitionSettings", "type": "SqlPartitionSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - sql_reader_query: Optional[JSON] = None, - sql_reader_stored_procedure_name: Optional[JSON] = None, - stored_procedure_parameters: Optional[JSON] = None, - isolation_level: Optional[JSON] = None, - produce_additional_types: Optional[JSON] = None, - partition_option: Optional[JSON] = None, - partition_settings: Optional["_models.SqlPartitionSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword sql_reader_query: SQL reader query. Type: string (or Expression with resultType - string). - :paramtype sql_reader_query: JSON - :keyword sql_reader_stored_procedure_name: Name of the stored procedure for a Azure SQL Managed - Instance source. This cannot be used at the same time as SqlReaderQuery. Type: string (or - Expression with resultType string). - :paramtype sql_reader_stored_procedure_name: JSON - :keyword stored_procedure_parameters: Value and type setting for stored procedure parameters. - Example: "{Parameter1: {value: "1", type: "int"}}". - :paramtype stored_procedure_parameters: JSON - :keyword isolation_level: Specifies the transaction locking behavior for the SQL source. - Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default - value is ReadCommitted. Type: string (or Expression with resultType string). - :paramtype isolation_level: JSON - :keyword produce_additional_types: Which additional types to produce. - :paramtype produce_additional_types: JSON - :keyword partition_option: The partition mechanism that will be used for Sql read in parallel. - Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or - Expression with resultType string). - :paramtype partition_option: JSON - :keyword partition_settings: The settings that will be leveraged for Sql source partitioning. - :paramtype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "SqlMISource" - self.sql_reader_query = sql_reader_query - self.sql_reader_stored_procedure_name = sql_reader_stored_procedure_name - self.stored_procedure_parameters = stored_procedure_parameters - self.isolation_level = isolation_level - self.produce_additional_types = produce_additional_types - self.partition_option = partition_option - self.partition_settings = partition_settings - - -class SqlPartitionSettings(_serialization.Model): - """The settings that will be leveraged for Sql source partitioning. - - :ivar partition_column_name: The name of the column in integer or datetime type that will be - used for proceeding partitioning. If not specified, the primary key of the table is - auto-detected and used as the partition column. Type: string (or Expression with resultType - string). - :vartype partition_column_name: JSON - :ivar partition_upper_bound: The maximum value of the partition column for partition range - splitting. This value is used to decide the partition stride, not for filtering the rows in - table. All rows in the table or query result will be partitioned and copied. Type: string (or - Expression with resultType string). - :vartype partition_upper_bound: JSON - :ivar partition_lower_bound: The minimum value of the partition column for partition range - splitting. This value is used to decide the partition stride, not for filtering the rows in - table. All rows in the table or query result will be partitioned and copied. Type: string (or - Expression with resultType string). - :vartype partition_lower_bound: JSON - """ - - _attribute_map = { - "partition_column_name": {"key": "partitionColumnName", "type": "object"}, - "partition_upper_bound": {"key": "partitionUpperBound", "type": "object"}, - "partition_lower_bound": {"key": "partitionLowerBound", "type": "object"}, - } - - def __init__( - self, - *, - partition_column_name: Optional[JSON] = None, - partition_upper_bound: Optional[JSON] = None, - partition_lower_bound: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword partition_column_name: The name of the column in integer or datetime type that will be - used for proceeding partitioning. If not specified, the primary key of the table is - auto-detected and used as the partition column. Type: string (or Expression with resultType - string). - :paramtype partition_column_name: JSON - :keyword partition_upper_bound: The maximum value of the partition column for partition range - splitting. This value is used to decide the partition stride, not for filtering the rows in - table. All rows in the table or query result will be partitioned and copied. Type: string (or - Expression with resultType string). - :paramtype partition_upper_bound: JSON - :keyword partition_lower_bound: The minimum value of the partition column for partition range - splitting. This value is used to decide the partition stride, not for filtering the rows in - table. All rows in the table or query result will be partitioned and copied. Type: string (or - Expression with resultType string). - :paramtype partition_lower_bound: JSON - """ - super().__init__(**kwargs) - self.partition_column_name = partition_column_name - self.partition_upper_bound = partition_upper_bound - self.partition_lower_bound = partition_lower_bound - - -class SqlServerLinkedService(LinkedService): - """SQL Server linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :vartype server: JSON - :ivar database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :vartype database: JSON - :ivar encrypt: Indicate whether TLS encryption is required for all data sent between the client - and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :vartype encrypt: JSON - :ivar trust_server_certificate: Indicate whether the channel will be encrypted while bypassing - walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype trust_server_certificate: JSON - :ivar host_name_in_certificate: The host name to use when validating the server certificate for - the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :vartype host_name_in_certificate: JSON - :ivar application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :vartype application_intent: JSON - :ivar connect_timeout: The length of time (in seconds) to wait for a connection to the server - before terminating the attempt and generating an error, used by recommended version. Type: - integer (or Expression with resultType integer). - :vartype connect_timeout: JSON - :ivar connect_retry_count: The number of re-connections attempted after identifying that there - was an idle connection failure, used by recommended version. This must be an integer between 0 - and 255. Type: integer (or Expression with resultType integer). - :vartype connect_retry_count: JSON - :ivar connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :vartype connect_retry_interval: JSON - :ivar load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype load_balance_timeout: JSON - :ivar command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype command_timeout: JSON - :ivar integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :vartype integrated_security: JSON - :ivar failover_partner: The name or address of the partner server to connect to if the primary - server is down, used by recommended version. Type: string (or Expression with resultType - string). - :vartype failover_partner: JSON - :ivar max_pool_size: The maximum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype max_pool_size: JSON - :ivar min_pool_size: The minimum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype min_pool_size: JSON - :ivar multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :vartype multiple_active_result_sets: JSON - :ivar multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype multi_subnet_failover: JSON - :ivar packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :vartype packet_size: JSON - :ivar pooling: Indicate whether the connection will be pooled or explicitly opened every time - that the connection is requested, used by recommended version. Type: Boolean (or Expression - with resultType boolean). - :vartype pooling: JSON - :ivar connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar authentication_type: The type used for authentication. Type: string. Known values are: - "SQL", "Windows", and "UserAssignedManagedIdentity". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.SqlServerAuthenticationType - :ivar user_name: The on-premises Windows authentication user name. Type: string (or Expression - with resultType string). - :vartype user_name: JSON - :ivar password: The on-premises Windows authentication password. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar always_encrypted_settings: Sql always encrypted properties. - :vartype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "encrypt": {"key": "typeProperties.encrypt", "type": "object"}, - "trust_server_certificate": {"key": "typeProperties.trustServerCertificate", "type": "object"}, - "host_name_in_certificate": {"key": "typeProperties.hostNameInCertificate", "type": "object"}, - "application_intent": {"key": "typeProperties.applicationIntent", "type": "object"}, - "connect_timeout": {"key": "typeProperties.connectTimeout", "type": "object"}, - "connect_retry_count": {"key": "typeProperties.connectRetryCount", "type": "object"}, - "connect_retry_interval": {"key": "typeProperties.connectRetryInterval", "type": "object"}, - "load_balance_timeout": {"key": "typeProperties.loadBalanceTimeout", "type": "object"}, - "command_timeout": {"key": "typeProperties.commandTimeout", "type": "object"}, - "integrated_security": {"key": "typeProperties.integratedSecurity", "type": "object"}, - "failover_partner": {"key": "typeProperties.failoverPartner", "type": "object"}, - "max_pool_size": {"key": "typeProperties.maxPoolSize", "type": "object"}, - "min_pool_size": {"key": "typeProperties.minPoolSize", "type": "object"}, - "multiple_active_result_sets": {"key": "typeProperties.multipleActiveResultSets", "type": "object"}, - "multi_subnet_failover": {"key": "typeProperties.multiSubnetFailover", "type": "object"}, - "packet_size": {"key": "typeProperties.packetSize", "type": "object"}, - "pooling": {"key": "typeProperties.pooling", "type": "object"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "always_encrypted_settings": { - "key": "typeProperties.alwaysEncryptedSettings", - "type": "SqlAlwaysEncryptedProperties", - }, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - server: Optional[JSON] = None, - database: Optional[JSON] = None, - encrypt: Optional[JSON] = None, - trust_server_certificate: Optional[JSON] = None, - host_name_in_certificate: Optional[JSON] = None, - application_intent: Optional[JSON] = None, - connect_timeout: Optional[JSON] = None, - connect_retry_count: Optional[JSON] = None, - connect_retry_interval: Optional[JSON] = None, - load_balance_timeout: Optional[JSON] = None, - command_timeout: Optional[JSON] = None, - integrated_security: Optional[JSON] = None, - failover_partner: Optional[JSON] = None, - max_pool_size: Optional[JSON] = None, - min_pool_size: Optional[JSON] = None, - multiple_active_result_sets: Optional[JSON] = None, - multi_subnet_failover: Optional[JSON] = None, - packet_size: Optional[JSON] = None, - pooling: Optional[JSON] = None, - connection_string: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.SqlServerAuthenticationType"]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :paramtype server: JSON - :keyword database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :paramtype database: JSON - :keyword encrypt: Indicate whether TLS encryption is required for all data sent between the - client and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :paramtype encrypt: JSON - :keyword trust_server_certificate: Indicate whether the channel will be encrypted while - bypassing walking the certificate chain to validate trust, used by recommended version. Type: - Boolean (or Expression with resultType boolean). - :paramtype trust_server_certificate: JSON - :keyword host_name_in_certificate: The host name to use when validating the server certificate - for the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype host_name_in_certificate: JSON - :keyword application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :paramtype application_intent: JSON - :keyword connect_timeout: The length of time (in seconds) to wait for a connection to the - server before terminating the attempt and generating an error, used by recommended version. - Type: integer (or Expression with resultType integer). - :paramtype connect_timeout: JSON - :keyword connect_retry_count: The number of re-connections attempted after identifying that - there was an idle connection failure, used by recommended version. This must be an integer - between 0 and 255. Type: integer (or Expression with resultType integer). - :paramtype connect_retry_count: JSON - :keyword connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :paramtype connect_retry_interval: JSON - :keyword load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype load_balance_timeout: JSON - :keyword command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype command_timeout: JSON - :keyword integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :paramtype integrated_security: JSON - :keyword failover_partner: The name or address of the partner server to connect to if the - primary server is down, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype failover_partner: JSON - :keyword max_pool_size: The maximum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype max_pool_size: JSON - :keyword min_pool_size: The minimum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype min_pool_size: JSON - :keyword multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :paramtype multiple_active_result_sets: JSON - :keyword multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype multi_subnet_failover: JSON - :keyword packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :paramtype packet_size: JSON - :keyword pooling: Indicate whether the connection will be pooled or explicitly opened every - time that the connection is requested, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype pooling: JSON - :keyword connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword authentication_type: The type used for authentication. Type: string. Known values are: - "SQL", "Windows", and "UserAssignedManagedIdentity". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.SqlServerAuthenticationType - :keyword user_name: The on-premises Windows authentication user name. Type: string (or - Expression with resultType string). - :paramtype user_name: JSON - :keyword password: The on-premises Windows authentication password. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword always_encrypted_settings: Sql always encrypted properties. - :paramtype always_encrypted_settings: - ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "SqlServer" - self.server = server - self.database = database - self.encrypt = encrypt - self.trust_server_certificate = trust_server_certificate - self.host_name_in_certificate = host_name_in_certificate - self.application_intent = application_intent - self.connect_timeout = connect_timeout - self.connect_retry_count = connect_retry_count - self.connect_retry_interval = connect_retry_interval - self.load_balance_timeout = load_balance_timeout - self.command_timeout = command_timeout - self.integrated_security = integrated_security - self.failover_partner = failover_partner - self.max_pool_size = max_pool_size - self.min_pool_size = min_pool_size - self.multiple_active_result_sets = multiple_active_result_sets - self.multi_subnet_failover = multi_subnet_failover - self.packet_size = packet_size - self.pooling = pooling - self.connection_string = connection_string - self.authentication_type = authentication_type - self.user_name = user_name - self.password = password - self.encrypted_credential = encrypted_credential - self.always_encrypted_settings = always_encrypted_settings - self.credential = credential - - -class SqlServerLinkedServiceTypeProperties(SqlServerBaseLinkedServiceTypeProperties): - """SQL Server linked service properties. - - :ivar server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :vartype server: JSON - :ivar database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :vartype database: JSON - :ivar encrypt: Indicate whether TLS encryption is required for all data sent between the client - and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :vartype encrypt: JSON - :ivar trust_server_certificate: Indicate whether the channel will be encrypted while bypassing - walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype trust_server_certificate: JSON - :ivar host_name_in_certificate: The host name to use when validating the server certificate for - the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :vartype host_name_in_certificate: JSON - :ivar application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :vartype application_intent: JSON - :ivar connect_timeout: The length of time (in seconds) to wait for a connection to the server - before terminating the attempt and generating an error, used by recommended version. Type: - integer (or Expression with resultType integer). - :vartype connect_timeout: JSON - :ivar connect_retry_count: The number of re-connections attempted after identifying that there - was an idle connection failure, used by recommended version. This must be an integer between 0 - and 255. Type: integer (or Expression with resultType integer). - :vartype connect_retry_count: JSON - :ivar connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :vartype connect_retry_interval: JSON - :ivar load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype load_balance_timeout: JSON - :ivar command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :vartype command_timeout: JSON - :ivar integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :vartype integrated_security: JSON - :ivar failover_partner: The name or address of the partner server to connect to if the primary - server is down, used by recommended version. Type: string (or Expression with resultType - string). - :vartype failover_partner: JSON - :ivar max_pool_size: The maximum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype max_pool_size: JSON - :ivar min_pool_size: The minimum number of connections allowed in the connection pool for this - specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :vartype min_pool_size: JSON - :ivar multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :vartype multiple_active_result_sets: JSON - :ivar multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :vartype multi_subnet_failover: JSON - :ivar packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :vartype packet_size: JSON - :ivar pooling: Indicate whether the connection will be pooled or explicitly opened every time - that the connection is requested, used by recommended version. Type: Boolean (or Expression - with resultType boolean). - :vartype pooling: JSON - :ivar connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar authentication_type: The type used for authentication. Type: string. Known values are: - "SQL", "Windows", and "UserAssignedManagedIdentity". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.SqlServerAuthenticationType - :ivar user_name: The on-premises Windows authentication user name. Type: string (or Expression - with resultType string). - :vartype user_name: JSON - :ivar password: The on-premises Windows authentication password. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar always_encrypted_settings: Sql always encrypted properties. - :vartype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _attribute_map = { - "server": {"key": "server", "type": "object"}, - "database": {"key": "database", "type": "object"}, - "encrypt": {"key": "encrypt", "type": "object"}, - "trust_server_certificate": {"key": "trustServerCertificate", "type": "object"}, - "host_name_in_certificate": {"key": "hostNameInCertificate", "type": "object"}, - "application_intent": {"key": "applicationIntent", "type": "object"}, - "connect_timeout": {"key": "connectTimeout", "type": "object"}, - "connect_retry_count": {"key": "connectRetryCount", "type": "object"}, - "connect_retry_interval": {"key": "connectRetryInterval", "type": "object"}, - "load_balance_timeout": {"key": "loadBalanceTimeout", "type": "object"}, - "command_timeout": {"key": "commandTimeout", "type": "object"}, - "integrated_security": {"key": "integratedSecurity", "type": "object"}, - "failover_partner": {"key": "failoverPartner", "type": "object"}, - "max_pool_size": {"key": "maxPoolSize", "type": "object"}, - "min_pool_size": {"key": "minPoolSize", "type": "object"}, - "multiple_active_result_sets": {"key": "multipleActiveResultSets", "type": "object"}, - "multi_subnet_failover": {"key": "multiSubnetFailover", "type": "object"}, - "packet_size": {"key": "packetSize", "type": "object"}, - "pooling": {"key": "pooling", "type": "object"}, - "connection_string": {"key": "connectionString", "type": "object"}, - "authentication_type": {"key": "authenticationType", "type": "str"}, - "user_name": {"key": "userName", "type": "object"}, - "password": {"key": "password", "type": "SecretBase"}, - "encrypted_credential": {"key": "encryptedCredential", "type": "str"}, - "always_encrypted_settings": {"key": "alwaysEncryptedSettings", "type": "SqlAlwaysEncryptedProperties"}, - "credential": {"key": "credential", "type": "CredentialReference"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - server: Optional[JSON] = None, - database: Optional[JSON] = None, - encrypt: Optional[JSON] = None, - trust_server_certificate: Optional[JSON] = None, - host_name_in_certificate: Optional[JSON] = None, - application_intent: Optional[JSON] = None, - connect_timeout: Optional[JSON] = None, - connect_retry_count: Optional[JSON] = None, - connect_retry_interval: Optional[JSON] = None, - load_balance_timeout: Optional[JSON] = None, - command_timeout: Optional[JSON] = None, - integrated_security: Optional[JSON] = None, - failover_partner: Optional[JSON] = None, - max_pool_size: Optional[JSON] = None, - min_pool_size: Optional[JSON] = None, - multiple_active_result_sets: Optional[JSON] = None, - multi_subnet_failover: Optional[JSON] = None, - packet_size: Optional[JSON] = None, - pooling: Optional[JSON] = None, - connection_string: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.SqlServerAuthenticationType"]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name or network address of the instance of SQL Server to which to connect, - used by recommended version. Type: string (or Expression with resultType string). - :paramtype server: JSON - :keyword database: The name of the database, used by recommended version. Type: string (or - Expression with resultType string). - :paramtype database: JSON - :keyword encrypt: Indicate whether TLS encryption is required for all data sent between the - client and server, used by recommended version. Possible values are true/yes/mandatory, - false/no/optional and strict. Type: string (or Expression with resultType string). - :paramtype encrypt: JSON - :keyword trust_server_certificate: Indicate whether the channel will be encrypted while - bypassing walking the certificate chain to validate trust, used by recommended version. Type: - Boolean (or Expression with resultType boolean). - :paramtype trust_server_certificate: JSON - :keyword host_name_in_certificate: The host name to use when validating the server certificate - for the connection. When not specified, the server name from the Data Source is used for - certificate validation, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype host_name_in_certificate: JSON - :keyword application_intent: The application workload type when connecting to a server, used by - recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression - with resultType string). - :paramtype application_intent: JSON - :keyword connect_timeout: The length of time (in seconds) to wait for a connection to the - server before terminating the attempt and generating an error, used by recommended version. - Type: integer (or Expression with resultType integer). - :paramtype connect_timeout: JSON - :keyword connect_retry_count: The number of re-connections attempted after identifying that - there was an idle connection failure, used by recommended version. This must be an integer - between 0 and 255. Type: integer (or Expression with resultType integer). - :paramtype connect_retry_count: JSON - :keyword connect_retry_interval: The amount of time (in seconds) between each re-connection - attempt after identifying that there was an idle connection failure, used by recommended - version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType - integer). - :paramtype connect_retry_interval: JSON - :keyword load_balance_timeout: The minimum time, in seconds, for the connection to live in the - connection pool before being destroyed, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype load_balance_timeout: JSON - :keyword command_timeout: The default wait time (in seconds) before terminating the attempt to - execute a command and generating an error, used by recommended version. Type: integer (or - Expression with resultType integer). - :paramtype command_timeout: JSON - :keyword integrated_security: Indicate whether User ID and Password are specified in the - connection (when false) or whether the current Windows account credentials are used for - authentication (when true), used by recommended version. Type: Boolean (or Expression with - resultType boolean). - :paramtype integrated_security: JSON - :keyword failover_partner: The name or address of the partner server to connect to if the - primary server is down, used by recommended version. Type: string (or Expression with - resultType string). - :paramtype failover_partner: JSON - :keyword max_pool_size: The maximum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype max_pool_size: JSON - :keyword min_pool_size: The minimum number of connections allowed in the connection pool for - this specific connection string, used by recommended version. Type: integer (or Expression with - resultType integer). - :paramtype min_pool_size: JSON - :keyword multiple_active_result_sets: When true, an application can maintain multiple active - result sets (MARS). When false, an application must process or cancel all result sets from one - batch before it can execute any other batch on that connection, used by recommended version. - Type: Boolean (or Expression with resultType boolean). - :paramtype multiple_active_result_sets: JSON - :keyword multi_subnet_failover: If your application is connecting to an AlwaysOn availability - group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of - and connection to the (currently) active server, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype multi_subnet_failover: JSON - :keyword packet_size: The size in bytes of the network packets used to communicate with an - instance of server, used by recommended version. Type: integer (or Expression with resultType - integer). - :paramtype packet_size: JSON - :keyword pooling: Indicate whether the connection will be pooled or explicitly opened every - time that the connection is requested, used by recommended version. Type: Boolean (or - Expression with resultType boolean). - :paramtype pooling: JSON - :keyword connection_string: The connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword authentication_type: The type used for authentication. Type: string. Known values are: - "SQL", "Windows", and "UserAssignedManagedIdentity". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.SqlServerAuthenticationType - :keyword user_name: The on-premises Windows authentication user name. Type: string (or - Expression with resultType string). - :paramtype user_name: JSON - :keyword password: The on-premises Windows authentication password. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword always_encrypted_settings: Sql always encrypted properties. - :paramtype always_encrypted_settings: - ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - server=server, - database=database, - encrypt=encrypt, - trust_server_certificate=trust_server_certificate, - host_name_in_certificate=host_name_in_certificate, - application_intent=application_intent, - connect_timeout=connect_timeout, - connect_retry_count=connect_retry_count, - connect_retry_interval=connect_retry_interval, - load_balance_timeout=load_balance_timeout, - command_timeout=command_timeout, - integrated_security=integrated_security, - failover_partner=failover_partner, - max_pool_size=max_pool_size, - min_pool_size=min_pool_size, - multiple_active_result_sets=multiple_active_result_sets, - multi_subnet_failover=multi_subnet_failover, - packet_size=packet_size, - pooling=pooling, - **kwargs - ) - self.connection_string = connection_string - self.authentication_type = authentication_type - self.user_name = user_name - self.password = password - self.encrypted_credential = encrypted_credential - self.always_encrypted_settings = always_encrypted_settings - self.credential = credential - - -class SqlServerSink(CopySink): - """A copy activity SQL server sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar sql_writer_stored_procedure_name: SQL writer stored procedure name. Type: string (or - Expression with resultType string). - :vartype sql_writer_stored_procedure_name: JSON - :ivar sql_writer_table_type: SQL writer table type. Type: string (or Expression with resultType - string). - :vartype sql_writer_table_type: JSON - :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :vartype pre_copy_script: JSON - :ivar stored_procedure_parameters: SQL stored procedure parameters. - :vartype stored_procedure_parameters: JSON - :ivar stored_procedure_table_type_parameter_name: The stored procedure parameter name of the - table type. Type: string (or Expression with resultType string). - :vartype stored_procedure_table_type_parameter_name: JSON - :ivar table_option: The option to handle sink table, such as autoCreate. For now only - 'autoCreate' value is supported. Type: string (or Expression with resultType string). - :vartype table_option: JSON - :ivar sql_writer_use_table_lock: Whether to use table lock during bulk copy. Type: boolean (or - Expression with resultType boolean). - :vartype sql_writer_use_table_lock: JSON - :ivar write_behavior: Write behavior when copying data into sql server. Type: string (or - Expression with resultType string). - :vartype write_behavior: JSON - :ivar upsert_settings: SQL upsert settings. - :vartype upsert_settings: ~azure.mgmt.datafactory.models.SqlUpsertSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "sql_writer_stored_procedure_name": {"key": "sqlWriterStoredProcedureName", "type": "object"}, - "sql_writer_table_type": {"key": "sqlWriterTableType", "type": "object"}, - "pre_copy_script": {"key": "preCopyScript", "type": "object"}, - "stored_procedure_parameters": {"key": "storedProcedureParameters", "type": "object"}, - "stored_procedure_table_type_parameter_name": { - "key": "storedProcedureTableTypeParameterName", - "type": "object", - }, - "table_option": {"key": "tableOption", "type": "object"}, - "sql_writer_use_table_lock": {"key": "sqlWriterUseTableLock", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "object"}, - "upsert_settings": {"key": "upsertSettings", "type": "SqlUpsertSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - sql_writer_stored_procedure_name: Optional[JSON] = None, - sql_writer_table_type: Optional[JSON] = None, - pre_copy_script: Optional[JSON] = None, - stored_procedure_parameters: Optional[JSON] = None, - stored_procedure_table_type_parameter_name: Optional[JSON] = None, - table_option: Optional[JSON] = None, - sql_writer_use_table_lock: Optional[JSON] = None, - write_behavior: Optional[JSON] = None, - upsert_settings: Optional["_models.SqlUpsertSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword sql_writer_stored_procedure_name: SQL writer stored procedure name. Type: string (or - Expression with resultType string). - :paramtype sql_writer_stored_procedure_name: JSON - :keyword sql_writer_table_type: SQL writer table type. Type: string (or Expression with - resultType string). - :paramtype sql_writer_table_type: JSON - :keyword pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :paramtype pre_copy_script: JSON - :keyword stored_procedure_parameters: SQL stored procedure parameters. - :paramtype stored_procedure_parameters: JSON - :keyword stored_procedure_table_type_parameter_name: The stored procedure parameter name of the - table type. Type: string (or Expression with resultType string). - :paramtype stored_procedure_table_type_parameter_name: JSON - :keyword table_option: The option to handle sink table, such as autoCreate. For now only - 'autoCreate' value is supported. Type: string (or Expression with resultType string). - :paramtype table_option: JSON - :keyword sql_writer_use_table_lock: Whether to use table lock during bulk copy. Type: boolean - (or Expression with resultType boolean). - :paramtype sql_writer_use_table_lock: JSON - :keyword write_behavior: Write behavior when copying data into sql server. Type: string (or - Expression with resultType string). - :paramtype write_behavior: JSON - :keyword upsert_settings: SQL upsert settings. - :paramtype upsert_settings: ~azure.mgmt.datafactory.models.SqlUpsertSettings - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "SqlServerSink" - self.sql_writer_stored_procedure_name = sql_writer_stored_procedure_name - self.sql_writer_table_type = sql_writer_table_type - self.pre_copy_script = pre_copy_script - self.stored_procedure_parameters = stored_procedure_parameters - self.stored_procedure_table_type_parameter_name = stored_procedure_table_type_parameter_name - self.table_option = table_option - self.sql_writer_use_table_lock = sql_writer_use_table_lock - self.write_behavior = write_behavior - self.upsert_settings = upsert_settings - - -class SqlServerSource(TabularSource): - """A copy activity SQL server source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar sql_reader_query: SQL reader query. Type: string (or Expression with resultType string). - :vartype sql_reader_query: JSON - :ivar sql_reader_stored_procedure_name: Name of the stored procedure for a SQL Database source. - This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with - resultType string). - :vartype sql_reader_stored_procedure_name: JSON - :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. - Example: "{Parameter1: {value: "1", type: "int"}}". - :vartype stored_procedure_parameters: JSON - :ivar isolation_level: Specifies the transaction locking behavior for the SQL source. Allowed - values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value - is ReadCommitted. Type: string (or Expression with resultType string). - :vartype isolation_level: JSON - :ivar produce_additional_types: Which additional types to produce. - :vartype produce_additional_types: JSON - :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. - Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or - Expression with resultType string). - :vartype partition_option: JSON - :ivar partition_settings: The settings that will be leveraged for Sql source partitioning. - :vartype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "sql_reader_query": {"key": "sqlReaderQuery", "type": "object"}, - "sql_reader_stored_procedure_name": {"key": "sqlReaderStoredProcedureName", "type": "object"}, - "stored_procedure_parameters": {"key": "storedProcedureParameters", "type": "object"}, - "isolation_level": {"key": "isolationLevel", "type": "object"}, - "produce_additional_types": {"key": "produceAdditionalTypes", "type": "object"}, - "partition_option": {"key": "partitionOption", "type": "object"}, - "partition_settings": {"key": "partitionSettings", "type": "SqlPartitionSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - sql_reader_query: Optional[JSON] = None, - sql_reader_stored_procedure_name: Optional[JSON] = None, - stored_procedure_parameters: Optional[JSON] = None, - isolation_level: Optional[JSON] = None, - produce_additional_types: Optional[JSON] = None, - partition_option: Optional[JSON] = None, - partition_settings: Optional["_models.SqlPartitionSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword sql_reader_query: SQL reader query. Type: string (or Expression with resultType - string). - :paramtype sql_reader_query: JSON - :keyword sql_reader_stored_procedure_name: Name of the stored procedure for a SQL Database - source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression - with resultType string). - :paramtype sql_reader_stored_procedure_name: JSON - :keyword stored_procedure_parameters: Value and type setting for stored procedure parameters. - Example: "{Parameter1: {value: "1", type: "int"}}". - :paramtype stored_procedure_parameters: JSON - :keyword isolation_level: Specifies the transaction locking behavior for the SQL source. - Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default - value is ReadCommitted. Type: string (or Expression with resultType string). - :paramtype isolation_level: JSON - :keyword produce_additional_types: Which additional types to produce. - :paramtype produce_additional_types: JSON - :keyword partition_option: The partition mechanism that will be used for Sql read in parallel. - Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or - Expression with resultType string). - :paramtype partition_option: JSON - :keyword partition_settings: The settings that will be leveraged for Sql source partitioning. - :paramtype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "SqlServerSource" - self.sql_reader_query = sql_reader_query - self.sql_reader_stored_procedure_name = sql_reader_stored_procedure_name - self.stored_procedure_parameters = stored_procedure_parameters - self.isolation_level = isolation_level - self.produce_additional_types = produce_additional_types - self.partition_option = partition_option - self.partition_settings = partition_settings - - -class SqlServerStoredProcedureActivity(ExecutionActivity): - """SQL stored procedure activity type. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar stored_procedure_name: Stored procedure name. Type: string (or Expression with resultType - string). Required. - :vartype stored_procedure_name: JSON - :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. - Example: "{Parameter1: {value: "1", type: "int"}}". - :vartype stored_procedure_parameters: JSON - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "stored_procedure_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "stored_procedure_name": {"key": "typeProperties.storedProcedureName", "type": "object"}, - "stored_procedure_parameters": {"key": "typeProperties.storedProcedureParameters", "type": "object"}, - } - - def __init__( - self, - *, - name: str, - stored_procedure_name: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - stored_procedure_parameters: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword stored_procedure_name: Stored procedure name. Type: string (or Expression with - resultType string). Required. - :paramtype stored_procedure_name: JSON - :keyword stored_procedure_parameters: Value and type setting for stored procedure parameters. - Example: "{Parameter1: {value: "1", type: "int"}}". - :paramtype stored_procedure_parameters: JSON - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "SqlServerStoredProcedure" - self.stored_procedure_name = stored_procedure_name - self.stored_procedure_parameters = stored_procedure_parameters - - -class SqlServerTableDataset(Dataset): - """The on-premises SQL Server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property will be retired. Please consider using schema + table - properties instead. - :vartype table_name: JSON - :ivar schema_type_properties_schema: The schema name of the SQL Server dataset. Type: string - (or Expression with resultType string). - :vartype schema_type_properties_schema: JSON - :ivar table: The table name of the SQL Server dataset. Type: string (or Expression with - resultType string). - :vartype table: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - table: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property will be retired. Please consider using schema + table - properties instead. - :paramtype table_name: JSON - :keyword schema_type_properties_schema: The schema name of the SQL Server dataset. Type: string - (or Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - :keyword table: The table name of the SQL Server dataset. Type: string (or Expression with - resultType string). - :paramtype table: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SqlServerTable" - self.table_name = table_name - self.schema_type_properties_schema = schema_type_properties_schema - self.table = table - - -class SqlSink(CopySink): - """A copy activity SQL sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar sql_writer_stored_procedure_name: SQL writer stored procedure name. Type: string (or - Expression with resultType string). - :vartype sql_writer_stored_procedure_name: JSON - :ivar sql_writer_table_type: SQL writer table type. Type: string (or Expression with resultType - string). - :vartype sql_writer_table_type: JSON - :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :vartype pre_copy_script: JSON - :ivar stored_procedure_parameters: SQL stored procedure parameters. - :vartype stored_procedure_parameters: JSON - :ivar stored_procedure_table_type_parameter_name: The stored procedure parameter name of the - table type. Type: string (or Expression with resultType string). - :vartype stored_procedure_table_type_parameter_name: JSON - :ivar table_option: The option to handle sink table, such as autoCreate. For now only - 'autoCreate' value is supported. Type: string (or Expression with resultType string). - :vartype table_option: JSON - :ivar sql_writer_use_table_lock: Whether to use table lock during bulk copy. Type: boolean (or - Expression with resultType boolean). - :vartype sql_writer_use_table_lock: JSON - :ivar write_behavior: Write behavior when copying data into sql. Type: string (or Expression - with resultType string). - :vartype write_behavior: JSON - :ivar upsert_settings: SQL upsert settings. - :vartype upsert_settings: ~azure.mgmt.datafactory.models.SqlUpsertSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "sql_writer_stored_procedure_name": {"key": "sqlWriterStoredProcedureName", "type": "object"}, - "sql_writer_table_type": {"key": "sqlWriterTableType", "type": "object"}, - "pre_copy_script": {"key": "preCopyScript", "type": "object"}, - "stored_procedure_parameters": {"key": "storedProcedureParameters", "type": "object"}, - "stored_procedure_table_type_parameter_name": { - "key": "storedProcedureTableTypeParameterName", - "type": "object", - }, - "table_option": {"key": "tableOption", "type": "object"}, - "sql_writer_use_table_lock": {"key": "sqlWriterUseTableLock", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "object"}, - "upsert_settings": {"key": "upsertSettings", "type": "SqlUpsertSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - sql_writer_stored_procedure_name: Optional[JSON] = None, - sql_writer_table_type: Optional[JSON] = None, - pre_copy_script: Optional[JSON] = None, - stored_procedure_parameters: Optional[JSON] = None, - stored_procedure_table_type_parameter_name: Optional[JSON] = None, - table_option: Optional[JSON] = None, - sql_writer_use_table_lock: Optional[JSON] = None, - write_behavior: Optional[JSON] = None, - upsert_settings: Optional["_models.SqlUpsertSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword sql_writer_stored_procedure_name: SQL writer stored procedure name. Type: string (or - Expression with resultType string). - :paramtype sql_writer_stored_procedure_name: JSON - :keyword sql_writer_table_type: SQL writer table type. Type: string (or Expression with - resultType string). - :paramtype sql_writer_table_type: JSON - :keyword pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :paramtype pre_copy_script: JSON - :keyword stored_procedure_parameters: SQL stored procedure parameters. - :paramtype stored_procedure_parameters: JSON - :keyword stored_procedure_table_type_parameter_name: The stored procedure parameter name of the - table type. Type: string (or Expression with resultType string). - :paramtype stored_procedure_table_type_parameter_name: JSON - :keyword table_option: The option to handle sink table, such as autoCreate. For now only - 'autoCreate' value is supported. Type: string (or Expression with resultType string). - :paramtype table_option: JSON - :keyword sql_writer_use_table_lock: Whether to use table lock during bulk copy. Type: boolean - (or Expression with resultType boolean). - :paramtype sql_writer_use_table_lock: JSON - :keyword write_behavior: Write behavior when copying data into sql. Type: string (or Expression - with resultType string). - :paramtype write_behavior: JSON - :keyword upsert_settings: SQL upsert settings. - :paramtype upsert_settings: ~azure.mgmt.datafactory.models.SqlUpsertSettings - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "SqlSink" - self.sql_writer_stored_procedure_name = sql_writer_stored_procedure_name - self.sql_writer_table_type = sql_writer_table_type - self.pre_copy_script = pre_copy_script - self.stored_procedure_parameters = stored_procedure_parameters - self.stored_procedure_table_type_parameter_name = stored_procedure_table_type_parameter_name - self.table_option = table_option - self.sql_writer_use_table_lock = sql_writer_use_table_lock - self.write_behavior = write_behavior - self.upsert_settings = upsert_settings - - -class SqlSource(TabularSource): - """A copy activity SQL source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar sql_reader_query: SQL reader query. Type: string (or Expression with resultType string). - :vartype sql_reader_query: JSON - :ivar sql_reader_stored_procedure_name: Name of the stored procedure for a SQL Database source. - This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with - resultType string). - :vartype sql_reader_stored_procedure_name: JSON - :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. - Example: "{Parameter1: {value: "1", type: "int"}}". - :vartype stored_procedure_parameters: JSON - :ivar isolation_level: Specifies the transaction locking behavior for the SQL source. Allowed - values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value - is ReadCommitted. Type: string (or Expression with resultType string). - :vartype isolation_level: JSON - :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. - Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or - Expression with resultType string). - :vartype partition_option: JSON - :ivar partition_settings: The settings that will be leveraged for Sql source partitioning. - :vartype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "sql_reader_query": {"key": "sqlReaderQuery", "type": "object"}, - "sql_reader_stored_procedure_name": {"key": "sqlReaderStoredProcedureName", "type": "object"}, - "stored_procedure_parameters": {"key": "storedProcedureParameters", "type": "object"}, - "isolation_level": {"key": "isolationLevel", "type": "object"}, - "partition_option": {"key": "partitionOption", "type": "object"}, - "partition_settings": {"key": "partitionSettings", "type": "SqlPartitionSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - sql_reader_query: Optional[JSON] = None, - sql_reader_stored_procedure_name: Optional[JSON] = None, - stored_procedure_parameters: Optional[JSON] = None, - isolation_level: Optional[JSON] = None, - partition_option: Optional[JSON] = None, - partition_settings: Optional["_models.SqlPartitionSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword sql_reader_query: SQL reader query. Type: string (or Expression with resultType - string). - :paramtype sql_reader_query: JSON - :keyword sql_reader_stored_procedure_name: Name of the stored procedure for a SQL Database - source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression - with resultType string). - :paramtype sql_reader_stored_procedure_name: JSON - :keyword stored_procedure_parameters: Value and type setting for stored procedure parameters. - Example: "{Parameter1: {value: "1", type: "int"}}". - :paramtype stored_procedure_parameters: JSON - :keyword isolation_level: Specifies the transaction locking behavior for the SQL source. - Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default - value is ReadCommitted. Type: string (or Expression with resultType string). - :paramtype isolation_level: JSON - :keyword partition_option: The partition mechanism that will be used for Sql read in parallel. - Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or - Expression with resultType string). - :paramtype partition_option: JSON - :keyword partition_settings: The settings that will be leveraged for Sql source partitioning. - :paramtype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "SqlSource" - self.sql_reader_query = sql_reader_query - self.sql_reader_stored_procedure_name = sql_reader_stored_procedure_name - self.stored_procedure_parameters = stored_procedure_parameters - self.isolation_level = isolation_level - self.partition_option = partition_option - self.partition_settings = partition_settings - - -class SqlUpsertSettings(_serialization.Model): - """Sql upsert option settings. - - :ivar use_temp_db: Specifies whether to use temp db for upsert interim table. Type: boolean (or - Expression with resultType boolean). - :vartype use_temp_db: JSON - :ivar interim_schema_name: Schema name for interim table. Type: string (or Expression with - resultType string). - :vartype interim_schema_name: JSON - :ivar keys: Key column names for unique row identification. Type: array of strings (or - Expression with resultType array of strings). - :vartype keys: JSON - """ - - _attribute_map = { - "use_temp_db": {"key": "useTempDB", "type": "object"}, - "interim_schema_name": {"key": "interimSchemaName", "type": "object"}, - "keys": {"key": "keys", "type": "object"}, - } - - def __init__( - self, - *, - use_temp_db: Optional[JSON] = None, - interim_schema_name: Optional[JSON] = None, - keys: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword use_temp_db: Specifies whether to use temp db for upsert interim table. Type: boolean - (or Expression with resultType boolean). - :paramtype use_temp_db: JSON - :keyword interim_schema_name: Schema name for interim table. Type: string (or Expression with - resultType string). - :paramtype interim_schema_name: JSON - :keyword keys: Key column names for unique row identification. Type: array of strings (or - Expression with resultType array of strings). - :paramtype keys: JSON - """ - super().__init__(**kwargs) - self.use_temp_db = use_temp_db - self.interim_schema_name = interim_schema_name - self.keys = keys - - -class SquareLinkedService(LinkedService): - """Square Service linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_properties: Properties used to connect to Square. It is mutually exclusive - with any other properties in the linked service. Type: object. - :vartype connection_properties: JSON - :ivar host: The URL of the Square instance. (i.e. mystore.mysquare.com). - :vartype host: JSON - :ivar client_id: The client ID associated with your Square application. - :vartype client_id: JSON - :ivar client_secret: The client secret associated with your Square application. - :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :ivar redirect_uri: The redirect URL assigned in the Square application dashboard. (i.e. - http://localhost:2500). - :vartype redirect_uri: JSON - :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using - HTTPS. The default value is true. - :vartype use_encrypted_endpoints: JSON - :ivar use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :vartype use_host_verification: JSON - :ivar use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :vartype use_peer_verification: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_properties": {"key": "typeProperties.connectionProperties", "type": "object"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "client_id": {"key": "typeProperties.clientId", "type": "object"}, - "client_secret": {"key": "typeProperties.clientSecret", "type": "SecretBase"}, - "redirect_uri": {"key": "typeProperties.redirectUri", "type": "object"}, - "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, - "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, - "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_properties: Optional[JSON] = None, - host: Optional[JSON] = None, - client_id: Optional[JSON] = None, - client_secret: Optional["_models.SecretBase"] = None, - redirect_uri: Optional[JSON] = None, - use_encrypted_endpoints: Optional[JSON] = None, - use_host_verification: Optional[JSON] = None, - use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_properties: Properties used to connect to Square. It is mutually exclusive - with any other properties in the linked service. Type: object. - :paramtype connection_properties: JSON - :keyword host: The URL of the Square instance. (i.e. mystore.mysquare.com). - :paramtype host: JSON - :keyword client_id: The client ID associated with your Square application. - :paramtype client_id: JSON - :keyword client_secret: The client secret associated with your Square application. - :paramtype client_secret: ~azure.mgmt.datafactory.models.SecretBase - :keyword redirect_uri: The redirect URL assigned in the Square application dashboard. (i.e. - http://localhost:2500). - :paramtype redirect_uri: JSON - :keyword use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted - using HTTPS. The default value is true. - :paramtype use_encrypted_endpoints: JSON - :keyword use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :paramtype use_host_verification: JSON - :keyword use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :paramtype use_peer_verification: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Square" - self.connection_properties = connection_properties - self.host = host - self.client_id = client_id - self.client_secret = client_secret - self.redirect_uri = redirect_uri - self.use_encrypted_endpoints = use_encrypted_endpoints - self.use_host_verification = use_host_verification - self.use_peer_verification = use_peer_verification - self.encrypted_credential = encrypted_credential - - -class SquareObjectDataset(Dataset): - """Square Service dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SquareObject" - self.table_name = table_name - - -class SquareSource(TabularSource): - """A copy activity Square Service source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "SquareSource" - self.query = query - - -class SSISAccessCredential(_serialization.Model): - """SSIS access credential. - - All required parameters must be populated in order to send to server. - - :ivar domain: Domain for windows authentication. Type: string (or Expression with resultType - string). Required. - :vartype domain: JSON - :ivar user_name: UseName for windows authentication. Type: string (or Expression with - resultType string). Required. - :vartype user_name: JSON - :ivar password: Password for windows authentication. Required. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - """ - - _validation = { - "domain": {"required": True}, - "user_name": {"required": True}, - "password": {"required": True}, - } - - _attribute_map = { - "domain": {"key": "domain", "type": "object"}, - "user_name": {"key": "userName", "type": "object"}, - "password": {"key": "password", "type": "SecretBase"}, - } - - def __init__(self, *, domain: JSON, user_name: JSON, password: "_models.SecretBase", **kwargs: Any) -> None: - """ - :keyword domain: Domain for windows authentication. Type: string (or Expression with resultType - string). Required. - :paramtype domain: JSON - :keyword user_name: UseName for windows authentication. Type: string (or Expression with - resultType string). Required. - :paramtype user_name: JSON - :keyword password: Password for windows authentication. Required. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - """ - super().__init__(**kwargs) - self.domain = domain - self.user_name = user_name - self.password = password - - -class SSISChildPackage(_serialization.Model): - """SSIS embedded child package. - - All required parameters must be populated in order to send to server. - - :ivar package_path: Path for embedded child package. Type: string (or Expression with - resultType string). Required. - :vartype package_path: JSON - :ivar package_name: Name for embedded child package. - :vartype package_name: str - :ivar package_content: Content for embedded child package. Type: string (or Expression with - resultType string). Required. - :vartype package_content: JSON - :ivar package_last_modified_date: Last modified date for embedded child package. - :vartype package_last_modified_date: str - """ - - _validation = { - "package_path": {"required": True}, - "package_content": {"required": True}, - } - - _attribute_map = { - "package_path": {"key": "packagePath", "type": "object"}, - "package_name": {"key": "packageName", "type": "str"}, - "package_content": {"key": "packageContent", "type": "object"}, - "package_last_modified_date": {"key": "packageLastModifiedDate", "type": "str"}, - } - - def __init__( - self, - *, - package_path: JSON, - package_content: JSON, - package_name: Optional[str] = None, - package_last_modified_date: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword package_path: Path for embedded child package. Type: string (or Expression with - resultType string). Required. - :paramtype package_path: JSON - :keyword package_name: Name for embedded child package. - :paramtype package_name: str - :keyword package_content: Content for embedded child package. Type: string (or Expression with - resultType string). Required. - :paramtype package_content: JSON - :keyword package_last_modified_date: Last modified date for embedded child package. - :paramtype package_last_modified_date: str - """ - super().__init__(**kwargs) - self.package_path = package_path - self.package_name = package_name - self.package_content = package_content - self.package_last_modified_date = package_last_modified_date - - -class SsisObjectMetadata(_serialization.Model): - """SSIS object metadata. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - SsisEnvironment, SsisFolder, SsisPackage, SsisProject - - All required parameters must be populated in order to send to server. - - :ivar type: Type of metadata. Required. Known values are: "Folder", "Project", "Package", and - "Environment". - :vartype type: str or ~azure.mgmt.datafactory.models.SsisObjectMetadataType - :ivar id: Metadata id. - :vartype id: int - :ivar name: Metadata name. - :vartype name: str - :ivar description: Metadata description. - :vartype description: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "id": {"key": "id", "type": "int"}, - "name": {"key": "name", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - _subtype_map = { - "type": { - "Environment": "SsisEnvironment", - "Folder": "SsisFolder", - "Package": "SsisPackage", - "Project": "SsisProject", - } - } - - def __init__( - self, - *, - id: Optional[int] = None, # pylint: disable=redefined-builtin - name: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Metadata id. - :paramtype id: int - :keyword name: Metadata name. - :paramtype name: str - :keyword description: Metadata description. - :paramtype description: str - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.id = id - self.name = name - self.description = description - - -class SsisEnvironment(SsisObjectMetadata): - """Ssis environment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of metadata. Required. Known values are: "Folder", "Project", "Package", and - "Environment". - :vartype type: str or ~azure.mgmt.datafactory.models.SsisObjectMetadataType - :ivar id: Metadata id. - :vartype id: int - :ivar name: Metadata name. - :vartype name: str - :ivar description: Metadata description. - :vartype description: str - :ivar folder_id: Folder id which contains environment. - :vartype folder_id: int - :ivar variables: Variable in environment. - :vartype variables: list[~azure.mgmt.datafactory.models.SsisVariable] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "id": {"key": "id", "type": "int"}, - "name": {"key": "name", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "folder_id": {"key": "folderId", "type": "int"}, - "variables": {"key": "variables", "type": "[SsisVariable]"}, - } - - def __init__( - self, - *, - id: Optional[int] = None, # pylint: disable=redefined-builtin - name: Optional[str] = None, - description: Optional[str] = None, - folder_id: Optional[int] = None, - variables: Optional[list["_models.SsisVariable"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Metadata id. - :paramtype id: int - :keyword name: Metadata name. - :paramtype name: str - :keyword description: Metadata description. - :paramtype description: str - :keyword folder_id: Folder id which contains environment. - :paramtype folder_id: int - :keyword variables: Variable in environment. - :paramtype variables: list[~azure.mgmt.datafactory.models.SsisVariable] - """ - super().__init__(id=id, name=name, description=description, **kwargs) - self.type: str = "Environment" - self.folder_id = folder_id - self.variables = variables - - -class SsisEnvironmentReference(_serialization.Model): - """Ssis environment reference. - - :ivar id: Environment reference id. - :vartype id: int - :ivar environment_folder_name: Environment folder name. - :vartype environment_folder_name: str - :ivar environment_name: Environment name. - :vartype environment_name: str - :ivar reference_type: Reference type. - :vartype reference_type: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "int"}, - "environment_folder_name": {"key": "environmentFolderName", "type": "str"}, - "environment_name": {"key": "environmentName", "type": "str"}, - "reference_type": {"key": "referenceType", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[int] = None, # pylint: disable=redefined-builtin - environment_folder_name: Optional[str] = None, - environment_name: Optional[str] = None, - reference_type: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Environment reference id. - :paramtype id: int - :keyword environment_folder_name: Environment folder name. - :paramtype environment_folder_name: str - :keyword environment_name: Environment name. - :paramtype environment_name: str - :keyword reference_type: Reference type. - :paramtype reference_type: str - """ - super().__init__(**kwargs) - self.id = id - self.environment_folder_name = environment_folder_name - self.environment_name = environment_name - self.reference_type = reference_type - - -class SSISExecutionCredential(_serialization.Model): - """SSIS package execution credential. - - All required parameters must be populated in order to send to server. - - :ivar domain: Domain for windows authentication. Type: string (or Expression with resultType - string). Required. - :vartype domain: JSON - :ivar user_name: UseName for windows authentication. Type: string (or Expression with - resultType string). Required. - :vartype user_name: JSON - :ivar password: Password for windows authentication. Required. - :vartype password: ~azure.mgmt.datafactory.models.SecureString - """ - - _validation = { - "domain": {"required": True}, - "user_name": {"required": True}, - "password": {"required": True}, - } - - _attribute_map = { - "domain": {"key": "domain", "type": "object"}, - "user_name": {"key": "userName", "type": "object"}, - "password": {"key": "password", "type": "SecureString"}, - } - - def __init__(self, *, domain: JSON, user_name: JSON, password: "_models.SecureString", **kwargs: Any) -> None: - """ - :keyword domain: Domain for windows authentication. Type: string (or Expression with resultType - string). Required. - :paramtype domain: JSON - :keyword user_name: UseName for windows authentication. Type: string (or Expression with - resultType string). Required. - :paramtype user_name: JSON - :keyword password: Password for windows authentication. Required. - :paramtype password: ~azure.mgmt.datafactory.models.SecureString - """ - super().__init__(**kwargs) - self.domain = domain - self.user_name = user_name - self.password = password - - -class SSISExecutionParameter(_serialization.Model): - """SSIS execution parameter. - - All required parameters must be populated in order to send to server. - - :ivar value: SSIS package execution parameter value. Type: string (or Expression with - resultType string). Required. - :vartype value: JSON - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "object"}, - } - - def __init__(self, *, value: JSON, **kwargs: Any) -> None: - """ - :keyword value: SSIS package execution parameter value. Type: string (or Expression with - resultType string). Required. - :paramtype value: JSON - """ - super().__init__(**kwargs) - self.value = value - - -class SsisFolder(SsisObjectMetadata): - """Ssis folder. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of metadata. Required. Known values are: "Folder", "Project", "Package", and - "Environment". - :vartype type: str or ~azure.mgmt.datafactory.models.SsisObjectMetadataType - :ivar id: Metadata id. - :vartype id: int - :ivar name: Metadata name. - :vartype name: str - :ivar description: Metadata description. - :vartype description: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "id": {"key": "id", "type": "int"}, - "name": {"key": "name", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[int] = None, # pylint: disable=redefined-builtin - name: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Metadata id. - :paramtype id: int - :keyword name: Metadata name. - :paramtype name: str - :keyword description: Metadata description. - :paramtype description: str - """ - super().__init__(id=id, name=name, description=description, **kwargs) - self.type: str = "Folder" - - -class SSISLogLocation(_serialization.Model): - """SSIS package execution log location. - - All required parameters must be populated in order to send to server. - - :ivar log_path: The SSIS package execution log path. Type: string (or Expression with - resultType string). Required. - :vartype log_path: JSON - :ivar type: The type of SSIS log location. Required. "File" - :vartype type: str or ~azure.mgmt.datafactory.models.SsisLogLocationType - :ivar access_credential: The package execution log access credential. - :vartype access_credential: ~azure.mgmt.datafactory.models.SSISAccessCredential - :ivar log_refresh_interval: Specifies the interval to refresh log. The default interval is 5 - minutes. Type: string (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype log_refresh_interval: JSON - """ - - _validation = { - "log_path": {"required": True}, - "type": {"required": True}, - } - - _attribute_map = { - "log_path": {"key": "logPath", "type": "object"}, - "type": {"key": "type", "type": "str"}, - "access_credential": {"key": "typeProperties.accessCredential", "type": "SSISAccessCredential"}, - "log_refresh_interval": {"key": "typeProperties.logRefreshInterval", "type": "object"}, - } - - def __init__( - self, - *, - log_path: JSON, - type: Union[str, "_models.SsisLogLocationType"], - access_credential: Optional["_models.SSISAccessCredential"] = None, - log_refresh_interval: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_path: The SSIS package execution log path. Type: string (or Expression with - resultType string). Required. - :paramtype log_path: JSON - :keyword type: The type of SSIS log location. Required. "File" - :paramtype type: str or ~azure.mgmt.datafactory.models.SsisLogLocationType - :keyword access_credential: The package execution log access credential. - :paramtype access_credential: ~azure.mgmt.datafactory.models.SSISAccessCredential - :keyword log_refresh_interval: Specifies the interval to refresh log. The default interval is 5 - minutes. Type: string (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype log_refresh_interval: JSON - """ - super().__init__(**kwargs) - self.log_path = log_path - self.type = type - self.access_credential = access_credential - self.log_refresh_interval = log_refresh_interval - - -class SsisObjectMetadataListResponse(_serialization.Model): - """A list of SSIS object metadata. - - :ivar value: List of SSIS object metadata. - :vartype value: list[~azure.mgmt.datafactory.models.SsisObjectMetadata] - :ivar next_link: The link to the next page of results, if any remaining results exist. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SsisObjectMetadata]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[list["_models.SsisObjectMetadata"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: List of SSIS object metadata. - :paramtype value: list[~azure.mgmt.datafactory.models.SsisObjectMetadata] - :keyword next_link: The link to the next page of results, if any remaining results exist. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SsisObjectMetadataStatusResponse(_serialization.Model): - """The status of the operation. - - :ivar status: The status of the operation. - :vartype status: str - :ivar name: The operation name. - :vartype name: str - :ivar properties: The operation properties. - :vartype properties: str - :ivar error: The operation error message. - :vartype error: str - """ - - _attribute_map = { - "status": {"key": "status", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "properties": {"key": "properties", "type": "str"}, - "error": {"key": "error", "type": "str"}, - } - - def __init__( - self, - *, - status: Optional[str] = None, - name: Optional[str] = None, - properties: Optional[str] = None, - error: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword status: The status of the operation. - :paramtype status: str - :keyword name: The operation name. - :paramtype name: str - :keyword properties: The operation properties. - :paramtype properties: str - :keyword error: The operation error message. - :paramtype error: str - """ - super().__init__(**kwargs) - self.status = status - self.name = name - self.properties = properties - self.error = error - - -class SsisPackage(SsisObjectMetadata): - """Ssis Package. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of metadata. Required. Known values are: "Folder", "Project", "Package", and - "Environment". - :vartype type: str or ~azure.mgmt.datafactory.models.SsisObjectMetadataType - :ivar id: Metadata id. - :vartype id: int - :ivar name: Metadata name. - :vartype name: str - :ivar description: Metadata description. - :vartype description: str - :ivar folder_id: Folder id which contains package. - :vartype folder_id: int - :ivar project_version: Project version which contains package. - :vartype project_version: int - :ivar project_id: Project id which contains package. - :vartype project_id: int - :ivar parameters: Parameters in package. - :vartype parameters: list[~azure.mgmt.datafactory.models.SsisParameter] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "id": {"key": "id", "type": "int"}, - "name": {"key": "name", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "folder_id": {"key": "folderId", "type": "int"}, - "project_version": {"key": "projectVersion", "type": "int"}, - "project_id": {"key": "projectId", "type": "int"}, - "parameters": {"key": "parameters", "type": "[SsisParameter]"}, - } - - def __init__( - self, - *, - id: Optional[int] = None, # pylint: disable=redefined-builtin - name: Optional[str] = None, - description: Optional[str] = None, - folder_id: Optional[int] = None, - project_version: Optional[int] = None, - project_id: Optional[int] = None, - parameters: Optional[list["_models.SsisParameter"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Metadata id. - :paramtype id: int - :keyword name: Metadata name. - :paramtype name: str - :keyword description: Metadata description. - :paramtype description: str - :keyword folder_id: Folder id which contains package. - :paramtype folder_id: int - :keyword project_version: Project version which contains package. - :paramtype project_version: int - :keyword project_id: Project id which contains package. - :paramtype project_id: int - :keyword parameters: Parameters in package. - :paramtype parameters: list[~azure.mgmt.datafactory.models.SsisParameter] - """ - super().__init__(id=id, name=name, description=description, **kwargs) - self.type: str = "Package" - self.folder_id = folder_id - self.project_version = project_version - self.project_id = project_id - self.parameters = parameters - - -class SSISPackageLocation(_serialization.Model): - """SSIS package location. - - :ivar package_path: The SSIS package path. Type: string (or Expression with resultType string). - :vartype package_path: JSON - :ivar type: The type of SSIS package location. Known values are: "SSISDB", "File", - "InlinePackage", and "PackageStore". - :vartype type: str or ~azure.mgmt.datafactory.models.SsisPackageLocationType - :ivar package_password: Password of the package. - :vartype package_password: ~azure.mgmt.datafactory.models.SecretBase - :ivar access_credential: The package access credential. - :vartype access_credential: ~azure.mgmt.datafactory.models.SSISAccessCredential - :ivar configuration_path: The configuration file of the package execution. Type: string (or - Expression with resultType string). - :vartype configuration_path: JSON - :ivar configuration_access_credential: The configuration file access credential. - :vartype configuration_access_credential: ~azure.mgmt.datafactory.models.SSISAccessCredential - :ivar package_name: The package name. - :vartype package_name: str - :ivar package_content: The embedded package content. Type: string (or Expression with - resultType string). - :vartype package_content: JSON - :ivar package_last_modified_date: The embedded package last modified date. - :vartype package_last_modified_date: str - :ivar child_packages: The embedded child package list. - :vartype child_packages: list[~azure.mgmt.datafactory.models.SSISChildPackage] - """ - - _attribute_map = { - "package_path": {"key": "packagePath", "type": "object"}, - "type": {"key": "type", "type": "str"}, - "package_password": {"key": "typeProperties.packagePassword", "type": "SecretBase"}, - "access_credential": {"key": "typeProperties.accessCredential", "type": "SSISAccessCredential"}, - "configuration_path": {"key": "typeProperties.configurationPath", "type": "object"}, - "configuration_access_credential": { - "key": "typeProperties.configurationAccessCredential", - "type": "SSISAccessCredential", - }, - "package_name": {"key": "typeProperties.packageName", "type": "str"}, - "package_content": {"key": "typeProperties.packageContent", "type": "object"}, - "package_last_modified_date": {"key": "typeProperties.packageLastModifiedDate", "type": "str"}, - "child_packages": {"key": "typeProperties.childPackages", "type": "[SSISChildPackage]"}, - } - - def __init__( - self, - *, - package_path: Optional[JSON] = None, - type: Optional[Union[str, "_models.SsisPackageLocationType"]] = None, - package_password: Optional["_models.SecretBase"] = None, - access_credential: Optional["_models.SSISAccessCredential"] = None, - configuration_path: Optional[JSON] = None, - configuration_access_credential: Optional["_models.SSISAccessCredential"] = None, - package_name: Optional[str] = None, - package_content: Optional[JSON] = None, - package_last_modified_date: Optional[str] = None, - child_packages: Optional[list["_models.SSISChildPackage"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword package_path: The SSIS package path. Type: string (or Expression with resultType - string). - :paramtype package_path: JSON - :keyword type: The type of SSIS package location. Known values are: "SSISDB", "File", - "InlinePackage", and "PackageStore". - :paramtype type: str or ~azure.mgmt.datafactory.models.SsisPackageLocationType - :keyword package_password: Password of the package. - :paramtype package_password: ~azure.mgmt.datafactory.models.SecretBase - :keyword access_credential: The package access credential. - :paramtype access_credential: ~azure.mgmt.datafactory.models.SSISAccessCredential - :keyword configuration_path: The configuration file of the package execution. Type: string (or - Expression with resultType string). - :paramtype configuration_path: JSON - :keyword configuration_access_credential: The configuration file access credential. - :paramtype configuration_access_credential: ~azure.mgmt.datafactory.models.SSISAccessCredential - :keyword package_name: The package name. - :paramtype package_name: str - :keyword package_content: The embedded package content. Type: string (or Expression with - resultType string). - :paramtype package_content: JSON - :keyword package_last_modified_date: The embedded package last modified date. - :paramtype package_last_modified_date: str - :keyword child_packages: The embedded child package list. - :paramtype child_packages: list[~azure.mgmt.datafactory.models.SSISChildPackage] - """ - super().__init__(**kwargs) - self.package_path = package_path - self.type = type - self.package_password = package_password - self.access_credential = access_credential - self.configuration_path = configuration_path - self.configuration_access_credential = configuration_access_credential - self.package_name = package_name - self.package_content = package_content - self.package_last_modified_date = package_last_modified_date - self.child_packages = child_packages - - -class SsisParameter(_serialization.Model): - """Ssis parameter. - - :ivar id: Parameter id. - :vartype id: int - :ivar name: Parameter name. - :vartype name: str - :ivar description: Parameter description. - :vartype description: str - :ivar data_type: Parameter type. - :vartype data_type: str - :ivar required: Whether parameter is required. - :vartype required: bool - :ivar sensitive: Whether parameter is sensitive. - :vartype sensitive: bool - :ivar design_default_value: Design default value of parameter. - :vartype design_default_value: str - :ivar default_value: Default value of parameter. - :vartype default_value: str - :ivar sensitive_default_value: Default sensitive value of parameter. - :vartype sensitive_default_value: str - :ivar value_type: Parameter value type. - :vartype value_type: str - :ivar value_set: Parameter value set. - :vartype value_set: bool - :ivar variable: Parameter reference variable. - :vartype variable: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "int"}, - "name": {"key": "name", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "data_type": {"key": "dataType", "type": "str"}, - "required": {"key": "required", "type": "bool"}, - "sensitive": {"key": "sensitive", "type": "bool"}, - "design_default_value": {"key": "designDefaultValue", "type": "str"}, - "default_value": {"key": "defaultValue", "type": "str"}, - "sensitive_default_value": {"key": "sensitiveDefaultValue", "type": "str"}, - "value_type": {"key": "valueType", "type": "str"}, - "value_set": {"key": "valueSet", "type": "bool"}, - "variable": {"key": "variable", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[int] = None, # pylint: disable=redefined-builtin - name: Optional[str] = None, - description: Optional[str] = None, - data_type: Optional[str] = None, - required: Optional[bool] = None, - sensitive: Optional[bool] = None, - design_default_value: Optional[str] = None, - default_value: Optional[str] = None, - sensitive_default_value: Optional[str] = None, - value_type: Optional[str] = None, - value_set: Optional[bool] = None, - variable: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Parameter id. - :paramtype id: int - :keyword name: Parameter name. - :paramtype name: str - :keyword description: Parameter description. - :paramtype description: str - :keyword data_type: Parameter type. - :paramtype data_type: str - :keyword required: Whether parameter is required. - :paramtype required: bool - :keyword sensitive: Whether parameter is sensitive. - :paramtype sensitive: bool - :keyword design_default_value: Design default value of parameter. - :paramtype design_default_value: str - :keyword default_value: Default value of parameter. - :paramtype default_value: str - :keyword sensitive_default_value: Default sensitive value of parameter. - :paramtype sensitive_default_value: str - :keyword value_type: Parameter value type. - :paramtype value_type: str - :keyword value_set: Parameter value set. - :paramtype value_set: bool - :keyword variable: Parameter reference variable. - :paramtype variable: str - """ - super().__init__(**kwargs) - self.id = id - self.name = name - self.description = description - self.data_type = data_type - self.required = required - self.sensitive = sensitive - self.design_default_value = design_default_value - self.default_value = default_value - self.sensitive_default_value = sensitive_default_value - self.value_type = value_type - self.value_set = value_set - self.variable = variable - - -class SsisProject(SsisObjectMetadata): - """Ssis project. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of metadata. Required. Known values are: "Folder", "Project", "Package", and - "Environment". - :vartype type: str or ~azure.mgmt.datafactory.models.SsisObjectMetadataType - :ivar id: Metadata id. - :vartype id: int - :ivar name: Metadata name. - :vartype name: str - :ivar description: Metadata description. - :vartype description: str - :ivar folder_id: Folder id which contains project. - :vartype folder_id: int - :ivar version: Project version. - :vartype version: int - :ivar environment_refs: Environment reference in project. - :vartype environment_refs: list[~azure.mgmt.datafactory.models.SsisEnvironmentReference] - :ivar parameters: Parameters in project. - :vartype parameters: list[~azure.mgmt.datafactory.models.SsisParameter] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "id": {"key": "id", "type": "int"}, - "name": {"key": "name", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "folder_id": {"key": "folderId", "type": "int"}, - "version": {"key": "version", "type": "int"}, - "environment_refs": {"key": "environmentRefs", "type": "[SsisEnvironmentReference]"}, - "parameters": {"key": "parameters", "type": "[SsisParameter]"}, - } - - def __init__( - self, - *, - id: Optional[int] = None, # pylint: disable=redefined-builtin - name: Optional[str] = None, - description: Optional[str] = None, - folder_id: Optional[int] = None, - version: Optional[int] = None, - environment_refs: Optional[list["_models.SsisEnvironmentReference"]] = None, - parameters: Optional[list["_models.SsisParameter"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Metadata id. - :paramtype id: int - :keyword name: Metadata name. - :paramtype name: str - :keyword description: Metadata description. - :paramtype description: str - :keyword folder_id: Folder id which contains project. - :paramtype folder_id: int - :keyword version: Project version. - :paramtype version: int - :keyword environment_refs: Environment reference in project. - :paramtype environment_refs: list[~azure.mgmt.datafactory.models.SsisEnvironmentReference] - :keyword parameters: Parameters in project. - :paramtype parameters: list[~azure.mgmt.datafactory.models.SsisParameter] - """ - super().__init__(id=id, name=name, description=description, **kwargs) - self.type: str = "Project" - self.folder_id = folder_id - self.version = version - self.environment_refs = environment_refs - self.parameters = parameters - - -class SSISPropertyOverride(_serialization.Model): - """SSIS property override. - - All required parameters must be populated in order to send to server. - - :ivar value: SSIS package property override value. Type: string (or Expression with resultType - string). Required. - :vartype value: JSON - :ivar is_sensitive: Whether SSIS package property override value is sensitive data. Value will - be encrypted in SSISDB if it is true. - :vartype is_sensitive: bool - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "object"}, - "is_sensitive": {"key": "isSensitive", "type": "bool"}, - } - - def __init__(self, *, value: JSON, is_sensitive: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword value: SSIS package property override value. Type: string (or Expression with - resultType string). Required. - :paramtype value: JSON - :keyword is_sensitive: Whether SSIS package property override value is sensitive data. Value - will be encrypted in SSISDB if it is true. - :paramtype is_sensitive: bool - """ - super().__init__(**kwargs) - self.value = value - self.is_sensitive = is_sensitive - - -class SsisVariable(_serialization.Model): - """Ssis variable. - - :ivar id: Variable id. - :vartype id: int - :ivar name: Variable name. - :vartype name: str - :ivar description: Variable description. - :vartype description: str - :ivar data_type: Variable type. - :vartype data_type: str - :ivar sensitive: Whether variable is sensitive. - :vartype sensitive: bool - :ivar value: Variable value. - :vartype value: str - :ivar sensitive_value: Variable sensitive value. - :vartype sensitive_value: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "int"}, - "name": {"key": "name", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "data_type": {"key": "dataType", "type": "str"}, - "sensitive": {"key": "sensitive", "type": "bool"}, - "value": {"key": "value", "type": "str"}, - "sensitive_value": {"key": "sensitiveValue", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[int] = None, # pylint: disable=redefined-builtin - name: Optional[str] = None, - description: Optional[str] = None, - data_type: Optional[str] = None, - sensitive: Optional[bool] = None, - value: Optional[str] = None, - sensitive_value: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Variable id. - :paramtype id: int - :keyword name: Variable name. - :paramtype name: str - :keyword description: Variable description. - :paramtype description: str - :keyword data_type: Variable type. - :paramtype data_type: str - :keyword sensitive: Whether variable is sensitive. - :paramtype sensitive: bool - :keyword value: Variable value. - :paramtype value: str - :keyword sensitive_value: Variable sensitive value. - :paramtype sensitive_value: str - """ - super().__init__(**kwargs) - self.id = id - self.name = name - self.description = description - self.data_type = data_type - self.sensitive = sensitive - self.value = value - self.sensitive_value = sensitive_value - - -class StagingSettings(_serialization.Model): - """Staging settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar linked_service_name: Staging linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar path: The path to storage for storing the interim data. Type: string (or Expression with - resultType string). - :vartype path: JSON - :ivar enable_compression: Specifies whether to use compression when copying data via an interim - staging. Default value is false. Type: boolean (or Expression with resultType boolean). - :vartype enable_compression: JSON - """ - - _validation = { - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "path": {"key": "path", "type": "object"}, - "enable_compression": {"key": "enableCompression", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - path: Optional[JSON] = None, - enable_compression: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword linked_service_name: Staging linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword path: The path to storage for storing the interim data. Type: string (or Expression - with resultType string). - :paramtype path: JSON - :keyword enable_compression: Specifies whether to use compression when copying data via an - interim staging. Default value is false. Type: boolean (or Expression with resultType boolean). - :paramtype enable_compression: JSON - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.linked_service_name = linked_service_name - self.path = path - self.enable_compression = enable_compression - - -class StoredProcedureParameter(_serialization.Model): - """SQL stored procedure parameter. - - :ivar value: Stored procedure parameter value. Type: string (or Expression with resultType - string). - :vartype value: JSON - :ivar type: Stored procedure parameter type. Known values are: "String", "Int", "Int64", - "Decimal", "Guid", "Boolean", "Date", and "Int". - :vartype type: str or ~azure.mgmt.datafactory.models.StoredProcedureParameterType - """ - - _attribute_map = { - "value": {"key": "value", "type": "object"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[JSON] = None, - type: Optional[Union[str, "_models.StoredProcedureParameterType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Stored procedure parameter value. Type: string (or Expression with resultType - string). - :paramtype value: JSON - :keyword type: Stored procedure parameter type. Known values are: "String", "Int", "Int64", - "Decimal", "Guid", "Boolean", "Date", and "Int". - :paramtype type: str or ~azure.mgmt.datafactory.models.StoredProcedureParameterType - """ - super().__init__(**kwargs) - self.value = value - self.type = type - - -class SwitchActivity(ControlActivity): - """This activity evaluates an expression and executes activities under the cases property that - correspond to the expression evaluation expected in the equals property. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar on: An expression that would evaluate to a string or integer. This is used to determine - the block of activities in cases that will be executed. Required. - :vartype on: ~azure.mgmt.datafactory.models.Expression - :ivar cases: List of cases that correspond to expected values of the 'on' property. This is an - optional property and if not provided, the activity will execute activities provided in - defaultActivities. - :vartype cases: list[~azure.mgmt.datafactory.models.SwitchCase] - :ivar default_activities: List of activities to execute if no case condition is satisfied. This - is an optional property and if not provided, the activity will exit without any action. - :vartype default_activities: list[~azure.mgmt.datafactory.models.Activity] - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "on": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "on": {"key": "typeProperties.on", "type": "Expression"}, - "cases": {"key": "typeProperties.cases", "type": "[SwitchCase]"}, - "default_activities": {"key": "typeProperties.defaultActivities", "type": "[Activity]"}, - } - - def __init__( - self, - *, - name: str, - on: "_models.Expression", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - cases: Optional[list["_models.SwitchCase"]] = None, - default_activities: Optional[list["_models.Activity"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword on: An expression that would evaluate to a string or integer. This is used to - determine the block of activities in cases that will be executed. Required. - :paramtype on: ~azure.mgmt.datafactory.models.Expression - :keyword cases: List of cases that correspond to expected values of the 'on' property. This is - an optional property and if not provided, the activity will execute activities provided in - defaultActivities. - :paramtype cases: list[~azure.mgmt.datafactory.models.SwitchCase] - :keyword default_activities: List of activities to execute if no case condition is satisfied. - This is an optional property and if not provided, the activity will exit without any action. - :paramtype default_activities: list[~azure.mgmt.datafactory.models.Activity] - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - **kwargs - ) - self.type: str = "Switch" - self.on = on - self.cases = cases - self.default_activities = default_activities - - -class SwitchCase(_serialization.Model): - """Switch cases with have a value and corresponding activities. - - :ivar value: Expected value that satisfies the expression result of the 'on' property. - :vartype value: str - :ivar activities: List of activities to execute for satisfied case condition. - :vartype activities: list[~azure.mgmt.datafactory.models.Activity] - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "activities": {"key": "activities", "type": "[Activity]"}, - } - - def __init__( - self, *, value: Optional[str] = None, activities: Optional[list["_models.Activity"]] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Expected value that satisfies the expression result of the 'on' property. - :paramtype value: str - :keyword activities: List of activities to execute for satisfied case condition. - :paramtype activities: list[~azure.mgmt.datafactory.models.Activity] - """ - super().__init__(**kwargs) - self.value = value - self.activities = activities - - -class SybaseLinkedService(LinkedService): - """Linked service for Sybase data source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar server: Server name for connection. Type: string (or Expression with resultType string). - Required. - :vartype server: JSON - :ivar database: Database name for connection. Type: string (or Expression with resultType - string). Required. - :vartype database: JSON - :ivar schema: Schema name for connection. Type: string (or Expression with resultType string). - :vartype schema: JSON - :ivar authentication_type: AuthenticationType to be used for connection. Known values are: - "Basic" and "Windows". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.SybaseAuthenticationType - :ivar username: Username for authentication. Type: string (or Expression with resultType - string). - :vartype username: JSON - :ivar password: Password for authentication. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "server": {"required": True}, - "database": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "schema": {"key": "typeProperties.schema", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - server: JSON, - database: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - schema: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.SybaseAuthenticationType"]] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword server: Server name for connection. Type: string (or Expression with resultType - string). Required. - :paramtype server: JSON - :keyword database: Database name for connection. Type: string (or Expression with resultType - string). Required. - :paramtype database: JSON - :keyword schema: Schema name for connection. Type: string (or Expression with resultType - string). - :paramtype schema: JSON - :keyword authentication_type: AuthenticationType to be used for connection. Known values are: - "Basic" and "Windows". - :paramtype authentication_type: str or ~azure.mgmt.datafactory.models.SybaseAuthenticationType - :keyword username: Username for authentication. Type: string (or Expression with resultType - string). - :paramtype username: JSON - :keyword password: Password for authentication. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Sybase" - self.server = server - self.database = database - self.schema = schema - self.authentication_type = authentication_type - self.username = username - self.password = password - self.encrypted_credential = encrypted_credential - - -class SybaseSource(TabularSource): - """A copy activity source for Sybase databases. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: Database query. Type: string (or Expression with resultType string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: Database query. Type: string (or Expression with resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "SybaseSource" - self.query = query - - -class SybaseTableDataset(Dataset): - """The Sybase table dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The Sybase table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The Sybase table name. Type: string (or Expression with resultType - string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "SybaseTable" - self.table_name = table_name - - -class SynapseNotebookActivity(ExecutionActivity): - """Execute Synapse notebook activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar notebook: Synapse notebook reference. Required. - :vartype notebook: ~azure.mgmt.datafactory.models.SynapseNotebookReference - :ivar spark_pool: The name of the big data pool which will be used to execute the notebook. - :vartype spark_pool: ~azure.mgmt.datafactory.models.BigDataPoolParametrizationReference - :ivar parameters: Notebook parameters. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.NotebookParameter] - :ivar executor_size: Number of core and memory to be used for executors allocated in the - specified Spark pool for the session, which will be used for overriding 'executorCores' and - 'executorMemory' of the notebook you provide. Type: string (or Expression with resultType - string). - :vartype executor_size: JSON - :ivar conf: Spark configuration properties, which will override the 'conf' of the notebook you - provide. - :vartype conf: JSON - :ivar driver_size: Number of core and memory to be used for driver allocated in the specified - Spark pool for the session, which will be used for overriding 'driverCores' and 'driverMemory' - of the notebook you provide. Type: string (or Expression with resultType string). - :vartype driver_size: JSON - :ivar num_executors: Number of executors to launch for this session, which will override the - 'numExecutors' of the notebook you provide. Type: integer (or Expression with resultType - integer). - :vartype num_executors: JSON - :ivar configuration_type: The type of the spark config. Known values are: "Default", - "Customized", and "Artifact". - :vartype configuration_type: str or ~azure.mgmt.datafactory.models.ConfigurationType - :ivar target_spark_configuration: The spark configuration of the spark job. - :vartype target_spark_configuration: - ~azure.mgmt.datafactory.models.SparkConfigurationParametrizationReference - :ivar spark_config: Spark configuration property. - :vartype spark_config: dict[str, JSON] - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "notebook": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "notebook": {"key": "typeProperties.notebook", "type": "SynapseNotebookReference"}, - "spark_pool": {"key": "typeProperties.sparkPool", "type": "BigDataPoolParametrizationReference"}, - "parameters": {"key": "typeProperties.parameters", "type": "{NotebookParameter}"}, - "executor_size": {"key": "typeProperties.executorSize", "type": "object"}, - "conf": {"key": "typeProperties.conf", "type": "object"}, - "driver_size": {"key": "typeProperties.driverSize", "type": "object"}, - "num_executors": {"key": "typeProperties.numExecutors", "type": "object"}, - "configuration_type": {"key": "typeProperties.configurationType", "type": "str"}, - "target_spark_configuration": { - "key": "typeProperties.targetSparkConfiguration", - "type": "SparkConfigurationParametrizationReference", - }, - "spark_config": {"key": "typeProperties.sparkConfig", "type": "{object}"}, - } - - def __init__( - self, - *, - name: str, - notebook: "_models.SynapseNotebookReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - spark_pool: Optional["_models.BigDataPoolParametrizationReference"] = None, - parameters: Optional[dict[str, "_models.NotebookParameter"]] = None, - executor_size: Optional[JSON] = None, - conf: Optional[JSON] = None, - driver_size: Optional[JSON] = None, - num_executors: Optional[JSON] = None, - configuration_type: Optional[Union[str, "_models.ConfigurationType"]] = None, - target_spark_configuration: Optional["_models.SparkConfigurationParametrizationReference"] = None, - spark_config: Optional[dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword notebook: Synapse notebook reference. Required. - :paramtype notebook: ~azure.mgmt.datafactory.models.SynapseNotebookReference - :keyword spark_pool: The name of the big data pool which will be used to execute the notebook. - :paramtype spark_pool: ~azure.mgmt.datafactory.models.BigDataPoolParametrizationReference - :keyword parameters: Notebook parameters. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.NotebookParameter] - :keyword executor_size: Number of core and memory to be used for executors allocated in the - specified Spark pool for the session, which will be used for overriding 'executorCores' and - 'executorMemory' of the notebook you provide. Type: string (or Expression with resultType - string). - :paramtype executor_size: JSON - :keyword conf: Spark configuration properties, which will override the 'conf' of the notebook - you provide. - :paramtype conf: JSON - :keyword driver_size: Number of core and memory to be used for driver allocated in the - specified Spark pool for the session, which will be used for overriding 'driverCores' and - 'driverMemory' of the notebook you provide. Type: string (or Expression with resultType - string). - :paramtype driver_size: JSON - :keyword num_executors: Number of executors to launch for this session, which will override the - 'numExecutors' of the notebook you provide. Type: integer (or Expression with resultType - integer). - :paramtype num_executors: JSON - :keyword configuration_type: The type of the spark config. Known values are: "Default", - "Customized", and "Artifact". - :paramtype configuration_type: str or ~azure.mgmt.datafactory.models.ConfigurationType - :keyword target_spark_configuration: The spark configuration of the spark job. - :paramtype target_spark_configuration: - ~azure.mgmt.datafactory.models.SparkConfigurationParametrizationReference - :keyword spark_config: Spark configuration property. - :paramtype spark_config: dict[str, JSON] - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "SynapseNotebook" - self.notebook = notebook - self.spark_pool = spark_pool - self.parameters = parameters - self.executor_size = executor_size - self.conf = conf - self.driver_size = driver_size - self.num_executors = num_executors - self.configuration_type = configuration_type - self.target_spark_configuration = target_spark_configuration - self.spark_config = spark_config - - -class SynapseNotebookReference(_serialization.Model): - """Synapse notebook reference type. - - All required parameters must be populated in order to send to server. - - :ivar type: Synapse notebook reference type. Required. "NotebookReference" - :vartype type: str or ~azure.mgmt.datafactory.models.NotebookReferenceType - :ivar reference_name: Reference notebook name. Type: string (or Expression with resultType - string). Required. - :vartype reference_name: JSON - """ - - _validation = { - "type": {"required": True}, - "reference_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "reference_name": {"key": "referenceName", "type": "object"}, - } - - def __init__( - self, *, type: Union[str, "_models.NotebookReferenceType"], reference_name: JSON, **kwargs: Any - ) -> None: - """ - :keyword type: Synapse notebook reference type. Required. "NotebookReference" - :paramtype type: str or ~azure.mgmt.datafactory.models.NotebookReferenceType - :keyword reference_name: Reference notebook name. Type: string (or Expression with resultType - string). Required. - :paramtype reference_name: JSON - """ - super().__init__(**kwargs) - self.type = type - self.reference_name = reference_name - - -class SynapseSparkJobDefinitionActivity(ExecutionActivity): - """Execute spark job activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar spark_job: Synapse spark job reference. Required. - :vartype spark_job: ~azure.mgmt.datafactory.models.SynapseSparkJobReference - :ivar arguments: User specified arguments to SynapseSparkJobDefinitionActivity. - :vartype arguments: list[any] - :ivar file: The main file used for the job, which will override the 'file' of the spark job - definition you provide. Type: string (or Expression with resultType string). - :vartype file: JSON - :ivar scan_folder: Scanning subfolders from the root folder of the main definition file, these - files will be added as reference files. The folders named 'jars', 'pyFiles', 'files' or - 'archives' will be scanned, and the folders name are case sensitive. Type: boolean (or - Expression with resultType boolean). - :vartype scan_folder: JSON - :ivar class_name: The fully-qualified identifier or the main class that is in the main - definition file, which will override the 'className' of the spark job definition you provide. - Type: string (or Expression with resultType string). - :vartype class_name: JSON - :ivar files: (Deprecated. Please use pythonCodeReference and filesV2) Additional files used for - reference in the main definition file, which will override the 'files' of the spark job - definition you provide. - :vartype files: list[JSON] - :ivar python_code_reference: Additional python code files used for reference in the main - definition file, which will override the 'pyFiles' of the spark job definition you provide. - :vartype python_code_reference: list[JSON] - :ivar files_v2: Additional files used for reference in the main definition file, which will - override the 'jars' and 'files' of the spark job definition you provide. - :vartype files_v2: list[JSON] - :ivar target_big_data_pool: The name of the big data pool which will be used to execute the - spark batch job, which will override the 'targetBigDataPool' of the spark job definition you - provide. - :vartype target_big_data_pool: - ~azure.mgmt.datafactory.models.BigDataPoolParametrizationReference - :ivar executor_size: Number of core and memory to be used for executors allocated in the - specified Spark pool for the job, which will be used for overriding 'executorCores' and - 'executorMemory' of the spark job definition you provide. Type: string (or Expression with - resultType string). - :vartype executor_size: JSON - :ivar conf: Spark configuration properties, which will override the 'conf' of the spark job - definition you provide. - :vartype conf: JSON - :ivar driver_size: Number of core and memory to be used for driver allocated in the specified - Spark pool for the job, which will be used for overriding 'driverCores' and 'driverMemory' of - the spark job definition you provide. Type: string (or Expression with resultType string). - :vartype driver_size: JSON - :ivar num_executors: Number of executors to launch for this job, which will override the - 'numExecutors' of the spark job definition you provide. Type: integer (or Expression with - resultType integer). - :vartype num_executors: JSON - :ivar configuration_type: The type of the spark config. Known values are: "Default", - "Customized", and "Artifact". - :vartype configuration_type: str or ~azure.mgmt.datafactory.models.ConfigurationType - :ivar target_spark_configuration: The spark configuration of the spark job. - :vartype target_spark_configuration: - ~azure.mgmt.datafactory.models.SparkConfigurationParametrizationReference - :ivar spark_config: Spark configuration property. - :vartype spark_config: dict[str, JSON] - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "spark_job": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "spark_job": {"key": "typeProperties.sparkJob", "type": "SynapseSparkJobReference"}, - "arguments": {"key": "typeProperties.args", "type": "[object]"}, - "file": {"key": "typeProperties.file", "type": "object"}, - "scan_folder": {"key": "typeProperties.scanFolder", "type": "object"}, - "class_name": {"key": "typeProperties.className", "type": "object"}, - "files": {"key": "typeProperties.files", "type": "[object]"}, - "python_code_reference": {"key": "typeProperties.pythonCodeReference", "type": "[object]"}, - "files_v2": {"key": "typeProperties.filesV2", "type": "[object]"}, - "target_big_data_pool": { - "key": "typeProperties.targetBigDataPool", - "type": "BigDataPoolParametrizationReference", - }, - "executor_size": {"key": "typeProperties.executorSize", "type": "object"}, - "conf": {"key": "typeProperties.conf", "type": "object"}, - "driver_size": {"key": "typeProperties.driverSize", "type": "object"}, - "num_executors": {"key": "typeProperties.numExecutors", "type": "object"}, - "configuration_type": {"key": "typeProperties.configurationType", "type": "str"}, - "target_spark_configuration": { - "key": "typeProperties.targetSparkConfiguration", - "type": "SparkConfigurationParametrizationReference", - }, - "spark_config": {"key": "typeProperties.sparkConfig", "type": "{object}"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - name: str, - spark_job: "_models.SynapseSparkJobReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - arguments: Optional[list[Any]] = None, - file: Optional[JSON] = None, - scan_folder: Optional[JSON] = None, - class_name: Optional[JSON] = None, - files: Optional[list[JSON]] = None, - python_code_reference: Optional[list[JSON]] = None, - files_v2: Optional[list[JSON]] = None, - target_big_data_pool: Optional["_models.BigDataPoolParametrizationReference"] = None, - executor_size: Optional[JSON] = None, - conf: Optional[JSON] = None, - driver_size: Optional[JSON] = None, - num_executors: Optional[JSON] = None, - configuration_type: Optional[Union[str, "_models.ConfigurationType"]] = None, - target_spark_configuration: Optional["_models.SparkConfigurationParametrizationReference"] = None, - spark_config: Optional[dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword spark_job: Synapse spark job reference. Required. - :paramtype spark_job: ~azure.mgmt.datafactory.models.SynapseSparkJobReference - :keyword arguments: User specified arguments to SynapseSparkJobDefinitionActivity. - :paramtype arguments: list[any] - :keyword file: The main file used for the job, which will override the 'file' of the spark job - definition you provide. Type: string (or Expression with resultType string). - :paramtype file: JSON - :keyword scan_folder: Scanning subfolders from the root folder of the main definition file, - these files will be added as reference files. The folders named 'jars', 'pyFiles', 'files' or - 'archives' will be scanned, and the folders name are case sensitive. Type: boolean (or - Expression with resultType boolean). - :paramtype scan_folder: JSON - :keyword class_name: The fully-qualified identifier or the main class that is in the main - definition file, which will override the 'className' of the spark job definition you provide. - Type: string (or Expression with resultType string). - :paramtype class_name: JSON - :keyword files: (Deprecated. Please use pythonCodeReference and filesV2) Additional files used - for reference in the main definition file, which will override the 'files' of the spark job - definition you provide. - :paramtype files: list[JSON] - :keyword python_code_reference: Additional python code files used for reference in the main - definition file, which will override the 'pyFiles' of the spark job definition you provide. - :paramtype python_code_reference: list[JSON] - :keyword files_v2: Additional files used for reference in the main definition file, which will - override the 'jars' and 'files' of the spark job definition you provide. - :paramtype files_v2: list[JSON] - :keyword target_big_data_pool: The name of the big data pool which will be used to execute the - spark batch job, which will override the 'targetBigDataPool' of the spark job definition you - provide. - :paramtype target_big_data_pool: - ~azure.mgmt.datafactory.models.BigDataPoolParametrizationReference - :keyword executor_size: Number of core and memory to be used for executors allocated in the - specified Spark pool for the job, which will be used for overriding 'executorCores' and - 'executorMemory' of the spark job definition you provide. Type: string (or Expression with - resultType string). - :paramtype executor_size: JSON - :keyword conf: Spark configuration properties, which will override the 'conf' of the spark job - definition you provide. - :paramtype conf: JSON - :keyword driver_size: Number of core and memory to be used for driver allocated in the - specified Spark pool for the job, which will be used for overriding 'driverCores' and - 'driverMemory' of the spark job definition you provide. Type: string (or Expression with - resultType string). - :paramtype driver_size: JSON - :keyword num_executors: Number of executors to launch for this job, which will override the - 'numExecutors' of the spark job definition you provide. Type: integer (or Expression with - resultType integer). - :paramtype num_executors: JSON - :keyword configuration_type: The type of the spark config. Known values are: "Default", - "Customized", and "Artifact". - :paramtype configuration_type: str or ~azure.mgmt.datafactory.models.ConfigurationType - :keyword target_spark_configuration: The spark configuration of the spark job. - :paramtype target_spark_configuration: - ~azure.mgmt.datafactory.models.SparkConfigurationParametrizationReference - :keyword spark_config: Spark configuration property. - :paramtype spark_config: dict[str, JSON] - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "SparkJob" - self.spark_job = spark_job - self.arguments = arguments - self.file = file - self.scan_folder = scan_folder - self.class_name = class_name - self.files = files - self.python_code_reference = python_code_reference - self.files_v2 = files_v2 - self.target_big_data_pool = target_big_data_pool - self.executor_size = executor_size - self.conf = conf - self.driver_size = driver_size - self.num_executors = num_executors - self.configuration_type = configuration_type - self.target_spark_configuration = target_spark_configuration - self.spark_config = spark_config - - -class SynapseSparkJobReference(_serialization.Model): - """Synapse spark job reference type. - - All required parameters must be populated in order to send to server. - - :ivar type: Synapse spark job reference type. Required. "SparkJobDefinitionReference" - :vartype type: str or ~azure.mgmt.datafactory.models.SparkJobReferenceType - :ivar reference_name: Reference spark job name. Expression with resultType string. Required. - :vartype reference_name: JSON - """ - - _validation = { - "type": {"required": True}, - "reference_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "reference_name": {"key": "referenceName", "type": "object"}, - } - - def __init__( - self, *, type: Union[str, "_models.SparkJobReferenceType"], reference_name: JSON, **kwargs: Any - ) -> None: - """ - :keyword type: Synapse spark job reference type. Required. "SparkJobDefinitionReference" - :paramtype type: str or ~azure.mgmt.datafactory.models.SparkJobReferenceType - :keyword reference_name: Reference spark job name. Expression with resultType string. Required. - :paramtype reference_name: JSON - """ - super().__init__(**kwargs) - self.type = type - self.reference_name = reference_name - - -class TabularTranslator(CopyTranslator): - """A copy activity tabular translator. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy translator type. Required. - :vartype type: str - :ivar column_mappings: Column mappings. Example: "UserId: MyUserId, Group: MyGroup, Name: - MyName" Type: string (or Expression with resultType string). This property will be retired. - Please use mappings property. - :vartype column_mappings: JSON - :ivar schema_mapping: The schema mapping to map between tabular data and hierarchical data. - Example: {"Column1": "$.Column1", "Column2": "$.Column2.Property1", "Column3": - "$.Column2.Property2"}. Type: object (or Expression with resultType object). This property will - be retired. Please use mappings property. - :vartype schema_mapping: JSON - :ivar collection_reference: The JSON Path of the Nested Array that is going to do cross-apply. - Type: object (or Expression with resultType object). - :vartype collection_reference: JSON - :ivar map_complex_values_to_string: Whether to map complex (array and object) values to simple - strings in json format. Type: boolean (or Expression with resultType boolean). - :vartype map_complex_values_to_string: JSON - :ivar mappings: Column mappings with logical types. Tabular->tabular example: - [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. - Hierarchical->tabular example: - [{"source":{"path":"$.CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$.CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. - Type: object (or Expression with resultType object). - :vartype mappings: JSON - :ivar type_conversion: Whether to enable the advanced type conversion feature in the Copy - activity. Type: boolean (or Expression with resultType boolean). - :vartype type_conversion: JSON - :ivar type_conversion_settings: Type conversion settings. - :vartype type_conversion_settings: ~azure.mgmt.datafactory.models.TypeConversionSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "column_mappings": {"key": "columnMappings", "type": "object"}, - "schema_mapping": {"key": "schemaMapping", "type": "object"}, - "collection_reference": {"key": "collectionReference", "type": "object"}, - "map_complex_values_to_string": {"key": "mapComplexValuesToString", "type": "object"}, - "mappings": {"key": "mappings", "type": "object"}, - "type_conversion": {"key": "typeConversion", "type": "object"}, - "type_conversion_settings": {"key": "typeConversionSettings", "type": "TypeConversionSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - column_mappings: Optional[JSON] = None, - schema_mapping: Optional[JSON] = None, - collection_reference: Optional[JSON] = None, - map_complex_values_to_string: Optional[JSON] = None, - mappings: Optional[JSON] = None, - type_conversion: Optional[JSON] = None, - type_conversion_settings: Optional["_models.TypeConversionSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword column_mappings: Column mappings. Example: "UserId: MyUserId, Group: MyGroup, Name: - MyName" Type: string (or Expression with resultType string). This property will be retired. - Please use mappings property. - :paramtype column_mappings: JSON - :keyword schema_mapping: The schema mapping to map between tabular data and hierarchical data. - Example: {"Column1": "$.Column1", "Column2": "$.Column2.Property1", "Column3": - "$.Column2.Property2"}. Type: object (or Expression with resultType object). This property will - be retired. Please use mappings property. - :paramtype schema_mapping: JSON - :keyword collection_reference: The JSON Path of the Nested Array that is going to do - cross-apply. Type: object (or Expression with resultType object). - :paramtype collection_reference: JSON - :keyword map_complex_values_to_string: Whether to map complex (array and object) values to - simple strings in json format. Type: boolean (or Expression with resultType boolean). - :paramtype map_complex_values_to_string: JSON - :keyword mappings: Column mappings with logical types. Tabular->tabular example: - [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. - Hierarchical->tabular example: - [{"source":{"path":"$.CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$.CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. - Type: object (or Expression with resultType object). - :paramtype mappings: JSON - :keyword type_conversion: Whether to enable the advanced type conversion feature in the Copy - activity. Type: boolean (or Expression with resultType boolean). - :paramtype type_conversion: JSON - :keyword type_conversion_settings: Type conversion settings. - :paramtype type_conversion_settings: ~azure.mgmt.datafactory.models.TypeConversionSettings - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "TabularTranslator" - self.column_mappings = column_mappings - self.schema_mapping = schema_mapping - self.collection_reference = collection_reference - self.map_complex_values_to_string = map_complex_values_to_string - self.mappings = mappings - self.type_conversion = type_conversion - self.type_conversion_settings = type_conversion_settings - - -class TarGZipReadSettings(CompressionReadSettings): - """The TarGZip compression read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The Compression setting type. Required. - :vartype type: str - :ivar preserve_compression_file_name_as_folder: Preserve the compression file name as folder - path. Type: boolean (or Expression with resultType boolean). - :vartype preserve_compression_file_name_as_folder: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "preserve_compression_file_name_as_folder": {"key": "preserveCompressionFileNameAsFolder", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - preserve_compression_file_name_as_folder: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword preserve_compression_file_name_as_folder: Preserve the compression file name as folder - path. Type: boolean (or Expression with resultType boolean). - :paramtype preserve_compression_file_name_as_folder: JSON - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "TarGZipReadSettings" - self.preserve_compression_file_name_as_folder = preserve_compression_file_name_as_folder - - -class TarReadSettings(CompressionReadSettings): - """The Tar compression read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The Compression setting type. Required. - :vartype type: str - :ivar preserve_compression_file_name_as_folder: Preserve the compression file name as folder - path. Type: boolean (or Expression with resultType boolean). - :vartype preserve_compression_file_name_as_folder: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "preserve_compression_file_name_as_folder": {"key": "preserveCompressionFileNameAsFolder", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - preserve_compression_file_name_as_folder: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword preserve_compression_file_name_as_folder: Preserve the compression file name as folder - path. Type: boolean (or Expression with resultType boolean). - :paramtype preserve_compression_file_name_as_folder: JSON - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "TarReadSettings" - self.preserve_compression_file_name_as_folder = preserve_compression_file_name_as_folder - - -class TeamDeskLinkedService(LinkedService): - """Linked service for TeamDesk. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar authentication_type: The authentication type to use. Required. Known values are: "Basic" - and "Token". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.TeamDeskAuthenticationType - :ivar url: The url to connect TeamDesk source. Type: string (or Expression with resultType - string). Required. - :vartype url: JSON - :ivar user_name: The username of the TeamDesk source. Type: string (or Expression with - resultType string). - :vartype user_name: JSON - :ivar password: The password of the TeamDesk source. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar api_token: The api token for the TeamDesk source. - :vartype api_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "authentication_type": {"required": True}, - "url": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "url": {"key": "typeProperties.url", "type": "object"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "api_token": {"key": "typeProperties.apiToken", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - authentication_type: Union[str, "_models.TeamDeskAuthenticationType"], - url: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - api_token: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword authentication_type: The authentication type to use. Required. Known values are: - "Basic" and "Token". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.TeamDeskAuthenticationType - :keyword url: The url to connect TeamDesk source. Type: string (or Expression with resultType - string). Required. - :paramtype url: JSON - :keyword user_name: The username of the TeamDesk source. Type: string (or Expression with - resultType string). - :paramtype user_name: JSON - :keyword password: The password of the TeamDesk source. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword api_token: The api token for the TeamDesk source. - :paramtype api_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "TeamDesk" - self.authentication_type = authentication_type - self.url = url - self.user_name = user_name - self.password = password - self.api_token = api_token - self.encrypted_credential = encrypted_credential - - -class TeradataImportCommand(ImportSettings): - """Teradata import command settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The import setting type. Required. - :vartype type: str - :ivar additional_format_options: Additional format options for Teradata Copy Command. The - format options only applies to direct copy from CSV source. Type: key value pairs (value should - be string type) (or Expression with resultType object). Example: "additionalFormatOptions": { - "timeFormat": "HHhMImSSs" }. - :vartype additional_format_options: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "additional_format_options": {"key": "additionalFormatOptions", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - additional_format_options: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword additional_format_options: Additional format options for Teradata Copy Command. The - format options only applies to direct copy from CSV source. Type: key value pairs (value should - be string type) (or Expression with resultType object). Example: "additionalFormatOptions": { - "timeFormat": "HHhMImSSs" }. - :paramtype additional_format_options: JSON - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "TeradataImportCommand" - self.additional_format_options = additional_format_options - - -class TeradataLinkedService(LinkedService): - """Linked service for Teradata data source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: Teradata ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. Only applied for version 1.0. - :vartype connection_string: JSON - :ivar server: Server name for connection. Type: string (or Expression with resultType string). - :vartype server: JSON - :ivar authentication_type: AuthenticationType to be used for connection. Known values are: - "Basic" and "Windows". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.TeradataAuthenticationType - :ivar username: Username for authentication. Type: string (or Expression with resultType - string). - :vartype username: JSON - :ivar password: Password for authentication. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar ssl_mode: SSL mode for connection. Valid values including: “Disable”, “Allow”, “Prefer”, - “Require”, “Verify-CA”, “Verify-Full”. Default value is “Verify-Full”. Type: string (or - Expression with resultType string). Only applied for version 2.0. - :vartype ssl_mode: JSON - :ivar port_number: The port numbers when connecting to server through non HTTPS/TLS - connections. Type: integer (or Expression with resultType integer). Only used for V2. Only - applied for version 2.0. - :vartype port_number: JSON - :ivar https_port_number: The port numbers when connecting to server through HTTPS/TLS - connections. Type: integer (or Expression with resultType integer). Only applied for version - 2.0. - :vartype https_port_number: JSON - :ivar use_data_encryption: Specifies whether to encrypt all communication with the Teradata - database. Allowed values are 0 or 1. This setting will be ignored for HTTPS/TLS connections. - Type: integer (or Expression with resultType integer). Only applied for version 2.0. - :vartype use_data_encryption: JSON - :ivar character_set: The character set to use for the connection. Type: string (or Expression - with resultType string). Only applied for version 2.0. - :vartype character_set: JSON - :ivar max_resp_size: The maximum size of the response buffer for SQL requests, in bytes. Type: - integer. Only applied for version 2.0. - :vartype max_resp_size: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "username": {"key": "typeProperties.username", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "ssl_mode": {"key": "typeProperties.sslMode", "type": "object"}, - "port_number": {"key": "typeProperties.portNumber", "type": "object"}, - "https_port_number": {"key": "typeProperties.httpsPortNumber", "type": "object"}, - "use_data_encryption": {"key": "typeProperties.useDataEncryption", "type": "object"}, - "character_set": {"key": "typeProperties.characterSet", "type": "object"}, - "max_resp_size": {"key": "typeProperties.maxRespSize", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_string: Optional[JSON] = None, - server: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.TeradataAuthenticationType"]] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - ssl_mode: Optional[JSON] = None, - port_number: Optional[JSON] = None, - https_port_number: Optional[JSON] = None, - use_data_encryption: Optional[JSON] = None, - character_set: Optional[JSON] = None, - max_resp_size: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: Teradata ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. Only applied for version 1.0. - :paramtype connection_string: JSON - :keyword server: Server name for connection. Type: string (or Expression with resultType - string). - :paramtype server: JSON - :keyword authentication_type: AuthenticationType to be used for connection. Known values are: - "Basic" and "Windows". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.TeradataAuthenticationType - :keyword username: Username for authentication. Type: string (or Expression with resultType - string). - :paramtype username: JSON - :keyword password: Password for authentication. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword ssl_mode: SSL mode for connection. Valid values including: “Disable”, “Allow”, - “Prefer”, “Require”, “Verify-CA”, “Verify-Full”. Default value is “Verify-Full”. Type: string - (or Expression with resultType string). Only applied for version 2.0. - :paramtype ssl_mode: JSON - :keyword port_number: The port numbers when connecting to server through non HTTPS/TLS - connections. Type: integer (or Expression with resultType integer). Only used for V2. Only - applied for version 2.0. - :paramtype port_number: JSON - :keyword https_port_number: The port numbers when connecting to server through HTTPS/TLS - connections. Type: integer (or Expression with resultType integer). Only applied for version - 2.0. - :paramtype https_port_number: JSON - :keyword use_data_encryption: Specifies whether to encrypt all communication with the Teradata - database. Allowed values are 0 or 1. This setting will be ignored for HTTPS/TLS connections. - Type: integer (or Expression with resultType integer). Only applied for version 2.0. - :paramtype use_data_encryption: JSON - :keyword character_set: The character set to use for the connection. Type: string (or - Expression with resultType string). Only applied for version 2.0. - :paramtype character_set: JSON - :keyword max_resp_size: The maximum size of the response buffer for SQL requests, in bytes. - Type: integer. Only applied for version 2.0. - :paramtype max_resp_size: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Teradata" - self.connection_string = connection_string - self.server = server - self.authentication_type = authentication_type - self.username = username - self.password = password - self.ssl_mode = ssl_mode - self.port_number = port_number - self.https_port_number = https_port_number - self.use_data_encryption = use_data_encryption - self.character_set = character_set - self.max_resp_size = max_resp_size - self.encrypted_credential = encrypted_credential - - -class TeradataPartitionSettings(_serialization.Model): - """The settings that will be leveraged for teradata source partitioning. - - :ivar partition_column_name: The name of the column that will be used for proceeding range or - hash partitioning. Type: string (or Expression with resultType string). - :vartype partition_column_name: JSON - :ivar partition_upper_bound: The maximum value of column specified in partitionColumnName that - will be used for proceeding range partitioning. Type: string (or Expression with resultType - string). - :vartype partition_upper_bound: JSON - :ivar partition_lower_bound: The minimum value of column specified in partitionColumnName that - will be used for proceeding range partitioning. Type: string (or Expression with resultType - string). - :vartype partition_lower_bound: JSON - """ - - _attribute_map = { - "partition_column_name": {"key": "partitionColumnName", "type": "object"}, - "partition_upper_bound": {"key": "partitionUpperBound", "type": "object"}, - "partition_lower_bound": {"key": "partitionLowerBound", "type": "object"}, - } - - def __init__( - self, - *, - partition_column_name: Optional[JSON] = None, - partition_upper_bound: Optional[JSON] = None, - partition_lower_bound: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword partition_column_name: The name of the column that will be used for proceeding range - or hash partitioning. Type: string (or Expression with resultType string). - :paramtype partition_column_name: JSON - :keyword partition_upper_bound: The maximum value of column specified in partitionColumnName - that will be used for proceeding range partitioning. Type: string (or Expression with - resultType string). - :paramtype partition_upper_bound: JSON - :keyword partition_lower_bound: The minimum value of column specified in partitionColumnName - that will be used for proceeding range partitioning. Type: string (or Expression with - resultType string). - :paramtype partition_lower_bound: JSON - """ - super().__init__(**kwargs) - self.partition_column_name = partition_column_name - self.partition_upper_bound = partition_upper_bound - self.partition_lower_bound = partition_lower_bound - - -class TeradataSink(CopySink): - """A copy activity Teradata sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar import_settings: Teradata import settings. - :vartype import_settings: ~azure.mgmt.datafactory.models.TeradataImportCommand - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "import_settings": {"key": "importSettings", "type": "TeradataImportCommand"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - import_settings: Optional["_models.TeradataImportCommand"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword import_settings: Teradata import settings. - :paramtype import_settings: ~azure.mgmt.datafactory.models.TeradataImportCommand - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "TeradataSink" - self.import_settings = import_settings - - -class TeradataSource(TabularSource): - """A copy activity Teradata source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: Teradata query. Type: string (or Expression with resultType string). - :vartype query: JSON - :ivar partition_option: The partition mechanism that will be used for teradata read in - parallel. Possible values include: "None", "Hash", "DynamicRange". - :vartype partition_option: JSON - :ivar partition_settings: The settings that will be leveraged for teradata source partitioning. - :vartype partition_settings: ~azure.mgmt.datafactory.models.TeradataPartitionSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - "partition_option": {"key": "partitionOption", "type": "object"}, - "partition_settings": {"key": "partitionSettings", "type": "TeradataPartitionSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - partition_option: Optional[JSON] = None, - partition_settings: Optional["_models.TeradataPartitionSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: Teradata query. Type: string (or Expression with resultType string). - :paramtype query: JSON - :keyword partition_option: The partition mechanism that will be used for teradata read in - parallel. Possible values include: "None", "Hash", "DynamicRange". - :paramtype partition_option: JSON - :keyword partition_settings: The settings that will be leveraged for teradata source - partitioning. - :paramtype partition_settings: ~azure.mgmt.datafactory.models.TeradataPartitionSettings - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "TeradataSource" - self.query = query - self.partition_option = partition_option - self.partition_settings = partition_settings - - -class TeradataTableDataset(Dataset): - """The Teradata database dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar database: The database name of Teradata. Type: string (or Expression with resultType - string). - :vartype database: JSON - :ivar table: The table name of Teradata. Type: string (or Expression with resultType string). - :vartype table: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - database: Optional[JSON] = None, - table: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword database: The database name of Teradata. Type: string (or Expression with resultType - string). - :paramtype database: JSON - :keyword table: The table name of Teradata. Type: string (or Expression with resultType - string). - :paramtype table: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "TeradataTable" - self.database = database - self.table = table - - -class TextFormat(DatasetStorageFormat): - """The data stored in text format. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset storage format. Required. - :vartype type: str - :ivar serializer: Serializer. Type: string (or Expression with resultType string). - :vartype serializer: JSON - :ivar deserializer: Deserializer. Type: string (or Expression with resultType string). - :vartype deserializer: JSON - :ivar column_delimiter: The column delimiter. Type: string (or Expression with resultType - string). - :vartype column_delimiter: JSON - :ivar row_delimiter: The row delimiter. Type: string (or Expression with resultType string). - :vartype row_delimiter: JSON - :ivar escape_char: The escape character. Type: string (or Expression with resultType string). - :vartype escape_char: JSON - :ivar quote_char: The quote character. Type: string (or Expression with resultType string). - :vartype quote_char: JSON - :ivar null_value: The null value string. Type: string (or Expression with resultType string). - :vartype null_value: JSON - :ivar encoding_name: The code page name of the preferred encoding. If miss, the default value - is ΓÇ£utf-8ΓÇ¥, unless BOM denotes another Unicode encoding. Refer to the ΓÇ£NameΓÇ¥ column of - the table in the following link to set supported values: - https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with - resultType string). - :vartype encoding_name: JSON - :ivar treat_empty_as_null: Treat empty column values in the text file as null. The default - value is true. Type: boolean (or Expression with resultType boolean). - :vartype treat_empty_as_null: JSON - :ivar skip_line_count: The number of lines/rows to be skipped when parsing text files. The - default value is 0. Type: integer (or Expression with resultType integer). - :vartype skip_line_count: JSON - :ivar first_row_as_header: When used as input, treat the first row of data as headers. When - used as output,write the headers into the output as the first row of data. The default value is - false. Type: boolean (or Expression with resultType boolean). - :vartype first_row_as_header: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "serializer": {"key": "serializer", "type": "object"}, - "deserializer": {"key": "deserializer", "type": "object"}, - "column_delimiter": {"key": "columnDelimiter", "type": "object"}, - "row_delimiter": {"key": "rowDelimiter", "type": "object"}, - "escape_char": {"key": "escapeChar", "type": "object"}, - "quote_char": {"key": "quoteChar", "type": "object"}, - "null_value": {"key": "nullValue", "type": "object"}, - "encoding_name": {"key": "encodingName", "type": "object"}, - "treat_empty_as_null": {"key": "treatEmptyAsNull", "type": "object"}, - "skip_line_count": {"key": "skipLineCount", "type": "object"}, - "first_row_as_header": {"key": "firstRowAsHeader", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - serializer: Optional[JSON] = None, - deserializer: Optional[JSON] = None, - column_delimiter: Optional[JSON] = None, - row_delimiter: Optional[JSON] = None, - escape_char: Optional[JSON] = None, - quote_char: Optional[JSON] = None, - null_value: Optional[JSON] = None, - encoding_name: Optional[JSON] = None, - treat_empty_as_null: Optional[JSON] = None, - skip_line_count: Optional[JSON] = None, - first_row_as_header: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword serializer: Serializer. Type: string (or Expression with resultType string). - :paramtype serializer: JSON - :keyword deserializer: Deserializer. Type: string (or Expression with resultType string). - :paramtype deserializer: JSON - :keyword column_delimiter: The column delimiter. Type: string (or Expression with resultType - string). - :paramtype column_delimiter: JSON - :keyword row_delimiter: The row delimiter. Type: string (or Expression with resultType string). - :paramtype row_delimiter: JSON - :keyword escape_char: The escape character. Type: string (or Expression with resultType - string). - :paramtype escape_char: JSON - :keyword quote_char: The quote character. Type: string (or Expression with resultType string). - :paramtype quote_char: JSON - :keyword null_value: The null value string. Type: string (or Expression with resultType - string). - :paramtype null_value: JSON - :keyword encoding_name: The code page name of the preferred encoding. If miss, the default - value is ΓÇ£utf-8ΓÇ¥, unless BOM denotes another Unicode encoding. Refer to the ΓÇ£NameΓÇ¥ - column of the table in the following link to set supported values: - https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with - resultType string). - :paramtype encoding_name: JSON - :keyword treat_empty_as_null: Treat empty column values in the text file as null. The default - value is true. Type: boolean (or Expression with resultType boolean). - :paramtype treat_empty_as_null: JSON - :keyword skip_line_count: The number of lines/rows to be skipped when parsing text files. The - default value is 0. Type: integer (or Expression with resultType integer). - :paramtype skip_line_count: JSON - :keyword first_row_as_header: When used as input, treat the first row of data as headers. When - used as output,write the headers into the output as the first row of data. The default value is - false. Type: boolean (or Expression with resultType boolean). - :paramtype first_row_as_header: JSON - """ - super().__init__( - additional_properties=additional_properties, serializer=serializer, deserializer=deserializer, **kwargs - ) - self.type: str = "TextFormat" - self.column_delimiter = column_delimiter - self.row_delimiter = row_delimiter - self.escape_char = escape_char - self.quote_char = quote_char - self.null_value = null_value - self.encoding_name = encoding_name - self.treat_empty_as_null = treat_empty_as_null - self.skip_line_count = skip_line_count - self.first_row_as_header = first_row_as_header - - -class TriggerDependencyReference(DependencyReference): - """Trigger referenced dependency. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - TumblingWindowTriggerDependencyReference - - All required parameters must be populated in order to send to server. - - :ivar type: The type of dependency reference. Required. - :vartype type: str - :ivar reference_trigger: Referenced trigger. Required. - :vartype reference_trigger: ~azure.mgmt.datafactory.models.TriggerReference - """ - - _validation = { - "type": {"required": True}, - "reference_trigger": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "reference_trigger": {"key": "referenceTrigger", "type": "TriggerReference"}, - } - - _subtype_map = {"type": {"TumblingWindowTriggerDependencyReference": "TumblingWindowTriggerDependencyReference"}} - - def __init__(self, *, reference_trigger: "_models.TriggerReference", **kwargs: Any) -> None: - """ - :keyword reference_trigger: Referenced trigger. Required. - :paramtype reference_trigger: ~azure.mgmt.datafactory.models.TriggerReference - """ - super().__init__(**kwargs) - self.type: str = "TriggerDependencyReference" - self.reference_trigger = reference_trigger - - -class TriggerFilterParameters(_serialization.Model): - """Query parameters for triggers. - - :ivar continuation_token: The continuation token for getting the next page of results. Null for - first page. - :vartype continuation_token: str - :ivar parent_trigger_name: The name of the parent TumblingWindowTrigger to get the child rerun - triggers. - :vartype parent_trigger_name: str - """ - - _attribute_map = { - "continuation_token": {"key": "continuationToken", "type": "str"}, - "parent_trigger_name": {"key": "parentTriggerName", "type": "str"}, - } - - def __init__( - self, *, continuation_token: Optional[str] = None, parent_trigger_name: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword continuation_token: The continuation token for getting the next page of results. Null - for first page. - :paramtype continuation_token: str - :keyword parent_trigger_name: The name of the parent TumblingWindowTrigger to get the child - rerun triggers. - :paramtype parent_trigger_name: str - """ - super().__init__(**kwargs) - self.continuation_token = continuation_token - self.parent_trigger_name = parent_trigger_name - - -class TriggerListResponse(_serialization.Model): - """A list of trigger resources. - - All required parameters must be populated in order to send to server. - - :ivar value: List of triggers. Required. - :vartype value: list[~azure.mgmt.datafactory.models.TriggerResource] - :ivar next_link: The link to the next page of results, if any remaining results exist. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[TriggerResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: list["_models.TriggerResource"], next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: List of triggers. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.TriggerResource] - :keyword next_link: The link to the next page of results, if any remaining results exist. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class TriggerPipelineReference(_serialization.Model): - """Pipeline that needs to be triggered with the given parameters. - - :ivar pipeline_reference: Pipeline reference. - :vartype pipeline_reference: ~azure.mgmt.datafactory.models.PipelineReference - :ivar parameters: Pipeline parameters. - :vartype parameters: dict[str, JSON] - """ - - _attribute_map = { - "pipeline_reference": {"key": "pipelineReference", "type": "PipelineReference"}, - "parameters": {"key": "parameters", "type": "{object}"}, - } - - def __init__( - self, - *, - pipeline_reference: Optional["_models.PipelineReference"] = None, - parameters: Optional[dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword pipeline_reference: Pipeline reference. - :paramtype pipeline_reference: ~azure.mgmt.datafactory.models.PipelineReference - :keyword parameters: Pipeline parameters. - :paramtype parameters: dict[str, JSON] - """ - super().__init__(**kwargs) - self.pipeline_reference = pipeline_reference - self.parameters = parameters - - -class TriggerQueryResponse(_serialization.Model): - """A query of triggers. - - All required parameters must be populated in order to send to server. - - :ivar value: List of triggers. Required. - :vartype value: list[~azure.mgmt.datafactory.models.TriggerResource] - :ivar continuation_token: The continuation token for getting the next page of results, if any - remaining results exist, null otherwise. - :vartype continuation_token: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[TriggerResource]"}, - "continuation_token": {"key": "continuationToken", "type": "str"}, - } - - def __init__( - self, *, value: list["_models.TriggerResource"], continuation_token: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: List of triggers. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.TriggerResource] - :keyword continuation_token: The continuation token for getting the next page of results, if - any remaining results exist, null otherwise. - :paramtype continuation_token: str - """ - super().__init__(**kwargs) - self.value = value - self.continuation_token = continuation_token - - -class TriggerReference(_serialization.Model): - """Trigger reference type. - - All required parameters must be populated in order to send to server. - - :ivar type: Trigger reference type. Required. "TriggerReference" - :vartype type: str or ~azure.mgmt.datafactory.models.TriggerReferenceType - :ivar reference_name: Reference trigger name. Required. - :vartype reference_name: str - """ - - _validation = { - "type": {"required": True}, - "reference_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "reference_name": {"key": "referenceName", "type": "str"}, - } - - def __init__(self, *, type: Union[str, "_models.TriggerReferenceType"], reference_name: str, **kwargs: Any) -> None: - """ - :keyword type: Trigger reference type. Required. "TriggerReference" - :paramtype type: str or ~azure.mgmt.datafactory.models.TriggerReferenceType - :keyword reference_name: Reference trigger name. Required. - :paramtype reference_name: str - """ - super().__init__(**kwargs) - self.type = type - self.reference_name = reference_name - - -class TriggerResource(SubResource): - """Trigger resource type. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar etag: Etag identifies change in the resource. - :vartype etag: str - :ivar properties: Properties of the trigger. Required. - :vartype properties: ~azure.mgmt.datafactory.models.Trigger - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "etag": {"readonly": True}, - "properties": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "etag": {"key": "etag", "type": "str"}, - "properties": {"key": "properties", "type": "Trigger"}, - } - - def __init__(self, *, properties: "_models.Trigger", **kwargs: Any) -> None: - """ - :keyword properties: Properties of the trigger. Required. - :paramtype properties: ~azure.mgmt.datafactory.models.Trigger - """ - super().__init__(**kwargs) - self.properties = properties - - -class TriggerRun(_serialization.Model): - """Trigger runs. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar trigger_run_id: Trigger run id. - :vartype trigger_run_id: str - :ivar trigger_name: Trigger name. - :vartype trigger_name: str - :ivar trigger_type: Trigger type. - :vartype trigger_type: str - :ivar trigger_run_timestamp: Trigger run start time. - :vartype trigger_run_timestamp: ~datetime.datetime - :ivar status: Trigger run status. Known values are: "Succeeded", "Failed", and "Inprogress". - :vartype status: str or ~azure.mgmt.datafactory.models.TriggerRunStatus - :ivar message: Trigger error message. - :vartype message: str - :ivar properties: List of property name and value related to trigger run. Name, value pair - depends on type of trigger. - :vartype properties: dict[str, str] - :ivar triggered_pipelines: List of pipeline name and run Id triggered by the trigger run. - :vartype triggered_pipelines: dict[str, str] - :ivar run_dimension: Run dimension for which trigger was fired. - :vartype run_dimension: dict[str, str] - :ivar dependency_status: Status of the upstream pipelines. - :vartype dependency_status: dict[str, JSON] - """ - - _validation = { - "trigger_run_id": {"readonly": True}, - "trigger_name": {"readonly": True}, - "trigger_type": {"readonly": True}, - "trigger_run_timestamp": {"readonly": True}, - "status": {"readonly": True}, - "message": {"readonly": True}, - "properties": {"readonly": True}, - "triggered_pipelines": {"readonly": True}, - "run_dimension": {"readonly": True}, - "dependency_status": {"readonly": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "trigger_run_id": {"key": "triggerRunId", "type": "str"}, - "trigger_name": {"key": "triggerName", "type": "str"}, - "trigger_type": {"key": "triggerType", "type": "str"}, - "trigger_run_timestamp": {"key": "triggerRunTimestamp", "type": "iso-8601"}, - "status": {"key": "status", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "properties": {"key": "properties", "type": "{str}"}, - "triggered_pipelines": {"key": "triggeredPipelines", "type": "{str}"}, - "run_dimension": {"key": "runDimension", "type": "{str}"}, - "dependency_status": {"key": "dependencyStatus", "type": "{object}"}, - } - - def __init__(self, *, additional_properties: Optional[dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - """ - super().__init__(**kwargs) - self.additional_properties = additional_properties - self.trigger_run_id: Optional[str] = None - self.trigger_name: Optional[str] = None - self.trigger_type: Optional[str] = None - self.trigger_run_timestamp: Optional[datetime.datetime] = None - self.status: Optional[Union[str, "_models.TriggerRunStatus"]] = None - self.message: Optional[str] = None - self.properties: Optional[dict[str, str]] = None - self.triggered_pipelines: Optional[dict[str, str]] = None - self.run_dimension: Optional[dict[str, str]] = None - self.dependency_status: Optional[dict[str, JSON]] = None - - -class TriggerRunsQueryResponse(_serialization.Model): - """A list of trigger runs. - - All required parameters must be populated in order to send to server. - - :ivar value: List of trigger runs. Required. - :vartype value: list[~azure.mgmt.datafactory.models.TriggerRun] - :ivar continuation_token: The continuation token for getting the next page of results, if any - remaining results exist, null otherwise. - :vartype continuation_token: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[TriggerRun]"}, - "continuation_token": {"key": "continuationToken", "type": "str"}, - } - - def __init__( - self, *, value: list["_models.TriggerRun"], continuation_token: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: List of trigger runs. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.TriggerRun] - :keyword continuation_token: The continuation token for getting the next page of results, if - any remaining results exist, null otherwise. - :paramtype continuation_token: str - """ - super().__init__(**kwargs) - self.value = value - self.continuation_token = continuation_token - - -class TriggerSubscriptionOperationStatus(_serialization.Model): - """Defines the response of a trigger subscription operation. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar trigger_name: Trigger name. - :vartype trigger_name: str - :ivar status: Event Subscription Status. Known values are: "Enabled", "Provisioning", - "Deprovisioning", "Disabled", and "Unknown". - :vartype status: str or ~azure.mgmt.datafactory.models.EventSubscriptionStatus - """ - - _validation = { - "trigger_name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "trigger_name": {"key": "triggerName", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.trigger_name: Optional[str] = None - self.status: Optional[Union[str, "_models.EventSubscriptionStatus"]] = None - - -class TumblingWindowTrigger(Trigger): - """Trigger that schedules pipeline runs for all fixed time interval windows from a start time - without gaps and also supports backfill scenarios (when start time is in the past). - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Trigger type. Required. - :vartype type: str - :ivar description: Trigger description. - :vartype description: str - :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are - called on the Trigger. Known values are: "Started", "Stopped", and "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState - :ivar annotations: List of tags that can be used for describing the trigger. - :vartype annotations: list[JSON] - :ivar pipeline: Pipeline for which runs are created when an event is fired for trigger window - that is ready. Required. - :vartype pipeline: ~azure.mgmt.datafactory.models.TriggerPipelineReference - :ivar frequency: The frequency of the time windows. Required. Known values are: "Minute", - "Hour", and "Month". - :vartype frequency: str or ~azure.mgmt.datafactory.models.TumblingWindowFrequency - :ivar interval: The interval of the time windows. The minimum interval allowed is 15 Minutes. - Required. - :vartype interval: int - :ivar start_time: The start time for the time period for the trigger during which events are - fired for windows that are ready. Only UTC time is currently supported. Required. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time for the time period for the trigger during which events are fired - for windows that are ready. Only UTC time is currently supported. - :vartype end_time: ~datetime.datetime - :ivar delay: Specifies how long the trigger waits past due time before triggering new run. It - doesn't alter window start and end time. The default is 0. Type: string (or Expression with - resultType string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype delay: JSON - :ivar max_concurrency: The max number of parallel time windows (ready for execution) for which - a new run is triggered. Required. - :vartype max_concurrency: int - :ivar retry_policy: Retry policy that will be applied for failed pipeline runs. - :vartype retry_policy: ~azure.mgmt.datafactory.models.RetryPolicy - :ivar depends_on: Triggers that this trigger depends on. Only tumbling window triggers are - supported. - :vartype depends_on: list[~azure.mgmt.datafactory.models.DependencyReference] - """ - - _validation = { - "type": {"required": True}, - "runtime_state": {"readonly": True}, - "pipeline": {"required": True}, - "frequency": {"required": True}, - "interval": {"required": True}, - "start_time": {"required": True}, - "max_concurrency": {"required": True, "maximum": 50, "minimum": 1}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "runtime_state": {"key": "runtimeState", "type": "str"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "pipeline": {"key": "pipeline", "type": "TriggerPipelineReference"}, - "frequency": {"key": "typeProperties.frequency", "type": "str"}, - "interval": {"key": "typeProperties.interval", "type": "int"}, - "start_time": {"key": "typeProperties.startTime", "type": "iso-8601"}, - "end_time": {"key": "typeProperties.endTime", "type": "iso-8601"}, - "delay": {"key": "typeProperties.delay", "type": "object"}, - "max_concurrency": {"key": "typeProperties.maxConcurrency", "type": "int"}, - "retry_policy": {"key": "typeProperties.retryPolicy", "type": "RetryPolicy"}, - "depends_on": {"key": "typeProperties.dependsOn", "type": "[DependencyReference]"}, - } - - def __init__( - self, - *, - pipeline: "_models.TriggerPipelineReference", - frequency: Union[str, "_models.TumblingWindowFrequency"], - interval: int, - start_time: datetime.datetime, - max_concurrency: int, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - annotations: Optional[list[JSON]] = None, - end_time: Optional[datetime.datetime] = None, - delay: Optional[JSON] = None, - retry_policy: Optional["_models.RetryPolicy"] = None, - depends_on: Optional[list["_models.DependencyReference"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Trigger description. - :paramtype description: str - :keyword annotations: List of tags that can be used for describing the trigger. - :paramtype annotations: list[JSON] - :keyword pipeline: Pipeline for which runs are created when an event is fired for trigger - window that is ready. Required. - :paramtype pipeline: ~azure.mgmt.datafactory.models.TriggerPipelineReference - :keyword frequency: The frequency of the time windows. Required. Known values are: "Minute", - "Hour", and "Month". - :paramtype frequency: str or ~azure.mgmt.datafactory.models.TumblingWindowFrequency - :keyword interval: The interval of the time windows. The minimum interval allowed is 15 - Minutes. Required. - :paramtype interval: int - :keyword start_time: The start time for the time period for the trigger during which events are - fired for windows that are ready. Only UTC time is currently supported. Required. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time for the time period for the trigger during which events are - fired for windows that are ready. Only UTC time is currently supported. - :paramtype end_time: ~datetime.datetime - :keyword delay: Specifies how long the trigger waits past due time before triggering new run. - It doesn't alter window start and end time. The default is 0. Type: string (or Expression with - resultType string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype delay: JSON - :keyword max_concurrency: The max number of parallel time windows (ready for execution) for - which a new run is triggered. Required. - :paramtype max_concurrency: int - :keyword retry_policy: Retry policy that will be applied for failed pipeline runs. - :paramtype retry_policy: ~azure.mgmt.datafactory.models.RetryPolicy - :keyword depends_on: Triggers that this trigger depends on. Only tumbling window triggers are - supported. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.DependencyReference] - """ - super().__init__( - additional_properties=additional_properties, description=description, annotations=annotations, **kwargs - ) - self.type: str = "TumblingWindowTrigger" - self.pipeline = pipeline - self.frequency = frequency - self.interval = interval - self.start_time = start_time - self.end_time = end_time - self.delay = delay - self.max_concurrency = max_concurrency - self.retry_policy = retry_policy - self.depends_on = depends_on - - -class TumblingWindowTriggerDependencyReference(TriggerDependencyReference): - """Referenced tumbling window trigger dependency. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of dependency reference. Required. - :vartype type: str - :ivar reference_trigger: Referenced trigger. Required. - :vartype reference_trigger: ~azure.mgmt.datafactory.models.TriggerReference - :ivar offset: Timespan applied to the start time of a tumbling window when evaluating - dependency. - :vartype offset: str - :ivar size: The size of the window when evaluating the dependency. If undefined the frequency - of the tumbling window will be used. - :vartype size: str - """ - - _validation = { - "type": {"required": True}, - "reference_trigger": {"required": True}, - "offset": { - "max_length": 15, - "min_length": 8, - "pattern": r"-?((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))", - }, - "size": {"max_length": 15, "min_length": 8, "pattern": r"((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))"}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "reference_trigger": {"key": "referenceTrigger", "type": "TriggerReference"}, - "offset": {"key": "offset", "type": "str"}, - "size": {"key": "size", "type": "str"}, - } - - def __init__( - self, - *, - reference_trigger: "_models.TriggerReference", - offset: Optional[str] = None, - size: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword reference_trigger: Referenced trigger. Required. - :paramtype reference_trigger: ~azure.mgmt.datafactory.models.TriggerReference - :keyword offset: Timespan applied to the start time of a tumbling window when evaluating - dependency. - :paramtype offset: str - :keyword size: The size of the window when evaluating the dependency. If undefined the - frequency of the tumbling window will be used. - :paramtype size: str - """ - super().__init__(reference_trigger=reference_trigger, **kwargs) - self.type: str = "TumblingWindowTriggerDependencyReference" - self.offset = offset - self.size = size - - -class TwilioLinkedService(LinkedService): - """Linked service for Twilio. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar user_name: The Account SID of Twilio service. Type: string (or Expression with resultType - string). Required. - :vartype user_name: JSON - :ivar password: The auth token of Twilio service. Required. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - """ - - _validation = { - "type": {"required": True}, - "user_name": {"required": True}, - "password": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - } - - def __init__( - self, - *, - user_name: JSON, - password: "_models.SecretBase", - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword user_name: The Account SID of Twilio service. Type: string (or Expression with - resultType string). Required. - :paramtype user_name: JSON - :keyword password: The auth token of Twilio service. Required. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Twilio" - self.user_name = user_name - self.password = password - - -class TypeConversionSettings(_serialization.Model): - """Type conversion settings. - - :ivar allow_data_truncation: Whether to allow data truncation when converting the data. Type: - boolean (or Expression with resultType boolean). - :vartype allow_data_truncation: JSON - :ivar treat_boolean_as_number: Whether to treat boolean values as numbers. Type: boolean (or - Expression with resultType boolean). - :vartype treat_boolean_as_number: JSON - :ivar date_time_format: The format for DateTime values. Type: string (or Expression with - resultType string). - :vartype date_time_format: JSON - :ivar date_time_offset_format: The format for DateTimeOffset values. Type: string (or - Expression with resultType string). - :vartype date_time_offset_format: JSON - :ivar time_span_format: The format for TimeSpan values. Type: string (or Expression with - resultType string). - :vartype time_span_format: JSON - :ivar time_format: The format for Time values. Type: string (or Expression with resultType - string). - :vartype time_format: JSON - :ivar date_format: The format for Date values. Type: string (or Expression with resultType - string). - :vartype date_format: JSON - :ivar culture: The culture used to convert data from/to string. Type: string (or Expression - with resultType string). - :vartype culture: JSON - """ - - _attribute_map = { - "allow_data_truncation": {"key": "allowDataTruncation", "type": "object"}, - "treat_boolean_as_number": {"key": "treatBooleanAsNumber", "type": "object"}, - "date_time_format": {"key": "dateTimeFormat", "type": "object"}, - "date_time_offset_format": {"key": "dateTimeOffsetFormat", "type": "object"}, - "time_span_format": {"key": "timeSpanFormat", "type": "object"}, - "time_format": {"key": "timeFormat", "type": "object"}, - "date_format": {"key": "dateFormat", "type": "object"}, - "culture": {"key": "culture", "type": "object"}, - } - - def __init__( - self, - *, - allow_data_truncation: Optional[JSON] = None, - treat_boolean_as_number: Optional[JSON] = None, - date_time_format: Optional[JSON] = None, - date_time_offset_format: Optional[JSON] = None, - time_span_format: Optional[JSON] = None, - time_format: Optional[JSON] = None, - date_format: Optional[JSON] = None, - culture: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword allow_data_truncation: Whether to allow data truncation when converting the data. - Type: boolean (or Expression with resultType boolean). - :paramtype allow_data_truncation: JSON - :keyword treat_boolean_as_number: Whether to treat boolean values as numbers. Type: boolean (or - Expression with resultType boolean). - :paramtype treat_boolean_as_number: JSON - :keyword date_time_format: The format for DateTime values. Type: string (or Expression with - resultType string). - :paramtype date_time_format: JSON - :keyword date_time_offset_format: The format for DateTimeOffset values. Type: string (or - Expression with resultType string). - :paramtype date_time_offset_format: JSON - :keyword time_span_format: The format for TimeSpan values. Type: string (or Expression with - resultType string). - :paramtype time_span_format: JSON - :keyword time_format: The format for Time values. Type: string (or Expression with resultType - string). - :paramtype time_format: JSON - :keyword date_format: The format for Date values. Type: string (or Expression with resultType - string). - :paramtype date_format: JSON - :keyword culture: The culture used to convert data from/to string. Type: string (or Expression - with resultType string). - :paramtype culture: JSON - """ - super().__init__(**kwargs) - self.allow_data_truncation = allow_data_truncation - self.treat_boolean_as_number = treat_boolean_as_number - self.date_time_format = date_time_format - self.date_time_offset_format = date_time_offset_format - self.time_span_format = time_span_format - self.time_format = time_format - self.date_format = date_format - self.culture = culture - - -class UntilActivity(ControlActivity): - """This activity executes inner activities until the specified boolean expression results to true - or timeout is reached, whichever is earlier. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar expression: An expression that would evaluate to Boolean. The loop will continue until - this expression evaluates to true. Required. - :vartype expression: ~azure.mgmt.datafactory.models.Expression - :ivar timeout: Specifies the timeout for the activity to run. If there is no value specified, - it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or - Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype timeout: JSON - :ivar activities: List of activities to execute. Required. - :vartype activities: list[~azure.mgmt.datafactory.models.Activity] - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "expression": {"required": True}, - "activities": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "expression": {"key": "typeProperties.expression", "type": "Expression"}, - "timeout": {"key": "typeProperties.timeout", "type": "object"}, - "activities": {"key": "typeProperties.activities", "type": "[Activity]"}, - } - - def __init__( - self, - *, - name: str, - expression: "_models.Expression", - activities: list["_models.Activity"], - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - timeout: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword expression: An expression that would evaluate to Boolean. The loop will continue until - this expression evaluates to true. Required. - :paramtype expression: ~azure.mgmt.datafactory.models.Expression - :keyword timeout: Specifies the timeout for the activity to run. If there is no value - specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string - (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype timeout: JSON - :keyword activities: List of activities to execute. Required. - :paramtype activities: list[~azure.mgmt.datafactory.models.Activity] - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - **kwargs - ) - self.type: str = "Until" - self.expression = expression - self.timeout = timeout - self.activities = activities - - -class UpdateIntegrationRuntimeNodeRequest(_serialization.Model): - """Update integration runtime node request. - - :ivar concurrent_jobs_limit: The number of concurrent jobs permitted to run on the integration - runtime node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. - :vartype concurrent_jobs_limit: int - """ - - _validation = { - "concurrent_jobs_limit": {"minimum": 1}, - } - - _attribute_map = { - "concurrent_jobs_limit": {"key": "concurrentJobsLimit", "type": "int"}, - } - - def __init__(self, *, concurrent_jobs_limit: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword concurrent_jobs_limit: The number of concurrent jobs permitted to run on the - integration runtime node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. - :paramtype concurrent_jobs_limit: int - """ - super().__init__(**kwargs) - self.concurrent_jobs_limit = concurrent_jobs_limit - - -class UpdateIntegrationRuntimeRequest(_serialization.Model): - """Update integration runtime request. - - :ivar auto_update: Enables or disables the auto-update feature of the self-hosted integration - runtime. See https://go.microsoft.com/fwlink/?linkid=854189. Known values are: "On" and "Off". - :vartype auto_update: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeAutoUpdate - :ivar update_delay_offset: The time offset (in hours) in the day, e.g., PT03H is 3 hours. The - integration runtime auto update will happen on that time. - :vartype update_delay_offset: str - """ - - _attribute_map = { - "auto_update": {"key": "autoUpdate", "type": "str"}, - "update_delay_offset": {"key": "updateDelayOffset", "type": "str"}, - } - - def __init__( - self, - *, - auto_update: Optional[Union[str, "_models.IntegrationRuntimeAutoUpdate"]] = None, - update_delay_offset: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword auto_update: Enables or disables the auto-update feature of the self-hosted - integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189. Known values are: "On" - and "Off". - :paramtype auto_update: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeAutoUpdate - :keyword update_delay_offset: The time offset (in hours) in the day, e.g., PT03H is 3 hours. - The integration runtime auto update will happen on that time. - :paramtype update_delay_offset: str - """ - super().__init__(**kwargs) - self.auto_update = auto_update - self.update_delay_offset = update_delay_offset - - -class UserAccessPolicy(_serialization.Model): - """Get Data Plane read only token request definition. - - :ivar permissions: The string with permissions for Data Plane access. Currently only 'r' is - supported which grants read only access. - :vartype permissions: str - :ivar access_resource_path: The resource path to get access relative to factory. Currently only - empty string is supported which corresponds to the factory resource. - :vartype access_resource_path: str - :ivar profile_name: The name of the profile. Currently only the default is supported. The - default value is DefaultProfile. - :vartype profile_name: str - :ivar start_time: Start time for the token. If not specified the current time will be used. - :vartype start_time: str - :ivar expire_time: Expiration time for the token. Maximum duration for the token is eight hours - and by default the token will expire in eight hours. - :vartype expire_time: str - """ - - _attribute_map = { - "permissions": {"key": "permissions", "type": "str"}, - "access_resource_path": {"key": "accessResourcePath", "type": "str"}, - "profile_name": {"key": "profileName", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - "expire_time": {"key": "expireTime", "type": "str"}, - } - - def __init__( - self, - *, - permissions: Optional[str] = None, - access_resource_path: Optional[str] = None, - profile_name: Optional[str] = None, - start_time: Optional[str] = None, - expire_time: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword permissions: The string with permissions for Data Plane access. Currently only 'r' is - supported which grants read only access. - :paramtype permissions: str - :keyword access_resource_path: The resource path to get access relative to factory. Currently - only empty string is supported which corresponds to the factory resource. - :paramtype access_resource_path: str - :keyword profile_name: The name of the profile. Currently only the default is supported. The - default value is DefaultProfile. - :paramtype profile_name: str - :keyword start_time: Start time for the token. If not specified the current time will be used. - :paramtype start_time: str - :keyword expire_time: Expiration time for the token. Maximum duration for the token is eight - hours and by default the token will expire in eight hours. - :paramtype expire_time: str - """ - super().__init__(**kwargs) - self.permissions = permissions - self.access_resource_path = access_resource_path - self.profile_name = profile_name - self.start_time = start_time - self.expire_time = expire_time - - -class UserProperty(_serialization.Model): - """User property. - - All required parameters must be populated in order to send to server. - - :ivar name: User property name. Required. - :vartype name: str - :ivar value: User property value. Type: string (or Expression with resultType string). - Required. - :vartype value: JSON - """ - - _validation = { - "name": {"required": True}, - "value": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "object"}, - } - - def __init__(self, *, name: str, value: JSON, **kwargs: Any) -> None: - """ - :keyword name: User property name. Required. - :paramtype name: str - :keyword value: User property value. Type: string (or Expression with resultType string). - Required. - :paramtype value: JSON - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ValidationActivity(ControlActivity): - """This activity verifies that an external resource exists. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar timeout: Specifies the timeout for the activity to run. If there is no value specified, - it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or - Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype timeout: JSON - :ivar sleep: A delay in seconds between validation attempts. If no value is specified, 10 - seconds will be used as the default. Type: integer (or Expression with resultType integer). - :vartype sleep: JSON - :ivar minimum_size: Can be used if dataset points to a file. The file must be greater than or - equal in size to the value specified. Type: integer (or Expression with resultType integer). - :vartype minimum_size: JSON - :ivar child_items: Can be used if dataset points to a folder. If set to true, the folder must - have at least one file. If set to false, the folder must be empty. Type: boolean (or Expression - with resultType boolean). - :vartype child_items: JSON - :ivar dataset: Validation activity dataset reference. Required. - :vartype dataset: ~azure.mgmt.datafactory.models.DatasetReference - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "dataset": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "timeout": {"key": "typeProperties.timeout", "type": "object"}, - "sleep": {"key": "typeProperties.sleep", "type": "object"}, - "minimum_size": {"key": "typeProperties.minimumSize", "type": "object"}, - "child_items": {"key": "typeProperties.childItems", "type": "object"}, - "dataset": {"key": "typeProperties.dataset", "type": "DatasetReference"}, - } - - def __init__( - self, - *, - name: str, - dataset: "_models.DatasetReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - timeout: Optional[JSON] = None, - sleep: Optional[JSON] = None, - minimum_size: Optional[JSON] = None, - child_items: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword timeout: Specifies the timeout for the activity to run. If there is no value - specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string - (or Expression with resultType string), pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype timeout: JSON - :keyword sleep: A delay in seconds between validation attempts. If no value is specified, 10 - seconds will be used as the default. Type: integer (or Expression with resultType integer). - :paramtype sleep: JSON - :keyword minimum_size: Can be used if dataset points to a file. The file must be greater than - or equal in size to the value specified. Type: integer (or Expression with resultType integer). - :paramtype minimum_size: JSON - :keyword child_items: Can be used if dataset points to a folder. If set to true, the folder - must have at least one file. If set to false, the folder must be empty. Type: boolean (or - Expression with resultType boolean). - :paramtype child_items: JSON - :keyword dataset: Validation activity dataset reference. Required. - :paramtype dataset: ~azure.mgmt.datafactory.models.DatasetReference - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - **kwargs - ) - self.type: str = "Validation" - self.timeout = timeout - self.sleep = sleep - self.minimum_size = minimum_size - self.child_items = child_items - self.dataset = dataset - - -class VariableSpecification(_serialization.Model): - """Definition of a single variable for a Pipeline. - - All required parameters must be populated in order to send to server. - - :ivar type: Variable type. Required. Known values are: "String", "Bool", and "Array". - :vartype type: str or ~azure.mgmt.datafactory.models.VariableType - :ivar default_value: Default value of variable. - :vartype default_value: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "default_value": {"key": "defaultValue", "type": "object"}, - } - - def __init__( - self, *, type: Union[str, "_models.VariableType"], default_value: Optional[JSON] = None, **kwargs: Any - ) -> None: - """ - :keyword type: Variable type. Required. Known values are: "String", "Bool", and "Array". - :paramtype type: str or ~azure.mgmt.datafactory.models.VariableType - :keyword default_value: Default value of variable. - :paramtype default_value: JSON - """ - super().__init__(**kwargs) - self.type = type - self.default_value = default_value - - -class VerticaLinkedService(LinkedService): - """Vertica linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_string: An ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :vartype connection_string: JSON - :ivar server: Server name for connection. Type: string. - :vartype server: JSON - :ivar port: The port for the connection. Type: integer. - :vartype port: JSON - :ivar uid: Username for authentication. Type: string. - :vartype uid: JSON - :ivar database: Database name for connection. Type: string. - :vartype database: JSON - :ivar pwd: The Azure key vault secret reference of password in connection string. - :vartype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, - "server": {"key": "typeProperties.server", "type": "object"}, - "port": {"key": "typeProperties.port", "type": "object"}, - "uid": {"key": "typeProperties.uid", "type": "object"}, - "database": {"key": "typeProperties.database", "type": "object"}, - "pwd": {"key": "typeProperties.pwd", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_string: Optional[JSON] = None, - server: Optional[JSON] = None, - port: Optional[JSON] = None, - uid: Optional[JSON] = None, - database: Optional[JSON] = None, - pwd: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_string: An ODBC connection string. Type: string, SecureString or - AzureKeyVaultSecretReference. - :paramtype connection_string: JSON - :keyword server: Server name for connection. Type: string. - :paramtype server: JSON - :keyword port: The port for the connection. Type: integer. - :paramtype port: JSON - :keyword uid: Username for authentication. Type: string. - :paramtype uid: JSON - :keyword database: Database name for connection. Type: string. - :paramtype database: JSON - :keyword pwd: The Azure key vault secret reference of password in connection string. - :paramtype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Vertica" - self.connection_string = connection_string - self.server = server - self.port = port - self.uid = uid - self.database = database - self.pwd = pwd - self.encrypted_credential = encrypted_credential - - -class VerticaSource(TabularSource): - """A copy activity Vertica source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "VerticaSource" - self.query = query - - -class VerticaTableDataset(Dataset): - """Vertica dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: This property will be retired. Please consider using schema + table - properties instead. - :vartype table_name: JSON - :ivar table: The table name of the Vertica. Type: string (or Expression with resultType - string). - :vartype table: JSON - :ivar schema_type_properties_schema: The schema name of the Vertica. Type: string (or - Expression with resultType string). - :vartype schema_type_properties_schema: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - table: Optional[JSON] = None, - schema_type_properties_schema: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: This property will be retired. Please consider using schema + table - properties instead. - :paramtype table_name: JSON - :keyword table: The table name of the Vertica. Type: string (or Expression with resultType - string). - :paramtype table: JSON - :keyword schema_type_properties_schema: The schema name of the Vertica. Type: string (or - Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "VerticaTable" - self.table_name = table_name - self.table = table - self.schema_type_properties_schema = schema_type_properties_schema - - -class WaitActivity(ControlActivity): - """This activity suspends pipeline execution for the specified interval. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar wait_time_in_seconds: Duration in seconds. Type: integer (or Expression with resultType - integer). Required. - :vartype wait_time_in_seconds: JSON - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "wait_time_in_seconds": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "wait_time_in_seconds": {"key": "typeProperties.waitTimeInSeconds", "type": "object"}, - } - - def __init__( - self, - *, - name: str, - wait_time_in_seconds: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword wait_time_in_seconds: Duration in seconds. Type: integer (or Expression with - resultType integer). Required. - :paramtype wait_time_in_seconds: JSON - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - **kwargs - ) - self.type: str = "Wait" - self.wait_time_in_seconds = wait_time_in_seconds - - -class WarehouseLinkedService(LinkedService): - """Microsoft Fabric Warehouse linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar artifact_id: The ID of Microsoft Fabric Warehouse artifact. Type: string (or Expression - with resultType string). Required. - :vartype artifact_id: JSON - :ivar endpoint: The endpoint of Microsoft Fabric Warehouse server. Type: string (or Expression - with resultType string). Required. - :vartype endpoint: JSON - :ivar workspace_id: The ID of Microsoft Fabric workspace. Type: string (or Expression with - resultType string). - :vartype workspace_id: JSON - :ivar authentication_type: The authentication type to use. Known values are: - "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.WarehouseAuthenticationType - :ivar service_principal_id: The ID of the application used to authenticate against Microsoft - Fabric Warehouse. Type: string (or Expression with resultType string). - :vartype service_principal_id: JSON - :ivar service_principal_key: The Key of the application used to authenticate against Microsoft - Fabric Warehouse. - :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar tenant: The name or ID of the tenant to which the service principal belongs. Type: string - (or Expression with resultType string). - :vartype tenant: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - :ivar service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :vartype service_principal_credential_type: JSON - :ivar service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _validation = { - "type": {"required": True}, - "artifact_id": {"required": True}, - "endpoint": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "artifact_id": {"key": "typeProperties.artifactId", "type": "object"}, - "endpoint": {"key": "typeProperties.endpoint", "type": "object"}, - "workspace_id": {"key": "typeProperties.workspaceId", "type": "object"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, - "service_principal_credential": {"key": "typeProperties.servicePrincipalCredential", "type": "SecretBase"}, - "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, - } - - def __init__( - self, - *, - artifact_id: JSON, - endpoint: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - workspace_id: Optional[JSON] = None, - authentication_type: Optional[Union[str, "_models.WarehouseAuthenticationType"]] = None, - service_principal_id: Optional[JSON] = None, - service_principal_key: Optional["_models.SecretBase"] = None, - tenant: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - service_principal_credential_type: Optional[JSON] = None, - service_principal_credential: Optional["_models.SecretBase"] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword artifact_id: The ID of Microsoft Fabric Warehouse artifact. Type: string (or - Expression with resultType string). Required. - :paramtype artifact_id: JSON - :keyword endpoint: The endpoint of Microsoft Fabric Warehouse server. Type: string (or - Expression with resultType string). Required. - :paramtype endpoint: JSON - :keyword workspace_id: The ID of Microsoft Fabric workspace. Type: string (or Expression with - resultType string). - :paramtype workspace_id: JSON - :keyword authentication_type: The authentication type to use. Known values are: - "ServicePrincipal", "SystemAssignedManagedIdentity", and "UserAssignedManagedIdentity". - :paramtype authentication_type: str or - ~azure.mgmt.datafactory.models.WarehouseAuthenticationType - :keyword service_principal_id: The ID of the application used to authenticate against Microsoft - Fabric Warehouse. Type: string (or Expression with resultType string). - :paramtype service_principal_id: JSON - :keyword service_principal_key: The Key of the application used to authenticate against - Microsoft Fabric Warehouse. - :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword tenant: The name or ID of the tenant to which the service principal belongs. Type: - string (or Expression with resultType string). - :paramtype tenant: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - :keyword service_principal_credential_type: The service principal credential type to use in - Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). - :paramtype service_principal_credential_type: JSON - :keyword service_principal_credential: The credential of the service principal object in Azure - Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If - servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only - be AzureKeyVaultSecretReference. - :paramtype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Warehouse" - self.artifact_id = artifact_id - self.endpoint = endpoint - self.workspace_id = workspace_id - self.authentication_type = authentication_type - self.service_principal_id = service_principal_id - self.service_principal_key = service_principal_key - self.tenant = tenant - self.encrypted_credential = encrypted_credential - self.service_principal_credential_type = service_principal_credential_type - self.service_principal_credential = service_principal_credential - self.credential = credential - - -class WarehouseSink(CopySink): - """A copy activity Microsoft Fabric Warehouse sink. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy sink type. Required. - :vartype type: str - :ivar write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :vartype write_batch_size: JSON - :ivar write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype write_batch_timeout: JSON - :ivar sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :vartype sink_retry_count: JSON - :ivar sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype sink_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :vartype pre_copy_script: JSON - :ivar allow_copy_command: Indicates to use Copy Command to copy data into SQL Data Warehouse. - Type: boolean (or Expression with resultType boolean). - :vartype allow_copy_command: JSON - :ivar copy_command_settings: Specifies Copy Command related settings when allowCopyCommand is - true. - :vartype copy_command_settings: ~azure.mgmt.datafactory.models.DWCopyCommandSettings - :ivar table_option: The option to handle sink table, such as autoCreate. For now only - 'autoCreate' value is supported. Type: string (or Expression with resultType string). - :vartype table_option: JSON - :ivar write_behavior: Write behavior when copying data into azure Microsoft Fabric Data - Warehouse. Type: DWWriteBehaviorEnum (or Expression with resultType DWWriteBehaviorEnum). - :vartype write_behavior: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "write_batch_size": {"key": "writeBatchSize", "type": "object"}, - "write_batch_timeout": {"key": "writeBatchTimeout", "type": "object"}, - "sink_retry_count": {"key": "sinkRetryCount", "type": "object"}, - "sink_retry_wait": {"key": "sinkRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "pre_copy_script": {"key": "preCopyScript", "type": "object"}, - "allow_copy_command": {"key": "allowCopyCommand", "type": "object"}, - "copy_command_settings": {"key": "copyCommandSettings", "type": "DWCopyCommandSettings"}, - "table_option": {"key": "tableOption", "type": "object"}, - "write_behavior": {"key": "writeBehavior", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - write_batch_size: Optional[JSON] = None, - write_batch_timeout: Optional[JSON] = None, - sink_retry_count: Optional[JSON] = None, - sink_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - pre_copy_script: Optional[JSON] = None, - allow_copy_command: Optional[JSON] = None, - copy_command_settings: Optional["_models.DWCopyCommandSettings"] = None, - table_option: Optional[JSON] = None, - write_behavior: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword write_batch_size: Write batch size. Type: integer (or Expression with resultType - integer), minimum: 0. - :paramtype write_batch_size: JSON - :keyword write_batch_timeout: Write batch timeout. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype write_batch_timeout: JSON - :keyword sink_retry_count: Sink retry count. Type: integer (or Expression with resultType - integer). - :paramtype sink_retry_count: JSON - :keyword sink_retry_wait: Sink retry wait. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype sink_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the sink data - store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword pre_copy_script: SQL pre-copy script. Type: string (or Expression with resultType - string). - :paramtype pre_copy_script: JSON - :keyword allow_copy_command: Indicates to use Copy Command to copy data into SQL Data - Warehouse. Type: boolean (or Expression with resultType boolean). - :paramtype allow_copy_command: JSON - :keyword copy_command_settings: Specifies Copy Command related settings when allowCopyCommand - is true. - :paramtype copy_command_settings: ~azure.mgmt.datafactory.models.DWCopyCommandSettings - :keyword table_option: The option to handle sink table, such as autoCreate. For now only - 'autoCreate' value is supported. Type: string (or Expression with resultType string). - :paramtype table_option: JSON - :keyword write_behavior: Write behavior when copying data into azure Microsoft Fabric Data - Warehouse. Type: DWWriteBehaviorEnum (or Expression with resultType DWWriteBehaviorEnum). - :paramtype write_behavior: JSON - """ - super().__init__( - additional_properties=additional_properties, - write_batch_size=write_batch_size, - write_batch_timeout=write_batch_timeout, - sink_retry_count=sink_retry_count, - sink_retry_wait=sink_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "WarehouseSink" - self.pre_copy_script = pre_copy_script - self.allow_copy_command = allow_copy_command - self.copy_command_settings = copy_command_settings - self.table_option = table_option - self.write_behavior = write_behavior - - -class WarehouseSource(TabularSource): - """A copy activity Microsoft Fabric Warehouse source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar sql_reader_query: Microsoft Fabric Warehouse reader query. Type: string (or Expression - with resultType string). - :vartype sql_reader_query: JSON - :ivar sql_reader_stored_procedure_name: Name of the stored procedure for a Microsoft Fabric - Warehouse source. This cannot be used at the same time as SqlReaderQuery. Type: string (or - Expression with resultType string). - :vartype sql_reader_stored_procedure_name: JSON - :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. - Example: "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression with resultType - object), itemType: StoredProcedureParameter. - :vartype stored_procedure_parameters: JSON - :ivar isolation_level: Specifies the transaction locking behavior for the Microsoft Fabric - Warehouse source. Allowed values: - ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is - ReadCommitted. Type: string (or Expression with resultType string). - :vartype isolation_level: JSON - :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. - Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - :vartype partition_option: JSON - :ivar partition_settings: The settings that will be leveraged for Sql source partitioning. - :vartype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "sql_reader_query": {"key": "sqlReaderQuery", "type": "object"}, - "sql_reader_stored_procedure_name": {"key": "sqlReaderStoredProcedureName", "type": "object"}, - "stored_procedure_parameters": {"key": "storedProcedureParameters", "type": "object"}, - "isolation_level": {"key": "isolationLevel", "type": "object"}, - "partition_option": {"key": "partitionOption", "type": "object"}, - "partition_settings": {"key": "partitionSettings", "type": "SqlPartitionSettings"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - sql_reader_query: Optional[JSON] = None, - sql_reader_stored_procedure_name: Optional[JSON] = None, - stored_procedure_parameters: Optional[JSON] = None, - isolation_level: Optional[JSON] = None, - partition_option: Optional[JSON] = None, - partition_settings: Optional["_models.SqlPartitionSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword sql_reader_query: Microsoft Fabric Warehouse reader query. Type: string (or Expression - with resultType string). - :paramtype sql_reader_query: JSON - :keyword sql_reader_stored_procedure_name: Name of the stored procedure for a Microsoft Fabric - Warehouse source. This cannot be used at the same time as SqlReaderQuery. Type: string (or - Expression with resultType string). - :paramtype sql_reader_stored_procedure_name: JSON - :keyword stored_procedure_parameters: Value and type setting for stored procedure parameters. - Example: "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression with resultType - object), itemType: StoredProcedureParameter. - :paramtype stored_procedure_parameters: JSON - :keyword isolation_level: Specifies the transaction locking behavior for the Microsoft Fabric - Warehouse source. Allowed values: - ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is - ReadCommitted. Type: string (or Expression with resultType string). - :paramtype isolation_level: JSON - :keyword partition_option: The partition mechanism that will be used for Sql read in parallel. - Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - :paramtype partition_option: JSON - :keyword partition_settings: The settings that will be leveraged for Sql source partitioning. - :paramtype partition_settings: ~azure.mgmt.datafactory.models.SqlPartitionSettings - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "WarehouseSource" - self.sql_reader_query = sql_reader_query - self.sql_reader_stored_procedure_name = sql_reader_stored_procedure_name - self.stored_procedure_parameters = stored_procedure_parameters - self.isolation_level = isolation_level - self.partition_option = partition_option - self.partition_settings = partition_settings - - -class WarehouseTableDataset(Dataset): - """Microsoft Fabric Warehouse dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar schema_type_properties_schema: The schema name of the Microsoft Fabric Warehouse. Type: - string (or Expression with resultType string). - :vartype schema_type_properties_schema: JSON - :ivar table: The table name of the Microsoft Fabric Warehouse. Type: string (or Expression with - resultType string). - :vartype table: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "schema_type_properties_schema": {"key": "typeProperties.schema", "type": "object"}, - "table": {"key": "typeProperties.table", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - schema_type_properties_schema: Optional[JSON] = None, - table: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword schema_type_properties_schema: The schema name of the Microsoft Fabric Warehouse. - Type: string (or Expression with resultType string). - :paramtype schema_type_properties_schema: JSON - :keyword table: The table name of the Microsoft Fabric Warehouse. Type: string (or Expression - with resultType string). - :paramtype table: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "WarehouseTable" - self.schema_type_properties_schema = schema_type_properties_schema - self.table = table - - -class WebActivity(ExecutionActivity): - """Web activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar linked_service_name: Linked service reference. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :ivar method: Rest API method for target endpoint. Required. Known values are: "GET", "POST", - "PUT", and "DELETE". - :vartype method: str or ~azure.mgmt.datafactory.models.WebActivityMethod - :ivar url: Web activity target endpoint and path. Type: string (or Expression with resultType - string). Required. - :vartype url: JSON - :ivar headers: Represents the headers that will be sent to the request. For example, to set the - language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": - "application/json" }. Type: string (or Expression with resultType string). - :vartype headers: dict[str, JSON] - :ivar body: Represents the payload that will be sent to the endpoint. Required for POST/PUT - method, not allowed for GET method Type: string (or Expression with resultType string). - :vartype body: JSON - :ivar authentication: Authentication method used for calling the endpoint. - :vartype authentication: ~azure.mgmt.datafactory.models.WebActivityAuthentication - :ivar disable_cert_validation: When set to true, Certificate validation will be disabled. - :vartype disable_cert_validation: bool - :ivar http_request_timeout: Timeout for the HTTP request to get a response. Format is in - TimeSpan (hh:mm:ss). This value is the timeout to get a response, not the activity timeout. The - default value is 00:01:00 (1 minute). The range is from 1 to 10 minutes. - :vartype http_request_timeout: JSON - :ivar turn_off_async: Option to disable invoking HTTP GET on location given in response header - of a HTTP 202 Response. If set true, it stops invoking HTTP GET on http location given in - response header. If set false then continues to invoke HTTP GET call on location given in http - response headers. - :vartype turn_off_async: bool - :ivar datasets: List of datasets passed to web endpoint. - :vartype datasets: list[~azure.mgmt.datafactory.models.DatasetReference] - :ivar linked_services: List of linked services passed to web endpoint. - :vartype linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceReference] - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "method": {"required": True}, - "url": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "policy": {"key": "policy", "type": "ActivityPolicy"}, - "method": {"key": "typeProperties.method", "type": "str"}, - "url": {"key": "typeProperties.url", "type": "object"}, - "headers": {"key": "typeProperties.headers", "type": "{object}"}, - "body": {"key": "typeProperties.body", "type": "object"}, - "authentication": {"key": "typeProperties.authentication", "type": "WebActivityAuthentication"}, - "disable_cert_validation": {"key": "typeProperties.disableCertValidation", "type": "bool"}, - "http_request_timeout": {"key": "typeProperties.httpRequestTimeout", "type": "object"}, - "turn_off_async": {"key": "typeProperties.turnOffAsync", "type": "bool"}, - "datasets": {"key": "typeProperties.datasets", "type": "[DatasetReference]"}, - "linked_services": {"key": "typeProperties.linkedServices", "type": "[LinkedServiceReference]"}, - "connect_via": {"key": "typeProperties.connectVia", "type": "IntegrationRuntimeReference"}, - } - - def __init__( - self, - *, - name: str, - method: Union[str, "_models.WebActivityMethod"], - url: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - linked_service_name: Optional["_models.LinkedServiceReference"] = None, - policy: Optional["_models.ActivityPolicy"] = None, - headers: Optional[dict[str, JSON]] = None, - body: Optional[JSON] = None, - authentication: Optional["_models.WebActivityAuthentication"] = None, - disable_cert_validation: Optional[bool] = None, - http_request_timeout: Optional[JSON] = None, - turn_off_async: Optional[bool] = None, - datasets: Optional[list["_models.DatasetReference"]] = None, - linked_services: Optional[list["_models.LinkedServiceReference"]] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword linked_service_name: Linked service reference. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.ActivityPolicy - :keyword method: Rest API method for target endpoint. Required. Known values are: "GET", - "POST", "PUT", and "DELETE". - :paramtype method: str or ~azure.mgmt.datafactory.models.WebActivityMethod - :keyword url: Web activity target endpoint and path. Type: string (or Expression with - resultType string). Required. - :paramtype url: JSON - :keyword headers: Represents the headers that will be sent to the request. For example, to set - the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": - "application/json" }. Type: string (or Expression with resultType string). - :paramtype headers: dict[str, JSON] - :keyword body: Represents the payload that will be sent to the endpoint. Required for POST/PUT - method, not allowed for GET method Type: string (or Expression with resultType string). - :paramtype body: JSON - :keyword authentication: Authentication method used for calling the endpoint. - :paramtype authentication: ~azure.mgmt.datafactory.models.WebActivityAuthentication - :keyword disable_cert_validation: When set to true, Certificate validation will be disabled. - :paramtype disable_cert_validation: bool - :keyword http_request_timeout: Timeout for the HTTP request to get a response. Format is in - TimeSpan (hh:mm:ss). This value is the timeout to get a response, not the activity timeout. The - default value is 00:01:00 (1 minute). The range is from 1 to 10 minutes. - :paramtype http_request_timeout: JSON - :keyword turn_off_async: Option to disable invoking HTTP GET on location given in response - header of a HTTP 202 Response. If set true, it stops invoking HTTP GET on http location given - in response header. If set false then continues to invoke HTTP GET call on location given in - http response headers. - :paramtype turn_off_async: bool - :keyword datasets: List of datasets passed to web endpoint. - :paramtype datasets: list[~azure.mgmt.datafactory.models.DatasetReference] - :keyword linked_services: List of linked services passed to web endpoint. - :paramtype linked_services: list[~azure.mgmt.datafactory.models.LinkedServiceReference] - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - linked_service_name=linked_service_name, - policy=policy, - **kwargs - ) - self.type: str = "WebActivity" - self.method = method - self.url = url - self.headers = headers - self.body = body - self.authentication = authentication - self.disable_cert_validation = disable_cert_validation - self.http_request_timeout = http_request_timeout - self.turn_off_async = turn_off_async - self.datasets = datasets - self.linked_services = linked_services - self.connect_via = connect_via - - -class WebActivityAuthentication(_serialization.Model): - """Web activity authentication properties. - - :ivar type: Web activity authentication (Basic/ClientCertificate/MSI/ServicePrincipal). - :vartype type: str - :ivar pfx: Base64-encoded contents of a PFX file or Certificate when used for ServicePrincipal. - :vartype pfx: ~azure.mgmt.datafactory.models.SecretBase - :ivar username: Web activity authentication user name for basic authentication or ClientID when - used for ServicePrincipal. Type: string (or Expression with resultType string). - :vartype username: JSON - :ivar password: Password for the PFX file or basic authentication / Secret when used for - ServicePrincipal. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar resource: Resource for which Azure Auth token will be requested when using MSI - Authentication. Type: string (or Expression with resultType string). - :vartype resource: JSON - :ivar user_tenant: TenantId for which Azure Auth token will be requested when using - ServicePrincipal Authentication. Type: string (or Expression with resultType string). - :vartype user_tenant: JSON - :ivar credential: The credential reference containing authentication information. - :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "pfx": {"key": "pfx", "type": "SecretBase"}, - "username": {"key": "username", "type": "object"}, - "password": {"key": "password", "type": "SecretBase"}, - "resource": {"key": "resource", "type": "object"}, - "user_tenant": {"key": "userTenant", "type": "object"}, - "credential": {"key": "credential", "type": "CredentialReference"}, - } - - def __init__( - self, - *, - type: Optional[str] = None, - pfx: Optional["_models.SecretBase"] = None, - username: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - resource: Optional[JSON] = None, - user_tenant: Optional[JSON] = None, - credential: Optional["_models.CredentialReference"] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Web activity authentication (Basic/ClientCertificate/MSI/ServicePrincipal). - :paramtype type: str - :keyword pfx: Base64-encoded contents of a PFX file or Certificate when used for - ServicePrincipal. - :paramtype pfx: ~azure.mgmt.datafactory.models.SecretBase - :keyword username: Web activity authentication user name for basic authentication or ClientID - when used for ServicePrincipal. Type: string (or Expression with resultType string). - :paramtype username: JSON - :keyword password: Password for the PFX file or basic authentication / Secret when used for - ServicePrincipal. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword resource: Resource for which Azure Auth token will be requested when using MSI - Authentication. Type: string (or Expression with resultType string). - :paramtype resource: JSON - :keyword user_tenant: TenantId for which Azure Auth token will be requested when using - ServicePrincipal Authentication. Type: string (or Expression with resultType string). - :paramtype user_tenant: JSON - :keyword credential: The credential reference containing authentication information. - :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference - """ - super().__init__(**kwargs) - self.type = type - self.pfx = pfx - self.username = username - self.password = password - self.resource = resource - self.user_tenant = user_tenant - self.credential = credential - - -class WebLinkedServiceTypeProperties(_serialization.Model): - """Base definition of WebLinkedServiceTypeProperties, this typeProperties is polymorphic based on - authenticationType, so not flattened in SDK models. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - WebAnonymousAuthentication, WebBasicAuthentication, WebClientCertificateAuthentication - - All required parameters must be populated in order to send to server. - - :ivar url: The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string - (or Expression with resultType string). Required. - :vartype url: JSON - :ivar authentication_type: Type of authentication used to connect to the web table source. - Required. Known values are: "Basic", "Anonymous", and "ClientCertificate". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.WebAuthenticationType - """ - - _validation = { - "url": {"required": True}, - "authentication_type": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "object"}, - "authentication_type": {"key": "authenticationType", "type": "str"}, - } - - _subtype_map = { - "authentication_type": { - "Anonymous": "WebAnonymousAuthentication", - "Basic": "WebBasicAuthentication", - "ClientCertificate": "WebClientCertificateAuthentication", - } - } - - def __init__(self, *, url: JSON, **kwargs: Any) -> None: - """ - :keyword url: The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: - string (or Expression with resultType string). Required. - :paramtype url: JSON - """ - super().__init__(**kwargs) - self.url = url - self.authentication_type: Optional[str] = None - - -class WebAnonymousAuthentication(WebLinkedServiceTypeProperties): - """A WebLinkedService that uses anonymous authentication to communicate with an HTTP endpoint. - - All required parameters must be populated in order to send to server. - - :ivar url: The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string - (or Expression with resultType string). Required. - :vartype url: JSON - :ivar authentication_type: Type of authentication used to connect to the web table source. - Required. Known values are: "Basic", "Anonymous", and "ClientCertificate". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.WebAuthenticationType - """ - - _validation = { - "url": {"required": True}, - "authentication_type": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "object"}, - "authentication_type": {"key": "authenticationType", "type": "str"}, - } - - def __init__(self, *, url: JSON, **kwargs: Any) -> None: - """ - :keyword url: The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: - string (or Expression with resultType string). Required. - :paramtype url: JSON - """ - super().__init__(url=url, **kwargs) - self.authentication_type: str = "Anonymous" - - -class WebBasicAuthentication(WebLinkedServiceTypeProperties): - """A WebLinkedService that uses basic authentication to communicate with an HTTP endpoint. - - All required parameters must be populated in order to send to server. - - :ivar url: The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string - (or Expression with resultType string). Required. - :vartype url: JSON - :ivar authentication_type: Type of authentication used to connect to the web table source. - Required. Known values are: "Basic", "Anonymous", and "ClientCertificate". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.WebAuthenticationType - :ivar username: User name for Basic authentication. Type: string (or Expression with resultType - string). Required. - :vartype username: JSON - :ivar password: The password for Basic authentication. Required. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - """ - - _validation = { - "url": {"required": True}, - "authentication_type": {"required": True}, - "username": {"required": True}, - "password": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "object"}, - "authentication_type": {"key": "authenticationType", "type": "str"}, - "username": {"key": "username", "type": "object"}, - "password": {"key": "password", "type": "SecretBase"}, - } - - def __init__(self, *, url: JSON, username: JSON, password: "_models.SecretBase", **kwargs: Any) -> None: - """ - :keyword url: The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: - string (or Expression with resultType string). Required. - :paramtype url: JSON - :keyword username: User name for Basic authentication. Type: string (or Expression with - resultType string). Required. - :paramtype username: JSON - :keyword password: The password for Basic authentication. Required. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - """ - super().__init__(url=url, **kwargs) - self.authentication_type: str = "Basic" - self.username = username - self.password = password - - -class WebClientCertificateAuthentication(WebLinkedServiceTypeProperties): - """A WebLinkedService that uses client certificate based authentication to communicate with an - HTTP endpoint. This scheme follows mutual authentication; the server must also provide valid - credentials to the client. - - All required parameters must be populated in order to send to server. - - :ivar url: The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string - (or Expression with resultType string). Required. - :vartype url: JSON - :ivar authentication_type: Type of authentication used to connect to the web table source. - Required. Known values are: "Basic", "Anonymous", and "ClientCertificate". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.WebAuthenticationType - :ivar pfx: Base64-encoded contents of a PFX file. Required. - :vartype pfx: ~azure.mgmt.datafactory.models.SecretBase - :ivar password: Password for the PFX file. Required. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - """ - - _validation = { - "url": {"required": True}, - "authentication_type": {"required": True}, - "pfx": {"required": True}, - "password": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "object"}, - "authentication_type": {"key": "authenticationType", "type": "str"}, - "pfx": {"key": "pfx", "type": "SecretBase"}, - "password": {"key": "password", "type": "SecretBase"}, - } - - def __init__(self, *, url: JSON, pfx: "_models.SecretBase", password: "_models.SecretBase", **kwargs: Any) -> None: - """ - :keyword url: The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: - string (or Expression with resultType string). Required. - :paramtype url: JSON - :keyword pfx: Base64-encoded contents of a PFX file. Required. - :paramtype pfx: ~azure.mgmt.datafactory.models.SecretBase - :keyword password: Password for the PFX file. Required. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - """ - super().__init__(url=url, **kwargs) - self.authentication_type: str = "ClientCertificate" - self.pfx = pfx - self.password = password - - -class WebHookActivity(ControlActivity): - """WebHook activity. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar name: Activity name. Required. - :vartype name: str - :ivar type: Type of activity. Required. - :vartype type: str - :ivar description: Activity description. - :vartype description: str - :ivar state: Activity state. This is an optional property and if not provided, the state will - be Active by default. Known values are: "Active" and "Inactive". - :vartype state: str or ~azure.mgmt.datafactory.models.ActivityState - :ivar on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :vartype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :ivar depends_on: Activity depends on condition. - :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :ivar user_properties: Activity user properties. - :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar policy: Activity policy. - :vartype policy: ~azure.mgmt.datafactory.models.SecureInputOutputPolicy - :ivar method: Rest API method for target endpoint. Required. "POST" - :vartype method: str or ~azure.mgmt.datafactory.models.WebHookActivityMethod - :ivar url: WebHook activity target endpoint and path. Type: string (or Expression with - resultType string). Required. - :vartype url: JSON - :ivar timeout: The timeout within which the webhook should be called back. If there is no value - specified, it defaults to 10 minutes. Type: string. Pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype timeout: str - :ivar headers: Represents the headers that will be sent to the request. For example, to set the - language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": - "application/json" }. Type: string (or Expression with resultType string). - :vartype headers: dict[str, JSON] - :ivar body: Represents the payload that will be sent to the endpoint. Required for POST/PUT - method, not allowed for GET method Type: string (or Expression with resultType string). - :vartype body: JSON - :ivar authentication: Authentication method used for calling the endpoint. - :vartype authentication: ~azure.mgmt.datafactory.models.WebActivityAuthentication - :ivar report_status_on_call_back: When set to true, statusCode, output and error in callback - request body will be consumed by activity. The activity can be marked as failed by setting - statusCode >= 400 in callback request. Default is false. Type: boolean (or Expression with - resultType boolean). - :vartype report_status_on_call_back: JSON - """ - - _validation = { - "name": {"required": True}, - "type": {"required": True}, - "method": {"required": True}, - "url": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "on_inactive_mark_as": {"key": "onInactiveMarkAs", "type": "str"}, - "depends_on": {"key": "dependsOn", "type": "[ActivityDependency]"}, - "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, - "policy": {"key": "policy", "type": "SecureInputOutputPolicy"}, - "method": {"key": "typeProperties.method", "type": "str"}, - "url": {"key": "typeProperties.url", "type": "object"}, - "timeout": {"key": "typeProperties.timeout", "type": "str"}, - "headers": {"key": "typeProperties.headers", "type": "{object}"}, - "body": {"key": "typeProperties.body", "type": "object"}, - "authentication": {"key": "typeProperties.authentication", "type": "WebActivityAuthentication"}, - "report_status_on_call_back": {"key": "typeProperties.reportStatusOnCallBack", "type": "object"}, - } - - def __init__( - self, - *, - name: str, - method: Union[str, "_models.WebHookActivityMethod"], - url: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - state: Optional[Union[str, "_models.ActivityState"]] = None, - on_inactive_mark_as: Optional[Union[str, "_models.ActivityOnInactiveMarkAs"]] = None, - depends_on: Optional[list["_models.ActivityDependency"]] = None, - user_properties: Optional[list["_models.UserProperty"]] = None, - policy: Optional["_models.SecureInputOutputPolicy"] = None, - timeout: Optional[str] = None, - headers: Optional[dict[str, JSON]] = None, - body: Optional[JSON] = None, - authentication: Optional["_models.WebActivityAuthentication"] = None, - report_status_on_call_back: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword name: Activity name. Required. - :paramtype name: str - :keyword description: Activity description. - :paramtype description: str - :keyword state: Activity state. This is an optional property and if not provided, the state - will be Active by default. Known values are: "Active" and "Inactive". - :paramtype state: str or ~azure.mgmt.datafactory.models.ActivityState - :keyword on_inactive_mark_as: Status result of the activity when the state is set to Inactive. - This is an optional property and if not provided when the activity is inactive, the status will - be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped". - :paramtype on_inactive_mark_as: str or ~azure.mgmt.datafactory.models.ActivityOnInactiveMarkAs - :keyword depends_on: Activity depends on condition. - :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :keyword user_properties: Activity user properties. - :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword policy: Activity policy. - :paramtype policy: ~azure.mgmt.datafactory.models.SecureInputOutputPolicy - :keyword method: Rest API method for target endpoint. Required. "POST" - :paramtype method: str or ~azure.mgmt.datafactory.models.WebHookActivityMethod - :keyword url: WebHook activity target endpoint and path. Type: string (or Expression with - resultType string). Required. - :paramtype url: JSON - :keyword timeout: The timeout within which the webhook should be called back. If there is no - value specified, it defaults to 10 minutes. Type: string. Pattern: - ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype timeout: str - :keyword headers: Represents the headers that will be sent to the request. For example, to set - the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": - "application/json" }. Type: string (or Expression with resultType string). - :paramtype headers: dict[str, JSON] - :keyword body: Represents the payload that will be sent to the endpoint. Required for POST/PUT - method, not allowed for GET method Type: string (or Expression with resultType string). - :paramtype body: JSON - :keyword authentication: Authentication method used for calling the endpoint. - :paramtype authentication: ~azure.mgmt.datafactory.models.WebActivityAuthentication - :keyword report_status_on_call_back: When set to true, statusCode, output and error in callback - request body will be consumed by activity. The activity can be marked as failed by setting - statusCode >= 400 in callback request. Default is false. Type: boolean (or Expression with - resultType boolean). - :paramtype report_status_on_call_back: JSON - """ - super().__init__( - additional_properties=additional_properties, - name=name, - description=description, - state=state, - on_inactive_mark_as=on_inactive_mark_as, - depends_on=depends_on, - user_properties=user_properties, - **kwargs - ) - self.type: str = "WebHook" - self.policy = policy - self.method = method - self.url = url - self.timeout = timeout - self.headers = headers - self.body = body - self.authentication = authentication - self.report_status_on_call_back = report_status_on_call_back - - -class WebLinkedService(LinkedService): - """Web linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar type_properties: Web linked service properties. Required. - :vartype type_properties: ~azure.mgmt.datafactory.models.WebLinkedServiceTypeProperties - """ - - _validation = { - "type": {"required": True}, - "type_properties": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "type_properties": {"key": "typeProperties", "type": "WebLinkedServiceTypeProperties"}, - } - - def __init__( - self, - *, - type_properties: "_models.WebLinkedServiceTypeProperties", - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword type_properties: Web linked service properties. Required. - :paramtype type_properties: ~azure.mgmt.datafactory.models.WebLinkedServiceTypeProperties - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Web" - self.type_properties = type_properties - - -class WebSource(CopySource): - """A copy activity source for web page table. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "WebSource" - self.additional_columns = additional_columns - - -class WebTableDataset(Dataset): - """The dataset points to a HTML table in the web page. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar index: The zero-based index of the table in the web page. Type: integer (or Expression - with resultType integer), minimum: 0. Required. - :vartype index: JSON - :ivar path: The relative URL to the web page from the linked service URL. Type: string (or - Expression with resultType string). - :vartype path: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - "index": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "index": {"key": "typeProperties.index", "type": "object"}, - "path": {"key": "typeProperties.path", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - index: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - path: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword index: The zero-based index of the table in the web page. Type: integer (or Expression - with resultType integer), minimum: 0. Required. - :paramtype index: JSON - :keyword path: The relative URL to the web page from the linked service URL. Type: string (or - Expression with resultType string). - :paramtype path: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "WebTable" - self.index = index - self.path = path - - -class WranglingDataFlow(DataFlow): - """Power Query data flow. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of data flow. Required. - :vartype type: str - :ivar description: The description of the data flow. - :vartype description: str - :ivar annotations: List of tags that can be used for describing the data flow. - :vartype annotations: list[JSON] - :ivar folder: The folder that this data flow is in. If not specified, Data flow will appear at - the root level. - :vartype folder: ~azure.mgmt.datafactory.models.DataFlowFolder - :ivar sources: List of sources in Power Query. - :vartype sources: list[~azure.mgmt.datafactory.models.PowerQuerySource] - :ivar script: Power query mashup script. - :vartype script: str - :ivar document_locale: Locale of the Power query mashup document. - :vartype document_locale: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DataFlowFolder"}, - "sources": {"key": "typeProperties.sources", "type": "[PowerQuerySource]"}, - "script": {"key": "typeProperties.script", "type": "str"}, - "document_locale": {"key": "typeProperties.documentLocale", "type": "str"}, - } - - def __init__( - self, - *, - description: Optional[str] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DataFlowFolder"] = None, - sources: Optional[list["_models.PowerQuerySource"]] = None, - script: Optional[str] = None, - document_locale: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword description: The description of the data flow. - :paramtype description: str - :keyword annotations: List of tags that can be used for describing the data flow. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this data flow is in. If not specified, Data flow will appear - at the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DataFlowFolder - :keyword sources: List of sources in Power Query. - :paramtype sources: list[~azure.mgmt.datafactory.models.PowerQuerySource] - :keyword script: Power query mashup script. - :paramtype script: str - :keyword document_locale: Locale of the Power query mashup document. - :paramtype document_locale: str - """ - super().__init__(description=description, annotations=annotations, folder=folder, **kwargs) - self.type: str = "WranglingDataFlow" - self.sources = sources - self.script = script - self.document_locale = document_locale - - -class XeroLinkedService(LinkedService): - """Xero Service linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_properties: Properties used to connect to Xero. It is mutually exclusive with - any other properties in the linked service. Type: object. - :vartype connection_properties: JSON - :ivar host: The endpoint of the Xero server. (i.e. api.xero.com). - :vartype host: JSON - :ivar consumer_key: The consumer key associated with the Xero application. - :vartype consumer_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar private_key: The private key from the .pem file that was generated for your Xero private - application. You must include all the text from the .pem file, including the Unix line endings( - ). - :vartype private_key: ~azure.mgmt.datafactory.models.SecretBase - :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using - HTTPS. The default value is true. - :vartype use_encrypted_endpoints: JSON - :ivar use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :vartype use_host_verification: JSON - :ivar use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :vartype use_peer_verification: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_properties": {"key": "typeProperties.connectionProperties", "type": "object"}, - "host": {"key": "typeProperties.host", "type": "object"}, - "consumer_key": {"key": "typeProperties.consumerKey", "type": "SecretBase"}, - "private_key": {"key": "typeProperties.privateKey", "type": "SecretBase"}, - "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, - "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, - "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_properties: Optional[JSON] = None, - host: Optional[JSON] = None, - consumer_key: Optional["_models.SecretBase"] = None, - private_key: Optional["_models.SecretBase"] = None, - use_encrypted_endpoints: Optional[JSON] = None, - use_host_verification: Optional[JSON] = None, - use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_properties: Properties used to connect to Xero. It is mutually exclusive - with any other properties in the linked service. Type: object. - :paramtype connection_properties: JSON - :keyword host: The endpoint of the Xero server. (i.e. api.xero.com). - :paramtype host: JSON - :keyword consumer_key: The consumer key associated with the Xero application. - :paramtype consumer_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword private_key: The private key from the .pem file that was generated for your Xero - private application. You must include all the text from the .pem file, including the Unix line - endings( - ). - :paramtype private_key: ~azure.mgmt.datafactory.models.SecretBase - :keyword use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted - using HTTPS. The default value is true. - :paramtype use_encrypted_endpoints: JSON - :keyword use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :paramtype use_host_verification: JSON - :keyword use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :paramtype use_peer_verification: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Xero" - self.connection_properties = connection_properties - self.host = host - self.consumer_key = consumer_key - self.private_key = private_key - self.use_encrypted_endpoints = use_encrypted_endpoints - self.use_host_verification = use_host_verification - self.use_peer_verification = use_peer_verification - self.encrypted_credential = encrypted_credential - - -class XeroObjectDataset(Dataset): - """Xero Service dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "XeroObject" - self.table_name = table_name - - -class XeroSource(TabularSource): - """A copy activity Xero Service source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "XeroSource" - self.query = query - - -class XmlDataset(Dataset): - """Xml dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar location: The location of the json data storage. - :vartype location: ~azure.mgmt.datafactory.models.DatasetLocation - :ivar encoding_name: The code page name of the preferred encoding. If not specified, the - default value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column - of the table in the following link to set supported values: - https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with - resultType string). - :vartype encoding_name: JSON - :ivar null_value: The null value string. Type: string (or Expression with resultType string). - :vartype null_value: JSON - :ivar compression: The data compression method used for the json dataset. - :vartype compression: ~azure.mgmt.datafactory.models.DatasetCompression - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "location": {"key": "typeProperties.location", "type": "DatasetLocation"}, - "encoding_name": {"key": "typeProperties.encodingName", "type": "object"}, - "null_value": {"key": "typeProperties.nullValue", "type": "object"}, - "compression": {"key": "typeProperties.compression", "type": "DatasetCompression"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - location: Optional["_models.DatasetLocation"] = None, - encoding_name: Optional[JSON] = None, - null_value: Optional[JSON] = None, - compression: Optional["_models.DatasetCompression"] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword location: The location of the json data storage. - :paramtype location: ~azure.mgmt.datafactory.models.DatasetLocation - :keyword encoding_name: The code page name of the preferred encoding. If not specified, the - default value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column - of the table in the following link to set supported values: - https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with - resultType string). - :paramtype encoding_name: JSON - :keyword null_value: The null value string. Type: string (or Expression with resultType - string). - :paramtype null_value: JSON - :keyword compression: The data compression method used for the json dataset. - :paramtype compression: ~azure.mgmt.datafactory.models.DatasetCompression - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "Xml" - self.location = location - self.encoding_name = encoding_name - self.null_value = null_value - self.compression = compression - - -class XmlReadSettings(FormatReadSettings): - """Xml read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The read setting type. Required. - :vartype type: str - :ivar compression_properties: Compression settings. - :vartype compression_properties: ~azure.mgmt.datafactory.models.CompressionReadSettings - :ivar validation_mode: Indicates what validation method is used when reading the xml files. - Allowed values: 'none', 'xsd', or 'dtd'. Type: string (or Expression with resultType string). - :vartype validation_mode: JSON - :ivar detect_data_type: Indicates whether type detection is enabled when reading the xml files. - Type: boolean (or Expression with resultType boolean). - :vartype detect_data_type: JSON - :ivar namespaces: Indicates whether namespace is enabled when reading the xml files. Type: - boolean (or Expression with resultType boolean). - :vartype namespaces: JSON - :ivar namespace_prefixes: Namespace uri to prefix mappings to override the prefixes in column - names when namespace is enabled, if no prefix is defined for a namespace uri, the prefix of xml - element/attribute name in the xml data file will be used. Example: - "{"http://www.example.com/xml":"prefix"}" Type: object (or Expression with resultType object). - :vartype namespace_prefixes: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "compression_properties": {"key": "compressionProperties", "type": "CompressionReadSettings"}, - "validation_mode": {"key": "validationMode", "type": "object"}, - "detect_data_type": {"key": "detectDataType", "type": "object"}, - "namespaces": {"key": "namespaces", "type": "object"}, - "namespace_prefixes": {"key": "namespacePrefixes", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - compression_properties: Optional["_models.CompressionReadSettings"] = None, - validation_mode: Optional[JSON] = None, - detect_data_type: Optional[JSON] = None, - namespaces: Optional[JSON] = None, - namespace_prefixes: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword compression_properties: Compression settings. - :paramtype compression_properties: ~azure.mgmt.datafactory.models.CompressionReadSettings - :keyword validation_mode: Indicates what validation method is used when reading the xml files. - Allowed values: 'none', 'xsd', or 'dtd'. Type: string (or Expression with resultType string). - :paramtype validation_mode: JSON - :keyword detect_data_type: Indicates whether type detection is enabled when reading the xml - files. Type: boolean (or Expression with resultType boolean). - :paramtype detect_data_type: JSON - :keyword namespaces: Indicates whether namespace is enabled when reading the xml files. Type: - boolean (or Expression with resultType boolean). - :paramtype namespaces: JSON - :keyword namespace_prefixes: Namespace uri to prefix mappings to override the prefixes in - column names when namespace is enabled, if no prefix is defined for a namespace uri, the prefix - of xml element/attribute name in the xml data file will be used. Example: - "{"http://www.example.com/xml":"prefix"}" Type: object (or Expression with resultType object). - :paramtype namespace_prefixes: JSON - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "XmlReadSettings" - self.compression_properties = compression_properties - self.validation_mode = validation_mode - self.detect_data_type = detect_data_type - self.namespaces = namespaces - self.namespace_prefixes = namespace_prefixes - - -class XmlSource(CopySource): - """A copy activity Xml source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar store_settings: Xml store settings. - :vartype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - :ivar format_settings: Xml format settings. - :vartype format_settings: ~azure.mgmt.datafactory.models.XmlReadSettings - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "store_settings": {"key": "storeSettings", "type": "StoreReadSettings"}, - "format_settings": {"key": "formatSettings", "type": "XmlReadSettings"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - store_settings: Optional["_models.StoreReadSettings"] = None, - format_settings: Optional["_models.XmlReadSettings"] = None, - additional_columns: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword store_settings: Xml store settings. - :paramtype store_settings: ~azure.mgmt.datafactory.models.StoreReadSettings - :keyword format_settings: Xml format settings. - :paramtype format_settings: ~azure.mgmt.datafactory.models.XmlReadSettings - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - **kwargs - ) - self.type: str = "XmlSource" - self.store_settings = store_settings - self.format_settings = format_settings - self.additional_columns = additional_columns - - -class ZendeskLinkedService(LinkedService): - """Linked service for Zendesk. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar authentication_type: The authentication type to use. Required. Known values are: "Basic" - and "Token". - :vartype authentication_type: str or ~azure.mgmt.datafactory.models.ZendeskAuthenticationType - :ivar url: The url to connect Zendesk source. Type: string (or Expression with resultType - string). Required. - :vartype url: JSON - :ivar user_name: The username of the Zendesk source. Type: string (or Expression with - resultType string). - :vartype user_name: JSON - :ivar password: The password of the Zendesk source. - :vartype password: ~azure.mgmt.datafactory.models.SecretBase - :ivar api_token: The api token for the Zendesk source. - :vartype api_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - "authentication_type": {"required": True}, - "url": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, - "url": {"key": "typeProperties.url", "type": "object"}, - "user_name": {"key": "typeProperties.userName", "type": "object"}, - "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "api_token": {"key": "typeProperties.apiToken", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - authentication_type: Union[str, "_models.ZendeskAuthenticationType"], - url: JSON, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - user_name: Optional[JSON] = None, - password: Optional["_models.SecretBase"] = None, - api_token: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword authentication_type: The authentication type to use. Required. Known values are: - "Basic" and "Token". - :paramtype authentication_type: str or ~azure.mgmt.datafactory.models.ZendeskAuthenticationType - :keyword url: The url to connect Zendesk source. Type: string (or Expression with resultType - string). Required. - :paramtype url: JSON - :keyword user_name: The username of the Zendesk source. Type: string (or Expression with - resultType string). - :paramtype user_name: JSON - :keyword password: The password of the Zendesk source. - :paramtype password: ~azure.mgmt.datafactory.models.SecretBase - :keyword api_token: The api token for the Zendesk source. - :paramtype api_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Zendesk" - self.authentication_type = authentication_type - self.url = url - self.user_name = user_name - self.password = password - self.api_token = api_token - self.encrypted_credential = encrypted_credential - - -class ZipDeflateReadSettings(CompressionReadSettings): - """The ZipDeflate compression read settings. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: The Compression setting type. Required. - :vartype type: str - :ivar preserve_zip_file_name_as_folder: Preserve the zip file name as folder path. Type: - boolean (or Expression with resultType boolean). - :vartype preserve_zip_file_name_as_folder: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "preserve_zip_file_name_as_folder": {"key": "preserveZipFileNameAsFolder", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - preserve_zip_file_name_as_folder: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword preserve_zip_file_name_as_folder: Preserve the zip file name as folder path. Type: - boolean (or Expression with resultType boolean). - :paramtype preserve_zip_file_name_as_folder: JSON - """ - super().__init__(additional_properties=additional_properties, **kwargs) - self.type: str = "ZipDeflateReadSettings" - self.preserve_zip_file_name_as_folder = preserve_zip_file_name_as_folder - - -class ZohoLinkedService(LinkedService): - """Zoho server linked service. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of linked service. Required. - :vartype type: str - :ivar version: Version of the linked service. - :vartype version: str - :ivar connect_via: The integration runtime reference. - :vartype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :ivar description: Linked service description. - :vartype description: str - :ivar parameters: Parameters for linked service. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the linked service. - :vartype annotations: list[JSON] - :ivar connection_properties: Properties used to connect to Zoho. It is mutually exclusive with - any other properties in the linked service. Type: object. - :vartype connection_properties: JSON - :ivar endpoint: The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private). - :vartype endpoint: JSON - :ivar access_token: The access token for Zoho authentication. - :vartype access_token: ~azure.mgmt.datafactory.models.SecretBase - :ivar use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted using - HTTPS. The default value is true. - :vartype use_encrypted_endpoints: JSON - :ivar use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :vartype use_host_verification: JSON - :ivar use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :vartype use_peer_verification: JSON - :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string. - :vartype encrypted_credential: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connect_via": {"key": "connectVia", "type": "IntegrationRuntimeReference"}, - "description": {"key": "description", "type": "str"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "connection_properties": {"key": "typeProperties.connectionProperties", "type": "object"}, - "endpoint": {"key": "typeProperties.endpoint", "type": "object"}, - "access_token": {"key": "typeProperties.accessToken", "type": "SecretBase"}, - "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, - "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, - "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - version: Optional[str] = None, - connect_via: Optional["_models.IntegrationRuntimeReference"] = None, - description: Optional[str] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - connection_properties: Optional[JSON] = None, - endpoint: Optional[JSON] = None, - access_token: Optional["_models.SecretBase"] = None, - use_encrypted_endpoints: Optional[JSON] = None, - use_host_verification: Optional[JSON] = None, - use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword version: Version of the linked service. - :paramtype version: str - :keyword connect_via: The integration runtime reference. - :paramtype connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeReference - :keyword description: Linked service description. - :paramtype description: str - :keyword parameters: Parameters for linked service. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the linked service. - :paramtype annotations: list[JSON] - :keyword connection_properties: Properties used to connect to Zoho. It is mutually exclusive - with any other properties in the linked service. Type: object. - :paramtype connection_properties: JSON - :keyword endpoint: The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private). - :paramtype endpoint: JSON - :keyword access_token: The access token for Zoho authentication. - :paramtype access_token: ~azure.mgmt.datafactory.models.SecretBase - :keyword use_encrypted_endpoints: Specifies whether the data source endpoints are encrypted - using HTTPS. The default value is true. - :paramtype use_encrypted_endpoints: JSON - :keyword use_host_verification: Specifies whether to require the host name in the server's - certificate to match the host name of the server when connecting over SSL. The default value is - true. - :paramtype use_host_verification: JSON - :keyword use_peer_verification: Specifies whether to verify the identity of the server when - connecting over SSL. The default value is true. - :paramtype use_peer_verification: JSON - :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string. - :paramtype encrypted_credential: str - """ - super().__init__( - additional_properties=additional_properties, - version=version, - connect_via=connect_via, - description=description, - parameters=parameters, - annotations=annotations, - **kwargs - ) - self.type: str = "Zoho" - self.connection_properties = connection_properties - self.endpoint = endpoint - self.access_token = access_token - self.use_encrypted_endpoints = use_encrypted_endpoints - self.use_host_verification = use_host_verification - self.use_peer_verification = use_peer_verification - self.encrypted_credential = encrypted_credential - - -class ZohoObjectDataset(Dataset): - """Zoho server dataset. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Type of dataset. Required. - :vartype type: str - :ivar description: Dataset description. - :vartype description: str - :ivar structure: Columns that define the structure of the dataset. Type: array (or Expression - with resultType array), itemType: DatasetDataElement. - :vartype structure: JSON - :ivar schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :vartype schema: JSON - :ivar linked_service_name: Linked service reference. Required. - :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :ivar parameters: Parameters for dataset. - :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :ivar annotations: List of tags that can be used for describing the Dataset. - :vartype annotations: list[JSON] - :ivar folder: The folder that this Dataset is in. If not specified, Dataset will appear at the - root level. - :vartype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :ivar table_name: The table name. Type: string (or Expression with resultType string). - :vartype table_name: JSON - """ - - _validation = { - "type": {"required": True}, - "linked_service_name": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "structure": {"key": "structure", "type": "object"}, - "schema": {"key": "schema", "type": "object"}, - "linked_service_name": {"key": "linkedServiceName", "type": "LinkedServiceReference"}, - "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, - "annotations": {"key": "annotations", "type": "[object]"}, - "folder": {"key": "folder", "type": "DatasetFolder"}, - "table_name": {"key": "typeProperties.tableName", "type": "object"}, - } - - def __init__( - self, - *, - linked_service_name: "_models.LinkedServiceReference", - additional_properties: Optional[dict[str, JSON]] = None, - description: Optional[str] = None, - structure: Optional[JSON] = None, - schema: Optional[JSON] = None, - parameters: Optional[dict[str, "_models.ParameterSpecification"]] = None, - annotations: Optional[list[JSON]] = None, - folder: Optional["_models.DatasetFolder"] = None, - table_name: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword description: Dataset description. - :paramtype description: str - :keyword structure: Columns that define the structure of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetDataElement. - :paramtype structure: JSON - :keyword schema: Columns that define the physical type schema of the dataset. Type: array (or - Expression with resultType array), itemType: DatasetSchemaDataElement. - :paramtype schema: JSON - :keyword linked_service_name: Linked service reference. Required. - :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference - :keyword parameters: Parameters for dataset. - :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] - :keyword annotations: List of tags that can be used for describing the Dataset. - :paramtype annotations: list[JSON] - :keyword folder: The folder that this Dataset is in. If not specified, Dataset will appear at - the root level. - :paramtype folder: ~azure.mgmt.datafactory.models.DatasetFolder - :keyword table_name: The table name. Type: string (or Expression with resultType string). - :paramtype table_name: JSON - """ - super().__init__( - additional_properties=additional_properties, - description=description, - structure=structure, - schema=schema, - linked_service_name=linked_service_name, - parameters=parameters, - annotations=annotations, - folder=folder, - **kwargs - ) - self.type: str = "ZohoObject" - self.table_name = table_name - - -class ZohoSource(TabularSource): - """A copy activity Zoho server source. - - All required parameters must be populated in order to send to server. - - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar type: Copy source type. Required. - :vartype type: str - :ivar source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :vartype source_retry_count: JSON - :ivar source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype source_retry_wait: JSON - :ivar max_concurrent_connections: The maximum concurrent connection count for the source data - store. Type: integer (or Expression with resultType integer). - :vartype max_concurrent_connections: JSON - :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :vartype disable_metrics_collection: JSON - :ivar query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :vartype query_timeout: JSON - :ivar additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :vartype additional_columns: JSON - :ivar query: A query to retrieve data from source. Type: string (or Expression with resultType - string). - :vartype query: JSON - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "additional_properties": {"key": "", "type": "{object}"}, - "type": {"key": "type", "type": "str"}, - "source_retry_count": {"key": "sourceRetryCount", "type": "object"}, - "source_retry_wait": {"key": "sourceRetryWait", "type": "object"}, - "max_concurrent_connections": {"key": "maxConcurrentConnections", "type": "object"}, - "disable_metrics_collection": {"key": "disableMetricsCollection", "type": "object"}, - "query_timeout": {"key": "queryTimeout", "type": "object"}, - "additional_columns": {"key": "additionalColumns", "type": "object"}, - "query": {"key": "query", "type": "object"}, - } - - def __init__( - self, - *, - additional_properties: Optional[dict[str, JSON]] = None, - source_retry_count: Optional[JSON] = None, - source_retry_wait: Optional[JSON] = None, - max_concurrent_connections: Optional[JSON] = None, - disable_metrics_collection: Optional[JSON] = None, - query_timeout: Optional[JSON] = None, - additional_columns: Optional[JSON] = None, - query: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, JSON] - :keyword source_retry_count: Source retry count. Type: integer (or Expression with resultType - integer). - :paramtype source_retry_count: JSON - :keyword source_retry_wait: Source retry wait. Type: string (or Expression with resultType - string), pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype source_retry_wait: JSON - :keyword max_concurrent_connections: The maximum concurrent connection count for the source - data store. Type: integer (or Expression with resultType integer). - :paramtype max_concurrent_connections: JSON - :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is - false. Type: boolean (or Expression with resultType boolean). - :paramtype disable_metrics_collection: JSON - :keyword query_timeout: Query timeout. Type: string (or Expression with resultType string), - pattern: ((\\d+).)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :paramtype query_timeout: JSON - :keyword additional_columns: Specifies the additional columns to be added to source data. Type: - array of objects(AdditionalColumns) (or Expression with resultType array of objects). - :paramtype additional_columns: JSON - :keyword query: A query to retrieve data from source. Type: string (or Expression with - resultType string). - :paramtype query: JSON - """ - super().__init__( - additional_properties=additional_properties, - source_retry_count=source_retry_count, - source_retry_wait=source_retry_wait, - max_concurrent_connections=max_concurrent_connections, - disable_metrics_collection=disable_metrics_collection, - query_timeout=query_timeout, - additional_columns=additional_columns, - **kwargs - ) - self.type: str = "ZohoSource" - self.query = query diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_patch.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_patch.py index f7dd32510333..ea765788358a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_patch.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_patch.py @@ -1,14 +1,14 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ +# 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. +# -------------------------------------------------------------------------- """Customize generated code here. Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ -from typing import List -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level def patch_sdk(): diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/__init__.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/__init__.py index 086a098e8d6b..4c240f164385 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/__init__.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -13,29 +13,29 @@ from ._patch import * # pylint: disable=unused-wildcard-import from ._operations import Operations # type: ignore -from ._factories_operations import FactoriesOperations # type: ignore -from ._exposure_control_operations import ExposureControlOperations # type: ignore -from ._integration_runtimes_operations import IntegrationRuntimesOperations # type: ignore -from ._integration_runtime_object_metadata_operations import IntegrationRuntimeObjectMetadataOperations # type: ignore -from ._integration_runtime_nodes_operations import IntegrationRuntimeNodesOperations # type: ignore -from ._integration_runtime_operations import IntegrationRuntimeOperations # type: ignore -from ._linked_services_operations import LinkedServicesOperations # type: ignore -from ._datasets_operations import DatasetsOperations # type: ignore -from ._pipelines_operations import PipelinesOperations # type: ignore -from ._pipeline_runs_operations import PipelineRunsOperations # type: ignore -from ._activity_runs_operations import ActivityRunsOperations # type: ignore -from ._triggers_operations import TriggersOperations # type: ignore -from ._trigger_runs_operations import TriggerRunsOperations # type: ignore -from ._data_flows_operations import DataFlowsOperations # type: ignore -from ._data_flow_debug_session_operations import DataFlowDebugSessionOperations # type: ignore -from ._managed_virtual_networks_operations import ManagedVirtualNetworksOperations # type: ignore -from ._managed_private_endpoints_operations import ManagedPrivateEndpointsOperations # type: ignore -from ._credential_operations_operations import CredentialOperationsOperations # type: ignore -from ._private_end_point_connections_operations import PrivateEndPointConnectionsOperations # type: ignore -from ._private_endpoint_connection_operations import PrivateEndpointConnectionOperations # type: ignore -from ._private_link_resources_operations import PrivateLinkResourcesOperations # type: ignore -from ._global_parameters_operations import GlobalParametersOperations # type: ignore -from ._change_data_capture_operations import ChangeDataCaptureOperations # type: ignore +from ._operations import FactoriesOperations # type: ignore +from ._operations import ExposureControlOperations # type: ignore +from ._operations import PipelineRunsOperations # type: ignore +from ._operations import ActivityRunsOperations # type: ignore +from ._operations import TriggersOperations # type: ignore +from ._operations import TriggerRunsOperations # type: ignore +from ._operations import DataFlowDebugSessionOperations # type: ignore +from ._operations import PrivateLinkResourcesOperations # type: ignore +from ._operations import IntegrationRuntimesOperations # type: ignore +from ._operations import IntegrationRuntimeObjectMetadataOperations # type: ignore +from ._operations import IntegrationRuntimeNodesOperations # type: ignore +from ._operations import IntegrationRuntimeOperations # type: ignore +from ._operations import LinkedServicesOperations # type: ignore +from ._operations import DatasetsOperations # type: ignore +from ._operations import PipelinesOperations # type: ignore +from ._operations import DataFlowsOperations # type: ignore +from ._operations import ManagedVirtualNetworksOperations # type: ignore +from ._operations import ManagedPrivateEndpointsOperations # type: ignore +from ._operations import CredentialOperationsOperations # type: ignore +from ._operations import PrivateEndpointConnectionOperations # type: ignore +from ._operations import PrivateEndPointConnectionsOperations # type: ignore +from ._operations import GlobalParametersOperations # type: ignore +from ._operations import ChangeDataCaptureOperations # type: ignore from ._patch import __all__ as _patch_all from ._patch import * @@ -45,6 +45,12 @@ "Operations", "FactoriesOperations", "ExposureControlOperations", + "PipelineRunsOperations", + "ActivityRunsOperations", + "TriggersOperations", + "TriggerRunsOperations", + "DataFlowDebugSessionOperations", + "PrivateLinkResourcesOperations", "IntegrationRuntimesOperations", "IntegrationRuntimeObjectMetadataOperations", "IntegrationRuntimeNodesOperations", @@ -52,18 +58,12 @@ "LinkedServicesOperations", "DatasetsOperations", "PipelinesOperations", - "PipelineRunsOperations", - "ActivityRunsOperations", - "TriggersOperations", - "TriggerRunsOperations", "DataFlowsOperations", - "DataFlowDebugSessionOperations", "ManagedVirtualNetworksOperations", "ManagedPrivateEndpointsOperations", "CredentialOperationsOperations", - "PrivateEndPointConnectionsOperations", "PrivateEndpointConnectionOperations", - "PrivateLinkResourcesOperations", + "PrivateEndPointConnectionsOperations", "GlobalParametersOperations", "ChangeDataCaptureOperations", ] diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_activity_runs_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_activity_runs_operations.py deleted file mode 100644 index 5fbbda859c8f..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_activity_runs_operations.py +++ /dev/null @@ -1,240 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_query_by_pipeline_run_request( - resource_group_name: str, factory_name: str, run_id: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/queryActivityruns", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "runId": _SERIALIZER.url("run_id", run_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ActivityRunsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`activity_runs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @overload - def query_by_pipeline_run( - self, - resource_group_name: str, - factory_name: str, - run_id: str, - filter_parameters: _models.RunFilterParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ActivityRunsQueryResponse: - """Query activity runs based on input filter conditions. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param run_id: The pipeline run identifier. Required. - :type run_id: str - :param filter_parameters: Parameters to filter the activity runs. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ActivityRunsQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def query_by_pipeline_run( - self, - resource_group_name: str, - factory_name: str, - run_id: str, - filter_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ActivityRunsQueryResponse: - """Query activity runs based on input filter conditions. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param run_id: The pipeline run identifier. Required. - :type run_id: str - :param filter_parameters: Parameters to filter the activity runs. Required. - :type filter_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ActivityRunsQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def query_by_pipeline_run( - self, - resource_group_name: str, - factory_name: str, - run_id: str, - filter_parameters: Union[_models.RunFilterParameters, IO[bytes]], - **kwargs: Any - ) -> _models.ActivityRunsQueryResponse: - """Query activity runs based on input filter conditions. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param run_id: The pipeline run identifier. Required. - :type run_id: str - :param filter_parameters: Parameters to filter the activity runs. Is either a - RunFilterParameters type or a IO[bytes] type. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or IO[bytes] - :return: ActivityRunsQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ActivityRunsQueryResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(filter_parameters, (IOBase, bytes)): - _content = filter_parameters - else: - _json = self._serialize.body(filter_parameters, "RunFilterParameters") - - _request = build_query_by_pipeline_run_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - run_id=run_id, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ActivityRunsQueryResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_change_data_capture_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_change_data_capture_operations.py deleted file mode 100644 index 621629b8a967..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_change_data_capture_operations.py +++ /dev/null @@ -1,936 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_by_factory_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - factory_name: str, - change_data_capture_name: str, - subscription_id: str, - *, - if_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "changeDataCaptureName": _SERIALIZER.url( - "change_data_capture_name", - change_data_capture_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_match is not None: - _headers["If-Match"] = _SERIALIZER.header("if_match", if_match, "str") - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - factory_name: str, - change_data_capture_name: str, - subscription_id: str, - *, - if_none_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "changeDataCaptureName": _SERIALIZER.url( - "change_data_capture_name", - change_data_capture_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_none_match is not None: - _headers["If-None-Match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, factory_name: str, change_data_capture_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "changeDataCaptureName": _SERIALIZER.url( - "change_data_capture_name", - change_data_capture_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, factory_name: str, change_data_capture_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/start", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "changeDataCaptureName": _SERIALIZER.url( - "change_data_capture_name", - change_data_capture_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, factory_name: str, change_data_capture_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/stop", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "changeDataCaptureName": _SERIALIZER.url( - "change_data_capture_name", - change_data_capture_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_status_request( - resource_group_name: str, factory_name: str, change_data_capture_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/status", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "changeDataCaptureName": _SERIALIZER.url( - "change_data_capture_name", - change_data_capture_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ChangeDataCaptureOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`change_data_capture` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> ItemPaged["_models.ChangeDataCaptureResource"]: - """Lists all resources of type change data capture. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either ChangeDataCaptureResource or the result of - cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.ChangeDataCaptureResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ChangeDataCaptureListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ChangeDataCaptureListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - change_data_capture_name: str, - change_data_capture: _models.ChangeDataCaptureResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ChangeDataCaptureResource: - """Creates or updates a change data capture resource. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param change_data_capture_name: The change data capture name. Required. - :type change_data_capture_name: str - :param change_data_capture: Change data capture resource definition. Required. - :type change_data_capture: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource - :param if_match: ETag of the change data capture entity. Should only be specified for update, - for which it should match existing entity or can be * for unconditional update. Default value - is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ChangeDataCaptureResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - change_data_capture_name: str, - change_data_capture: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ChangeDataCaptureResource: - """Creates or updates a change data capture resource. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param change_data_capture_name: The change data capture name. Required. - :type change_data_capture_name: str - :param change_data_capture: Change data capture resource definition. Required. - :type change_data_capture: IO[bytes] - :param if_match: ETag of the change data capture entity. Should only be specified for update, - for which it should match existing entity or can be * for unconditional update. Default value - is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ChangeDataCaptureResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - change_data_capture_name: str, - change_data_capture: Union[_models.ChangeDataCaptureResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.ChangeDataCaptureResource: - """Creates or updates a change data capture resource. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param change_data_capture_name: The change data capture name. Required. - :type change_data_capture_name: str - :param change_data_capture: Change data capture resource definition. Is either a - ChangeDataCaptureResource type or a IO[bytes] type. Required. - :type change_data_capture: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource or - IO[bytes] - :param if_match: ETag of the change data capture entity. Should only be specified for update, - for which it should match existing entity or can be * for unconditional update. Default value - is None. - :type if_match: str - :return: ChangeDataCaptureResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ChangeDataCaptureResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(change_data_capture, (IOBase, bytes)): - _content = change_data_capture - else: - _json = self._serialize.body(change_data_capture, "ChangeDataCaptureResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - change_data_capture_name=change_data_capture_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ChangeDataCaptureResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get( - self, - resource_group_name: str, - factory_name: str, - change_data_capture_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> _models.ChangeDataCaptureResource: - """Gets a change data capture. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param change_data_capture_name: The change data capture name. Required. - :type change_data_capture_name: str - :param if_none_match: ETag of the change data capture entity. Should only be specified for get. - If the ETag matches the existing entity tag, or if * was provided, then no content will be - returned. Default value is None. - :type if_none_match: str - :return: ChangeDataCaptureResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ChangeDataCaptureResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - change_data_capture_name=change_data_capture_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ChangeDataCaptureResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, factory_name: str, change_data_capture_name: str, **kwargs: Any - ) -> None: - """Deletes a change data capture. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param change_data_capture_name: The change data capture name. Required. - :type change_data_capture_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - change_data_capture_name=change_data_capture_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def start( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, factory_name: str, change_data_capture_name: str, **kwargs: Any - ) -> None: - """Starts a change data capture. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param change_data_capture_name: The change data capture name. Required. - :type change_data_capture_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - change_data_capture_name=change_data_capture_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def stop( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, factory_name: str, change_data_capture_name: str, **kwargs: Any - ) -> None: - """Stops a change data capture. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param change_data_capture_name: The change data capture name. Required. - :type change_data_capture_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - change_data_capture_name=change_data_capture_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def status(self, resource_group_name: str, factory_name: str, change_data_capture_name: str, **kwargs: Any) -> str: - """Gets the current status for the change data capture resource. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param change_data_capture_name: The change data capture name. Required. - :type change_data_capture_name: str - :return: str or the result of cls(response) - :rtype: str - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[str] = kwargs.pop("cls", None) - - _request = build_status_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - change_data_capture_name=change_data_capture_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("str", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_credential_operations_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_credential_operations_operations.py deleted file mode 100644 index 828372c8f7e8..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_credential_operations_operations.py +++ /dev/null @@ -1,622 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_by_factory_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - factory_name: str, - credential_name: str, - subscription_id: str, - *, - if_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "credentialName": _SERIALIZER.url( - "credential_name", - credential_name, - "str", - max_length=127, - min_length=1, - pattern=r"^([_A-Za-z0-9]|([_A-Za-z0-9][-_A-Za-z0-9]{0,125}[_A-Za-z0-9]))$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_match is not None: - _headers["If-Match"] = _SERIALIZER.header("if_match", if_match, "str") - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - factory_name: str, - credential_name: str, - subscription_id: str, - *, - if_none_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "credentialName": _SERIALIZER.url( - "credential_name", - credential_name, - "str", - max_length=127, - min_length=1, - pattern=r"^([_A-Za-z0-9]|([_A-Za-z0-9][-_A-Za-z0-9]{0,125}[_A-Za-z0-9]))$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_none_match is not None: - _headers["If-None-Match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, factory_name: str, credential_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "credentialName": _SERIALIZER.url( - "credential_name", - credential_name, - "str", - max_length=127, - min_length=1, - pattern=r"^([_A-Za-z0-9]|([_A-Za-z0-9][-_A-Za-z0-9]{0,125}[_A-Za-z0-9]))$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class CredentialOperationsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`credential_operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> ItemPaged["_models.CredentialResource"]: - """List credentials. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either CredentialResource or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.CredentialResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.CredentialListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CredentialListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - credential_name: str, - credential: _models.CredentialResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CredentialResource: - """Creates or updates a credential. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param credential_name: Credential name. Required. - :type credential_name: str - :param credential: Credential resource definition. Required. - :type credential: ~azure.mgmt.datafactory.models.CredentialResource - :param if_match: ETag of the credential entity. Should only be specified for update, for which - it should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CredentialResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.CredentialResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - credential_name: str, - credential: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CredentialResource: - """Creates or updates a credential. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param credential_name: Credential name. Required. - :type credential_name: str - :param credential: Credential resource definition. Required. - :type credential: IO[bytes] - :param if_match: ETag of the credential entity. Should only be specified for update, for which - it should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CredentialResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.CredentialResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - credential_name: str, - credential: Union[_models.CredentialResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.CredentialResource: - """Creates or updates a credential. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param credential_name: Credential name. Required. - :type credential_name: str - :param credential: Credential resource definition. Is either a CredentialResource type or a - IO[bytes] type. Required. - :type credential: ~azure.mgmt.datafactory.models.CredentialResource or IO[bytes] - :param if_match: ETag of the credential entity. Should only be specified for update, for which - it should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :return: CredentialResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.CredentialResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CredentialResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(credential, (IOBase, bytes)): - _content = credential - else: - _json = self._serialize.body(credential, "CredentialResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - credential_name=credential_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CredentialResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get( - self, - resource_group_name: str, - factory_name: str, - credential_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> Optional[_models.CredentialResource]: - """Gets a credential. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param credential_name: Credential name. Required. - :type credential_name: str - :param if_none_match: ETag of the credential entity. Should only be specified for get. If the - ETag matches the existing entity tag, or if * was provided, then no content will be returned. - Default value is None. - :type if_none_match: str - :return: CredentialResource or None or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.CredentialResource or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Optional[_models.CredentialResource]] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - credential_name=credential_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 304]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("CredentialResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, factory_name: str, credential_name: str, **kwargs: Any - ) -> None: - """Deletes a credential. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param credential_name: Credential name. Required. - :type credential_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - credential_name=credential_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_data_flow_debug_session_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_data_flow_debug_session_operations.py deleted file mode 100644 index 72d37b54fa74..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_data_flow_debug_session_operations.py +++ /dev/null @@ -1,1002 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_create_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/createDataFlowDebugSession", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_query_by_factory_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryDataFlowDebugSessions", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_add_data_flow_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/addDataFlowToDebugSession", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/deleteDataFlowDebugSession", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_execute_command_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/executeDataFlowDebugCommand", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DataFlowDebugSessionOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`data_flow_debug_session` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - def _create_initial( - self, - resource_group_name: str, - factory_name: str, - request: Union[_models.CreateDataFlowDebugSessionRequest, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(request, (IOBase, bytes)): - _content = request - else: - _json = self._serialize.body(request, "CreateDataFlowDebugSessionRequest") - - _request = build_create_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["location"] = self._deserialize("str", response.headers.get("location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create( - self, - resource_group_name: str, - factory_name: str, - request: _models.CreateDataFlowDebugSessionRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CreateDataFlowDebugSessionResponse]: - """Creates a data flow debug session. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug session definition. Required. - :type request: ~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CreateDataFlowDebugSessionResponse or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create( - self, - resource_group_name: str, - factory_name: str, - request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CreateDataFlowDebugSessionResponse]: - """Creates a data flow debug session. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug session definition. Required. - :type request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CreateDataFlowDebugSessionResponse or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create( - self, - resource_group_name: str, - factory_name: str, - request: Union[_models.CreateDataFlowDebugSessionRequest, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CreateDataFlowDebugSessionResponse]: - """Creates a data flow debug session. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug session definition. Is either a - CreateDataFlowDebugSessionRequest type or a IO[bytes] type. Required. - :type request: ~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionRequest or IO[bytes] - :return: An instance of LROPoller that returns either CreateDataFlowDebugSessionResponse or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CreateDataFlowDebugSessionResponse] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - request=request, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CreateDataFlowDebugSessionResponse", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CreateDataFlowDebugSessionResponse].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CreateDataFlowDebugSessionResponse]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def query_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> ItemPaged["_models.DataFlowDebugSessionInfo"]: - """Query all active data flow debug sessions. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either DataFlowDebugSessionInfo or the result of - cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.DataFlowDebugSessionInfo] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.QueryDataFlowDebugSessionsResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_query_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("QueryDataFlowDebugSessionsResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def add_data_flow( - self, - resource_group_name: str, - factory_name: str, - request: _models.DataFlowDebugPackage, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.AddDataFlowToDebugSessionResponse: - """Add a data flow into debug session. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug session definition with debug content. Required. - :type request: ~azure.mgmt.datafactory.models.DataFlowDebugPackage - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: AddDataFlowToDebugSessionResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def add_data_flow( - self, - resource_group_name: str, - factory_name: str, - request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.AddDataFlowToDebugSessionResponse: - """Add a data flow into debug session. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug session definition with debug content. Required. - :type request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: AddDataFlowToDebugSessionResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def add_data_flow( - self, - resource_group_name: str, - factory_name: str, - request: Union[_models.DataFlowDebugPackage, IO[bytes]], - **kwargs: Any - ) -> _models.AddDataFlowToDebugSessionResponse: - """Add a data flow into debug session. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug session definition with debug content. Is either a - DataFlowDebugPackage type or a IO[bytes] type. Required. - :type request: ~azure.mgmt.datafactory.models.DataFlowDebugPackage or IO[bytes] - :return: AddDataFlowToDebugSessionResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AddDataFlowToDebugSessionResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(request, (IOBase, bytes)): - _content = request - else: - _json = self._serialize.body(request, "DataFlowDebugPackage") - - _request = build_add_data_flow_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AddDataFlowToDebugSessionResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def delete( - self, - resource_group_name: str, - factory_name: str, - request: _models.DeleteDataFlowDebugSessionRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> None: - """Deletes a data flow debug session. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug session definition for deletion. Required. - :type request: ~azure.mgmt.datafactory.models.DeleteDataFlowDebugSessionRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def delete( - self, - resource_group_name: str, - factory_name: str, - request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> None: - """Deletes a data flow debug session. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug session definition for deletion. Required. - :type request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - factory_name: str, - request: Union[_models.DeleteDataFlowDebugSessionRequest, IO[bytes]], - **kwargs: Any - ) -> None: - """Deletes a data flow debug session. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug session definition for deletion. Is either a - DeleteDataFlowDebugSessionRequest type or a IO[bytes] type. Required. - :type request: ~azure.mgmt.datafactory.models.DeleteDataFlowDebugSessionRequest or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(request, (IOBase, bytes)): - _content = request - else: - _json = self._serialize.body(request, "DeleteDataFlowDebugSessionRequest") - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - def _execute_command_initial( - self, - resource_group_name: str, - factory_name: str, - request: Union[_models.DataFlowDebugCommandRequest, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(request, (IOBase, bytes)): - _content = request - else: - _json = self._serialize.body(request, "DataFlowDebugCommandRequest") - - _request = build_execute_command_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["location"] = self._deserialize("str", response.headers.get("location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_execute_command( - self, - resource_group_name: str, - factory_name: str, - request: _models.DataFlowDebugCommandRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DataFlowDebugCommandResponse]: - """Execute a data flow debug command. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug command definition. Required. - :type request: ~azure.mgmt.datafactory.models.DataFlowDebugCommandRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DataFlowDebugCommandResponse or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.DataFlowDebugCommandResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_execute_command( - self, - resource_group_name: str, - factory_name: str, - request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DataFlowDebugCommandResponse]: - """Execute a data flow debug command. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug command definition. Required. - :type request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DataFlowDebugCommandResponse or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.DataFlowDebugCommandResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_execute_command( - self, - resource_group_name: str, - factory_name: str, - request: Union[_models.DataFlowDebugCommandRequest, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DataFlowDebugCommandResponse]: - """Execute a data flow debug command. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param request: Data flow debug command definition. Is either a DataFlowDebugCommandRequest - type or a IO[bytes] type. Required. - :type request: ~azure.mgmt.datafactory.models.DataFlowDebugCommandRequest or IO[bytes] - :return: An instance of LROPoller that returns either DataFlowDebugCommandResponse or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.DataFlowDebugCommandResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DataFlowDebugCommandResponse] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._execute_command_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - request=request, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DataFlowDebugCommandResponse", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DataFlowDebugCommandResponse].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DataFlowDebugCommandResponse]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_data_flows_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_data_flows_operations.py deleted file mode 100644 index 33b948d99cd4..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_data_flows_operations.py +++ /dev/null @@ -1,620 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_create_or_update_request( - resource_group_name: str, - factory_name: str, - data_flow_name: str, - subscription_id: str, - *, - if_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "dataFlowName": _SERIALIZER.url( - "data_flow_name", - data_flow_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_match is not None: - _headers["If-Match"] = _SERIALIZER.header("if_match", if_match, "str") - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - factory_name: str, - data_flow_name: str, - subscription_id: str, - *, - if_none_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "dataFlowName": _SERIALIZER.url( - "data_flow_name", - data_flow_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_none_match is not None: - _headers["If-None-Match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, factory_name: str, data_flow_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "dataFlowName": _SERIALIZER.url( - "data_flow_name", - data_flow_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_factory_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class DataFlowsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`data_flows` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - data_flow_name: str, - data_flow: _models.DataFlowResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DataFlowResource: - """Creates or updates a data flow. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param data_flow_name: The data flow name. Required. - :type data_flow_name: str - :param data_flow: Data flow resource definition. Required. - :type data_flow: ~azure.mgmt.datafactory.models.DataFlowResource - :param if_match: ETag of the data flow entity. Should only be specified for update, for which - it should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: DataFlowResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.DataFlowResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - data_flow_name: str, - data_flow: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DataFlowResource: - """Creates or updates a data flow. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param data_flow_name: The data flow name. Required. - :type data_flow_name: str - :param data_flow: Data flow resource definition. Required. - :type data_flow: IO[bytes] - :param if_match: ETag of the data flow entity. Should only be specified for update, for which - it should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: DataFlowResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.DataFlowResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - data_flow_name: str, - data_flow: Union[_models.DataFlowResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.DataFlowResource: - """Creates or updates a data flow. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param data_flow_name: The data flow name. Required. - :type data_flow_name: str - :param data_flow: Data flow resource definition. Is either a DataFlowResource type or a - IO[bytes] type. Required. - :type data_flow: ~azure.mgmt.datafactory.models.DataFlowResource or IO[bytes] - :param if_match: ETag of the data flow entity. Should only be specified for update, for which - it should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :return: DataFlowResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.DataFlowResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DataFlowResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(data_flow, (IOBase, bytes)): - _content = data_flow - else: - _json = self._serialize.body(data_flow, "DataFlowResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - data_flow_name=data_flow_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DataFlowResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get( - self, - resource_group_name: str, - factory_name: str, - data_flow_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> _models.DataFlowResource: - """Gets a data flow. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param data_flow_name: The data flow name. Required. - :type data_flow_name: str - :param if_none_match: ETag of the data flow entity. Should only be specified for get. If the - ETag matches the existing entity tag, or if * was provided, then no content will be returned. - Default value is None. - :type if_none_match: str - :return: DataFlowResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.DataFlowResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DataFlowResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - data_flow_name=data_flow_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DataFlowResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, factory_name: str, data_flow_name: str, **kwargs: Any - ) -> None: - """Deletes a data flow. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param data_flow_name: The data flow name. Required. - :type data_flow_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - data_flow_name=data_flow_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> ItemPaged["_models.DataFlowResource"]: - """Lists data flows. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either DataFlowResource or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.DataFlowResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DataFlowListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DataFlowListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_datasets_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_datasets_operations.py deleted file mode 100644 index 09d513599759..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_datasets_operations.py +++ /dev/null @@ -1,622 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_by_factory_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - factory_name: str, - dataset_name: str, - subscription_id: str, - *, - if_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "datasetName": _SERIALIZER.url( - "dataset_name", - dataset_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_match is not None: - _headers["If-Match"] = _SERIALIZER.header("if_match", if_match, "str") - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - factory_name: str, - dataset_name: str, - subscription_id: str, - *, - if_none_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "datasetName": _SERIALIZER.url( - "dataset_name", - dataset_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_none_match is not None: - _headers["If-None-Match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, factory_name: str, dataset_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "datasetName": _SERIALIZER.url( - "dataset_name", - dataset_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class DatasetsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`datasets` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> ItemPaged["_models.DatasetResource"]: - """Lists datasets. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either DatasetResource or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.DatasetResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatasetListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DatasetListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - dataset_name: str, - dataset: _models.DatasetResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DatasetResource: - """Creates or updates a dataset. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param dataset_name: The dataset name. Required. - :type dataset_name: str - :param dataset: Dataset resource definition. Required. - :type dataset: ~azure.mgmt.datafactory.models.DatasetResource - :param if_match: ETag of the dataset entity. Should only be specified for update, for which it - should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: DatasetResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.DatasetResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - dataset_name: str, - dataset: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DatasetResource: - """Creates or updates a dataset. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param dataset_name: The dataset name. Required. - :type dataset_name: str - :param dataset: Dataset resource definition. Required. - :type dataset: IO[bytes] - :param if_match: ETag of the dataset entity. Should only be specified for update, for which it - should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: DatasetResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.DatasetResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - dataset_name: str, - dataset: Union[_models.DatasetResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.DatasetResource: - """Creates or updates a dataset. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param dataset_name: The dataset name. Required. - :type dataset_name: str - :param dataset: Dataset resource definition. Is either a DatasetResource type or a IO[bytes] - type. Required. - :type dataset: ~azure.mgmt.datafactory.models.DatasetResource or IO[bytes] - :param if_match: ETag of the dataset entity. Should only be specified for update, for which it - should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :return: DatasetResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.DatasetResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DatasetResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dataset, (IOBase, bytes)): - _content = dataset - else: - _json = self._serialize.body(dataset, "DatasetResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - dataset_name=dataset_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DatasetResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get( - self, - resource_group_name: str, - factory_name: str, - dataset_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> Optional[_models.DatasetResource]: - """Gets a dataset. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param dataset_name: The dataset name. Required. - :type dataset_name: str - :param if_none_match: ETag of the dataset entity. Should only be specified for get. If the ETag - matches the existing entity tag, or if * was provided, then no content will be returned. - Default value is None. - :type if_none_match: str - :return: DatasetResource or None or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.DatasetResource or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Optional[_models.DatasetResource]] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - dataset_name=dataset_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 304]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("DatasetResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, factory_name: str, dataset_name: str, **kwargs: Any - ) -> None: - """Deletes a dataset. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param dataset_name: The dataset name. Required. - :type dataset_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - dataset_name=dataset_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_exposure_control_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_exposure_control_operations.py deleted file mode 100644 index d13b685f44e7..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_exposure_control_operations.py +++ /dev/null @@ -1,553 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_feature_value_request(location_id: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/getFeatureValue", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "locationId": _SERIALIZER.url("location_id", location_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_feature_value_by_factory_request( # pylint: disable=name-too-long - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getFeatureValue", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_query_feature_values_by_factory_request( # pylint: disable=name-too-long - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryFeaturesValue", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ExposureControlOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`exposure_control` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @overload - def get_feature_value( - self, - location_id: str, - exposure_control_request: _models.ExposureControlRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ExposureControlResponse: - """Get exposure control feature for specific location. - - :param location_id: The location identifier. Required. - :type location_id: str - :param exposure_control_request: The exposure control request. Required. - :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ExposureControlResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def get_feature_value( - self, - location_id: str, - exposure_control_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ExposureControlResponse: - """Get exposure control feature for specific location. - - :param location_id: The location identifier. Required. - :type location_id: str - :param exposure_control_request: The exposure control request. Required. - :type exposure_control_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ExposureControlResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def get_feature_value( - self, - location_id: str, - exposure_control_request: Union[_models.ExposureControlRequest, IO[bytes]], - **kwargs: Any - ) -> _models.ExposureControlResponse: - """Get exposure control feature for specific location. - - :param location_id: The location identifier. Required. - :type location_id: str - :param exposure_control_request: The exposure control request. Is either a - ExposureControlRequest type or a IO[bytes] type. Required. - :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest or - IO[bytes] - :return: ExposureControlResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ExposureControlResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(exposure_control_request, (IOBase, bytes)): - _content = exposure_control_request - else: - _json = self._serialize.body(exposure_control_request, "ExposureControlRequest") - - _request = build_get_feature_value_request( - location_id=location_id, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ExposureControlResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def get_feature_value_by_factory( - self, - resource_group_name: str, - factory_name: str, - exposure_control_request: _models.ExposureControlRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ExposureControlResponse: - """Get exposure control feature for specific factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param exposure_control_request: The exposure control request. Required. - :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ExposureControlResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def get_feature_value_by_factory( - self, - resource_group_name: str, - factory_name: str, - exposure_control_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ExposureControlResponse: - """Get exposure control feature for specific factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param exposure_control_request: The exposure control request. Required. - :type exposure_control_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ExposureControlResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def get_feature_value_by_factory( - self, - resource_group_name: str, - factory_name: str, - exposure_control_request: Union[_models.ExposureControlRequest, IO[bytes]], - **kwargs: Any - ) -> _models.ExposureControlResponse: - """Get exposure control feature for specific factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param exposure_control_request: The exposure control request. Is either a - ExposureControlRequest type or a IO[bytes] type. Required. - :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest or - IO[bytes] - :return: ExposureControlResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ExposureControlResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(exposure_control_request, (IOBase, bytes)): - _content = exposure_control_request - else: - _json = self._serialize.body(exposure_control_request, "ExposureControlRequest") - - _request = build_get_feature_value_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ExposureControlResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def query_feature_values_by_factory( - self, - resource_group_name: str, - factory_name: str, - exposure_control_batch_request: _models.ExposureControlBatchRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ExposureControlBatchResponse: - """Get list of exposure control features for specific factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param exposure_control_batch_request: The exposure control request for list of features. - Required. - :type exposure_control_batch_request: - ~azure.mgmt.datafactory.models.ExposureControlBatchRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ExposureControlBatchResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def query_feature_values_by_factory( - self, - resource_group_name: str, - factory_name: str, - exposure_control_batch_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ExposureControlBatchResponse: - """Get list of exposure control features for specific factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param exposure_control_batch_request: The exposure control request for list of features. - Required. - :type exposure_control_batch_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ExposureControlBatchResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def query_feature_values_by_factory( - self, - resource_group_name: str, - factory_name: str, - exposure_control_batch_request: Union[_models.ExposureControlBatchRequest, IO[bytes]], - **kwargs: Any - ) -> _models.ExposureControlBatchResponse: - """Get list of exposure control features for specific factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param exposure_control_batch_request: The exposure control request for list of features. Is - either a ExposureControlBatchRequest type or a IO[bytes] type. Required. - :type exposure_control_batch_request: - ~azure.mgmt.datafactory.models.ExposureControlBatchRequest or IO[bytes] - :return: ExposureControlBatchResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ExposureControlBatchResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(exposure_control_batch_request, (IOBase, bytes)): - _content = exposure_control_batch_request - else: - _json = self._serialize.body(exposure_control_batch_request, "ExposureControlBatchRequest") - - _request = build_query_feature_values_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ExposureControlBatchResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_factories_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_factories_operations.py deleted file mode 100644 index da4d483563f5..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_factories_operations.py +++ /dev/null @@ -1,1305 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/factories") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_configure_factory_repo_request(location_id: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/configureFactoryRepo", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "locationId": _SERIALIZER.url("location_id", location_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_resource_group_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, factory_name: str, subscription_id: str, *, if_match: Optional[str] = None, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_match is not None: - _headers["If-Match"] = _SERIALIZER.header("if_match", if_match, "str") - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - factory_name: str, - subscription_id: str, - *, - if_none_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_none_match is not None: - _headers["If-None-Match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_git_hub_access_token_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getGitHubAccessToken", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_data_plane_access_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getDataPlaneAccess", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class FactoriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`factories` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, **kwargs: Any) -> ItemPaged["_models.Factory"]: - """Lists factories under the specified subscription. - - :return: An iterator like instance of either Factory or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.Factory] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.FactoryListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("FactoryListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def configure_factory_repo( - self, - location_id: str, - factory_repo_update: _models.FactoryRepoUpdate, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Factory: - """Updates a factory's repo information. - - :param location_id: The location identifier. Required. - :type location_id: str - :param factory_repo_update: Update factory repo request definition. Required. - :type factory_repo_update: ~azure.mgmt.datafactory.models.FactoryRepoUpdate - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def configure_factory_repo( - self, location_id: str, factory_repo_update: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.Factory: - """Updates a factory's repo information. - - :param location_id: The location identifier. Required. - :type location_id: str - :param factory_repo_update: Update factory repo request definition. Required. - :type factory_repo_update: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def configure_factory_repo( - self, location_id: str, factory_repo_update: Union[_models.FactoryRepoUpdate, IO[bytes]], **kwargs: Any - ) -> _models.Factory: - """Updates a factory's repo information. - - :param location_id: The location identifier. Required. - :type location_id: str - :param factory_repo_update: Update factory repo request definition. Is either a - FactoryRepoUpdate type or a IO[bytes] type. Required. - :type factory_repo_update: ~azure.mgmt.datafactory.models.FactoryRepoUpdate or IO[bytes] - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Factory] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(factory_repo_update, (IOBase, bytes)): - _content = factory_repo_update - else: - _json = self._serialize.body(factory_repo_update, "FactoryRepoUpdate") - - _request = build_configure_factory_repo_request( - location_id=location_id, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Factory", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Factory"]: - """Lists factories. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :return: An iterator like instance of either Factory or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.Factory] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.FactoryListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("FactoryListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - factory: _models.Factory, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Factory: - """Creates or updates a factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param factory: Factory resource definition. Required. - :type factory: ~azure.mgmt.datafactory.models.Factory - :param if_match: ETag of the factory entity. Should only be specified for update, for which it - should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - factory: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Factory: - """Creates or updates a factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param factory: Factory resource definition. Required. - :type factory: IO[bytes] - :param if_match: ETag of the factory entity. Should only be specified for update, for which it - should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - factory: Union[_models.Factory, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.Factory: - """Creates or updates a factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param factory: Factory resource definition. Is either a Factory type or a IO[bytes] type. - Required. - :type factory: ~azure.mgmt.datafactory.models.Factory or IO[bytes] - :param if_match: ETag of the factory entity. Should only be specified for update, for which it - should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Factory] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(factory, (IOBase, bytes)): - _content = factory - else: - _json = self._serialize.body(factory, "Factory") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Factory", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def update( - self, - resource_group_name: str, - factory_name: str, - factory_update_parameters: _models.FactoryUpdateParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Factory: - """Updates a factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param factory_update_parameters: The parameters for updating a factory. Required. - :type factory_update_parameters: ~azure.mgmt.datafactory.models.FactoryUpdateParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def update( - self, - resource_group_name: str, - factory_name: str, - factory_update_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Factory: - """Updates a factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param factory_update_parameters: The parameters for updating a factory. Required. - :type factory_update_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def update( - self, - resource_group_name: str, - factory_name: str, - factory_update_parameters: Union[_models.FactoryUpdateParameters, IO[bytes]], - **kwargs: Any - ) -> _models.Factory: - """Updates a factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param factory_update_parameters: The parameters for updating a factory. Is either a - FactoryUpdateParameters type or a IO[bytes] type. Required. - :type factory_update_parameters: ~azure.mgmt.datafactory.models.FactoryUpdateParameters or - IO[bytes] - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Factory] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(factory_update_parameters, (IOBase, bytes)): - _content = factory_update_parameters - else: - _json = self._serialize.body(factory_update_parameters, "FactoryUpdateParameters") - - _request = build_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Factory", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get( - self, resource_group_name: str, factory_name: str, if_none_match: Optional[str] = None, **kwargs: Any - ) -> Optional[_models.Factory]: - """Gets a factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param if_none_match: ETag of the factory entity. Should only be specified for get. If the ETag - matches the existing entity tag, or if * was provided, then no content will be returned. - Default value is None. - :type if_none_match: str - :return: Factory or None or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Optional[_models.Factory]] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 304]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("Factory", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> None: - """Deletes a factory. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def get_git_hub_access_token( - self, - resource_group_name: str, - factory_name: str, - git_hub_access_token_request: _models.GitHubAccessTokenRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.GitHubAccessTokenResponse: - """Get GitHub Access Token. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param git_hub_access_token_request: Get GitHub access token request definition. Required. - :type git_hub_access_token_request: ~azure.mgmt.datafactory.models.GitHubAccessTokenRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: GitHubAccessTokenResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def get_git_hub_access_token( - self, - resource_group_name: str, - factory_name: str, - git_hub_access_token_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.GitHubAccessTokenResponse: - """Get GitHub Access Token. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param git_hub_access_token_request: Get GitHub access token request definition. Required. - :type git_hub_access_token_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: GitHubAccessTokenResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def get_git_hub_access_token( - self, - resource_group_name: str, - factory_name: str, - git_hub_access_token_request: Union[_models.GitHubAccessTokenRequest, IO[bytes]], - **kwargs: Any - ) -> _models.GitHubAccessTokenResponse: - """Get GitHub Access Token. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param git_hub_access_token_request: Get GitHub access token request definition. Is either a - GitHubAccessTokenRequest type or a IO[bytes] type. Required. - :type git_hub_access_token_request: ~azure.mgmt.datafactory.models.GitHubAccessTokenRequest or - IO[bytes] - :return: GitHubAccessTokenResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GitHubAccessTokenResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(git_hub_access_token_request, (IOBase, bytes)): - _content = git_hub_access_token_request - else: - _json = self._serialize.body(git_hub_access_token_request, "GitHubAccessTokenRequest") - - _request = build_get_git_hub_access_token_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GitHubAccessTokenResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def get_data_plane_access( - self, - resource_group_name: str, - factory_name: str, - policy: _models.UserAccessPolicy, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.AccessPolicyResponse: - """Get Data Plane access. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param policy: Data Plane user access policy definition. Required. - :type policy: ~azure.mgmt.datafactory.models.UserAccessPolicy - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: AccessPolicyResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def get_data_plane_access( - self, - resource_group_name: str, - factory_name: str, - policy: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.AccessPolicyResponse: - """Get Data Plane access. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param policy: Data Plane user access policy definition. Required. - :type policy: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: AccessPolicyResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def get_data_plane_access( - self, - resource_group_name: str, - factory_name: str, - policy: Union[_models.UserAccessPolicy, IO[bytes]], - **kwargs: Any - ) -> _models.AccessPolicyResponse: - """Get Data Plane access. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param policy: Data Plane user access policy definition. Is either a UserAccessPolicy type or a - IO[bytes] type. Required. - :type policy: ~azure.mgmt.datafactory.models.UserAccessPolicy or IO[bytes] - :return: AccessPolicyResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AccessPolicyResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(policy, (IOBase, bytes)): - _content = policy - else: - _json = self._serialize.body(policy, "UserAccessPolicy") - - _request = build_get_data_plane_access_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AccessPolicyResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_global_parameters_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_global_parameters_operations.py deleted file mode 100644 index 3baa20ff0b91..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_global_parameters_operations.py +++ /dev/null @@ -1,582 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_by_factory_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, factory_name: str, global_parameter_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "globalParameterName": _SERIALIZER.url( - "global_parameter_name", - global_parameter_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, factory_name: str, global_parameter_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "globalParameterName": _SERIALIZER.url( - "global_parameter_name", - global_parameter_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, factory_name: str, global_parameter_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "globalParameterName": _SERIALIZER.url( - "global_parameter_name", - global_parameter_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class GlobalParametersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`global_parameters` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> ItemPaged["_models.GlobalParameterResource"]: - """Lists Global parameters. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either GlobalParameterResource or the result of - cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.GlobalParameterResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.GlobalParameterListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GlobalParameterListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, factory_name: str, global_parameter_name: str, **kwargs: Any - ) -> _models.GlobalParameterResource: - """Gets a Global parameter. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param global_parameter_name: The global parameter name. Required. - :type global_parameter_name: str - :return: GlobalParameterResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.GlobalParameterResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - global_parameter_name=global_parameter_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GlobalParameterResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - global_parameter_name: str, - default: _models.GlobalParameterResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.GlobalParameterResource: - """Creates or updates a Global parameter. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param global_parameter_name: The global parameter name. Required. - :type global_parameter_name: str - :param default: Global parameter resource definition. Required. - :type default: ~azure.mgmt.datafactory.models.GlobalParameterResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: GlobalParameterResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - global_parameter_name: str, - default: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.GlobalParameterResource: - """Creates or updates a Global parameter. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param global_parameter_name: The global parameter name. Required. - :type global_parameter_name: str - :param default: Global parameter resource definition. Required. - :type default: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: GlobalParameterResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - global_parameter_name: str, - default: Union[_models.GlobalParameterResource, IO[bytes]], - **kwargs: Any - ) -> _models.GlobalParameterResource: - """Creates or updates a Global parameter. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param global_parameter_name: The global parameter name. Required. - :type global_parameter_name: str - :param default: Global parameter resource definition. Is either a GlobalParameterResource type - or a IO[bytes] type. Required. - :type default: ~azure.mgmt.datafactory.models.GlobalParameterResource or IO[bytes] - :return: GlobalParameterResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GlobalParameterResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(default, (IOBase, bytes)): - _content = default - else: - _json = self._serialize.body(default, "GlobalParameterResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - global_parameter_name=global_parameter_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GlobalParameterResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, factory_name: str, global_parameter_name: str, **kwargs: Any - ) -> None: - """Deletes a Global parameter. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param global_parameter_name: The global parameter name. Required. - :type global_parameter_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - global_parameter_name=global_parameter_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtime_nodes_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtime_nodes_operations.py deleted file mode 100644 index c6cb94924047..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtime_nodes_operations.py +++ /dev/null @@ -1,620 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - node_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "nodeName": _SERIALIZER.url( - "node_name", node_name, "str", max_length=150, min_length=1, pattern=r"^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - node_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "nodeName": _SERIALIZER.url( - "node_name", node_name, "str", max_length=150, min_length=1, pattern=r"^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - node_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "nodeName": _SERIALIZER.url( - "node_name", node_name, "str", max_length=150, min_length=1, pattern=r"^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_ip_address_request( - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - node_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "nodeName": _SERIALIZER.url( - "node_name", node_name, "str", max_length=150, min_length=1, pattern=r"^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class IntegrationRuntimeNodesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`integration_runtime_nodes` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, node_name: str, **kwargs: Any - ) -> _models.SelfHostedIntegrationRuntimeNode: - """Gets a self-hosted integration runtime node. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param node_name: The integration runtime node name. Required. - :type node_name: str - :return: SelfHostedIntegrationRuntimeNode or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SelfHostedIntegrationRuntimeNode] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - node_name=node_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SelfHostedIntegrationRuntimeNode", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, node_name: str, **kwargs: Any - ) -> None: - """Deletes a self-hosted integration runtime node. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param node_name: The integration runtime node name. Required. - :type node_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - node_name=node_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def update( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - node_name: str, - update_integration_runtime_node_request: _models.UpdateIntegrationRuntimeNodeRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.SelfHostedIntegrationRuntimeNode: - """Updates a self-hosted integration runtime node. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param node_name: The integration runtime node name. Required. - :type node_name: str - :param update_integration_runtime_node_request: The parameters for updating an integration - runtime node. Required. - :type update_integration_runtime_node_request: - ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeNodeRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: SelfHostedIntegrationRuntimeNode or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def update( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - node_name: str, - update_integration_runtime_node_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.SelfHostedIntegrationRuntimeNode: - """Updates a self-hosted integration runtime node. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param node_name: The integration runtime node name. Required. - :type node_name: str - :param update_integration_runtime_node_request: The parameters for updating an integration - runtime node. Required. - :type update_integration_runtime_node_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: SelfHostedIntegrationRuntimeNode or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def update( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - node_name: str, - update_integration_runtime_node_request: Union[_models.UpdateIntegrationRuntimeNodeRequest, IO[bytes]], - **kwargs: Any - ) -> _models.SelfHostedIntegrationRuntimeNode: - """Updates a self-hosted integration runtime node. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param node_name: The integration runtime node name. Required. - :type node_name: str - :param update_integration_runtime_node_request: The parameters for updating an integration - runtime node. Is either a UpdateIntegrationRuntimeNodeRequest type or a IO[bytes] type. - Required. - :type update_integration_runtime_node_request: - ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeNodeRequest or IO[bytes] - :return: SelfHostedIntegrationRuntimeNode or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SelfHostedIntegrationRuntimeNode] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(update_integration_runtime_node_request, (IOBase, bytes)): - _content = update_integration_runtime_node_request - else: - _json = self._serialize.body(update_integration_runtime_node_request, "UpdateIntegrationRuntimeNodeRequest") - - _request = build_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - node_name=node_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SelfHostedIntegrationRuntimeNode", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_ip_address( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, node_name: str, **kwargs: Any - ) -> _models.IntegrationRuntimeNodeIpAddress: - """Get the IP address of self-hosted integration runtime node. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param node_name: The integration runtime node name. Required. - :type node_name: str - :return: IntegrationRuntimeNodeIpAddress or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeNodeIpAddress - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeNodeIpAddress] = kwargs.pop("cls", None) - - _request = build_get_ip_address_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - node_name=node_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeNodeIpAddress", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtime_object_metadata_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtime_object_metadata_operations.py deleted file mode 100644 index 76a3061f5f99..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtime_object_metadata_operations.py +++ /dev/null @@ -1,423 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_refresh_request( - resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/refreshObjectMetadata", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getObjectMetadata", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class IntegrationRuntimeObjectMetadataOperations: # pylint: disable=name-too-long - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`integration_runtime_object_metadata` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - def _refresh_initial( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_refresh_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_refresh( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> LROPoller[_models.SsisObjectMetadataStatusResponse]: - """Refresh a SSIS integration runtime object metadata. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: An instance of LROPoller that returns either SsisObjectMetadataStatusResponse or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.SsisObjectMetadataStatusResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SsisObjectMetadataStatusResponse] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._refresh_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("SsisObjectMetadataStatusResponse", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.SsisObjectMetadataStatusResponse].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.SsisObjectMetadataStatusResponse]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - def get( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - get_metadata_request: Optional[_models.GetSsisObjectMetadataRequest] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.SsisObjectMetadataListResponse: - """Get a SSIS integration runtime object metadata by specified path. The return is pageable - metadata list. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param get_metadata_request: The parameters for getting a SSIS object metadata. Default value - is None. - :type get_metadata_request: ~azure.mgmt.datafactory.models.GetSsisObjectMetadataRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: SsisObjectMetadataListResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def get( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - get_metadata_request: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.SsisObjectMetadataListResponse: - """Get a SSIS integration runtime object metadata by specified path. The return is pageable - metadata list. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param get_metadata_request: The parameters for getting a SSIS object metadata. Default value - is None. - :type get_metadata_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: SsisObjectMetadataListResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def get( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - get_metadata_request: Optional[Union[_models.GetSsisObjectMetadataRequest, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.SsisObjectMetadataListResponse: - """Get a SSIS integration runtime object metadata by specified path. The return is pageable - metadata list. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param get_metadata_request: The parameters for getting a SSIS object metadata. Is either a - GetSsisObjectMetadataRequest type or a IO[bytes] type. Default value is None. - :type get_metadata_request: ~azure.mgmt.datafactory.models.GetSsisObjectMetadataRequest or - IO[bytes] - :return: SsisObjectMetadataListResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if get_metadata_request else None - cls: ClsType[_models.SsisObjectMetadataListResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if get_metadata_request else None - _json = None - _content = None - if isinstance(get_metadata_request, (IOBase, bytes)): - _content = get_metadata_request - else: - if get_metadata_request is not None: - _json = self._serialize.body(get_metadata_request, "GetSsisObjectMetadataRequest") - else: - _json = None - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SsisObjectMetadataListResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtime_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtime_operations.py deleted file mode 100644 index 1630a03a5f5e..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtime_operations.py +++ /dev/null @@ -1,522 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_enable_interactive_query_request( - resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/enableInteractiveQuery", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_interactive_query_request( - resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/disableInteractiveQuery", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class IntegrationRuntimeOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`integration_runtime` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - def _enable_interactive_query_initial( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - enable_interactive_query_request: Union[_models.EnableInteractiveQueryRequest, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(enable_interactive_query_request, (IOBase, bytes)): - _content = enable_interactive_query_request - else: - _json = self._serialize.body(enable_interactive_query_request, "EnableInteractiveQueryRequest") - - _request = build_enable_interactive_query_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - response_headers["location"] = self._deserialize("str", response.headers.get("location")) - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_enable_interactive_query( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - enable_interactive_query_request: _models.EnableInteractiveQueryRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.IntegrationRuntimeResource]: - """Enable interactive authoring of Managed Virtual Network integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param enable_interactive_query_request: The enable interactive authoring integration runtime - properties. Required. - :type enable_interactive_query_request: - ~azure.mgmt.datafactory.models.EnableInteractiveQueryRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either IntegrationRuntimeResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_enable_interactive_query( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - enable_interactive_query_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.IntegrationRuntimeResource]: - """Enable interactive authoring of Managed Virtual Network integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param enable_interactive_query_request: The enable interactive authoring integration runtime - properties. Required. - :type enable_interactive_query_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either IntegrationRuntimeResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_enable_interactive_query( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - enable_interactive_query_request: Union[_models.EnableInteractiveQueryRequest, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.IntegrationRuntimeResource]: - """Enable interactive authoring of Managed Virtual Network integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param enable_interactive_query_request: The enable interactive authoring integration runtime - properties. Is either a EnableInteractiveQueryRequest type or a IO[bytes] type. Required. - :type enable_interactive_query_request: - ~azure.mgmt.datafactory.models.EnableInteractiveQueryRequest or IO[bytes] - :return: An instance of LROPoller that returns either IntegrationRuntimeResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_interactive_query_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - enable_interactive_query_request=enable_interactive_query_request, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["location"] = self._deserialize("str", response.headers.get("location")) - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = self._deserialize("IntegrationRuntimeResource", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.IntegrationRuntimeResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.IntegrationRuntimeResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _disable_interactive_query_initial( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_disable_interactive_query_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - response_headers["location"] = self._deserialize("str", response.headers.get("location")) - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_disable_interactive_query( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> LROPoller[_models.IntegrationRuntimeResource]: - """Disable interactive authoring of Managed Virtual Network integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: An instance of LROPoller that returns either IntegrationRuntimeResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_interactive_query_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["location"] = self._deserialize("str", response.headers.get("location")) - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = self._deserialize("IntegrationRuntimeResource", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.IntegrationRuntimeResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.IntegrationRuntimeResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtimes_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtimes_operations.py deleted file mode 100644 index 652c4f478323..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtimes_operations.py +++ /dev/null @@ -1,2469 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_by_factory_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - subscription_id: str, - *, - if_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_match is not None: - _headers["If-Match"] = _SERIALIZER.header("if_match", if_match, "str") - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - subscription_id: str, - *, - if_none_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_none_match is not None: - _headers["If-None-Match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_status_request( - resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getStatus", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_outbound_network_dependencies_endpoints_request( # pylint: disable=name-too-long - resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/outboundNetworkDependenciesEndpoints", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_connection_info_request( - resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_auth_key_request( - resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_auth_keys_request( - resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/start", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/stop", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_sync_credentials_request( - resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_monitoring_data_request( - resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/monitoringData", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_upgrade_request( - resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/upgrade", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_remove_links_request( - resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/removeLinks", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_linked_integration_runtime_request( # pylint: disable=name-too-long - resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/linkedIntegrationRuntime", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "integrationRuntimeName": _SERIALIZER.url( - "integration_runtime_name", - integration_runtime_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class IntegrationRuntimesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`integration_runtimes` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> ItemPaged["_models.IntegrationRuntimeResource"]: - """Lists integration runtimes. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either IntegrationRuntimeResource or the result of - cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("IntegrationRuntimeListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - integration_runtime: _models.IntegrationRuntimeResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.IntegrationRuntimeResource: - """Creates or updates an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param integration_runtime: Integration runtime resource definition. Required. - :type integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource - :param if_match: ETag of the integration runtime entity. Should only be specified for update, - for which it should match existing entity or can be * for unconditional update. Default value - is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: IntegrationRuntimeResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - integration_runtime: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.IntegrationRuntimeResource: - """Creates or updates an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param integration_runtime: Integration runtime resource definition. Required. - :type integration_runtime: IO[bytes] - :param if_match: ETag of the integration runtime entity. Should only be specified for update, - for which it should match existing entity or can be * for unconditional update. Default value - is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: IntegrationRuntimeResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - integration_runtime: Union[_models.IntegrationRuntimeResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.IntegrationRuntimeResource: - """Creates or updates an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param integration_runtime: Integration runtime resource definition. Is either a - IntegrationRuntimeResource type or a IO[bytes] type. Required. - :type integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource or - IO[bytes] - :param if_match: ETag of the integration runtime entity. Should only be specified for update, - for which it should match existing entity or can be * for unconditional update. Default value - is None. - :type if_match: str - :return: IntegrationRuntimeResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(integration_runtime, (IOBase, bytes)): - _content = integration_runtime - else: - _json = self._serialize.body(integration_runtime, "IntegrationRuntimeResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> Optional[_models.IntegrationRuntimeResource]: - """Gets an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param if_none_match: ETag of the integration runtime entity. Should only be specified for get. - If the ETag matches the existing entity tag, or if * was provided, then no content will be - returned. Default value is None. - :type if_none_match: str - :return: IntegrationRuntimeResource or None or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Optional[_models.IntegrationRuntimeResource]] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 304]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("IntegrationRuntimeResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def update( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - update_integration_runtime_request: _models.UpdateIntegrationRuntimeRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.IntegrationRuntimeResource: - """Updates an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param update_integration_runtime_request: The parameters for updating an integration runtime. - Required. - :type update_integration_runtime_request: - ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: IntegrationRuntimeResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def update( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - update_integration_runtime_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.IntegrationRuntimeResource: - """Updates an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param update_integration_runtime_request: The parameters for updating an integration runtime. - Required. - :type update_integration_runtime_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: IntegrationRuntimeResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def update( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - update_integration_runtime_request: Union[_models.UpdateIntegrationRuntimeRequest, IO[bytes]], - **kwargs: Any - ) -> _models.IntegrationRuntimeResource: - """Updates an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param update_integration_runtime_request: The parameters for updating an integration runtime. - Is either a UpdateIntegrationRuntimeRequest type or a IO[bytes] type. Required. - :type update_integration_runtime_request: - ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeRequest or IO[bytes] - :return: IntegrationRuntimeResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(update_integration_runtime_request, (IOBase, bytes)): - _content = update_integration_runtime_request - else: - _json = self._serialize.body(update_integration_runtime_request, "UpdateIntegrationRuntimeRequest") - - _request = build_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> None: - """Deletes an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_status( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> _models.IntegrationRuntimeStatusResponse: - """Gets detailed status information for an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: IntegrationRuntimeStatusResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeStatusResponse] = kwargs.pop("cls", None) - - _request = build_get_status_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeStatusResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_outbound_network_dependencies_endpoints( # pylint: disable=name-too-long - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> _models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse: - """Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse or the result of - cls(response) - :rtype: - ~azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse] = kwargs.pop("cls", None) - - _request = build_list_outbound_network_dependencies_endpoints_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize( - "IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse", pipeline_response.http_response - ) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_connection_info( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> _models.IntegrationRuntimeConnectionInfo: - """Gets the on-premises integration runtime connection information for encrypting the on-premises - data source credentials. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: IntegrationRuntimeConnectionInfo or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeConnectionInfo - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeConnectionInfo] = kwargs.pop("cls", None) - - _request = build_get_connection_info_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeConnectionInfo", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_auth_key( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - regenerate_key_parameters: _models.IntegrationRuntimeRegenerateKeyParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.IntegrationRuntimeAuthKeys: - """Regenerates the authentication key for an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param regenerate_key_parameters: The parameters for regenerating integration runtime - authentication key. Required. - :type regenerate_key_parameters: - ~azure.mgmt.datafactory.models.IntegrationRuntimeRegenerateKeyParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: IntegrationRuntimeAuthKeys or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_auth_key( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - regenerate_key_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.IntegrationRuntimeAuthKeys: - """Regenerates the authentication key for an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param regenerate_key_parameters: The parameters for regenerating integration runtime - authentication key. Required. - :type regenerate_key_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: IntegrationRuntimeAuthKeys or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_auth_key( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - regenerate_key_parameters: Union[_models.IntegrationRuntimeRegenerateKeyParameters, IO[bytes]], - **kwargs: Any - ) -> _models.IntegrationRuntimeAuthKeys: - """Regenerates the authentication key for an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param regenerate_key_parameters: The parameters for regenerating integration runtime - authentication key. Is either a IntegrationRuntimeRegenerateKeyParameters type or a IO[bytes] - type. Required. - :type regenerate_key_parameters: - ~azure.mgmt.datafactory.models.IntegrationRuntimeRegenerateKeyParameters or IO[bytes] - :return: IntegrationRuntimeAuthKeys or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.IntegrationRuntimeAuthKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_key_parameters, (IOBase, bytes)): - _content = regenerate_key_parameters - else: - _json = self._serialize.body(regenerate_key_parameters, "IntegrationRuntimeRegenerateKeyParameters") - - _request = build_regenerate_auth_key_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeAuthKeys", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_auth_keys( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> _models.IntegrationRuntimeAuthKeys: - """Retrieves the authentication keys for an integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: IntegrationRuntimeAuthKeys or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeAuthKeys] = kwargs.pop("cls", None) - - _request = build_list_auth_keys_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeAuthKeys", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _start_initial( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> LROPoller[_models.IntegrationRuntimeStatusResponse]: - """Starts a ManagedReserved type integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: An instance of LROPoller that returns either IntegrationRuntimeStatusResponse or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeStatusResponse] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("IntegrationRuntimeStatusResponse", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.IntegrationRuntimeStatusResponse].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.IntegrationRuntimeStatusResponse]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _stop_initial( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stops a ManagedReserved type integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def sync_credentials( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> None: - """Force the integration runtime to synchronize credentials across integration runtime nodes, and - this will override the credentials across all worker nodes with those available on the - dispatcher node. If you already have the latest credential backup file, you should manually - import it (preferred) on any self-hosted integration runtime node than using this API directly. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_sync_credentials_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_monitoring_data( - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> _models.IntegrationRuntimeMonitoringData: - """Get the integration runtime monitoring data, which includes the monitor data for all the nodes - under this integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: IntegrationRuntimeMonitoringData or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeMonitoringData - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeMonitoringData] = kwargs.pop("cls", None) - - _request = build_get_monitoring_data_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeMonitoringData", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def upgrade( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any - ) -> None: - """Upgrade self-hosted integration runtime to latest version if availability. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_upgrade_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def remove_links( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - linked_integration_runtime_request: _models.LinkedIntegrationRuntimeRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> None: - """Remove all linked integration runtimes under specific data factory in a self-hosted integration - runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param linked_integration_runtime_request: The data factory name for the linked integration - runtime. Required. - :type linked_integration_runtime_request: - ~azure.mgmt.datafactory.models.LinkedIntegrationRuntimeRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def remove_links( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - linked_integration_runtime_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> None: - """Remove all linked integration runtimes under specific data factory in a self-hosted integration - runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param linked_integration_runtime_request: The data factory name for the linked integration - runtime. Required. - :type linked_integration_runtime_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def remove_links( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - linked_integration_runtime_request: Union[_models.LinkedIntegrationRuntimeRequest, IO[bytes]], - **kwargs: Any - ) -> None: - """Remove all linked integration runtimes under specific data factory in a self-hosted integration - runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param linked_integration_runtime_request: The data factory name for the linked integration - runtime. Is either a LinkedIntegrationRuntimeRequest type or a IO[bytes] type. Required. - :type linked_integration_runtime_request: - ~azure.mgmt.datafactory.models.LinkedIntegrationRuntimeRequest or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(linked_integration_runtime_request, (IOBase, bytes)): - _content = linked_integration_runtime_request - else: - _json = self._serialize.body(linked_integration_runtime_request, "LinkedIntegrationRuntimeRequest") - - _request = build_remove_links_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def create_linked_integration_runtime( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - create_linked_integration_runtime_request: _models.CreateLinkedIntegrationRuntimeRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.IntegrationRuntimeStatusResponse: - """Create a linked integration runtime entry in a shared integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param create_linked_integration_runtime_request: The linked integration runtime properties. - Required. - :type create_linked_integration_runtime_request: - ~azure.mgmt.datafactory.models.CreateLinkedIntegrationRuntimeRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: IntegrationRuntimeStatusResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_linked_integration_runtime( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - create_linked_integration_runtime_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.IntegrationRuntimeStatusResponse: - """Create a linked integration runtime entry in a shared integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param create_linked_integration_runtime_request: The linked integration runtime properties. - Required. - :type create_linked_integration_runtime_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: IntegrationRuntimeStatusResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_linked_integration_runtime( - self, - resource_group_name: str, - factory_name: str, - integration_runtime_name: str, - create_linked_integration_runtime_request: Union[_models.CreateLinkedIntegrationRuntimeRequest, IO[bytes]], - **kwargs: Any - ) -> _models.IntegrationRuntimeStatusResponse: - """Create a linked integration runtime entry in a shared integration runtime. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param integration_runtime_name: The integration runtime name. Required. - :type integration_runtime_name: str - :param create_linked_integration_runtime_request: The linked integration runtime properties. Is - either a CreateLinkedIntegrationRuntimeRequest type or a IO[bytes] type. Required. - :type create_linked_integration_runtime_request: - ~azure.mgmt.datafactory.models.CreateLinkedIntegrationRuntimeRequest or IO[bytes] - :return: IntegrationRuntimeStatusResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.IntegrationRuntimeStatusResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(create_linked_integration_runtime_request, (IOBase, bytes)): - _content = create_linked_integration_runtime_request - else: - _json = self._serialize.body( - create_linked_integration_runtime_request, "CreateLinkedIntegrationRuntimeRequest" - ) - - _request = build_create_linked_integration_runtime_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - integration_runtime_name=integration_runtime_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeStatusResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_linked_services_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_linked_services_operations.py deleted file mode 100644 index 07b99e6e7503..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_linked_services_operations.py +++ /dev/null @@ -1,626 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_by_factory_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - factory_name: str, - linked_service_name: str, - subscription_id: str, - *, - if_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "linkedServiceName": _SERIALIZER.url( - "linked_service_name", - linked_service_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_match is not None: - _headers["If-Match"] = _SERIALIZER.header("if_match", if_match, "str") - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - factory_name: str, - linked_service_name: str, - subscription_id: str, - *, - if_none_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "linkedServiceName": _SERIALIZER.url( - "linked_service_name", - linked_service_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_none_match is not None: - _headers["If-None-Match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, factory_name: str, linked_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "linkedServiceName": _SERIALIZER.url( - "linked_service_name", - linked_service_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class LinkedServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`linked_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> ItemPaged["_models.LinkedServiceResource"]: - """Lists linked services. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either LinkedServiceResource or the result of - cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.LinkedServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.LinkedServiceListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("LinkedServiceListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - linked_service_name: str, - linked_service: _models.LinkedServiceResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.LinkedServiceResource: - """Creates or updates a linked service. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param linked_service_name: The linked service name. Required. - :type linked_service_name: str - :param linked_service: Linked service resource definition. Required. - :type linked_service: ~azure.mgmt.datafactory.models.LinkedServiceResource - :param if_match: ETag of the linkedService entity. Should only be specified for update, for - which it should match existing entity or can be * for unconditional update. Default value is - None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: LinkedServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - linked_service_name: str, - linked_service: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.LinkedServiceResource: - """Creates or updates a linked service. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param linked_service_name: The linked service name. Required. - :type linked_service_name: str - :param linked_service: Linked service resource definition. Required. - :type linked_service: IO[bytes] - :param if_match: ETag of the linkedService entity. Should only be specified for update, for - which it should match existing entity or can be * for unconditional update. Default value is - None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: LinkedServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - linked_service_name: str, - linked_service: Union[_models.LinkedServiceResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.LinkedServiceResource: - """Creates or updates a linked service. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param linked_service_name: The linked service name. Required. - :type linked_service_name: str - :param linked_service: Linked service resource definition. Is either a LinkedServiceResource - type or a IO[bytes] type. Required. - :type linked_service: ~azure.mgmt.datafactory.models.LinkedServiceResource or IO[bytes] - :param if_match: ETag of the linkedService entity. Should only be specified for update, for - which it should match existing entity or can be * for unconditional update. Default value is - None. - :type if_match: str - :return: LinkedServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.LinkedServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(linked_service, (IOBase, bytes)): - _content = linked_service - else: - _json = self._serialize.body(linked_service, "LinkedServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - linked_service_name=linked_service_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("LinkedServiceResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get( - self, - resource_group_name: str, - factory_name: str, - linked_service_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> Optional[_models.LinkedServiceResource]: - """Gets a linked service. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param linked_service_name: The linked service name. Required. - :type linked_service_name: str - :param if_none_match: ETag of the linked service entity. Should only be specified for get. If - the ETag matches the existing entity tag, or if * was provided, then no content will be - returned. Default value is None. - :type if_none_match: str - :return: LinkedServiceResource or None or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Optional[_models.LinkedServiceResource]] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - linked_service_name=linked_service_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 304]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LinkedServiceResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, factory_name: str, linked_service_name: str, **kwargs: Any - ) -> None: - """Deletes a linked service. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param linked_service_name: The linked service name. Required. - :type linked_service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - linked_service_name=linked_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_managed_private_endpoints_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_managed_private_endpoints_operations.py deleted file mode 100644 index cdac9dcd0e31..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_managed_private_endpoints_operations.py +++ /dev/null @@ -1,690 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_by_factory_request( - resource_group_name: str, factory_name: str, managed_virtual_network_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "managedVirtualNetworkName": _SERIALIZER.url( - "managed_virtual_network_name", - managed_virtual_network_name, - "str", - max_length=127, - min_length=1, - pattern=r"^([_A-Za-z0-9]|([_A-Za-z0-9][-_A-Za-z0-9]{0,125}[_A-Za-z0-9]))$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_private_endpoint_name: str, - subscription_id: str, - *, - if_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "managedVirtualNetworkName": _SERIALIZER.url( - "managed_virtual_network_name", - managed_virtual_network_name, - "str", - max_length=127, - min_length=1, - pattern=r"^([_A-Za-z0-9]|([_A-Za-z0-9][-_A-Za-z0-9]{0,125}[_A-Za-z0-9]))$", - ), - "managedPrivateEndpointName": _SERIALIZER.url( - "managed_private_endpoint_name", - managed_private_endpoint_name, - "str", - max_length=127, - min_length=1, - pattern=r"^([_A-Za-z0-9]|([_A-Za-z0-9][-_A-Za-z0-9]{0,125}[_A-Za-z0-9]))$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_match is not None: - _headers["If-Match"] = _SERIALIZER.header("if_match", if_match, "str") - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_private_endpoint_name: str, - subscription_id: str, - *, - if_none_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "managedVirtualNetworkName": _SERIALIZER.url( - "managed_virtual_network_name", - managed_virtual_network_name, - "str", - max_length=127, - min_length=1, - pattern=r"^([_A-Za-z0-9]|([_A-Za-z0-9][-_A-Za-z0-9]{0,125}[_A-Za-z0-9]))$", - ), - "managedPrivateEndpointName": _SERIALIZER.url( - "managed_private_endpoint_name", - managed_private_endpoint_name, - "str", - max_length=127, - min_length=1, - pattern=r"^([_A-Za-z0-9]|([_A-Za-z0-9][-_A-Za-z0-9]{0,125}[_A-Za-z0-9]))$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_none_match is not None: - _headers["If-None-Match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_private_endpoint_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "managedVirtualNetworkName": _SERIALIZER.url( - "managed_virtual_network_name", - managed_virtual_network_name, - "str", - max_length=127, - min_length=1, - pattern=r"^([_A-Za-z0-9]|([_A-Za-z0-9][-_A-Za-z0-9]{0,125}[_A-Za-z0-9]))$", - ), - "managedPrivateEndpointName": _SERIALIZER.url( - "managed_private_endpoint_name", - managed_private_endpoint_name, - "str", - max_length=127, - min_length=1, - pattern=r"^([_A-Za-z0-9]|([_A-Za-z0-9][-_A-Za-z0-9]{0,125}[_A-Za-z0-9]))$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class ManagedPrivateEndpointsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`managed_private_endpoints` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, managed_virtual_network_name: str, **kwargs: Any - ) -> ItemPaged["_models.ManagedPrivateEndpointResource"]: - """Lists managed private endpoints. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :return: An iterator like instance of either ManagedPrivateEndpointResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedPrivateEndpointListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - managed_virtual_network_name=managed_virtual_network_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ManagedPrivateEndpointListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_private_endpoint_name: str, - managed_private_endpoint: _models.ManagedPrivateEndpointResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ManagedPrivateEndpointResource: - """Creates or updates a managed private endpoint. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :param managed_private_endpoint_name: Managed private endpoint name. Required. - :type managed_private_endpoint_name: str - :param managed_private_endpoint: Managed private endpoint resource definition. Required. - :type managed_private_endpoint: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource - :param if_match: ETag of the managed private endpoint entity. Should only be specified for - update, for which it should match existing entity or can be * for unconditional update. Default - value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ManagedPrivateEndpointResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_private_endpoint_name: str, - managed_private_endpoint: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ManagedPrivateEndpointResource: - """Creates or updates a managed private endpoint. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :param managed_private_endpoint_name: Managed private endpoint name. Required. - :type managed_private_endpoint_name: str - :param managed_private_endpoint: Managed private endpoint resource definition. Required. - :type managed_private_endpoint: IO[bytes] - :param if_match: ETag of the managed private endpoint entity. Should only be specified for - update, for which it should match existing entity or can be * for unconditional update. Default - value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ManagedPrivateEndpointResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_private_endpoint_name: str, - managed_private_endpoint: Union[_models.ManagedPrivateEndpointResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.ManagedPrivateEndpointResource: - """Creates or updates a managed private endpoint. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :param managed_private_endpoint_name: Managed private endpoint name. Required. - :type managed_private_endpoint_name: str - :param managed_private_endpoint: Managed private endpoint resource definition. Is either a - ManagedPrivateEndpointResource type or a IO[bytes] type. Required. - :type managed_private_endpoint: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource - or IO[bytes] - :param if_match: ETag of the managed private endpoint entity. Should only be specified for - update, for which it should match existing entity or can be * for unconditional update. Default - value is None. - :type if_match: str - :return: ManagedPrivateEndpointResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ManagedPrivateEndpointResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(managed_private_endpoint, (IOBase, bytes)): - _content = managed_private_endpoint - else: - _json = self._serialize.body(managed_private_endpoint, "ManagedPrivateEndpointResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - managed_virtual_network_name=managed_virtual_network_name, - managed_private_endpoint_name=managed_private_endpoint_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedPrivateEndpointResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get( - self, - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_private_endpoint_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> _models.ManagedPrivateEndpointResource: - """Gets a managed private endpoint. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :param managed_private_endpoint_name: Managed private endpoint name. Required. - :type managed_private_endpoint_name: str - :param if_none_match: ETag of the managed private endpoint entity. Should only be specified for - get. If the ETag matches the existing entity tag, or if * was provided, then no content will be - returned. Default value is None. - :type if_none_match: str - :return: ManagedPrivateEndpointResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedPrivateEndpointResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - managed_virtual_network_name=managed_virtual_network_name, - managed_private_endpoint_name=managed_private_endpoint_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedPrivateEndpointResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_private_endpoint_name: str, - **kwargs: Any - ) -> None: - """Deletes a managed private endpoint. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :param managed_private_endpoint_name: Managed private endpoint name. Required. - :type managed_private_endpoint_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - managed_virtual_network_name=managed_virtual_network_name, - managed_private_endpoint_name=managed_private_endpoint_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_managed_virtual_networks_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_managed_virtual_networks_operations.py deleted file mode 100644 index 8189c18fdd27..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_managed_virtual_networks_operations.py +++ /dev/null @@ -1,523 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_by_factory_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - subscription_id: str, - *, - if_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "managedVirtualNetworkName": _SERIALIZER.url( - "managed_virtual_network_name", - managed_virtual_network_name, - "str", - max_length=127, - min_length=1, - pattern=r"^([_A-Za-z0-9]|([_A-Za-z0-9][-_A-Za-z0-9]{0,125}[_A-Za-z0-9]))$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_match is not None: - _headers["If-Match"] = _SERIALIZER.header("if_match", if_match, "str") - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - subscription_id: str, - *, - if_none_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "managedVirtualNetworkName": _SERIALIZER.url( - "managed_virtual_network_name", - managed_virtual_network_name, - "str", - max_length=127, - min_length=1, - pattern=r"^([_A-Za-z0-9]|([_A-Za-z0-9][-_A-Za-z0-9]{0,125}[_A-Za-z0-9]))$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_none_match is not None: - _headers["If-None-Match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ManagedVirtualNetworksOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`managed_virtual_networks` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> ItemPaged["_models.ManagedVirtualNetworkResource"]: - """Lists managed Virtual Networks. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either ManagedVirtualNetworkResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedVirtualNetworkListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ManagedVirtualNetworkListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_virtual_network: _models.ManagedVirtualNetworkResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ManagedVirtualNetworkResource: - """Creates or updates a managed Virtual Network. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :param managed_virtual_network: Managed Virtual Network resource definition. Required. - :type managed_virtual_network: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource - :param if_match: ETag of the managed Virtual Network entity. Should only be specified for - update, for which it should match existing entity or can be * for unconditional update. Default - value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ManagedVirtualNetworkResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_virtual_network: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ManagedVirtualNetworkResource: - """Creates or updates a managed Virtual Network. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :param managed_virtual_network: Managed Virtual Network resource definition. Required. - :type managed_virtual_network: IO[bytes] - :param if_match: ETag of the managed Virtual Network entity. Should only be specified for - update, for which it should match existing entity or can be * for unconditional update. Default - value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ManagedVirtualNetworkResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - managed_virtual_network: Union[_models.ManagedVirtualNetworkResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.ManagedVirtualNetworkResource: - """Creates or updates a managed Virtual Network. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :param managed_virtual_network: Managed Virtual Network resource definition. Is either a - ManagedVirtualNetworkResource type or a IO[bytes] type. Required. - :type managed_virtual_network: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource or - IO[bytes] - :param if_match: ETag of the managed Virtual Network entity. Should only be specified for - update, for which it should match existing entity or can be * for unconditional update. Default - value is None. - :type if_match: str - :return: ManagedVirtualNetworkResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ManagedVirtualNetworkResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(managed_virtual_network, (IOBase, bytes)): - _content = managed_virtual_network - else: - _json = self._serialize.body(managed_virtual_network, "ManagedVirtualNetworkResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - managed_virtual_network_name=managed_virtual_network_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedVirtualNetworkResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get( - self, - resource_group_name: str, - factory_name: str, - managed_virtual_network_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> _models.ManagedVirtualNetworkResource: - """Gets a managed Virtual Network. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param managed_virtual_network_name: Managed virtual network name. Required. - :type managed_virtual_network_name: str - :param if_none_match: ETag of the managed Virtual Network entity. Should only be specified for - get. If the ETag matches the existing entity tag, or if * was provided, then no content will be - returned. Default value is None. - :type if_none_match: str - :return: ManagedVirtualNetworkResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedVirtualNetworkResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - managed_virtual_network_name=managed_virtual_network_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedVirtualNetworkResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_operations.py index d18034eb5bf9..349f11617626 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_operations.py @@ -1,43 +1,54 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar +from io import IOBase +import json +from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload import urllib.parse -from azure.core import PipelineClient +from azure.core import MatchConditions, PipelineClient from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, + ResourceModifiedError, ResourceNotFoundError, ResourceNotModifiedError, + StreamClosedError, + StreamConsumedError, map_error, ) from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod from azure.core.rest import HttpRequest, HttpResponse from azure.core.tracing.decorator import distributed_trace from azure.core.utils import case_insensitive_dict from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling from .. import models as _models from .._configuration import DataFactoryManagementClientConfiguration +from .._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from .._utils.serialization import Deserializer, Serializer +from .._utils.utils import prep_if_match, prep_if_none_match T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +JSON = MutableMapping[str, Any] List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -def build_list_request(**kwargs: Any) -> HttpRequest: +def build_operations_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) @@ -45,7 +56,3322 @@ def build_list_request(**kwargs: Any) -> HttpRequest: accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.DataFactory/operations") + _url = "/providers/Microsoft.DataFactory/operations" + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_factories_get_request( + resource_group_name: str, + factory_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_factories_create_or_update_request( + resource_group_name: str, + factory_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_factories_update_request( + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_factories_delete_request( + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_factories_list_by_resource_group_request( # pylint: disable=name-too-long + resource_group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = ( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories" + ) + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_factories_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/factories" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_factories_get_git_hub_access_token_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getGitHubAccessToken" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_factories_get_data_plane_access_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getDataPlaneAccess" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_factories_configure_factory_repo_request( # pylint: disable=name-too-long + location_id: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/configureFactoryRepo" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "locationId": _SERIALIZER.url("location_id", location_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_exposure_control_get_feature_value_by_factory_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getFeatureValue" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_exposure_control_query_feature_values_by_factory_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryFeaturesValue" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_exposure_control_get_feature_value_request( # pylint: disable=name-too-long + location_id: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/getFeatureValue" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "locationId": _SERIALIZER.url("location_id", location_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_pipeline_runs_query_by_factory_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryPipelineRuns" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_pipeline_runs_get_request( + resource_group_name: str, factory_name: str, run_id: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "runId": _SERIALIZER.url("run_id", run_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_pipeline_runs_cancel_request( + resource_group_name: str, + factory_name: str, + run_id: str, + subscription_id: str, + *, + is_recursive: Optional[bool] = None, + **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/cancel" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "runId": _SERIALIZER.url("run_id", run_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if is_recursive is not None: + _params["isRecursive"] = _SERIALIZER.query("is_recursive", is_recursive, "bool") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_activity_runs_query_by_pipeline_run_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, run_id: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/queryActivityruns" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "runId": _SERIALIZER.url("run_id", run_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_triggers_query_by_factory_request( + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/querytriggers" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_triggers_get_request( + resource_group_name: str, + factory_name: str, + trigger_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "triggerName": _SERIALIZER.url("trigger_name", trigger_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_triggers_create_or_update_request( + resource_group_name: str, + factory_name: str, + trigger_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "triggerName": _SERIALIZER.url("trigger_name", trigger_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_triggers_delete_request( + resource_group_name: str, factory_name: str, trigger_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "triggerName": _SERIALIZER.url("trigger_name", trigger_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_triggers_list_by_factory_request( + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_triggers_subscribe_to_events_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, trigger_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/subscribeToEvents" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "triggerName": _SERIALIZER.url("trigger_name", trigger_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_triggers_get_event_subscription_status_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, trigger_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/getEventSubscriptionStatus" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "triggerName": _SERIALIZER.url("trigger_name", trigger_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_triggers_unsubscribe_from_events_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, trigger_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/unsubscribeFromEvents" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "triggerName": _SERIALIZER.url("trigger_name", trigger_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_triggers_start_request( + resource_group_name: str, factory_name: str, trigger_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/start" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "triggerName": _SERIALIZER.url("trigger_name", trigger_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_triggers_stop_request( + resource_group_name: str, factory_name: str, trigger_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/stop" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "triggerName": _SERIALIZER.url("trigger_name", trigger_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_trigger_runs_query_by_factory_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryTriggerRuns" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_trigger_runs_rerun_request( + resource_group_name: str, factory_name: str, trigger_name: str, run_id: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/rerun" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "triggerName": _SERIALIZER.url("trigger_name", trigger_name, "str"), + "runId": _SERIALIZER.url("run_id", run_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_trigger_runs_cancel_request( + resource_group_name: str, factory_name: str, trigger_name: str, run_id: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/cancel" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "triggerName": _SERIALIZER.url("trigger_name", trigger_name, "str"), + "runId": _SERIALIZER.url("run_id", run_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_data_flow_debug_session_create_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/createDataFlowDebugSession" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_data_flow_debug_session_query_by_factory_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryDataFlowDebugSessions" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_data_flow_debug_session_add_data_flow_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/addDataFlowToDebugSession" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_data_flow_debug_session_delete_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/deleteDataFlowDebugSession" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_data_flow_debug_session_execute_command_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/executeDataFlowDebugCommand" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_private_link_resources_get_request( + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateLinkResources" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtimes_get_request( + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtimes_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtimes_update_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtimes_delete_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_integration_runtimes_list_by_factory_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtimes_get_status_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getStatus" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtimes_list_outbound_network_dependencies_endpoints_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/outboundNetworkDependenciesEndpoints" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtimes_get_connection_info_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtimes_regenerate_auth_key_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtimes_list_auth_keys_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtimes_start_request( + resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/start" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtimes_stop_request( + resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/stop" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_integration_runtimes_sync_credentials_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_integration_runtimes_get_monitoring_data_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/monitoringData" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtimes_upgrade_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/upgrade" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_integration_runtimes_remove_links_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/removeLinks" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtimes_create_linked_integration_runtime_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/linkedIntegrationRuntime" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtime_object_metadata_refresh_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/refreshObjectMetadata" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtime_object_metadata_get_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getObjectMetadata" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtime_nodes_get_request( # pylint: disable=name-too-long + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + node_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + "nodeName": _SERIALIZER.url("node_name", node_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtime_nodes_delete_request( # pylint: disable=name-too-long + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + node_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + "nodeName": _SERIALIZER.url("node_name", node_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_integration_runtime_nodes_update_request( # pylint: disable=name-too-long + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + node_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + "nodeName": _SERIALIZER.url("node_name", node_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtime_nodes_get_ip_address_request( # pylint: disable=name-too-long + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + node_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + "nodeName": _SERIALIZER.url("node_name", node_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtime_enable_interactive_query_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/enableInteractiveQuery" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_integration_runtime_disable_interactive_query_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/disableInteractiveQuery" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "integrationRuntimeName": _SERIALIZER.url("integration_runtime_name", integration_runtime_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_linked_services_get_request( + resource_group_name: str, + factory_name: str, + linked_service_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "linkedServiceName": _SERIALIZER.url("linked_service_name", linked_service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_linked_services_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, + factory_name: str, + linked_service_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "linkedServiceName": _SERIALIZER.url("linked_service_name", linked_service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_linked_services_delete_request( + resource_group_name: str, factory_name: str, linked_service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "linkedServiceName": _SERIALIZER.url("linked_service_name", linked_service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_linked_services_list_by_factory_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_datasets_get_request( + resource_group_name: str, + factory_name: str, + dataset_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "datasetName": _SERIALIZER.url("dataset_name", dataset_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_datasets_create_or_update_request( + resource_group_name: str, + factory_name: str, + dataset_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "datasetName": _SERIALIZER.url("dataset_name", dataset_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_datasets_delete_request( + resource_group_name: str, factory_name: str, dataset_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "datasetName": _SERIALIZER.url("dataset_name", dataset_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_datasets_list_by_factory_request( + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_pipelines_get_request( + resource_group_name: str, + factory_name: str, + pipeline_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "pipelineName": _SERIALIZER.url("pipeline_name", pipeline_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_pipelines_create_or_update_request( + resource_group_name: str, + factory_name: str, + pipeline_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "pipelineName": _SERIALIZER.url("pipeline_name", pipeline_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_pipelines_delete_request( + resource_group_name: str, factory_name: str, pipeline_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "pipelineName": _SERIALIZER.url("pipeline_name", pipeline_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_pipelines_list_by_factory_request( + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_pipelines_create_run_request( + resource_group_name: str, + factory_name: str, + pipeline_name: str, + subscription_id: str, + *, + reference_pipeline_run_id: Optional[str] = None, + is_recovery: Optional[bool] = None, + start_activity_name: Optional[str] = None, + start_from_failure: Optional[bool] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}/createRun" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "pipelineName": _SERIALIZER.url("pipeline_name", pipeline_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if reference_pipeline_run_id is not None: + _params["referencePipelineRunId"] = _SERIALIZER.query( + "reference_pipeline_run_id", reference_pipeline_run_id, "str" + ) + if is_recovery is not None: + _params["isRecovery"] = _SERIALIZER.query("is_recovery", is_recovery, "bool") + if start_activity_name is not None: + _params["startActivityName"] = _SERIALIZER.query("start_activity_name", start_activity_name, "str") + if start_from_failure is not None: + _params["startFromFailure"] = _SERIALIZER.query("start_from_failure", start_from_failure, "bool") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_data_flows_get_request( + resource_group_name: str, + factory_name: str, + data_flow_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "dataFlowName": _SERIALIZER.url("data_flow_name", data_flow_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_data_flows_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, + factory_name: str, + data_flow_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "dataFlowName": _SERIALIZER.url("data_flow_name", data_flow_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_data_flows_delete_request( + resource_group_name: str, factory_name: str, data_flow_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "dataFlowName": _SERIALIZER.url("data_flow_name", data_flow_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_data_flows_list_by_factory_request( + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_virtual_networks_get_request( # pylint: disable=name-too-long + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "managedVirtualNetworkName": _SERIALIZER.url( + "managed_virtual_network_name", managed_virtual_network_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_virtual_networks_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "managedVirtualNetworkName": _SERIALIZER.url( + "managed_virtual_network_name", managed_virtual_network_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_virtual_networks_list_by_factory_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_private_endpoints_get_request( # pylint: disable=name-too-long + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_private_endpoint_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "managedVirtualNetworkName": _SERIALIZER.url( + "managed_virtual_network_name", managed_virtual_network_name, "str" + ), + "managedPrivateEndpointName": _SERIALIZER.url( + "managed_private_endpoint_name", managed_private_endpoint_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_private_endpoints_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_private_endpoint_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "managedVirtualNetworkName": _SERIALIZER.url( + "managed_virtual_network_name", managed_virtual_network_name, "str" + ), + "managedPrivateEndpointName": _SERIALIZER.url( + "managed_private_endpoint_name", managed_private_endpoint_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_private_endpoints_delete_request( # pylint: disable=name-too-long + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_private_endpoint_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "managedVirtualNetworkName": _SERIALIZER.url( + "managed_virtual_network_name", managed_virtual_network_name, "str" + ), + "managedPrivateEndpointName": _SERIALIZER.url( + "managed_private_endpoint_name", managed_private_endpoint_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_managed_private_endpoints_list_by_factory_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, managed_virtual_network_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "managedVirtualNetworkName": _SERIALIZER.url( + "managed_virtual_network_name", managed_virtual_network_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_credential_operations_get_request( + resource_group_name: str, + factory_name: str, + credential_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "credentialName": _SERIALIZER.url("credential_name", credential_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_credential_operations_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, + factory_name: str, + credential_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "credentialName": _SERIALIZER.url("credential_name", credential_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_credential_operations_delete_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, credential_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "credentialName": _SERIALIZER.url("credential_name", credential_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_credential_operations_list_by_factory_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_private_endpoint_connection_get_request( # pylint: disable=name-too-long + resource_group_name: str, + factory_name: str, + private_endpoint_connection_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "privateEndpointConnectionName": _SERIALIZER.url( + "private_endpoint_connection_name", private_endpoint_connection_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_private_endpoint_connection_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, + factory_name: str, + private_endpoint_connection_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "privateEndpointConnectionName": _SERIALIZER.url( + "private_endpoint_connection_name", private_endpoint_connection_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_private_endpoint_connection_delete_request( # pylint: disable=name-too-long + resource_group_name: str, + factory_name: str, + private_endpoint_connection_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "privateEndpointConnectionName": _SERIALIZER.url( + "private_endpoint_connection_name", private_endpoint_connection_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_private_end_point_connections_list_by_factory_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_global_parameters_get_request( + resource_group_name: str, factory_name: str, global_parameter_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "globalParameterName": _SERIALIZER.url("global_parameter_name", global_parameter_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_global_parameters_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, global_parameter_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "globalParameterName": _SERIALIZER.url("global_parameter_name", global_parameter_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_global_parameters_delete_request( + resource_group_name: str, factory_name: str, global_parameter_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "globalParameterName": _SERIALIZER.url("global_parameter_name", global_parameter_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_global_parameters_list_by_factory_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_change_data_capture_get_request( + resource_group_name: str, + factory_name: str, + change_data_capture_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "changeDataCaptureName": _SERIALIZER.url("change_data_capture_name", change_data_capture_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_change_data_capture_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, + factory_name: str, + change_data_capture_name: str, + subscription_id: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "changeDataCaptureName": _SERIALIZER.url("change_data_capture_name", change_data_capture_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + if_match = prep_if_match(etag, match_condition) + if if_match is not None: + _headers["if-match"] = _SERIALIZER.header("if_match", if_match, "str") + if_none_match = prep_if_none_match(etag, match_condition) + if if_none_match is not None: + _headers["if-none-match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_change_data_capture_delete_request( + resource_group_name: str, factory_name: str, change_data_capture_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "changeDataCaptureName": _SERIALIZER.url("change_data_capture_name", change_data_capture_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_change_data_capture_list_by_factory_request( # pylint: disable=name-too-long + resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_change_data_capture_start_request( + resource_group_name: str, factory_name: str, change_data_capture_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/start" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "changeDataCaptureName": _SERIALIZER.url("change_data_capture_name", change_data_capture_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_change_data_capture_stop_request( + resource_group_name: str, factory_name: str, change_data_capture_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/stop" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "changeDataCaptureName": _SERIALIZER.url("change_data_capture_name", change_data_capture_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_change_data_capture_status_request( + resource_group_name: str, factory_name: str, change_data_capture_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/status" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "factoryName": _SERIALIZER.url("factory_name", factory_name, "str"), + "changeDataCaptureName": _SERIALIZER.url("change_data_capture_name", change_data_capture_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -63,11 +3389,12948 @@ class Operations: Instead, you should access the following operations through :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`operations` attribute. + :attr:`operations` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list(self, **kwargs: Any) -> ItemPaged["_models.Operation"]: + """Lists the available Azure Data Factory API operations. + + :return: An iterator like instance of Operation + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.Operation] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Operation]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_operations_list_request( + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Operation], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class FactoriesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`factories` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, + resource_group_name: str, + factory_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> Optional[_models.Factory]: + """Gets a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: Factory or None. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory or None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Optional[_models.Factory]] = kwargs.pop("cls", None) + + _request = build_factories_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 304]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Factory, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + factory: _models.Factory, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.Factory: + """Creates or updates a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param factory: Factory resource definition. Required. + :type factory: ~azure.mgmt.datafactory.models.Factory + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + factory: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.Factory: + """Creates or updates a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param factory: Factory resource definition. Required. + :type factory: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + factory: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.Factory: + """Creates or updates a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param factory: Factory resource definition. Required. + :type factory: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + factory: Union[_models.Factory, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.Factory: + """Creates or updates a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param factory: Factory resource definition. Is one of the following types: Factory, JSON, + IO[bytes] Required. + :type factory: ~azure.mgmt.datafactory.models.Factory or JSON or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Factory] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(factory, (IOBase, bytes)): + _content = factory + else: + _content = json.dumps(factory, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_factories_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Factory, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def update( + self, + resource_group_name: str, + factory_name: str, + factory_update_parameters: _models.FactoryUpdateParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Factory: + """Updates a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param factory_update_parameters: The parameters for updating a factory. Required. + :type factory_update_parameters: ~azure.mgmt.datafactory.models.FactoryUpdateParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + factory_name: str, + factory_update_parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Factory: + """Updates a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param factory_update_parameters: The parameters for updating a factory. Required. + :type factory_update_parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + factory_name: str, + factory_update_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Factory: + """Updates a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param factory_update_parameters: The parameters for updating a factory. Required. + :type factory_update_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def update( + self, + resource_group_name: str, + factory_name: str, + factory_update_parameters: Union[_models.FactoryUpdateParameters, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.Factory: + """Updates a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param factory_update_parameters: The parameters for updating a factory. Is one of the + following types: FactoryUpdateParameters, JSON, IO[bytes] Required. + :type factory_update_parameters: ~azure.mgmt.datafactory.models.FactoryUpdateParameters or JSON + or IO[bytes] + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Factory] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(factory_update_parameters, (IOBase, bytes)): + _content = factory_update_parameters + else: + _content = json.dumps(factory_update_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_factories_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Factory, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> None: + """Deletes a factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_factories_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Factory"]: + """Lists factories. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of Factory + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.Factory] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Factory]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_factories_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Factory], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list(self, **kwargs: Any) -> ItemPaged["_models.Factory"]: + """Lists factories under the specified subscription. + + :return: An iterator like instance of Factory + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.Factory] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Factory]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_factories_list_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Factory], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @overload + def get_git_hub_access_token( + self, + resource_group_name: str, + factory_name: str, + git_hub_access_token_request: _models.GitHubAccessTokenRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.GitHubAccessTokenResponse: + """Get GitHub Access Token. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param git_hub_access_token_request: Get GitHub access token request definition. Required. + :type git_hub_access_token_request: ~azure.mgmt.datafactory.models.GitHubAccessTokenRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: GitHubAccessTokenResponse. The GitHubAccessTokenResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def get_git_hub_access_token( + self, + resource_group_name: str, + factory_name: str, + git_hub_access_token_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.GitHubAccessTokenResponse: + """Get GitHub Access Token. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param git_hub_access_token_request: Get GitHub access token request definition. Required. + :type git_hub_access_token_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: GitHubAccessTokenResponse. The GitHubAccessTokenResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def get_git_hub_access_token( + self, + resource_group_name: str, + factory_name: str, + git_hub_access_token_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.GitHubAccessTokenResponse: + """Get GitHub Access Token. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param git_hub_access_token_request: Get GitHub access token request definition. Required. + :type git_hub_access_token_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: GitHubAccessTokenResponse. The GitHubAccessTokenResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def get_git_hub_access_token( + self, + resource_group_name: str, + factory_name: str, + git_hub_access_token_request: Union[_models.GitHubAccessTokenRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.GitHubAccessTokenResponse: + """Get GitHub Access Token. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param git_hub_access_token_request: Get GitHub access token request definition. Is one of the + following types: GitHubAccessTokenRequest, JSON, IO[bytes] Required. + :type git_hub_access_token_request: ~azure.mgmt.datafactory.models.GitHubAccessTokenRequest or + JSON or IO[bytes] + :return: GitHubAccessTokenResponse. The GitHubAccessTokenResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.GitHubAccessTokenResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(git_hub_access_token_request, (IOBase, bytes)): + _content = git_hub_access_token_request + else: + _content = json.dumps(git_hub_access_token_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_factories_get_git_hub_access_token_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.GitHubAccessTokenResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def get_data_plane_access( + self, + resource_group_name: str, + factory_name: str, + policy: _models.UserAccessPolicy, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AccessPolicyResponse: + """Get Data Plane access. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param policy: Data Plane user access policy definition. Required. + :type policy: ~azure.mgmt.datafactory.models.UserAccessPolicy + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AccessPolicyResponse. The AccessPolicyResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def get_data_plane_access( + self, + resource_group_name: str, + factory_name: str, + policy: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AccessPolicyResponse: + """Get Data Plane access. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param policy: Data Plane user access policy definition. Required. + :type policy: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AccessPolicyResponse. The AccessPolicyResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def get_data_plane_access( + self, + resource_group_name: str, + factory_name: str, + policy: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AccessPolicyResponse: + """Get Data Plane access. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param policy: Data Plane user access policy definition. Required. + :type policy: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: AccessPolicyResponse. The AccessPolicyResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def get_data_plane_access( + self, + resource_group_name: str, + factory_name: str, + policy: Union[_models.UserAccessPolicy, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.AccessPolicyResponse: + """Get Data Plane access. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param policy: Data Plane user access policy definition. Is one of the following types: + UserAccessPolicy, JSON, IO[bytes] Required. + :type policy: ~azure.mgmt.datafactory.models.UserAccessPolicy or JSON or IO[bytes] + :return: AccessPolicyResponse. The AccessPolicyResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.AccessPolicyResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(policy, (IOBase, bytes)): + _content = policy + else: + _content = json.dumps(policy, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_factories_get_data_plane_access_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AccessPolicyResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def configure_factory_repo( + self, + location_id: str, + factory_repo_update: _models.FactoryRepoUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Factory: + """Updates a factory's repo information. + + :param location_id: The location identifier. Required. + :type location_id: str + :param factory_repo_update: The request body. Required. + :type factory_repo_update: ~azure.mgmt.datafactory.models.FactoryRepoUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def configure_factory_repo( + self, location_id: str, factory_repo_update: JSON, *, content_type: str = "application/json", **kwargs: Any + ) -> _models.Factory: + """Updates a factory's repo information. + + :param location_id: The location identifier. Required. + :type location_id: str + :param factory_repo_update: The request body. Required. + :type factory_repo_update: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def configure_factory_repo( + self, location_id: str, factory_repo_update: IO[bytes], *, content_type: str = "application/json", **kwargs: Any + ) -> _models.Factory: + """Updates a factory's repo information. + + :param location_id: The location identifier. Required. + :type location_id: str + :param factory_repo_update: The request body. Required. + :type factory_repo_update: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def configure_factory_repo( + self, location_id: str, factory_repo_update: Union[_models.FactoryRepoUpdate, JSON, IO[bytes]], **kwargs: Any + ) -> _models.Factory: + """Updates a factory's repo information. + + :param location_id: The location identifier. Required. + :type location_id: str + :param factory_repo_update: The request body. Is one of the following types: FactoryRepoUpdate, + JSON, IO[bytes] Required. + :type factory_repo_update: ~azure.mgmt.datafactory.models.FactoryRepoUpdate or JSON or + IO[bytes] + :return: Factory. The Factory is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.Factory + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Factory] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(factory_repo_update, (IOBase, bytes)): + _content = factory_repo_update + else: + _content = json.dumps(factory_repo_update, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_factories_configure_factory_repo_request( + location_id=location_id, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Factory, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ExposureControlOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`exposure_control` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @overload + def get_feature_value_by_factory( + self, + resource_group_name: str, + factory_name: str, + exposure_control_request: _models.ExposureControlRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ExposureControlResponse: + """Get exposure control feature for specific factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param exposure_control_request: The exposure control request. Required. + :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ExposureControlResponse. The ExposureControlResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def get_feature_value_by_factory( + self, + resource_group_name: str, + factory_name: str, + exposure_control_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ExposureControlResponse: + """Get exposure control feature for specific factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param exposure_control_request: The exposure control request. Required. + :type exposure_control_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ExposureControlResponse. The ExposureControlResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def get_feature_value_by_factory( + self, + resource_group_name: str, + factory_name: str, + exposure_control_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ExposureControlResponse: + """Get exposure control feature for specific factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param exposure_control_request: The exposure control request. Required. + :type exposure_control_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ExposureControlResponse. The ExposureControlResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def get_feature_value_by_factory( + self, + resource_group_name: str, + factory_name: str, + exposure_control_request: Union[_models.ExposureControlRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ExposureControlResponse: + """Get exposure control feature for specific factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param exposure_control_request: The exposure control request. Is one of the following types: + ExposureControlRequest, JSON, IO[bytes] Required. + :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest or JSON + or IO[bytes] + :return: ExposureControlResponse. The ExposureControlResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ExposureControlResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(exposure_control_request, (IOBase, bytes)): + _content = exposure_control_request + else: + _content = json.dumps(exposure_control_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_exposure_control_get_feature_value_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ExposureControlResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def query_feature_values_by_factory( + self, + resource_group_name: str, + factory_name: str, + exposure_control_batch_request: _models.ExposureControlBatchRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ExposureControlBatchResponse: + """Get list of exposure control features for specific factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param exposure_control_batch_request: The exposure control request for list of features. + Required. + :type exposure_control_batch_request: + ~azure.mgmt.datafactory.models.ExposureControlBatchRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ExposureControlBatchResponse. The ExposureControlBatchResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def query_feature_values_by_factory( + self, + resource_group_name: str, + factory_name: str, + exposure_control_batch_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ExposureControlBatchResponse: + """Get list of exposure control features for specific factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param exposure_control_batch_request: The exposure control request for list of features. + Required. + :type exposure_control_batch_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ExposureControlBatchResponse. The ExposureControlBatchResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def query_feature_values_by_factory( + self, + resource_group_name: str, + factory_name: str, + exposure_control_batch_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ExposureControlBatchResponse: + """Get list of exposure control features for specific factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param exposure_control_batch_request: The exposure control request for list of features. + Required. + :type exposure_control_batch_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ExposureControlBatchResponse. The ExposureControlBatchResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def query_feature_values_by_factory( + self, + resource_group_name: str, + factory_name: str, + exposure_control_batch_request: Union[_models.ExposureControlBatchRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ExposureControlBatchResponse: + """Get list of exposure control features for specific factory. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param exposure_control_batch_request: The exposure control request for list of features. Is + one of the following types: ExposureControlBatchRequest, JSON, IO[bytes] Required. + :type exposure_control_batch_request: + ~azure.mgmt.datafactory.models.ExposureControlBatchRequest or JSON or IO[bytes] + :return: ExposureControlBatchResponse. The ExposureControlBatchResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ExposureControlBatchResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(exposure_control_batch_request, (IOBase, bytes)): + _content = exposure_control_batch_request + else: + _content = json.dumps(exposure_control_batch_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_exposure_control_query_feature_values_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ExposureControlBatchResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def get_feature_value( + self, + location_id: str, + exposure_control_request: _models.ExposureControlRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ExposureControlResponse: + """Get exposure control feature for specific location. + + :param location_id: The location identifier. Required. + :type location_id: str + :param exposure_control_request: The request body. Required. + :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ExposureControlResponse. The ExposureControlResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def get_feature_value( + self, location_id: str, exposure_control_request: JSON, *, content_type: str = "application/json", **kwargs: Any + ) -> _models.ExposureControlResponse: + """Get exposure control feature for specific location. + + :param location_id: The location identifier. Required. + :type location_id: str + :param exposure_control_request: The request body. Required. + :type exposure_control_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ExposureControlResponse. The ExposureControlResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def get_feature_value( + self, + location_id: str, + exposure_control_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ExposureControlResponse: + """Get exposure control feature for specific location. + + :param location_id: The location identifier. Required. + :type location_id: str + :param exposure_control_request: The request body. Required. + :type exposure_control_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ExposureControlResponse. The ExposureControlResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def get_feature_value( + self, + location_id: str, + exposure_control_request: Union[_models.ExposureControlRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ExposureControlResponse: + """Get exposure control feature for specific location. + + :param location_id: The location identifier. Required. + :type location_id: str + :param exposure_control_request: The request body. Is one of the following types: + ExposureControlRequest, JSON, IO[bytes] Required. + :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest or JSON + or IO[bytes] + :return: ExposureControlResponse. The ExposureControlResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ExposureControlResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(exposure_control_request, (IOBase, bytes)): + _content = exposure_control_request + else: + _content = json.dumps(exposure_control_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_exposure_control_get_feature_value_request( + location_id=location_id, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ExposureControlResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class PipelineRunsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`pipeline_runs` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @overload + def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: _models.RunFilterParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.PipelineRunsQueryResponse: + """Query pipeline runs in the factory based on input filter conditions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the pipeline run. Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: PipelineRunsQueryResponse. The PipelineRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.PipelineRunsQueryResponse: + """Query pipeline runs in the factory based on input filter conditions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the pipeline run. Required. + :type filter_parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: PipelineRunsQueryResponse. The PipelineRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.PipelineRunsQueryResponse: + """Query pipeline runs in the factory based on input filter conditions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the pipeline run. Required. + :type filter_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: PipelineRunsQueryResponse. The PipelineRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: Union[_models.RunFilterParameters, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.PipelineRunsQueryResponse: + """Query pipeline runs in the factory based on input filter conditions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the pipeline run. Is one of the following types: + RunFilterParameters, JSON, IO[bytes] Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or JSON or + IO[bytes] + :return: PipelineRunsQueryResponse. The PipelineRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.PipelineRunsQueryResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(filter_parameters, (IOBase, bytes)): + _content = filter_parameters + else: + _content = json.dumps(filter_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_pipeline_runs_query_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.PipelineRunsQueryResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def get(self, resource_group_name: str, factory_name: str, run_id: str, **kwargs: Any) -> _models.PipelineRun: + """Get a pipeline run by its run ID. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param run_id: The pipeline run identifier. Required. + :type run_id: str + :return: PipelineRun. The PipelineRun is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineRun + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.PipelineRun] = kwargs.pop("cls", None) + + _request = build_pipeline_runs_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + run_id=run_id, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.PipelineRun, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def cancel( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + factory_name: str, + run_id: str, + *, + is_recursive: Optional[bool] = None, + **kwargs: Any + ) -> None: + """Cancel a pipeline run by its run ID. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param run_id: The pipeline run identifier. Required. + :type run_id: str + :keyword is_recursive: If true, cancel all the Child pipelines that are triggered by the + current pipeline. Default value is None. + :paramtype is_recursive: bool + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_pipeline_runs_cancel_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + run_id=run_id, + subscription_id=self._config.subscription_id, + is_recursive=is_recursive, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + +class ActivityRunsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`activity_runs` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @overload + def query_by_pipeline_run( + self, + resource_group_name: str, + factory_name: str, + run_id: str, + filter_parameters: _models.RunFilterParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ActivityRunsQueryResponse: + """Query activity runs based on input filter conditions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param run_id: The pipeline run identifier. Required. + :type run_id: str + :param filter_parameters: Parameters to filter the activity runs. Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ActivityRunsQueryResponse. The ActivityRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def query_by_pipeline_run( + self, + resource_group_name: str, + factory_name: str, + run_id: str, + filter_parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ActivityRunsQueryResponse: + """Query activity runs based on input filter conditions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param run_id: The pipeline run identifier. Required. + :type run_id: str + :param filter_parameters: Parameters to filter the activity runs. Required. + :type filter_parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ActivityRunsQueryResponse. The ActivityRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def query_by_pipeline_run( + self, + resource_group_name: str, + factory_name: str, + run_id: str, + filter_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ActivityRunsQueryResponse: + """Query activity runs based on input filter conditions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param run_id: The pipeline run identifier. Required. + :type run_id: str + :param filter_parameters: Parameters to filter the activity runs. Required. + :type filter_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ActivityRunsQueryResponse. The ActivityRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def query_by_pipeline_run( + self, + resource_group_name: str, + factory_name: str, + run_id: str, + filter_parameters: Union[_models.RunFilterParameters, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ActivityRunsQueryResponse: + """Query activity runs based on input filter conditions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param run_id: The pipeline run identifier. Required. + :type run_id: str + :param filter_parameters: Parameters to filter the activity runs. Is one of the following + types: RunFilterParameters, JSON, IO[bytes] Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or JSON or + IO[bytes] + :return: ActivityRunsQueryResponse. The ActivityRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ActivityRunsQueryResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(filter_parameters, (IOBase, bytes)): + _content = filter_parameters + else: + _content = json.dumps(filter_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_activity_runs_query_by_pipeline_run_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + run_id=run_id, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ActivityRunsQueryResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class TriggersOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`triggers` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @overload + def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: _models.TriggerFilterParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.TriggerQueryResponse: + """Query triggers. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the triggers. Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.TriggerFilterParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: TriggerQueryResponse. The TriggerQueryResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.TriggerQueryResponse: + """Query triggers. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the triggers. Required. + :type filter_parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: TriggerQueryResponse. The TriggerQueryResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.TriggerQueryResponse: + """Query triggers. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the triggers. Required. + :type filter_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: TriggerQueryResponse. The TriggerQueryResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: Union[_models.TriggerFilterParameters, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.TriggerQueryResponse: + """Query triggers. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the triggers. Is one of the following types: + TriggerFilterParameters, JSON, IO[bytes] Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.TriggerFilterParameters or JSON or + IO[bytes] + :return: TriggerQueryResponse. The TriggerQueryResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.TriggerQueryResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(filter_parameters, (IOBase, bytes)): + _content = filter_parameters + else: + _content = json.dumps(filter_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_triggers_query_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.TriggerQueryResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def get( + self, + resource_group_name: str, + factory_name: str, + trigger_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> Optional[_models.TriggerResource]: + """Gets a trigger. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: TriggerResource or None. The TriggerResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerResource or None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Optional[_models.TriggerResource]] = kwargs.pop("cls", None) + + _request = build_triggers_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 304]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.TriggerResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + trigger_name: str, + trigger: _models.TriggerResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.TriggerResource: + """Creates or updates a trigger. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :param trigger: Trigger resource definition. Required. + :type trigger: ~azure.mgmt.datafactory.models.TriggerResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: TriggerResource. The TriggerResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + trigger_name: str, + trigger: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.TriggerResource: + """Creates or updates a trigger. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :param trigger: Trigger resource definition. Required. + :type trigger: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: TriggerResource. The TriggerResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + trigger_name: str, + trigger: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.TriggerResource: + """Creates or updates a trigger. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :param trigger: Trigger resource definition. Required. + :type trigger: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: TriggerResource. The TriggerResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + trigger_name: str, + trigger: Union[_models.TriggerResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.TriggerResource: + """Creates or updates a trigger. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :param trigger: Trigger resource definition. Is one of the following types: TriggerResource, + JSON, IO[bytes] Required. + :type trigger: ~azure.mgmt.datafactory.models.TriggerResource or JSON or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: TriggerResource. The TriggerResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.TriggerResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(trigger, (IOBase, bytes)): + _content = trigger + else: + _content = json.dumps(trigger, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_triggers_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.TriggerResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> None: + """Deletes a trigger. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_triggers_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> ItemPaged["_models.TriggerResource"]: + """Lists triggers. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of TriggerResource + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.TriggerResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.TriggerResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_triggers_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.TriggerResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + def _subscribe_to_events_initial( + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_triggers_subscribe_to_events_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_subscribe_to_events( + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> LROPoller[_models.TriggerSubscriptionOperationStatus]: + """Subscribe event trigger to events. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :return: An instance of LROPoller that returns TriggerSubscriptionOperationStatus. The + TriggerSubscriptionOperationStatus is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.TriggerSubscriptionOperationStatus] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._subscribe_to_events_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.TriggerSubscriptionOperationStatus, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.TriggerSubscriptionOperationStatus].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.TriggerSubscriptionOperationStatus]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @distributed_trace + def get_event_subscription_status( + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> _models.TriggerSubscriptionOperationStatus: + """Get a trigger's event subscription status. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :return: TriggerSubscriptionOperationStatus. The TriggerSubscriptionOperationStatus is + compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.TriggerSubscriptionOperationStatus] = kwargs.pop("cls", None) + + _request = build_triggers_get_event_subscription_status_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.TriggerSubscriptionOperationStatus, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _unsubscribe_from_events_initial( + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_triggers_unsubscribe_from_events_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_unsubscribe_from_events( + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> LROPoller[_models.TriggerSubscriptionOperationStatus]: + """Unsubscribe event trigger from events. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :return: An instance of LROPoller that returns TriggerSubscriptionOperationStatus. The + TriggerSubscriptionOperationStatus is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.TriggerSubscriptionOperationStatus] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._unsubscribe_from_events_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.TriggerSubscriptionOperationStatus, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.TriggerSubscriptionOperationStatus].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.TriggerSubscriptionOperationStatus]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _start_initial( + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_triggers_start_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_start( + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Starts a trigger. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._start_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + def _stop_initial( + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_triggers_stop_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_stop( + self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Stops a trigger. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param trigger_name: The trigger name. Required. + :type trigger_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._stop_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class TriggerRunsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`trigger_runs` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @overload + def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: _models.RunFilterParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.TriggerRunsQueryResponse: + """Query trigger runs. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the pipeline run. Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: TriggerRunsQueryResponse. The TriggerRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.TriggerRunsQueryResponse: + """Query trigger runs. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the pipeline run. Required. + :type filter_parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: TriggerRunsQueryResponse. The TriggerRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.TriggerRunsQueryResponse: + """Query trigger runs. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the pipeline run. Required. + :type filter_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: TriggerRunsQueryResponse. The TriggerRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def query_by_factory( + self, + resource_group_name: str, + factory_name: str, + filter_parameters: Union[_models.RunFilterParameters, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.TriggerRunsQueryResponse: + """Query trigger runs. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param filter_parameters: Parameters to filter the pipeline run. Is one of the following types: + RunFilterParameters, JSON, IO[bytes] Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or JSON or + IO[bytes] + :return: TriggerRunsQueryResponse. The TriggerRunsQueryResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.TriggerRunsQueryResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(filter_parameters, (IOBase, bytes)): + _content = filter_parameters + else: + _content = json.dumps(filter_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_trigger_runs_query_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.TriggerRunsQueryResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def rerun( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, factory_name: str, trigger_name: str, run_id: str, **kwargs: Any + ) -> None: + """Rerun single trigger instance by runId. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param trigger_name: Required. + :type trigger_name: str + :param run_id: The pipeline run identifier. Required. + :type run_id: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_trigger_runs_rerun_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + run_id=run_id, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def cancel( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, factory_name: str, trigger_name: str, run_id: str, **kwargs: Any + ) -> None: + """Cancel a single trigger instance by runId. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param trigger_name: Required. + :type trigger_name: str + :param run_id: The pipeline run identifier. Required. + :type run_id: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_trigger_runs_cancel_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + trigger_name=trigger_name, + run_id=run_id, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + +class DataFlowDebugSessionOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`data_flow_debug_session` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + def _create_initial( + self, + resource_group_name: str, + factory_name: str, + request: Union[_models.CreateDataFlowDebugSessionRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(request, (IOBase, bytes)): + _content = request + else: + _content = json.dumps(request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_data_flow_debug_session_create_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create( + self, + resource_group_name: str, + factory_name: str, + request: _models.CreateDataFlowDebugSessionRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.CreateDataFlowDebugSessionResponse]: + """Creates a data flow debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition. Required. + :type request: ~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns CreateDataFlowDebugSessionResponse. The + CreateDataFlowDebugSessionResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create( + self, + resource_group_name: str, + factory_name: str, + request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.CreateDataFlowDebugSessionResponse]: + """Creates a data flow debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition. Required. + :type request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns CreateDataFlowDebugSessionResponse. The + CreateDataFlowDebugSessionResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create( + self, + resource_group_name: str, + factory_name: str, + request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.CreateDataFlowDebugSessionResponse]: + """Creates a data flow debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition. Required. + :type request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns CreateDataFlowDebugSessionResponse. The + CreateDataFlowDebugSessionResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create( + self, + resource_group_name: str, + factory_name: str, + request: Union[_models.CreateDataFlowDebugSessionRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.CreateDataFlowDebugSessionResponse]: + """Creates a data flow debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition. Is one of the following types: + CreateDataFlowDebugSessionRequest, JSON, IO[bytes] Required. + :type request: ~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionRequest or JSON or + IO[bytes] + :return: An instance of LROPoller that returns CreateDataFlowDebugSessionResponse. The + CreateDataFlowDebugSessionResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.CreateDataFlowDebugSessionResponse] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + request=request, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.CreateDataFlowDebugSessionResponse, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.CreateDataFlowDebugSessionResponse].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.CreateDataFlowDebugSessionResponse]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @distributed_trace + def query_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> ItemPaged["_models.DataFlowDebugSessionInfo"]: + """Query all active data flow debug sessions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of DataFlowDebugSessionInfo + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.DataFlowDebugSessionInfo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DataFlowDebugSessionInfo]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_data_flow_debug_session_query_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DataFlowDebugSessionInfo], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @overload + def add_data_flow( + self, + resource_group_name: str, + factory_name: str, + request: _models.DataFlowDebugPackage, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AddDataFlowToDebugSessionResponse: + """Add a data flow into debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition with debug content. Required. + :type request: ~azure.mgmt.datafactory.models.DataFlowDebugPackage + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AddDataFlowToDebugSessionResponse. The AddDataFlowToDebugSessionResponse is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def add_data_flow( + self, + resource_group_name: str, + factory_name: str, + request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AddDataFlowToDebugSessionResponse: + """Add a data flow into debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition with debug content. Required. + :type request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AddDataFlowToDebugSessionResponse. The AddDataFlowToDebugSessionResponse is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def add_data_flow( + self, + resource_group_name: str, + factory_name: str, + request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AddDataFlowToDebugSessionResponse: + """Add a data flow into debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition with debug content. Required. + :type request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: AddDataFlowToDebugSessionResponse. The AddDataFlowToDebugSessionResponse is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def add_data_flow( + self, + resource_group_name: str, + factory_name: str, + request: Union[_models.DataFlowDebugPackage, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.AddDataFlowToDebugSessionResponse: + """Add a data flow into debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition with debug content. Is one of the following + types: DataFlowDebugPackage, JSON, IO[bytes] Required. + :type request: ~azure.mgmt.datafactory.models.DataFlowDebugPackage or JSON or IO[bytes] + :return: AddDataFlowToDebugSessionResponse. The AddDataFlowToDebugSessionResponse is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.AddDataFlowToDebugSessionResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(request, (IOBase, bytes)): + _content = request + else: + _content = json.dumps(request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_data_flow_debug_session_add_data_flow_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AddDataFlowToDebugSessionResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def delete( + self, + resource_group_name: str, + factory_name: str, + request: _models.DeleteDataFlowDebugSessionRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Deletes a data flow debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition for deletion. Required. + :type request: ~azure.mgmt.datafactory.models.DeleteDataFlowDebugSessionRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def delete( + self, + resource_group_name: str, + factory_name: str, + request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Deletes a data flow debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition for deletion. Required. + :type request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def delete( + self, + resource_group_name: str, + factory_name: str, + request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Deletes a data flow debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition for deletion. Required. + :type request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + factory_name: str, + request: Union[_models.DeleteDataFlowDebugSessionRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> None: + """Deletes a data flow debug session. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug session definition for deletion. Is one of the following types: + DeleteDataFlowDebugSessionRequest, JSON, IO[bytes] Required. + :type request: ~azure.mgmt.datafactory.models.DeleteDataFlowDebugSessionRequest or JSON or + IO[bytes] + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(request, (IOBase, bytes)): + _content = request + else: + _content = json.dumps(request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_data_flow_debug_session_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + def _execute_command_initial( + self, + resource_group_name: str, + factory_name: str, + request: Union[_models.DataFlowDebugCommandRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(request, (IOBase, bytes)): + _content = request + else: + _content = json.dumps(request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_data_flow_debug_session_execute_command_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_execute_command( + self, + resource_group_name: str, + factory_name: str, + request: _models.DataFlowDebugCommandRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DataFlowDebugCommandResponse]: + """Execute a data flow debug command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug command definition. Required. + :type request: ~azure.mgmt.datafactory.models.DataFlowDebugCommandRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DataFlowDebugCommandResponse. The + DataFlowDebugCommandResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.DataFlowDebugCommandResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_execute_command( + self, + resource_group_name: str, + factory_name: str, + request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DataFlowDebugCommandResponse]: + """Execute a data flow debug command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug command definition. Required. + :type request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DataFlowDebugCommandResponse. The + DataFlowDebugCommandResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.DataFlowDebugCommandResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_execute_command( + self, + resource_group_name: str, + factory_name: str, + request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DataFlowDebugCommandResponse]: + """Execute a data flow debug command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug command definition. Required. + :type request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DataFlowDebugCommandResponse. The + DataFlowDebugCommandResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.DataFlowDebugCommandResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_execute_command( + self, + resource_group_name: str, + factory_name: str, + request: Union[_models.DataFlowDebugCommandRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.DataFlowDebugCommandResponse]: + """Execute a data flow debug command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param request: Data flow debug command definition. Is one of the following types: + DataFlowDebugCommandRequest, JSON, IO[bytes] Required. + :type request: ~azure.mgmt.datafactory.models.DataFlowDebugCommandRequest or JSON or IO[bytes] + :return: An instance of LROPoller that returns DataFlowDebugCommandResponse. The + DataFlowDebugCommandResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.DataFlowDebugCommandResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DataFlowDebugCommandResponse] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._execute_command_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + request=request, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DataFlowDebugCommandResponse, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.DataFlowDebugCommandResponse].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.DataFlowDebugCommandResponse]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + +class PrivateLinkResourcesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`private_link_resources` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, resource_group_name: str, factory_name: str, **kwargs: Any) -> _models.PrivateLinkResourcesWrapper: + """Gets the private link resources. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: PrivateLinkResourcesWrapper. The PrivateLinkResourcesWrapper is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PrivateLinkResourcesWrapper + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.PrivateLinkResourcesWrapper] = kwargs.pop("cls", None) + + _request = build_private_link_resources_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.PrivateLinkResourcesWrapper, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class IntegrationRuntimesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`integration_runtimes` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> Optional[_models.IntegrationRuntimeResource]: + """Gets an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: IntegrationRuntimeResource or None. The IntegrationRuntimeResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource or None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Optional[_models.IntegrationRuntimeResource]] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 304]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + integration_runtime: _models.IntegrationRuntimeResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.IntegrationRuntimeResource: + """Creates or updates an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param integration_runtime: Integration runtime resource definition. Required. + :type integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: IntegrationRuntimeResource. The IntegrationRuntimeResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + integration_runtime: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.IntegrationRuntimeResource: + """Creates or updates an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param integration_runtime: Integration runtime resource definition. Required. + :type integration_runtime: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: IntegrationRuntimeResource. The IntegrationRuntimeResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + integration_runtime: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.IntegrationRuntimeResource: + """Creates or updates an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param integration_runtime: Integration runtime resource definition. Required. + :type integration_runtime: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: IntegrationRuntimeResource. The IntegrationRuntimeResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + integration_runtime: Union[_models.IntegrationRuntimeResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.IntegrationRuntimeResource: + """Creates or updates an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param integration_runtime: Integration runtime resource definition. Is one of the following + types: IntegrationRuntimeResource, JSON, IO[bytes] Required. + :type integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource or JSON or + IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: IntegrationRuntimeResource. The IntegrationRuntimeResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(integration_runtime, (IOBase, bytes)): + _content = integration_runtime + else: + _content = json.dumps(integration_runtime, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_integration_runtimes_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + update_integration_runtime_request: _models.UpdateIntegrationRuntimeRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IntegrationRuntimeResource: + """Updates an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param update_integration_runtime_request: The parameters for updating an integration runtime. + Required. + :type update_integration_runtime_request: + ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: IntegrationRuntimeResource. The IntegrationRuntimeResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + update_integration_runtime_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IntegrationRuntimeResource: + """Updates an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param update_integration_runtime_request: The parameters for updating an integration runtime. + Required. + :type update_integration_runtime_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: IntegrationRuntimeResource. The IntegrationRuntimeResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + update_integration_runtime_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IntegrationRuntimeResource: + """Updates an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param update_integration_runtime_request: The parameters for updating an integration runtime. + Required. + :type update_integration_runtime_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: IntegrationRuntimeResource. The IntegrationRuntimeResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + update_integration_runtime_request: Union[_models.UpdateIntegrationRuntimeRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.IntegrationRuntimeResource: + """Updates an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param update_integration_runtime_request: The parameters for updating an integration runtime. + Is one of the following types: UpdateIntegrationRuntimeRequest, JSON, IO[bytes] Required. + :type update_integration_runtime_request: + ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeRequest or JSON or IO[bytes] + :return: IntegrationRuntimeResource. The IntegrationRuntimeResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(update_integration_runtime_request, (IOBase, bytes)): + _content = update_integration_runtime_request + else: + _content = json.dumps(update_integration_runtime_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_integration_runtimes_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> None: + """Deletes an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> ItemPaged["_models.IntegrationRuntimeResource"]: + """Lists integration runtimes. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of IntegrationRuntimeResource + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.IntegrationRuntimeResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_integration_runtimes_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.IntegrationRuntimeResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def get_status( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> _models.IntegrationRuntimeStatusResponse: + """Gets detailed status information for an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: IntegrationRuntimeStatusResponse. The IntegrationRuntimeStatusResponse is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.IntegrationRuntimeStatusResponse] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_get_status_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeStatusResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_outbound_network_dependencies_endpoints( # pylint: disable=name-too-long + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> _models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse: + """Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse. The + IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse is compatible with + MutableMapping + :rtype: + ~azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_list_outbound_network_dependencies_endpoints_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize( + _models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse, response.json() + ) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def get_connection_info( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> _models.IntegrationRuntimeConnectionInfo: + """Gets the on-premises integration runtime connection information for encrypting the on-premises + data source credentials. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: IntegrationRuntimeConnectionInfo. The IntegrationRuntimeConnectionInfo is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeConnectionInfo + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.IntegrationRuntimeConnectionInfo] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_get_connection_info_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeConnectionInfo, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def regenerate_auth_key( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + regenerate_key_parameters: _models.IntegrationRuntimeRegenerateKeyParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IntegrationRuntimeAuthKeys: + """Regenerates the authentication key for an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param regenerate_key_parameters: The parameters for regenerating integration runtime + authentication key. Required. + :type regenerate_key_parameters: + ~azure.mgmt.datafactory.models.IntegrationRuntimeRegenerateKeyParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: IntegrationRuntimeAuthKeys. The IntegrationRuntimeAuthKeys is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def regenerate_auth_key( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + regenerate_key_parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IntegrationRuntimeAuthKeys: + """Regenerates the authentication key for an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param regenerate_key_parameters: The parameters for regenerating integration runtime + authentication key. Required. + :type regenerate_key_parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: IntegrationRuntimeAuthKeys. The IntegrationRuntimeAuthKeys is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def regenerate_auth_key( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + regenerate_key_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IntegrationRuntimeAuthKeys: + """Regenerates the authentication key for an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param regenerate_key_parameters: The parameters for regenerating integration runtime + authentication key. Required. + :type regenerate_key_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: IntegrationRuntimeAuthKeys. The IntegrationRuntimeAuthKeys is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def regenerate_auth_key( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + regenerate_key_parameters: Union[_models.IntegrationRuntimeRegenerateKeyParameters, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.IntegrationRuntimeAuthKeys: + """Regenerates the authentication key for an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param regenerate_key_parameters: The parameters for regenerating integration runtime + authentication key. Is one of the following types: IntegrationRuntimeRegenerateKeyParameters, + JSON, IO[bytes] Required. + :type regenerate_key_parameters: + ~azure.mgmt.datafactory.models.IntegrationRuntimeRegenerateKeyParameters or JSON or IO[bytes] + :return: IntegrationRuntimeAuthKeys. The IntegrationRuntimeAuthKeys is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.IntegrationRuntimeAuthKeys] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(regenerate_key_parameters, (IOBase, bytes)): + _content = regenerate_key_parameters + else: + _content = json.dumps(regenerate_key_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_integration_runtimes_regenerate_auth_key_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeAuthKeys, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_auth_keys( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> _models.IntegrationRuntimeAuthKeys: + """Retrieves the authentication keys for an integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: IntegrationRuntimeAuthKeys. The IntegrationRuntimeAuthKeys is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.IntegrationRuntimeAuthKeys] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_list_auth_keys_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeAuthKeys, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _start_initial( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_start_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_start( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> LROPoller[_models.IntegrationRuntimeStatusResponse]: + """Starts a ManagedReserved type integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: An instance of LROPoller that returns IntegrationRuntimeStatusResponse. The + IntegrationRuntimeStatusResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.IntegrationRuntimeStatusResponse] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._start_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.IntegrationRuntimeStatusResponse, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.IntegrationRuntimeStatusResponse].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.IntegrationRuntimeStatusResponse]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _stop_initial( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_stop_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_stop( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Stops a ManagedReserved type integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._stop_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def sync_credentials( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> None: + """Force the integration runtime to synchronize credentials across integration runtime nodes, and + this will override the credentials across all worker nodes with those available on the + dispatcher node. If you already have the latest credential backup file, you should manually + import it (preferred) on any self-hosted integration runtime node than using this API directly. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_sync_credentials_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def get_monitoring_data( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> _models.IntegrationRuntimeMonitoringData: + """Get the integration runtime monitoring data, which includes the monitor data for all the nodes + under this integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: IntegrationRuntimeMonitoringData. The IntegrationRuntimeMonitoringData is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeMonitoringData + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.IntegrationRuntimeMonitoringData] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_get_monitoring_data_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeMonitoringData, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def upgrade( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> None: + """Upgrade self-hosted integration runtime to latest version if availability. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_integration_runtimes_upgrade_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @overload + def remove_links( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + linked_integration_runtime_request: _models.LinkedIntegrationRuntimeRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Remove all linked integration runtimes under specific data factory in a self-hosted integration + runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param linked_integration_runtime_request: The data factory name for the linked integration + runtime. Required. + :type linked_integration_runtime_request: + ~azure.mgmt.datafactory.models.LinkedIntegrationRuntimeRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def remove_links( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + linked_integration_runtime_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Remove all linked integration runtimes under specific data factory in a self-hosted integration + runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param linked_integration_runtime_request: The data factory name for the linked integration + runtime. Required. + :type linked_integration_runtime_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def remove_links( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + linked_integration_runtime_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Remove all linked integration runtimes under specific data factory in a self-hosted integration + runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param linked_integration_runtime_request: The data factory name for the linked integration + runtime. Required. + :type linked_integration_runtime_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def remove_links( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + linked_integration_runtime_request: Union[_models.LinkedIntegrationRuntimeRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> None: + """Remove all linked integration runtimes under specific data factory in a self-hosted integration + runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param linked_integration_runtime_request: The data factory name for the linked integration + runtime. Is one of the following types: LinkedIntegrationRuntimeRequest, JSON, IO[bytes] + Required. + :type linked_integration_runtime_request: + ~azure.mgmt.datafactory.models.LinkedIntegrationRuntimeRequest or JSON or IO[bytes] + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(linked_integration_runtime_request, (IOBase, bytes)): + _content = linked_integration_runtime_request + else: + _content = json.dumps(linked_integration_runtime_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_integration_runtimes_remove_links_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @overload + def create_linked_integration_runtime( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + create_linked_integration_runtime_request: _models.CreateLinkedIntegrationRuntimeRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IntegrationRuntimeStatusResponse: + """Create a linked integration runtime entry in a shared integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param create_linked_integration_runtime_request: The linked integration runtime properties. + Required. + :type create_linked_integration_runtime_request: + ~azure.mgmt.datafactory.models.CreateLinkedIntegrationRuntimeRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: IntegrationRuntimeStatusResponse. The IntegrationRuntimeStatusResponse is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_linked_integration_runtime( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + create_linked_integration_runtime_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IntegrationRuntimeStatusResponse: + """Create a linked integration runtime entry in a shared integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param create_linked_integration_runtime_request: The linked integration runtime properties. + Required. + :type create_linked_integration_runtime_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: IntegrationRuntimeStatusResponse. The IntegrationRuntimeStatusResponse is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_linked_integration_runtime( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + create_linked_integration_runtime_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IntegrationRuntimeStatusResponse: + """Create a linked integration runtime entry in a shared integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param create_linked_integration_runtime_request: The linked integration runtime properties. + Required. + :type create_linked_integration_runtime_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: IntegrationRuntimeStatusResponse. The IntegrationRuntimeStatusResponse is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_linked_integration_runtime( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + create_linked_integration_runtime_request: Union[ + _models.CreateLinkedIntegrationRuntimeRequest, JSON, IO[bytes] + ], + **kwargs: Any + ) -> _models.IntegrationRuntimeStatusResponse: + """Create a linked integration runtime entry in a shared integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param create_linked_integration_runtime_request: The linked integration runtime properties. Is + one of the following types: CreateLinkedIntegrationRuntimeRequest, JSON, IO[bytes] Required. + :type create_linked_integration_runtime_request: + ~azure.mgmt.datafactory.models.CreateLinkedIntegrationRuntimeRequest or JSON or IO[bytes] + :return: IntegrationRuntimeStatusResponse. The IntegrationRuntimeStatusResponse is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.IntegrationRuntimeStatusResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(create_linked_integration_runtime_request, (IOBase, bytes)): + _content = create_linked_integration_runtime_request + else: + _content = json.dumps(create_linked_integration_runtime_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_integration_runtimes_create_linked_integration_runtime_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeStatusResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class IntegrationRuntimeObjectMetadataOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`integration_runtime_object_metadata` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + def _refresh_initial( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_integration_runtime_object_metadata_refresh_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_refresh( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> LROPoller[_models.SsisObjectMetadataStatusResponse]: + """Refresh a SSIS integration runtime object metadata. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: An instance of LROPoller that returns SsisObjectMetadataStatusResponse. The + SsisObjectMetadataStatusResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.SsisObjectMetadataStatusResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.SsisObjectMetadataStatusResponse] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._refresh_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.SsisObjectMetadataStatusResponse, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.SsisObjectMetadataStatusResponse].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.SsisObjectMetadataStatusResponse]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @overload + def get( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + get_metadata_request: Optional[_models.GetSsisObjectMetadataRequest] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SsisObjectMetadataListResponse: + """Get a SSIS integration runtime object metadata by specified path. The return is pageable + metadata list. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param get_metadata_request: The parameters for getting a SSIS object metadata. Default value + is None. + :type get_metadata_request: ~azure.mgmt.datafactory.models.GetSsisObjectMetadataRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: SsisObjectMetadataListResponse. The SsisObjectMetadataListResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def get( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + get_metadata_request: Optional[JSON] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SsisObjectMetadataListResponse: + """Get a SSIS integration runtime object metadata by specified path. The return is pageable + metadata list. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param get_metadata_request: The parameters for getting a SSIS object metadata. Default value + is None. + :type get_metadata_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: SsisObjectMetadataListResponse. The SsisObjectMetadataListResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def get( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + get_metadata_request: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SsisObjectMetadataListResponse: + """Get a SSIS integration runtime object metadata by specified path. The return is pageable + metadata list. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param get_metadata_request: The parameters for getting a SSIS object metadata. Default value + is None. + :type get_metadata_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: SsisObjectMetadataListResponse. The SsisObjectMetadataListResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def get( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + get_metadata_request: Optional[Union[_models.GetSsisObjectMetadataRequest, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> _models.SsisObjectMetadataListResponse: + """Get a SSIS integration runtime object metadata by specified path. The return is pageable + metadata list. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param get_metadata_request: The parameters for getting a SSIS object metadata. Is one of the + following types: GetSsisObjectMetadataRequest, JSON, IO[bytes] Default value is None. + :type get_metadata_request: ~azure.mgmt.datafactory.models.GetSsisObjectMetadataRequest or JSON + or IO[bytes] + :return: SsisObjectMetadataListResponse. The SsisObjectMetadataListResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if get_metadata_request else None + cls: ClsType[_models.SsisObjectMetadataListResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if get_metadata_request else None + _content = None + if isinstance(get_metadata_request, (IOBase, bytes)): + _content = get_metadata_request + else: + if get_metadata_request is not None: + _content = json.dumps(get_metadata_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_integration_runtime_object_metadata_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SsisObjectMetadataListResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class IntegrationRuntimeNodesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`integration_runtime_nodes` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, node_name: str, **kwargs: Any + ) -> _models.SelfHostedIntegrationRuntimeNode: + """Gets a self-hosted integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param integration_runtime_name: Required. + :type integration_runtime_name: str + :param node_name: The integration runtime node name. Required. + :type node_name: str + :return: SelfHostedIntegrationRuntimeNode. The SelfHostedIntegrationRuntimeNode is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.SelfHostedIntegrationRuntimeNode] = kwargs.pop("cls", None) + + _request = build_integration_runtime_nodes_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + node_name=node_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SelfHostedIntegrationRuntimeNode, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, node_name: str, **kwargs: Any + ) -> None: + """Deletes a self-hosted integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param integration_runtime_name: Required. + :type integration_runtime_name: str + :param node_name: The integration runtime node name. Required. + :type node_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_integration_runtime_nodes_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + node_name=node_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @overload + def update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + node_name: str, + update_integration_runtime_node_request: _models.UpdateIntegrationRuntimeNodeRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SelfHostedIntegrationRuntimeNode: + """Updates a self-hosted integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param integration_runtime_name: Required. + :type integration_runtime_name: str + :param node_name: The integration runtime node name. Required. + :type node_name: str + :param update_integration_runtime_node_request: The parameters for updating an integration + runtime node. Required. + :type update_integration_runtime_node_request: + ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeNodeRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: SelfHostedIntegrationRuntimeNode. The SelfHostedIntegrationRuntimeNode is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + node_name: str, + update_integration_runtime_node_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SelfHostedIntegrationRuntimeNode: + """Updates a self-hosted integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param integration_runtime_name: Required. + :type integration_runtime_name: str + :param node_name: The integration runtime node name. Required. + :type node_name: str + :param update_integration_runtime_node_request: The parameters for updating an integration + runtime node. Required. + :type update_integration_runtime_node_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: SelfHostedIntegrationRuntimeNode. The SelfHostedIntegrationRuntimeNode is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + node_name: str, + update_integration_runtime_node_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SelfHostedIntegrationRuntimeNode: + """Updates a self-hosted integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param integration_runtime_name: Required. + :type integration_runtime_name: str + :param node_name: The integration runtime node name. Required. + :type node_name: str + :param update_integration_runtime_node_request: The parameters for updating an integration + runtime node. Required. + :type update_integration_runtime_node_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: SelfHostedIntegrationRuntimeNode. The SelfHostedIntegrationRuntimeNode is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def update( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + node_name: str, + update_integration_runtime_node_request: Union[_models.UpdateIntegrationRuntimeNodeRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.SelfHostedIntegrationRuntimeNode: + """Updates a self-hosted integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param integration_runtime_name: Required. + :type integration_runtime_name: str + :param node_name: The integration runtime node name. Required. + :type node_name: str + :param update_integration_runtime_node_request: The parameters for updating an integration + runtime node. Is one of the following types: UpdateIntegrationRuntimeNodeRequest, JSON, + IO[bytes] Required. + :type update_integration_runtime_node_request: + ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeNodeRequest or JSON or IO[bytes] + :return: SelfHostedIntegrationRuntimeNode. The SelfHostedIntegrationRuntimeNode is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.SelfHostedIntegrationRuntimeNode] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(update_integration_runtime_node_request, (IOBase, bytes)): + _content = update_integration_runtime_node_request + else: + _content = json.dumps(update_integration_runtime_node_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_integration_runtime_nodes_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + node_name=node_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SelfHostedIntegrationRuntimeNode, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def get_ip_address( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, node_name: str, **kwargs: Any + ) -> _models.IntegrationRuntimeNodeIpAddress: + """Get the IP address of self-hosted integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: Required. + :type factory_name: str + :param integration_runtime_name: Required. + :type integration_runtime_name: str + :param node_name: The integration runtime node name. Required. + :type node_name: str + :return: IntegrationRuntimeNodeIpAddress. The IntegrationRuntimeNodeIpAddress is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeNodeIpAddress + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.IntegrationRuntimeNodeIpAddress] = kwargs.pop("cls", None) + + _request = build_integration_runtime_nodes_get_ip_address_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + node_name=node_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeNodeIpAddress, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class IntegrationRuntimeOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`integration_runtime` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + def _enable_interactive_query_initial( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + enable_interactive_query_request: Union[_models.EnableInteractiveQueryRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(enable_interactive_query_request, (IOBase, bytes)): + _content = enable_interactive_query_request + else: + _content = json.dumps(enable_interactive_query_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_integration_runtime_enable_interactive_query_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_enable_interactive_query( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + enable_interactive_query_request: _models.EnableInteractiveQueryRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.IntegrationRuntimeResource]: + """Enable interactive authoring of Managed Virtual Network integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param enable_interactive_query_request: The enable interactive authoring integration runtime + properties. Required. + :type enable_interactive_query_request: + ~azure.mgmt.datafactory.models.EnableInteractiveQueryRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns IntegrationRuntimeResource. The + IntegrationRuntimeResource is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_enable_interactive_query( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + enable_interactive_query_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.IntegrationRuntimeResource]: + """Enable interactive authoring of Managed Virtual Network integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param enable_interactive_query_request: The enable interactive authoring integration runtime + properties. Required. + :type enable_interactive_query_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns IntegrationRuntimeResource. The + IntegrationRuntimeResource is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_enable_interactive_query( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + enable_interactive_query_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.IntegrationRuntimeResource]: + """Enable interactive authoring of Managed Virtual Network integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param enable_interactive_query_request: The enable interactive authoring integration runtime + properties. Required. + :type enable_interactive_query_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns IntegrationRuntimeResource. The + IntegrationRuntimeResource is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_enable_interactive_query( + self, + resource_group_name: str, + factory_name: str, + integration_runtime_name: str, + enable_interactive_query_request: Union[_models.EnableInteractiveQueryRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.IntegrationRuntimeResource]: + """Enable interactive authoring of Managed Virtual Network integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :param enable_interactive_query_request: The enable interactive authoring integration runtime + properties. Is one of the following types: EnableInteractiveQueryRequest, JSON, IO[bytes] + Required. + :type enable_interactive_query_request: + ~azure.mgmt.datafactory.models.EnableInteractiveQueryRequest or JSON or IO[bytes] + :return: An instance of LROPoller that returns IntegrationRuntimeResource. The + IntegrationRuntimeResource is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._enable_interactive_query_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + enable_interactive_query_request=enable_interactive_query_request, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.IntegrationRuntimeResource, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.IntegrationRuntimeResource].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.IntegrationRuntimeResource]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _disable_interactive_query_initial( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_integration_runtime_disable_interactive_query_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_disable_interactive_query( + self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any + ) -> LROPoller[_models.IntegrationRuntimeResource]: + """Disable interactive authoring of Managed Virtual Network integration runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param integration_runtime_name: The integration runtime name. Required. + :type integration_runtime_name: str + :return: An instance of LROPoller that returns IntegrationRuntimeResource. The + IntegrationRuntimeResource is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._disable_interactive_query_initial( + resource_group_name=resource_group_name, + factory_name=factory_name, + integration_runtime_name=integration_runtime_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.IntegrationRuntimeResource, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.IntegrationRuntimeResource].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.IntegrationRuntimeResource]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + +class LinkedServicesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`linked_services` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, + resource_group_name: str, + factory_name: str, + linked_service_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> Optional[_models.LinkedServiceResource]: + """Gets a linked service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param linked_service_name: The linked service name. Required. + :type linked_service_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: LinkedServiceResource or None. The LinkedServiceResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource or None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Optional[_models.LinkedServiceResource]] = kwargs.pop("cls", None) + + _request = build_linked_services_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + linked_service_name=linked_service_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 304]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.LinkedServiceResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + linked_service_name: str, + linked_service: _models.LinkedServiceResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.LinkedServiceResource: + """Creates or updates a linked service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param linked_service_name: The linked service name. Required. + :type linked_service_name: str + :param linked_service: Linked service resource definition. Required. + :type linked_service: ~azure.mgmt.datafactory.models.LinkedServiceResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: LinkedServiceResource. The LinkedServiceResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + linked_service_name: str, + linked_service: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.LinkedServiceResource: + """Creates or updates a linked service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param linked_service_name: The linked service name. Required. + :type linked_service_name: str + :param linked_service: Linked service resource definition. Required. + :type linked_service: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: LinkedServiceResource. The LinkedServiceResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + linked_service_name: str, + linked_service: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.LinkedServiceResource: + """Creates or updates a linked service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param linked_service_name: The linked service name. Required. + :type linked_service_name: str + :param linked_service: Linked service resource definition. Required. + :type linked_service: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: LinkedServiceResource. The LinkedServiceResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + linked_service_name: str, + linked_service: Union[_models.LinkedServiceResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.LinkedServiceResource: + """Creates or updates a linked service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param linked_service_name: The linked service name. Required. + :type linked_service_name: str + :param linked_service: Linked service resource definition. Is one of the following types: + LinkedServiceResource, JSON, IO[bytes] Required. + :type linked_service: ~azure.mgmt.datafactory.models.LinkedServiceResource or JSON or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: LinkedServiceResource. The LinkedServiceResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.LinkedServiceResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(linked_service, (IOBase, bytes)): + _content = linked_service + else: + _content = json.dumps(linked_service, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_linked_services_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + linked_service_name=linked_service_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.LinkedServiceResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, factory_name: str, linked_service_name: str, **kwargs: Any + ) -> None: + """Deletes a linked service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param linked_service_name: The linked service name. Required. + :type linked_service_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_linked_services_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + linked_service_name=linked_service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> ItemPaged["_models.LinkedServiceResource"]: + """Lists linked services. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of LinkedServiceResource + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.LinkedServiceResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.LinkedServiceResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_linked_services_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.LinkedServiceResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class DatasetsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`datasets` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, + resource_group_name: str, + factory_name: str, + dataset_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> Optional[_models.DatasetResource]: + """Gets a dataset. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param dataset_name: The dataset name. Required. + :type dataset_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DatasetResource or None. The DatasetResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DatasetResource or None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Optional[_models.DatasetResource]] = kwargs.pop("cls", None) + + _request = build_datasets_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + dataset_name=dataset_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 304]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DatasetResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + dataset_name: str, + dataset: _models.DatasetResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.DatasetResource: + """Creates or updates a dataset. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param dataset_name: The dataset name. Required. + :type dataset_name: str + :param dataset: Dataset resource definition. Required. + :type dataset: ~azure.mgmt.datafactory.models.DatasetResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DatasetResource. The DatasetResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DatasetResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + dataset_name: str, + dataset: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.DatasetResource: + """Creates or updates a dataset. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param dataset_name: The dataset name. Required. + :type dataset_name: str + :param dataset: Dataset resource definition. Required. + :type dataset: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DatasetResource. The DatasetResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DatasetResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + dataset_name: str, + dataset: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.DatasetResource: + """Creates or updates a dataset. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param dataset_name: The dataset name. Required. + :type dataset_name: str + :param dataset: Dataset resource definition. Required. + :type dataset: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DatasetResource. The DatasetResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DatasetResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + dataset_name: str, + dataset: Union[_models.DatasetResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.DatasetResource: + """Creates or updates a dataset. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param dataset_name: The dataset name. Required. + :type dataset_name: str + :param dataset: Dataset resource definition. Is one of the following types: DatasetResource, + JSON, IO[bytes] Required. + :type dataset: ~azure.mgmt.datafactory.models.DatasetResource or JSON or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DatasetResource. The DatasetResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DatasetResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DatasetResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(dataset, (IOBase, bytes)): + _content = dataset + else: + _content = json.dumps(dataset, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_datasets_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + dataset_name=dataset_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DatasetResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, factory_name: str, dataset_name: str, **kwargs: Any + ) -> None: + """Deletes a dataset. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param dataset_name: The dataset name. Required. + :type dataset_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_datasets_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + dataset_name=dataset_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> ItemPaged["_models.DatasetResource"]: + """Lists datasets. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of DatasetResource + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.DatasetResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DatasetResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_datasets_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DatasetResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class PipelinesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`pipelines` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, + resource_group_name: str, + factory_name: str, + pipeline_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> Optional[_models.PipelineResource]: + """Gets a pipeline. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param pipeline_name: The pipeline name. Required. + :type pipeline_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PipelineResource or None. The PipelineResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineResource or None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Optional[_models.PipelineResource]] = kwargs.pop("cls", None) + + _request = build_pipelines_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + pipeline_name=pipeline_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 304]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.PipelineResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + pipeline_name: str, + pipeline: _models.PipelineResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.PipelineResource: + """Creates or updates a pipeline. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param pipeline_name: The pipeline name. Required. + :type pipeline_name: str + :param pipeline: Pipeline resource definition. Required. + :type pipeline: ~azure.mgmt.datafactory.models.PipelineResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PipelineResource. The PipelineResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + pipeline_name: str, + pipeline: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.PipelineResource: + """Creates or updates a pipeline. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param pipeline_name: The pipeline name. Required. + :type pipeline_name: str + :param pipeline: Pipeline resource definition. Required. + :type pipeline: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PipelineResource. The PipelineResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + pipeline_name: str, + pipeline: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.PipelineResource: + """Creates or updates a pipeline. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param pipeline_name: The pipeline name. Required. + :type pipeline_name: str + :param pipeline: Pipeline resource definition. Required. + :type pipeline: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PipelineResource. The PipelineResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + pipeline_name: str, + pipeline: Union[_models.PipelineResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.PipelineResource: + """Creates or updates a pipeline. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param pipeline_name: The pipeline name. Required. + :type pipeline_name: str + :param pipeline: Pipeline resource definition. Is one of the following types: PipelineResource, + JSON, IO[bytes] Required. + :type pipeline: ~azure.mgmt.datafactory.models.PipelineResource or JSON or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PipelineResource. The PipelineResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PipelineResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.PipelineResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(pipeline, (IOBase, bytes)): + _content = pipeline + else: + _content = json.dumps(pipeline, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_pipelines_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + pipeline_name=pipeline_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.PipelineResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, factory_name: str, pipeline_name: str, **kwargs: Any + ) -> None: + """Deletes a pipeline. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param pipeline_name: The pipeline name. Required. + :type pipeline_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_pipelines_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + pipeline_name=pipeline_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> ItemPaged["_models.PipelineResource"]: + """Lists pipelines. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of PipelineResource + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.PipelineResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.PipelineResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_pipelines_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.PipelineResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @overload + def create_run( + self, + resource_group_name: str, + factory_name: str, + pipeline_name: str, + parameters: Optional[dict[str, Any]] = None, + *, + reference_pipeline_run_id: Optional[str] = None, + is_recovery: Optional[bool] = None, + start_activity_name: Optional[str] = None, + start_from_failure: Optional[bool] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CreateRunResponse: + """Creates a run of a pipeline. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param pipeline_name: The pipeline name. Required. + :type pipeline_name: str + :param parameters: Parameters of the pipeline run. These parameters will be used only if the + runId is not specified. Default value is None. + :type parameters: dict[str, any] + :keyword reference_pipeline_run_id: The pipeline run identifier. If run ID is specified the + parameters of the specified run will be used to create a new run. Default value is None. + :paramtype reference_pipeline_run_id: str + :keyword is_recovery: Recovery mode flag. If recovery mode is set to true, the specified + referenced pipeline run and the new run will be grouped under the same groupId. Default value + is None. + :paramtype is_recovery: bool + :keyword start_activity_name: In recovery mode, the rerun will start from this activity. If not + specified, all activities will run. Default value is None. + :paramtype start_activity_name: str + :keyword start_from_failure: In recovery mode, if set to true, the rerun will start from failed + activities. The property will be used only if startActivityName is not specified. Default value + is None. + :paramtype start_from_failure: bool + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: CreateRunResponse. The CreateRunResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.CreateRunResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_run( + self, + resource_group_name: str, + factory_name: str, + pipeline_name: str, + parameters: Optional[IO[bytes]] = None, + *, + reference_pipeline_run_id: Optional[str] = None, + is_recovery: Optional[bool] = None, + start_activity_name: Optional[str] = None, + start_from_failure: Optional[bool] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CreateRunResponse: + """Creates a run of a pipeline. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param pipeline_name: The pipeline name. Required. + :type pipeline_name: str + :param parameters: Parameters of the pipeline run. These parameters will be used only if the + runId is not specified. Default value is None. + :type parameters: IO[bytes] + :keyword reference_pipeline_run_id: The pipeline run identifier. If run ID is specified the + parameters of the specified run will be used to create a new run. Default value is None. + :paramtype reference_pipeline_run_id: str + :keyword is_recovery: Recovery mode flag. If recovery mode is set to true, the specified + referenced pipeline run and the new run will be grouped under the same groupId. Default value + is None. + :paramtype is_recovery: bool + :keyword start_activity_name: In recovery mode, the rerun will start from this activity. If not + specified, all activities will run. Default value is None. + :paramtype start_activity_name: str + :keyword start_from_failure: In recovery mode, if set to true, the rerun will start from failed + activities. The property will be used only if startActivityName is not specified. Default value + is None. + :paramtype start_from_failure: bool + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: CreateRunResponse. The CreateRunResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.CreateRunResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_run( + self, + resource_group_name: str, + factory_name: str, + pipeline_name: str, + parameters: Optional[Union[dict[str, Any], IO[bytes]]] = None, + *, + reference_pipeline_run_id: Optional[str] = None, + is_recovery: Optional[bool] = None, + start_activity_name: Optional[str] = None, + start_from_failure: Optional[bool] = None, + **kwargs: Any + ) -> _models.CreateRunResponse: + """Creates a run of a pipeline. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param pipeline_name: The pipeline name. Required. + :type pipeline_name: str + :param parameters: Parameters of the pipeline run. These parameters will be used only if the + runId is not specified. Is either a {str: Any} type or a IO[bytes] type. Default value is None. + :type parameters: dict[str, any] or IO[bytes] + :keyword reference_pipeline_run_id: The pipeline run identifier. If run ID is specified the + parameters of the specified run will be used to create a new run. Default value is None. + :paramtype reference_pipeline_run_id: str + :keyword is_recovery: Recovery mode flag. If recovery mode is set to true, the specified + referenced pipeline run and the new run will be grouped under the same groupId. Default value + is None. + :paramtype is_recovery: bool + :keyword start_activity_name: In recovery mode, the rerun will start from this activity. If not + specified, all activities will run. Default value is None. + :paramtype start_activity_name: str + :keyword start_from_failure: In recovery mode, if set to true, the rerun will start from failed + activities. The property will be used only if startActivityName is not specified. Default value + is None. + :paramtype start_from_failure: bool + :return: CreateRunResponse. The CreateRunResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.CreateRunResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if parameters else None + cls: ClsType[_models.CreateRunResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if parameters else None + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + if parameters is not None: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_pipelines_create_run_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + pipeline_name=pipeline_name, + subscription_id=self._config.subscription_id, + reference_pipeline_run_id=reference_pipeline_run_id, + is_recovery=is_recovery, + start_activity_name=start_activity_name, + start_from_failure=start_from_failure, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.CreateRunResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class DataFlowsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`data_flows` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, + resource_group_name: str, + factory_name: str, + data_flow_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.DataFlowResource: + """Gets a data flow. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param data_flow_name: The data flow name. Required. + :type data_flow_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DataFlowResource. The DataFlowResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DataFlowResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DataFlowResource] = kwargs.pop("cls", None) + + _request = build_data_flows_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + data_flow_name=data_flow_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DataFlowResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + data_flow_name: str, + data_flow: _models.DataFlowResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.DataFlowResource: + """Creates or updates a data flow. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param data_flow_name: The data flow name. Required. + :type data_flow_name: str + :param data_flow: Data flow resource definition. Required. + :type data_flow: ~azure.mgmt.datafactory.models.DataFlowResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DataFlowResource. The DataFlowResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DataFlowResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + data_flow_name: str, + data_flow: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.DataFlowResource: + """Creates or updates a data flow. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param data_flow_name: The data flow name. Required. + :type data_flow_name: str + :param data_flow: Data flow resource definition. Required. + :type data_flow: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DataFlowResource. The DataFlowResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DataFlowResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + data_flow_name: str, + data_flow: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.DataFlowResource: + """Creates or updates a data flow. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param data_flow_name: The data flow name. Required. + :type data_flow_name: str + :param data_flow: Data flow resource definition. Required. + :type data_flow: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DataFlowResource. The DataFlowResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DataFlowResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + data_flow_name: str, + data_flow: Union[_models.DataFlowResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.DataFlowResource: + """Creates or updates a data flow. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param data_flow_name: The data flow name. Required. + :type data_flow_name: str + :param data_flow: Data flow resource definition. Is one of the following types: + DataFlowResource, JSON, IO[bytes] Required. + :type data_flow: ~azure.mgmt.datafactory.models.DataFlowResource or JSON or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: DataFlowResource. The DataFlowResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.DataFlowResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DataFlowResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(data_flow, (IOBase, bytes)): + _content = data_flow + else: + _content = json.dumps(data_flow, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_data_flows_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + data_flow_name=data_flow_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DataFlowResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, factory_name: str, data_flow_name: str, **kwargs: Any + ) -> None: + """Deletes a data flow. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param data_flow_name: The data flow name. Required. + :type data_flow_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_data_flows_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + data_flow_name=data_flow_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> ItemPaged["_models.DataFlowResource"]: + """Lists data flows. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of DataFlowResource + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.DataFlowResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DataFlowResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_data_flows_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DataFlowResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class ManagedVirtualNetworksOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`managed_virtual_networks` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedVirtualNetworkResource: + """Gets a managed Virtual Network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedVirtualNetworkResource. The ManagedVirtualNetworkResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ManagedVirtualNetworkResource] = kwargs.pop("cls", None) + + _request = build_managed_virtual_networks_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + managed_virtual_network_name=managed_virtual_network_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedVirtualNetworkResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_virtual_network: _models.ManagedVirtualNetworkResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedVirtualNetworkResource: + """Creates or updates a managed Virtual Network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_virtual_network: Managed Virtual Network resource definition. Required. + :type managed_virtual_network: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedVirtualNetworkResource. The ManagedVirtualNetworkResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_virtual_network: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedVirtualNetworkResource: + """Creates or updates a managed Virtual Network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_virtual_network: Managed Virtual Network resource definition. Required. + :type managed_virtual_network: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedVirtualNetworkResource. The ManagedVirtualNetworkResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_virtual_network: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedVirtualNetworkResource: + """Creates or updates a managed Virtual Network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_virtual_network: Managed Virtual Network resource definition. Required. + :type managed_virtual_network: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedVirtualNetworkResource. The ManagedVirtualNetworkResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_virtual_network: Union[_models.ManagedVirtualNetworkResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedVirtualNetworkResource: + """Creates or updates a managed Virtual Network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_virtual_network: Managed Virtual Network resource definition. Is one of the + following types: ManagedVirtualNetworkResource, JSON, IO[bytes] Required. + :type managed_virtual_network: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource or + JSON or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedVirtualNetworkResource. The ManagedVirtualNetworkResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ManagedVirtualNetworkResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(managed_virtual_network, (IOBase, bytes)): + _content = managed_virtual_network + else: + _content = json.dumps(managed_virtual_network, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_managed_virtual_networks_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + managed_virtual_network_name=managed_virtual_network_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedVirtualNetworkResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> ItemPaged["_models.ManagedVirtualNetworkResource"]: + """Lists managed Virtual Networks. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of ManagedVirtualNetworkResource + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ManagedVirtualNetworkResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_managed_virtual_networks_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ManagedVirtualNetworkResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class ManagedPrivateEndpointsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`managed_private_endpoints` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_private_endpoint_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedPrivateEndpointResource: + """Gets a managed private endpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_private_endpoint_name: Managed private endpoint name. Required. + :type managed_private_endpoint_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedPrivateEndpointResource. The ManagedPrivateEndpointResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ManagedPrivateEndpointResource] = kwargs.pop("cls", None) + + _request = build_managed_private_endpoints_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + managed_virtual_network_name=managed_virtual_network_name, + managed_private_endpoint_name=managed_private_endpoint_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedPrivateEndpointResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_private_endpoint_name: str, + managed_private_endpoint: _models.ManagedPrivateEndpointResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedPrivateEndpointResource: + """Creates or updates a managed private endpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_private_endpoint_name: Managed private endpoint name. Required. + :type managed_private_endpoint_name: str + :param managed_private_endpoint: Managed private endpoint resource definition. Required. + :type managed_private_endpoint: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedPrivateEndpointResource. The ManagedPrivateEndpointResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_private_endpoint_name: str, + managed_private_endpoint: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedPrivateEndpointResource: + """Creates or updates a managed private endpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_private_endpoint_name: Managed private endpoint name. Required. + :type managed_private_endpoint_name: str + :param managed_private_endpoint: Managed private endpoint resource definition. Required. + :type managed_private_endpoint: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedPrivateEndpointResource. The ManagedPrivateEndpointResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_private_endpoint_name: str, + managed_private_endpoint: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedPrivateEndpointResource: + """Creates or updates a managed private endpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_private_endpoint_name: Managed private endpoint name. Required. + :type managed_private_endpoint_name: str + :param managed_private_endpoint: Managed private endpoint resource definition. Required. + :type managed_private_endpoint: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedPrivateEndpointResource. The ManagedPrivateEndpointResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_private_endpoint_name: str, + managed_private_endpoint: Union[_models.ManagedPrivateEndpointResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ManagedPrivateEndpointResource: + """Creates or updates a managed private endpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_private_endpoint_name: Managed private endpoint name. Required. + :type managed_private_endpoint_name: str + :param managed_private_endpoint: Managed private endpoint resource definition. Is one of the + following types: ManagedPrivateEndpointResource, JSON, IO[bytes] Required. + :type managed_private_endpoint: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource + or JSON or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ManagedPrivateEndpointResource. The ManagedPrivateEndpointResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ManagedPrivateEndpointResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(managed_private_endpoint, (IOBase, bytes)): + _content = managed_private_endpoint + else: + _content = json.dumps(managed_private_endpoint, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_managed_private_endpoints_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + managed_virtual_network_name=managed_virtual_network_name, + managed_private_endpoint_name=managed_private_endpoint_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedPrivateEndpointResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + factory_name: str, + managed_virtual_network_name: str, + managed_private_endpoint_name: str, + **kwargs: Any + ) -> None: + """Deletes a managed private endpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :param managed_private_endpoint_name: Managed private endpoint name. Required. + :type managed_private_endpoint_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_managed_private_endpoints_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + managed_virtual_network_name=managed_virtual_network_name, + managed_private_endpoint_name=managed_private_endpoint_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, managed_virtual_network_name: str, **kwargs: Any + ) -> ItemPaged["_models.ManagedPrivateEndpointResource"]: + """Lists managed private endpoints. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param managed_virtual_network_name: Managed virtual network name. Required. + :type managed_virtual_network_name: str + :return: An iterator like instance of ManagedPrivateEndpointResource + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ManagedPrivateEndpointResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_managed_private_endpoints_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + managed_virtual_network_name=managed_virtual_network_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ManagedPrivateEndpointResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class CredentialOperationsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`credential_operations` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, + resource_group_name: str, + factory_name: str, + credential_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> Optional[_models.CredentialResource]: + """Gets a credential. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param credential_name: Credential name. Required. + :type credential_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: CredentialResource or None. The CredentialResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.CredentialResource or None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Optional[_models.CredentialResource]] = kwargs.pop("cls", None) + + _request = build_credential_operations_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + credential_name=credential_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 304]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.CredentialResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + credential_name: str, + credential: _models.CredentialResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.CredentialResource: + """Creates or updates a credential. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param credential_name: Credential name. Required. + :type credential_name: str + :param credential: Credential resource definition. Required. + :type credential: ~azure.mgmt.datafactory.models.CredentialResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: CredentialResource. The CredentialResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.CredentialResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + credential_name: str, + credential: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.CredentialResource: + """Creates or updates a credential. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param credential_name: Credential name. Required. + :type credential_name: str + :param credential: Credential resource definition. Required. + :type credential: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: CredentialResource. The CredentialResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.CredentialResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + credential_name: str, + credential: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.CredentialResource: + """Creates or updates a credential. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param credential_name: Credential name. Required. + :type credential_name: str + :param credential: Credential resource definition. Required. + :type credential: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: CredentialResource. The CredentialResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.CredentialResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + credential_name: str, + credential: Union[_models.CredentialResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.CredentialResource: + """Creates or updates a credential. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param credential_name: Credential name. Required. + :type credential_name: str + :param credential: Credential resource definition. Is one of the following types: + CredentialResource, JSON, IO[bytes] Required. + :type credential: ~azure.mgmt.datafactory.models.CredentialResource or JSON or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: CredentialResource. The CredentialResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.CredentialResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.CredentialResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(credential, (IOBase, bytes)): + _content = credential + else: + _content = json.dumps(credential, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_credential_operations_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + credential_name=credential_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.CredentialResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, factory_name: str, credential_name: str, **kwargs: Any + ) -> None: + """Deletes a credential. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param credential_name: Credential name. Required. + :type credential_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_credential_operations_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + credential_name=credential_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> ItemPaged["_models.CredentialResource"]: + """List credentials. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of CredentialResource + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.CredentialResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.CredentialResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_credential_operations_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.CredentialResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class PrivateEndpointConnectionOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`private_endpoint_connection` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, + resource_group_name: str, + factory_name: str, + private_endpoint_connection_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.PrivateEndpointConnectionResource: + """Gets a private endpoint connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param private_endpoint_connection_name: The private endpoint connection name. Required. + :type private_endpoint_connection_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PrivateEndpointConnectionResource. The PrivateEndpointConnectionResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.PrivateEndpointConnectionResource] = kwargs.pop("cls", None) + + _request = build_private_endpoint_connection_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + private_endpoint_connection_name=private_endpoint_connection_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.PrivateEndpointConnectionResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + private_endpoint_connection_name: str, + private_endpoint_wrapper: _models.PrivateLinkConnectionApprovalRequestResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.PrivateEndpointConnectionResource: + """Approves or rejects a private endpoint connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param private_endpoint_connection_name: The private endpoint connection name. Required. + :type private_endpoint_connection_name: str + :param private_endpoint_wrapper: Required. + :type private_endpoint_wrapper: + ~azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequestResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PrivateEndpointConnectionResource. The PrivateEndpointConnectionResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + private_endpoint_connection_name: str, + private_endpoint_wrapper: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.PrivateEndpointConnectionResource: + """Approves or rejects a private endpoint connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param private_endpoint_connection_name: The private endpoint connection name. Required. + :type private_endpoint_connection_name: str + :param private_endpoint_wrapper: Required. + :type private_endpoint_wrapper: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PrivateEndpointConnectionResource. The PrivateEndpointConnectionResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + private_endpoint_connection_name: str, + private_endpoint_wrapper: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.PrivateEndpointConnectionResource: + """Approves or rejects a private endpoint connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param private_endpoint_connection_name: The private endpoint connection name. Required. + :type private_endpoint_connection_name: str + :param private_endpoint_wrapper: Required. + :type private_endpoint_wrapper: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PrivateEndpointConnectionResource. The PrivateEndpointConnectionResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + private_endpoint_connection_name: str, + private_endpoint_wrapper: Union[_models.PrivateLinkConnectionApprovalRequestResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.PrivateEndpointConnectionResource: + """Approves or rejects a private endpoint connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param private_endpoint_connection_name: The private endpoint connection name. Required. + :type private_endpoint_connection_name: str + :param private_endpoint_wrapper: Is one of the following types: + PrivateLinkConnectionApprovalRequestResource, JSON, IO[bytes] Required. + :type private_endpoint_wrapper: + ~azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequestResource or JSON or + IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: PrivateEndpointConnectionResource. The PrivateEndpointConnectionResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.PrivateEndpointConnectionResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(private_endpoint_wrapper, (IOBase, bytes)): + _content = private_endpoint_wrapper + else: + _content = json.dumps(private_endpoint_wrapper, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_private_endpoint_connection_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + private_endpoint_connection_name=private_endpoint_connection_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.PrivateEndpointConnectionResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, factory_name: str, private_endpoint_connection_name: str, **kwargs: Any + ) -> None: + """Deletes a private endpoint connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param private_endpoint_connection_name: The private endpoint connection name. Required. + :type private_endpoint_connection_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_private_endpoint_connection_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + private_endpoint_connection_name=private_endpoint_connection_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + +class PrivateEndPointConnectionsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`private_end_point_connections` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> ItemPaged["_models.PrivateEndpointConnectionResource"]: + """Lists Private endpoint connections. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of PrivateEndpointConnectionResource + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.PrivateEndpointConnectionResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_private_end_point_connections_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.PrivateEndpointConnectionResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class GlobalParametersOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`global_parameters` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataFactoryManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, factory_name: str, global_parameter_name: str, **kwargs: Any + ) -> _models.GlobalParameterResource: + """Gets a Global parameter. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param global_parameter_name: The global parameter name. Required. + :type global_parameter_name: str + :return: GlobalParameterResource. The GlobalParameterResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.GlobalParameterResource] = kwargs.pop("cls", None) + + _request = build_global_parameters_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + global_parameter_name=global_parameter_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.GlobalParameterResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + global_parameter_name: str, + default: _models.GlobalParameterResource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.GlobalParameterResource: + """Creates or updates a Global parameter. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param global_parameter_name: The global parameter name. Required. + :type global_parameter_name: str + :param default: Global parameter resource definition. Required. + :type default: ~azure.mgmt.datafactory.models.GlobalParameterResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: GlobalParameterResource. The GlobalParameterResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + global_parameter_name: str, + default: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.GlobalParameterResource: + """Creates or updates a Global parameter. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param global_parameter_name: The global parameter name. Required. + :type global_parameter_name: str + :param default: Global parameter resource definition. Required. + :type default: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: GlobalParameterResource. The GlobalParameterResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + global_parameter_name: str, + default: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.GlobalParameterResource: + """Creates or updates a Global parameter. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param global_parameter_name: The global parameter name. Required. + :type global_parameter_name: str + :param default: Global parameter resource definition. Required. + :type default: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: GlobalParameterResource. The GlobalParameterResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + global_parameter_name: str, + default: Union[_models.GlobalParameterResource, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.GlobalParameterResource: + """Creates or updates a Global parameter. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param global_parameter_name: The global parameter name. Required. + :type global_parameter_name: str + :param default: Global parameter resource definition. Is one of the following types: + GlobalParameterResource, JSON, IO[bytes] Required. + :type default: ~azure.mgmt.datafactory.models.GlobalParameterResource or JSON or IO[bytes] + :return: GlobalParameterResource. The GlobalParameterResource is compatible with MutableMapping + :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.GlobalParameterResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(default, (IOBase, bytes)): + _content = default + else: + _content = json.dumps(default, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_global_parameters_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + global_parameter_name=global_parameter_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.GlobalParameterResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, factory_name: str, global_parameter_name: str, **kwargs: Any + ) -> None: + """Deletes a Global parameter. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param global_parameter_name: The global parameter name. Required. + :type global_parameter_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_global_parameters_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + global_parameter_name=global_parameter_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> ItemPaged["_models.GlobalParameterResource"]: + """Lists Global parameters. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of GlobalParameterResource + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.GlobalParameterResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.GlobalParameterResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_global_parameters_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.GlobalParameterResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class ChangeDataCaptureOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s + :attr:`change_data_capture` attribute. """ - models = _models - def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") @@ -78,18 +16341,407 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - def list(self, **kwargs: Any) -> ItemPaged["_models.Operation"]: - """Lists the available Azure Data Factory API operations. + def get( + self, + resource_group_name: str, + factory_name: str, + change_data_capture_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ChangeDataCaptureResource: + """Gets a change data capture. - :return: An iterator like instance of either Operation or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.Operation] + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param change_data_capture_name: The change data capture name. Required. + :type change_data_capture_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ChangeDataCaptureResource. The ChangeDataCaptureResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ChangeDataCaptureResource] = kwargs.pop("cls", None) + + _request = build_change_data_capture_get_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + change_data_capture_name=change_data_capture_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ChangeDataCaptureResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + change_data_capture_name: str, + change_data_capture: _models.ChangeDataCaptureResource, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ChangeDataCaptureResource: + """Creates or updates a change data capture resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param change_data_capture_name: The change data capture name. Required. + :type change_data_capture_name: str + :param change_data_capture: Change data capture resource definition. Required. + :type change_data_capture: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ChangeDataCaptureResource. The ChangeDataCaptureResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + change_data_capture_name: str, + change_data_capture: JSON, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ChangeDataCaptureResource: + """Creates or updates a change data capture resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param change_data_capture_name: The change data capture name. Required. + :type change_data_capture_name: str + :param change_data_capture: Change data capture resource definition. Required. + :type change_data_capture: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ChangeDataCaptureResource. The ChangeDataCaptureResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + change_data_capture_name: str, + change_data_capture: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ChangeDataCaptureResource: + """Creates or updates a change data capture resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param change_data_capture_name: The change data capture name. Required. + :type change_data_capture_name: str + :param change_data_capture: Change data capture resource definition. Required. + :type change_data_capture: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ChangeDataCaptureResource. The ChangeDataCaptureResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + factory_name: str, + change_data_capture_name: str, + change_data_capture: Union[_models.ChangeDataCaptureResource, JSON, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.ChangeDataCaptureResource: + """Creates or updates a change data capture resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param change_data_capture_name: The change data capture name. Required. + :type change_data_capture_name: str + :param change_data_capture: Change data capture resource definition. Is one of the following + types: ChangeDataCaptureResource, JSON, IO[bytes] Required. + :type change_data_capture: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource or JSON or + IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: ChangeDataCaptureResource. The ChangeDataCaptureResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ChangeDataCaptureResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(change_data_capture, (IOBase, bytes)): + _content = change_data_capture + else: + _content = json.dumps(change_data_capture, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_change_data_capture_create_or_update_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + change_data_capture_name=change_data_capture_name, + subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ChangeDataCaptureResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, factory_name: str, change_data_capture_name: str, **kwargs: Any + ) -> None: + """Deletes a change data capture. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param change_data_capture_name: The change data capture name. Required. + :type change_data_capture_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_change_data_capture_delete_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + change_data_capture_name=change_data_capture_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_factory( + self, resource_group_name: str, factory_name: str, **kwargs: Any + ) -> ItemPaged["_models.ChangeDataCaptureResource"]: + """Lists all resources of type change data capture. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :return: An iterator like instance of ChangeDataCaptureResource + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.ChangeDataCaptureResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + _params = kwargs.pop("params", {}) or {} - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.OperationListResponse] = kwargs.pop("cls", None) + cls: ClsType[List[_models.ChangeDataCaptureResource]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -102,12 +16754,20 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.Operation"]: def prepare_request(next_link=None): if not next_link: - _request = build_list_request( - api_version=api_version, + _request = build_change_data_capture_list_by_factory_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, headers=_headers, params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) else: # make call to next link with the client's api-version @@ -120,18 +16780,29 @@ def prepare_request(next_link=None): ) _next_request_params["api-version"] = self._config.api_version _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + return _request def extract_data(pipeline_response): - deserialized = self._deserialize("OperationListResponse", pipeline_response) - list_of_elem = deserialized.value + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ChangeDataCaptureResource], + deserialized.get("value", []), + ) if cls: list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) + return deserialized.get("nextLink") or None, iter(list_of_elem) def get_next(next_link=None): _request = prepare_request(next_link) @@ -144,8 +16815,209 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response return ItemPaged(get_next, extract_data) + + @distributed_trace + def start( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, factory_name: str, change_data_capture_name: str, **kwargs: Any + ) -> None: + """Starts a change data capture. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param change_data_capture_name: The change data capture name. Required. + :type change_data_capture_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_change_data_capture_start_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + change_data_capture_name=change_data_capture_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def stop( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, factory_name: str, change_data_capture_name: str, **kwargs: Any + ) -> None: + """Stops a change data capture. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param change_data_capture_name: The change data capture name. Required. + :type change_data_capture_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_change_data_capture_stop_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + change_data_capture_name=change_data_capture_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def status(self, resource_group_name: str, factory_name: str, change_data_capture_name: str, **kwargs: Any) -> str: + """Gets the current status for the change data capture resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param factory_name: The factory name. Required. + :type factory_name: str + :param change_data_capture_name: The change data capture name. Required. + :type change_data_capture_name: str + :return: str + :rtype: str + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[str] = kwargs.pop("cls", None) + + _request = build_change_data_capture_status_request( + resource_group_name=resource_group_name, + factory_name=factory_name, + change_data_capture_name=change_data_capture_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(str, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_patch.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_patch.py index f7dd32510333..ea765788358a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_patch.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_patch.py @@ -1,14 +1,14 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ +# 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. +# -------------------------------------------------------------------------- """Customize generated code here. Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ -from typing import List -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level def patch_sdk(): diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_pipeline_runs_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_pipeline_runs_operations.py deleted file mode 100644 index b680289ab0f2..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_pipeline_runs_operations.py +++ /dev/null @@ -1,440 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_query_by_factory_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryPipelineRuns", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, factory_name: str, run_id: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "runId": _SERIALIZER.url("run_id", run_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_cancel_request( - resource_group_name: str, - factory_name: str, - run_id: str, - subscription_id: str, - *, - is_recursive: Optional[bool] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/cancel", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "runId": _SERIALIZER.url("run_id", run_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - if is_recursive is not None: - _params["isRecursive"] = _SERIALIZER.query("is_recursive", is_recursive, "bool") - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class PipelineRunsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`pipeline_runs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @overload - def query_by_factory( - self, - resource_group_name: str, - factory_name: str, - filter_parameters: _models.RunFilterParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.PipelineRunsQueryResponse: - """Query pipeline runs in the factory based on input filter conditions. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param filter_parameters: Parameters to filter the pipeline run. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: PipelineRunsQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def query_by_factory( - self, - resource_group_name: str, - factory_name: str, - filter_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.PipelineRunsQueryResponse: - """Query pipeline runs in the factory based on input filter conditions. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param filter_parameters: Parameters to filter the pipeline run. Required. - :type filter_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: PipelineRunsQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def query_by_factory( - self, - resource_group_name: str, - factory_name: str, - filter_parameters: Union[_models.RunFilterParameters, IO[bytes]], - **kwargs: Any - ) -> _models.PipelineRunsQueryResponse: - """Query pipeline runs in the factory based on input filter conditions. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param filter_parameters: Parameters to filter the pipeline run. Is either a - RunFilterParameters type or a IO[bytes] type. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or IO[bytes] - :return: PipelineRunsQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.PipelineRunsQueryResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(filter_parameters, (IOBase, bytes)): - _content = filter_parameters - else: - _json = self._serialize.body(filter_parameters, "RunFilterParameters") - - _request = build_query_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PipelineRunsQueryResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get(self, resource_group_name: str, factory_name: str, run_id: str, **kwargs: Any) -> _models.PipelineRun: - """Get a pipeline run by its run ID. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param run_id: The pipeline run identifier. Required. - :type run_id: str - :return: PipelineRun or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PipelineRun - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.PipelineRun] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - run_id=run_id, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PipelineRun", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def cancel( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - factory_name: str, - run_id: str, - is_recursive: Optional[bool] = None, - **kwargs: Any - ) -> None: - """Cancel a pipeline run by its run ID. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param run_id: The pipeline run identifier. Required. - :type run_id: str - :param is_recursive: If true, cancel all the Child pipelines that are triggered by the current - pipeline. Default value is None. - :type is_recursive: bool - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_cancel_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - run_id=run_id, - subscription_id=self._config.subscription_id, - is_recursive=is_recursive, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_pipelines_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_pipelines_operations.py deleted file mode 100644 index 40ce47dc373f..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_pipelines_operations.py +++ /dev/null @@ -1,895 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -JSON = MutableMapping[str, Any] -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_by_factory_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - factory_name: str, - pipeline_name: str, - subscription_id: str, - *, - if_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "pipelineName": _SERIALIZER.url( - "pipeline_name", - pipeline_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_match is not None: - _headers["If-Match"] = _SERIALIZER.header("if_match", if_match, "str") - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - factory_name: str, - pipeline_name: str, - subscription_id: str, - *, - if_none_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "pipelineName": _SERIALIZER.url( - "pipeline_name", - pipeline_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_none_match is not None: - _headers["If-None-Match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, factory_name: str, pipeline_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "pipelineName": _SERIALIZER.url( - "pipeline_name", - pipeline_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_run_request( - resource_group_name: str, - factory_name: str, - pipeline_name: str, - subscription_id: str, - *, - reference_pipeline_run_id: Optional[str] = None, - is_recovery: Optional[bool] = None, - start_activity_name: Optional[str] = None, - start_from_failure: Optional[bool] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}/createRun", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "pipelineName": _SERIALIZER.url( - "pipeline_name", - pipeline_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if reference_pipeline_run_id is not None: - _params["referencePipelineRunId"] = _SERIALIZER.query( - "reference_pipeline_run_id", reference_pipeline_run_id, "str" - ) - if is_recovery is not None: - _params["isRecovery"] = _SERIALIZER.query("is_recovery", is_recovery, "bool") - if start_activity_name is not None: - _params["startActivityName"] = _SERIALIZER.query("start_activity_name", start_activity_name, "str") - if start_from_failure is not None: - _params["startFromFailure"] = _SERIALIZER.query("start_from_failure", start_from_failure, "bool") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class PipelinesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`pipelines` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> ItemPaged["_models.PipelineResource"]: - """Lists pipelines. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either PipelineResource or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.PipelineResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.PipelineListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("PipelineListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - pipeline_name: str, - pipeline: _models.PipelineResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.PipelineResource: - """Creates or updates a pipeline. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param pipeline_name: The pipeline name. Required. - :type pipeline_name: str - :param pipeline: Pipeline resource definition. Required. - :type pipeline: ~azure.mgmt.datafactory.models.PipelineResource - :param if_match: ETag of the pipeline entity. Should only be specified for update, for which - it should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: PipelineResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PipelineResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - pipeline_name: str, - pipeline: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.PipelineResource: - """Creates or updates a pipeline. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param pipeline_name: The pipeline name. Required. - :type pipeline_name: str - :param pipeline: Pipeline resource definition. Required. - :type pipeline: IO[bytes] - :param if_match: ETag of the pipeline entity. Should only be specified for update, for which - it should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: PipelineResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PipelineResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - pipeline_name: str, - pipeline: Union[_models.PipelineResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.PipelineResource: - """Creates or updates a pipeline. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param pipeline_name: The pipeline name. Required. - :type pipeline_name: str - :param pipeline: Pipeline resource definition. Is either a PipelineResource type or a IO[bytes] - type. Required. - :type pipeline: ~azure.mgmt.datafactory.models.PipelineResource or IO[bytes] - :param if_match: ETag of the pipeline entity. Should only be specified for update, for which - it should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :return: PipelineResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PipelineResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.PipelineResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(pipeline, (IOBase, bytes)): - _content = pipeline - else: - _json = self._serialize.body(pipeline, "PipelineResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - pipeline_name=pipeline_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PipelineResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get( - self, - resource_group_name: str, - factory_name: str, - pipeline_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> Optional[_models.PipelineResource]: - """Gets a pipeline. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param pipeline_name: The pipeline name. Required. - :type pipeline_name: str - :param if_none_match: ETag of the pipeline entity. Should only be specified for get. If the - ETag matches the existing entity tag, or if * was provided, then no content will be returned. - Default value is None. - :type if_none_match: str - :return: PipelineResource or None or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PipelineResource or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Optional[_models.PipelineResource]] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - pipeline_name=pipeline_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 304]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("PipelineResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, factory_name: str, pipeline_name: str, **kwargs: Any - ) -> None: - """Deletes a pipeline. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param pipeline_name: The pipeline name. Required. - :type pipeline_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - pipeline_name=pipeline_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def create_run( - self, - resource_group_name: str, - factory_name: str, - pipeline_name: str, - reference_pipeline_run_id: Optional[str] = None, - is_recovery: Optional[bool] = None, - start_activity_name: Optional[str] = None, - start_from_failure: Optional[bool] = None, - parameters: Optional[dict[str, JSON]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CreateRunResponse: - """Creates a run of a pipeline. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param pipeline_name: The pipeline name. Required. - :type pipeline_name: str - :param reference_pipeline_run_id: The pipeline run identifier. If run ID is specified the - parameters of the specified run will be used to create a new run. Default value is None. - :type reference_pipeline_run_id: str - :param is_recovery: Recovery mode flag. If recovery mode is set to true, the specified - referenced pipeline run and the new run will be grouped under the same groupId. Default value - is None. - :type is_recovery: bool - :param start_activity_name: In recovery mode, the rerun will start from this activity. If not - specified, all activities will run. Default value is None. - :type start_activity_name: str - :param start_from_failure: In recovery mode, if set to true, the rerun will start from failed - activities. The property will be used only if startActivityName is not specified. Default value - is None. - :type start_from_failure: bool - :param parameters: Parameters of the pipeline run. These parameters will be used only if the - runId is not specified. Default value is None. - :type parameters: dict[str, JSON] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CreateRunResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.CreateRunResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_run( - self, - resource_group_name: str, - factory_name: str, - pipeline_name: str, - reference_pipeline_run_id: Optional[str] = None, - is_recovery: Optional[bool] = None, - start_activity_name: Optional[str] = None, - start_from_failure: Optional[bool] = None, - parameters: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CreateRunResponse: - """Creates a run of a pipeline. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param pipeline_name: The pipeline name. Required. - :type pipeline_name: str - :param reference_pipeline_run_id: The pipeline run identifier. If run ID is specified the - parameters of the specified run will be used to create a new run. Default value is None. - :type reference_pipeline_run_id: str - :param is_recovery: Recovery mode flag. If recovery mode is set to true, the specified - referenced pipeline run and the new run will be grouped under the same groupId. Default value - is None. - :type is_recovery: bool - :param start_activity_name: In recovery mode, the rerun will start from this activity. If not - specified, all activities will run. Default value is None. - :type start_activity_name: str - :param start_from_failure: In recovery mode, if set to true, the rerun will start from failed - activities. The property will be used only if startActivityName is not specified. Default value - is None. - :type start_from_failure: bool - :param parameters: Parameters of the pipeline run. These parameters will be used only if the - runId is not specified. Default value is None. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CreateRunResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.CreateRunResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_run( - self, - resource_group_name: str, - factory_name: str, - pipeline_name: str, - reference_pipeline_run_id: Optional[str] = None, - is_recovery: Optional[bool] = None, - start_activity_name: Optional[str] = None, - start_from_failure: Optional[bool] = None, - parameters: Optional[Union[dict[str, JSON], IO[bytes]]] = None, - **kwargs: Any - ) -> _models.CreateRunResponse: - """Creates a run of a pipeline. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param pipeline_name: The pipeline name. Required. - :type pipeline_name: str - :param reference_pipeline_run_id: The pipeline run identifier. If run ID is specified the - parameters of the specified run will be used to create a new run. Default value is None. - :type reference_pipeline_run_id: str - :param is_recovery: Recovery mode flag. If recovery mode is set to true, the specified - referenced pipeline run and the new run will be grouped under the same groupId. Default value - is None. - :type is_recovery: bool - :param start_activity_name: In recovery mode, the rerun will start from this activity. If not - specified, all activities will run. Default value is None. - :type start_activity_name: str - :param start_from_failure: In recovery mode, if set to true, the rerun will start from failed - activities. The property will be used only if startActivityName is not specified. Default value - is None. - :type start_from_failure: bool - :param parameters: Parameters of the pipeline run. These parameters will be used only if the - runId is not specified. Is either a {str: JSON} type or a IO[bytes] type. Default value is - None. - :type parameters: dict[str, JSON] or IO[bytes] - :return: CreateRunResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.CreateRunResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if parameters else None - cls: ClsType[_models.CreateRunResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if parameters else None - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - if parameters is not None: - _json = self._serialize.body(parameters, "{object}") - else: - _json = None - - _request = build_create_run_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - pipeline_name=pipeline_name, - subscription_id=self._config.subscription_id, - reference_pipeline_run_id=reference_pipeline_run_id, - is_recovery=is_recovery, - start_activity_name=start_activity_name, - start_from_failure=start_from_failure, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CreateRunResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_end_point_connections_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_end_point_connections_operations.py deleted file mode 100644 index 45af6a0bfd6c..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_end_point_connections_operations.py +++ /dev/null @@ -1,184 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_by_factory_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndPointConnections", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class PrivateEndPointConnectionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`private_end_point_connections` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> ItemPaged["_models.PrivateEndpointConnectionResource"]: - """Lists Private endpoint connections. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either PrivateEndpointConnectionResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.PrivateEndpointConnectionListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("PrivateEndpointConnectionListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_endpoint_connection_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_endpoint_connection_operations.py deleted file mode 100644 index a9e1f0675619..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_endpoint_connection_operations.py +++ /dev/null @@ -1,490 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_create_or_update_request( - resource_group_name: str, - factory_name: str, - private_endpoint_connection_name: str, - subscription_id: str, - *, - if_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "privateEndpointConnectionName": _SERIALIZER.url( - "private_endpoint_connection_name", private_endpoint_connection_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_match is not None: - _headers["If-Match"] = _SERIALIZER.header("if_match", if_match, "str") - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - factory_name: str, - private_endpoint_connection_name: str, - subscription_id: str, - *, - if_none_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "privateEndpointConnectionName": _SERIALIZER.url( - "private_endpoint_connection_name", private_endpoint_connection_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_none_match is not None: - _headers["If-None-Match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - factory_name: str, - private_endpoint_connection_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "privateEndpointConnectionName": _SERIALIZER.url( - "private_endpoint_connection_name", private_endpoint_connection_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class PrivateEndpointConnectionOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`private_endpoint_connection` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - private_endpoint_connection_name: str, - private_endpoint_wrapper: _models.PrivateLinkConnectionApprovalRequestResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.PrivateEndpointConnectionResource: - """Approves or rejects a private endpoint connection. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param private_endpoint_connection_name: The private endpoint connection name. Required. - :type private_endpoint_connection_name: str - :param private_endpoint_wrapper: Required. - :type private_endpoint_wrapper: - ~azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequestResource - :param if_match: ETag of the private endpoint connection entity. Should only be specified for - update, for which it should match existing entity or can be * for unconditional update. Default - value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: PrivateEndpointConnectionResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - private_endpoint_connection_name: str, - private_endpoint_wrapper: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.PrivateEndpointConnectionResource: - """Approves or rejects a private endpoint connection. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param private_endpoint_connection_name: The private endpoint connection name. Required. - :type private_endpoint_connection_name: str - :param private_endpoint_wrapper: Required. - :type private_endpoint_wrapper: IO[bytes] - :param if_match: ETag of the private endpoint connection entity. Should only be specified for - update, for which it should match existing entity or can be * for unconditional update. Default - value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: PrivateEndpointConnectionResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - private_endpoint_connection_name: str, - private_endpoint_wrapper: Union[_models.PrivateLinkConnectionApprovalRequestResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.PrivateEndpointConnectionResource: - """Approves or rejects a private endpoint connection. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param private_endpoint_connection_name: The private endpoint connection name. Required. - :type private_endpoint_connection_name: str - :param private_endpoint_wrapper: Is either a PrivateLinkConnectionApprovalRequestResource type - or a IO[bytes] type. Required. - :type private_endpoint_wrapper: - ~azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequestResource or IO[bytes] - :param if_match: ETag of the private endpoint connection entity. Should only be specified for - update, for which it should match existing entity or can be * for unconditional update. Default - value is None. - :type if_match: str - :return: PrivateEndpointConnectionResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.PrivateEndpointConnectionResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(private_endpoint_wrapper, (IOBase, bytes)): - _content = private_endpoint_wrapper - else: - _json = self._serialize.body(private_endpoint_wrapper, "PrivateLinkConnectionApprovalRequestResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - private_endpoint_connection_name=private_endpoint_connection_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PrivateEndpointConnectionResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get( - self, - resource_group_name: str, - factory_name: str, - private_endpoint_connection_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> _models.PrivateEndpointConnectionResource: - """Gets a private endpoint connection. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param private_endpoint_connection_name: The private endpoint connection name. Required. - :type private_endpoint_connection_name: str - :param if_none_match: ETag of the private endpoint connection entity. Should only be specified - for get. If the ETag matches the existing entity tag, or if * was provided, then no content - will be returned. Default value is None. - :type if_none_match: str - :return: PrivateEndpointConnectionResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.PrivateEndpointConnectionResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - private_endpoint_connection_name=private_endpoint_connection_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PrivateEndpointConnectionResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, factory_name: str, private_endpoint_connection_name: str, **kwargs: Any - ) -> None: - """Deletes a private endpoint connection. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param private_endpoint_connection_name: The private endpoint connection name. Required. - :type private_endpoint_connection_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - private_endpoint_connection_name=private_endpoint_connection_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_link_resources_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_link_resources_operations.py deleted file mode 100644 index 61d7cafb463a..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_link_resources_operations.py +++ /dev/null @@ -1,150 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateLinkResources", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class PrivateLinkResourcesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`private_link_resources` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get(self, resource_group_name: str, factory_name: str, **kwargs: Any) -> _models.PrivateLinkResourcesWrapper: - """Gets the private link resources. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: PrivateLinkResourcesWrapper or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.PrivateLinkResourcesWrapper - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.PrivateLinkResourcesWrapper] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PrivateLinkResourcesWrapper", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_trigger_runs_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_trigger_runs_operations.py deleted file mode 100644 index 2031f0388948..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_trigger_runs_operations.py +++ /dev/null @@ -1,443 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_rerun_request( - resource_group_name: str, factory_name: str, trigger_name: str, run_id: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/rerun", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "triggerName": _SERIALIZER.url( - "trigger_name", - trigger_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - "runId": _SERIALIZER.url("run_id", run_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_cancel_request( - resource_group_name: str, factory_name: str, trigger_name: str, run_id: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/cancel", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "triggerName": _SERIALIZER.url( - "trigger_name", - trigger_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - "runId": _SERIALIZER.url("run_id", run_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_query_by_factory_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryTriggerRuns", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class TriggerRunsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`trigger_runs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def rerun( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, factory_name: str, trigger_name: str, run_id: str, **kwargs: Any - ) -> None: - """Rerun single trigger instance by runId. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :param run_id: The pipeline run identifier. Required. - :type run_id: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_rerun_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - run_id=run_id, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def cancel( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, factory_name: str, trigger_name: str, run_id: str, **kwargs: Any - ) -> None: - """Cancel a single trigger instance by runId. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :param run_id: The pipeline run identifier. Required. - :type run_id: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_cancel_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - run_id=run_id, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def query_by_factory( - self, - resource_group_name: str, - factory_name: str, - filter_parameters: _models.RunFilterParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TriggerRunsQueryResponse: - """Query trigger runs. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param filter_parameters: Parameters to filter the pipeline run. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TriggerRunsQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def query_by_factory( - self, - resource_group_name: str, - factory_name: str, - filter_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TriggerRunsQueryResponse: - """Query trigger runs. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param filter_parameters: Parameters to filter the pipeline run. Required. - :type filter_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TriggerRunsQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def query_by_factory( - self, - resource_group_name: str, - factory_name: str, - filter_parameters: Union[_models.RunFilterParameters, IO[bytes]], - **kwargs: Any - ) -> _models.TriggerRunsQueryResponse: - """Query trigger runs. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param filter_parameters: Parameters to filter the pipeline run. Is either a - RunFilterParameters type or a IO[bytes] type. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or IO[bytes] - :return: TriggerRunsQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TriggerRunsQueryResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(filter_parameters, (IOBase, bytes)): - _content = filter_parameters - else: - _json = self._serialize.body(filter_parameters, "RunFilterParameters") - - _request = build_query_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TriggerRunsQueryResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_triggers_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_triggers_operations.py deleted file mode 100644 index e5aa8cb9475e..000000000000 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_triggers_operations.py +++ /dev/null @@ -1,1539 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# 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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import DataFactoryManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_by_factory_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_query_by_factory_request( - resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/querytriggers", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - factory_name: str, - trigger_name: str, - subscription_id: str, - *, - if_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "triggerName": _SERIALIZER.url( - "trigger_name", - trigger_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_match is not None: - _headers["If-Match"] = _SERIALIZER.header("if_match", if_match, "str") - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - factory_name: str, - trigger_name: str, - subscription_id: str, - *, - if_none_match: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "triggerName": _SERIALIZER.url( - "trigger_name", - trigger_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if if_none_match is not None: - _headers["If-None-Match"] = _SERIALIZER.header("if_none_match", if_none_match, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, factory_name: str, trigger_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "triggerName": _SERIALIZER.url( - "trigger_name", - trigger_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_subscribe_to_events_request( - resource_group_name: str, factory_name: str, trigger_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/subscribeToEvents", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "triggerName": _SERIALIZER.url( - "trigger_name", - trigger_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_event_subscription_status_request( # pylint: disable=name-too-long - resource_group_name: str, factory_name: str, trigger_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/getEventSubscriptionStatus", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "triggerName": _SERIALIZER.url( - "trigger_name", - trigger_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_unsubscribe_from_events_request( - resource_group_name: str, factory_name: str, trigger_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/unsubscribeFromEvents", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "triggerName": _SERIALIZER.url( - "trigger_name", - trigger_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, factory_name: str, trigger_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/start", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "triggerName": _SERIALIZER.url( - "trigger_name", - trigger_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, factory_name: str, trigger_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/stop", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "factoryName": _SERIALIZER.url( - "factory_name", - factory_name, - "str", - max_length=63, - min_length=3, - pattern=r"^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - ), - "triggerName": _SERIALIZER.url( - "trigger_name", - trigger_name, - "str", - max_length=260, - min_length=1, - pattern=r"^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class TriggersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datafactory.DataFactoryManagementClient`'s - :attr:`triggers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataFactoryManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_factory( - self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> ItemPaged["_models.TriggerResource"]: - """Lists triggers. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :return: An iterator like instance of either TriggerResource or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.TriggerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.TriggerListResponse] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("TriggerListResponse", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def query_by_factory( - self, - resource_group_name: str, - factory_name: str, - filter_parameters: _models.TriggerFilterParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TriggerQueryResponse: - """Query triggers. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param filter_parameters: Parameters to filter the triggers. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.TriggerFilterParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TriggerQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def query_by_factory( - self, - resource_group_name: str, - factory_name: str, - filter_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TriggerQueryResponse: - """Query triggers. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param filter_parameters: Parameters to filter the triggers. Required. - :type filter_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TriggerQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def query_by_factory( - self, - resource_group_name: str, - factory_name: str, - filter_parameters: Union[_models.TriggerFilterParameters, IO[bytes]], - **kwargs: Any - ) -> _models.TriggerQueryResponse: - """Query triggers. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param filter_parameters: Parameters to filter the triggers. Is either a - TriggerFilterParameters type or a IO[bytes] type. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.TriggerFilterParameters or IO[bytes] - :return: TriggerQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TriggerQueryResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(filter_parameters, (IOBase, bytes)): - _content = filter_parameters - else: - _json = self._serialize.body(filter_parameters, "TriggerFilterParameters") - - _request = build_query_by_factory_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TriggerQueryResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - trigger_name: str, - trigger: _models.TriggerResource, - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TriggerResource: - """Creates or updates a trigger. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :param trigger: Trigger resource definition. Required. - :type trigger: ~azure.mgmt.datafactory.models.TriggerResource - :param if_match: ETag of the trigger entity. Should only be specified for update, for which it - should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TriggerResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - trigger_name: str, - trigger: IO[bytes], - if_match: Optional[str] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TriggerResource: - """Creates or updates a trigger. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :param trigger: Trigger resource definition. Required. - :type trigger: IO[bytes] - :param if_match: ETag of the trigger entity. Should only be specified for update, for which it - should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TriggerResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - factory_name: str, - trigger_name: str, - trigger: Union[_models.TriggerResource, IO[bytes]], - if_match: Optional[str] = None, - **kwargs: Any - ) -> _models.TriggerResource: - """Creates or updates a trigger. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :param trigger: Trigger resource definition. Is either a TriggerResource type or a IO[bytes] - type. Required. - :type trigger: ~azure.mgmt.datafactory.models.TriggerResource or IO[bytes] - :param if_match: ETag of the trigger entity. Should only be specified for update, for which it - should match existing entity or can be * for unconditional update. Default value is None. - :type if_match: str - :return: TriggerResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TriggerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(trigger, (IOBase, bytes)): - _content = trigger - else: - _json = self._serialize.body(trigger, "TriggerResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - subscription_id=self._config.subscription_id, - if_match=if_match, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TriggerResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get( - self, - resource_group_name: str, - factory_name: str, - trigger_name: str, - if_none_match: Optional[str] = None, - **kwargs: Any - ) -> Optional[_models.TriggerResource]: - """Gets a trigger. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :param if_none_match: ETag of the trigger entity. Should only be specified for get. If the ETag - matches the existing entity tag, or if * was provided, then no content will be returned. - Default value is None. - :type if_none_match: str - :return: TriggerResource or None or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerResource or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Optional[_models.TriggerResource]] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - subscription_id=self._config.subscription_id, - if_none_match=if_none_match, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 304]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("TriggerResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> None: - """Deletes a trigger. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - def _subscribe_to_events_initial( - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_subscribe_to_events_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_subscribe_to_events( - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> LROPoller[_models.TriggerSubscriptionOperationStatus]: - """Subscribe event trigger to events. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :return: An instance of LROPoller that returns either TriggerSubscriptionOperationStatus or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.TriggerSubscriptionOperationStatus] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._subscribe_to_events_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("TriggerSubscriptionOperationStatus", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.TriggerSubscriptionOperationStatus].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.TriggerSubscriptionOperationStatus]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def get_event_subscription_status( - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> _models.TriggerSubscriptionOperationStatus: - """Get a trigger's event subscription status. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :return: TriggerSubscriptionOperationStatus or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.TriggerSubscriptionOperationStatus] = kwargs.pop("cls", None) - - _request = build_get_event_subscription_status_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TriggerSubscriptionOperationStatus", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _unsubscribe_from_events_initial( - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_unsubscribe_from_events_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_unsubscribe_from_events( - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> LROPoller[_models.TriggerSubscriptionOperationStatus]: - """Unsubscribe event trigger from events. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :return: An instance of LROPoller that returns either TriggerSubscriptionOperationStatus or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.TriggerSubscriptionOperationStatus] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._unsubscribe_from_events_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("TriggerSubscriptionOperationStatus", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.TriggerSubscriptionOperationStatus].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.TriggerSubscriptionOperationStatus]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _start_initial( - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Starts a trigger. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stops a trigger. - - :param resource_group_name: The resource group name. Required. - :type resource_group_name: str - :param factory_name: The factory name. Required. - :type factory_name: str - :param trigger_name: The trigger name. Required. - :type trigger_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( - resource_group_name=resource_group_name, - factory_name=factory_name, - trigger_name=trigger_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/dev_requirements.txt b/sdk/datafactory/azure-mgmt-datafactory/dev_requirements.txt index dafc8467ecc2..36e89061d7a0 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/dev_requirements.txt +++ b/sdk/datafactory/azure-mgmt-datafactory/dev_requirements.txt @@ -1,3 +1,4 @@ -e ../../../eng/tools/azure-sdk-tools ../../resources/azure-mgmt-resource -aiohttp \ No newline at end of file +aiohttp +azure-identity \ No newline at end of file diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/activity_runs_query_by_pipeline_run.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/activity_runs_query_by_pipeline_run.py index 7beef7baf0ba..fa9eb9910190 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/activity_runs_query_by_pipeline_run.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/activity_runs_query_by_pipeline_run.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.activity_runs.query_by_pipeline_run( @@ -43,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ActivityRuns_QueryByPipelineRun.json +# x-ms-original-file: 2018-06-01/ActivityRuns_QueryByPipelineRun.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/approve_reject_private_endpoint_connection.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/approve_reject_private_endpoint_connection.py index 2136c0047160..15a3f6aa658a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/approve_reject_private_endpoint_connection.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/approve_reject_private_endpoint_connection.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.private_endpoint_connection.create_or_update( @@ -38,7 +38,7 @@ def main(): private_endpoint_wrapper={ "properties": { "privateEndpoint": { - "id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint" + "id": "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint" }, "privateLinkServiceConnectionState": { "actionsRequired": "", @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ApproveRejectPrivateEndpointConnection.json +# x-ms-original-file: 2018-06-01/ApproveRejectPrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_create.py index 026876d54e99..32989faa4ccb 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_create.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.change_data_capture.create_or_update( @@ -438,6 +438,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Create.json +# x-ms-original-file: 2018-06-01/ChangeDataCapture_Create.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_delete.py index 447b760751a3..2cfde3d82d60 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.change_data_capture.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Delete.json +# x-ms-original-file: 2018-06-01/ChangeDataCapture_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_get.py index 55dac5bf725a..e8284f9b0b3c 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.change_data_capture.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Get.json +# x-ms-original-file: 2018-06-01/ChangeDataCapture_Get.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_list_by_factory.py index 061aae93770c..e3e238555bd9 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_list_by_factory.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.change_data_capture.list_by_factory( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ChangeDataCapture_ListByFactory.json +# x-ms-original-file: 2018-06-01/ChangeDataCapture_ListByFactory.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_start.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_start.py index b2db606fadd8..17de3da19529 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_start.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_start.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.change_data_capture.start( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Start.json +# x-ms-original-file: 2018-06-01/ChangeDataCapture_Start.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_status.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_status.py index 3661971a3af5..70527b55d5a2 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_status.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_status.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.change_data_capture.status( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Status.json +# x-ms-original-file: 2018-06-01/ChangeDataCapture_Status.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_stop.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_stop.py index 00d4e5060412..42b7036f90e6 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_stop.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_stop.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.change_data_capture.stop( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Stop.json +# x-ms-original-file: 2018-06-01/ChangeDataCapture_Stop.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_update.py index b7f3a06d86f2..da3616b263f6 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_update.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.change_data_capture.create_or_update( @@ -510,6 +510,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Update.json +# x-ms-original-file: 2018-06-01/ChangeDataCapture_Update.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_create.py index 45248b8ea6ce..8dfddd060f19 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_create.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.credential_operations.create_or_update( @@ -39,7 +39,7 @@ def main(): "properties": { "type": "ManagedIdentity", "typeProperties": { - "resourceId": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami" + "resourceId": "/subscriptions/12345678-1234-1234-1234-123456789012/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami" }, } }, @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Credentials_Create.json +# x-ms-original-file: 2018-06-01/Credentials_Create.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_delete.py index c839cc9269a8..a883008f148d 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.credential_operations.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Credentials_Delete.json +# x-ms-original-file: 2018-06-01/Credentials_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_get.py index 7339b713ddd7..d234580fbc51 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.credential_operations.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Credentials_Get.json +# x-ms-original-file: 2018-06-01/Credentials_Get.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_list_by_factory.py index 2a9904b76a2a..5d75c747df02 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_list_by_factory.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.credential_operations.list_by_factory( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Credentials_ListByFactory.json +# x-ms-original-file: 2018-06-01/Credentials_ListByFactory.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_add_data_flow.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_add_data_flow.py index a3386a638223..cd60ef54747b 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_add_data_flow.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_add_data_flow.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.data_flow_debug_session.add_data_flow( @@ -103,6 +103,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_AddDataFlow.json +# x-ms-original-file: 2018-06-01/DataFlowDebugSession_AddDataFlow.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_create.py index a31ebee389e0..98e522df86f7 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_create.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.data_flow_debug_session.begin_create( @@ -53,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Create.json +# x-ms-original-file: 2018-06-01/DataFlowDebugSession_Create.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_delete.py index a8c12827fd23..1c90eed66d6b 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.data_flow_debug_session.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Delete.json +# x-ms-original-file: 2018-06-01/DataFlowDebugSession_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_execute_command.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_execute_command.py index c061effd364d..2acbddf640b9 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_execute_command.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_execute_command.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.data_flow_debug_session.begin_execute_command( @@ -43,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_ExecuteCommand.json +# x-ms-original-file: 2018-06-01/DataFlowDebugSession_ExecuteCommand.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_query_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_query_by_factory.py index d820bf854574..aabc3e2f15ef 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_query_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_query_by_factory.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.data_flow_debug_session.query_by_factory( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_QueryByFactory.json +# x-ms-original-file: 2018-06-01/DataFlowDebugSession_QueryByFactory.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_create.py index 2242ccc9e9aa..1ddf632cd64e 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_create.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.data_flows.create_or_update( @@ -85,6 +85,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/DataFlows_Create.json +# x-ms-original-file: 2018-06-01/DataFlows_Create.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_delete.py index 60a6b31195c0..47bf43326da9 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.data_flows.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/DataFlows_Delete.json +# x-ms-original-file: 2018-06-01/DataFlows_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_get.py index e8d1cc031708..a9429531d9a4 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.data_flows.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/DataFlows_Get.json +# x-ms-original-file: 2018-06-01/DataFlows_Get.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_list_by_factory.py index 0ad48c427fd0..7200da2b6013 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_list_by_factory.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.data_flows.list_by_factory( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/DataFlows_ListByFactory.json +# x-ms-original-file: 2018-06-01/DataFlows_ListByFactory.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_update.py index 90f5fc323e77..6b35328cf45e 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_update.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.data_flows.create_or_update( @@ -85,6 +85,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/DataFlows_Update.json +# x-ms-original-file: 2018-06-01/DataFlows_Update.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_create.py index f28329f9ae6e..e6a46b6f9ee5 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_create.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.datasets.create_or_update( @@ -51,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Datasets_Create.json +# x-ms-original-file: 2018-06-01/Datasets_Create.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_delete.py index aff1a3a3ee59..cce92400890b 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.datasets.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Datasets_Delete.json +# x-ms-original-file: 2018-06-01/Datasets_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_get.py index fc02b01fa495..a96339526dcc 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.datasets.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Datasets_Get.json +# x-ms-original-file: 2018-06-01/Datasets_Get.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_list_by_factory.py index 6bf14a9a2b2e..66376ce73669 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_list_by_factory.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.datasets.list_by_factory( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Datasets_ListByFactory.json +# x-ms-original-file: 2018-06-01/Datasets_ListByFactory.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_update.py index 6e42ee8327e6..bace9dc8c58f 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.datasets.create_or_update( @@ -52,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Datasets_Update.json +# x-ms-original-file: 2018-06-01/Datasets_Update.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/delete_private_endpoint_connection.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/delete_private_endpoint_connection.py index e2daa868b6ba..1eee19faf1a0 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/delete_private_endpoint_connection.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/delete_private_endpoint_connection.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) client.private_endpoint_connection.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/DeletePrivateEndpointConnection.json +# x-ms-original-file: 2018-06-01/DeletePrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_get_feature_value.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_get_feature_value.py index a286e9940e6c..caae58616907 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_get_feature_value.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_get_feature_value.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.exposure_control.get_feature_value( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValue.json +# x-ms-original-file: 2018-06-01/ExposureControl_GetFeatureValue.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_get_feature_value_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_get_feature_value_by_factory.py index b5578430c854..8b40cb0ab94b 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_get_feature_value_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_get_feature_value_by_factory.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.exposure_control.get_feature_value_by_factory( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValueByFactory.json +# x-ms-original-file: 2018-06-01/ExposureControl_GetFeatureValueByFactory.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_query_feature_values_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_query_feature_values_by_factory.py index d168e1a37448..f3b4069157a5 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_query_feature_values_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_query_feature_values_by_factory.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.exposure_control.query_feature_values_by_factory( @@ -44,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ExposureControl_QueryFeatureValuesByFactory.json +# x-ms-original-file: 2018-06-01/ExposureControl_QueryFeatureValuesByFactory.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_configure_factory_repo.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_configure_factory_repo.py index 7bd6ab3ceb2f..4c44e3fdc221 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_configure_factory_repo.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_configure_factory_repo.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,13 +28,13 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.factories.configure_factory_repo( location_id="East US", factory_repo_update={ - "factoryResourceId": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName", + "factoryResourceId": "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName", "repoConfiguration": { "accountName": "ADF", "collaborationBranch": "master", @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Factories_ConfigureFactoryRepo.json +# x-ms-original-file: 2018-06-01/Factories_ConfigureFactoryRepo.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_create_or_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_create_or_update.py index 9cb178a2382d..d145580e778e 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_create_or_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_create_or_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.factories.create_or_update( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Factories_CreateOrUpdate.json +# x-ms-original-file: 2018-06-01/Factories_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_delete.py index 2a57d4bf3beb..4b0011bb2b46 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.factories.delete( @@ -37,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Factories_Delete.json +# x-ms-original-file: 2018-06-01/Factories_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get.py index fcb16a525e70..95c5ff5c21c1 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.factories.get( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Factories_Get.json +# x-ms-original-file: 2018-06-01/Factories_Get.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get_data_plane_access.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get_data_plane_access.py index 4dbd1ca69a57..3d39434fcdde 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get_data_plane_access.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get_data_plane_access.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.factories.get_data_plane_access( @@ -45,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Factories_GetDataPlaneAccess.json +# x-ms-original-file: 2018-06-01/Factories_GetDataPlaneAccess.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get_git_hub_access_token.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get_git_hub_access_token.py index 97f7064a860b..a8c5ca4174bc 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get_git_hub_access_token.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get_git_hub_access_token.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.factories.get_git_hub_access_token( @@ -43,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Factories_GetGitHubAccessToken.json +# x-ms-original-file: 2018-06-01/Factories_GetGitHubAccessToken.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_list.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_list.py index f7a2592abcd7..2baf2e134613 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_list.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.factories.list() @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Factories_List.json +# x-ms-original-file: 2018-06-01/Factories_List.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_list_by_resource_group.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_list_by_resource_group.py index 182f113eec1f..d0abb4e15c2e 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_list_by_resource_group.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_list_by_resource_group.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.factories.list_by_resource_group( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Factories_ListByResourceGroup.json +# x-ms-original-file: 2018-06-01/Factories_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_update.py index 9fe766ff0909..f0d74e815a69 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.factories.update( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Factories_Update.json +# x-ms-original-file: 2018-06-01/Factories_Update.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/get_private_endpoint_connection.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/get_private_endpoint_connection.py index 51c948e1c36f..5142c0729f03 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/get_private_endpoint_connection.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/get_private_endpoint_connection.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.private_endpoint_connection.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/GetPrivateEndpointConnection.json +# x-ms-original-file: 2018-06-01/GetPrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/get_private_link_resources.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/get_private_link_resources.py index 79972fd3a922..533ac0cb6c4e 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/get_private_link_resources.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/get_private_link_resources.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.private_link_resources.get( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/GetPrivateLinkResources.json +# x-ms-original-file: 2018-06-01/GetPrivateLinkResources.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_create.py index e2d9dced051e..1107bba41215 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_create.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.global_parameters.create_or_update( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/GlobalParameters_Create.json +# x-ms-original-file: 2018-06-01/GlobalParameters_Create.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_delete.py index 65e6bc603e33..1064afec31ee 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.global_parameters.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/GlobalParameters_Delete.json +# x-ms-original-file: 2018-06-01/GlobalParameters_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_get.py index ca81ba1699a9..46c5267f1858 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.global_parameters.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/GlobalParameters_Get.json +# x-ms-original-file: 2018-06-01/GlobalParameters_Get.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_list_by_factory.py index 2a11383a564b..a6cad1288b67 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_list_by_factory.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.global_parameters.list_by_factory( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/GlobalParameters_ListByFactory.json +# x-ms-original-file: 2018-06-01/GlobalParameters_ListByFactory.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_update.py index fdbef44def8f..bbd51ecc2181 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.global_parameters.create_or_update( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/GlobalParameters_Update.json +# x-ms-original-file: 2018-06-01/GlobalParameters_Update.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_delete.py index 383ef7529f12..62983ecb8217 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.integration_runtime_nodes.delete( @@ -39,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Delete.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimeNodes_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_get.py index 4cc69201413b..a1c9b86b956f 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtime_nodes.get( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Get.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimeNodes_Get.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_get_ip_address.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_get_ip_address.py index 75208de93a3b..cd5b29cd05d8 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_get_ip_address.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_get_ip_address.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtime_nodes.get_ip_address( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_GetIpAddress.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimeNodes_GetIpAddress.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_update.py index d57d77b21708..2e87f0808f9d 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtime_nodes.update( @@ -41,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Update.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimeNodes_Update.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_object_metadata_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_object_metadata_get.py index de3f15a4895a..049d7484bbd8 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_object_metadata_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_object_metadata_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtime_object_metadata.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Get.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimeObjectMetadata_Get.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_object_metadata_refresh.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_object_metadata_refresh.py index 500805b4119c..c8cc51f0b83f 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_object_metadata_refresh.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_object_metadata_refresh.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtime_object_metadata.begin_refresh( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Refresh.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimeObjectMetadata_Refresh.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_create.py index f75242979900..4e7a3c275e0e 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_create.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtimes.create_or_update( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Create.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_Create.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_create_linked_integration_runtime.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_create_linked_integration_runtime.py index 412ac8de2038..01d881496299 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_create_linked_integration_runtime.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_create_linked_integration_runtime.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtimes.create_linked_integration_runtime( @@ -45,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_CreateLinkedIntegrationRuntime.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_CreateLinkedIntegrationRuntime.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_delete.py index c3d2be02aa5e..4adef592456a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.integration_runtimes.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Delete.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_disable_interactive_query.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_disable_interactive_query.py index 91303cf34b70..d05329340117 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_disable_interactive_query.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_disable_interactive_query.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtime.begin_disable_interactive_query( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_DisableInteractiveQuery.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_DisableInteractiveQuery.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_enable_interactive_query.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_enable_interactive_query.py index 0438b26c1506..32a303d4fea3 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_enable_interactive_query.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_enable_interactive_query.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtime.begin_enable_interactive_query( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_EnableInteractiveQuery.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_EnableInteractiveQuery.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get.py index 32b5cd8aac14..39931ba96c6e 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtimes.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Get.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_Get.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_connection_info.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_connection_info.py index 1dde929fd048..421533ff9aa6 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_connection_info.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_connection_info.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtimes.get_connection_info( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetConnectionInfo.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_GetConnectionInfo.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_monitoring_data.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_monitoring_data.py index 676680d10af7..8860d248c8e4 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_monitoring_data.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_monitoring_data.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtimes.get_monitoring_data( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetMonitoringData.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_GetMonitoringData.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_status.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_status.py index b3ce55c0af82..0e5f1905a80a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_status.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_status.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtimes.get_status( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetStatus.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_GetStatus.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_auth_keys.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_auth_keys.py index d3f591fccbb3..fb6776d2558c 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_auth_keys.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_auth_keys.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtimes.list_auth_keys( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListAuthKeys.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_ListAuthKeys.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_by_factory.py index fc2dc8300cb6..445773e3474a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_by_factory.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtimes.list_by_factory( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListByFactory.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_ListByFactory.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_outbound_network_dependencies_endpoints.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_outbound_network_dependencies_endpoints.py index a02b3bf86739..14a49ed67020 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_outbound_network_dependencies_endpoints.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_outbound_network_dependencies_endpoints.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="7ad7c73b-38b8-4df3-84ee-52ff91092f61", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtimes.list_outbound_network_dependencies_endpoints( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_regenerate_auth_key.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_regenerate_auth_key.py index dfa0189243c9..962cadef66be 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_regenerate_auth_key.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_regenerate_auth_key.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtimes.regenerate_auth_key( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RegenerateAuthKey.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_RegenerateAuthKey.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_remove_links.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_remove_links.py index fce7d4b0ed6b..13dc44c6ded8 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_remove_links.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_remove_links.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.integration_runtimes.remove_links( @@ -39,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RemoveLinks.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_RemoveLinks.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_start.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_start.py index 0bfcf8a0da56..954c89e5e4d0 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_start.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_start.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtimes.begin_start( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Start.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_Start.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_stop.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_stop.py index c699b4502fff..e4242c6516f3 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_stop.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_stop.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.integration_runtimes.begin_stop( @@ -38,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Stop.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_Stop.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_sync_credentials.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_sync_credentials.py index f0171d0c6272..1436eb4affe6 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_sync_credentials.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_sync_credentials.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.integration_runtimes.sync_credentials( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_SyncCredentials.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_SyncCredentials.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_update.py index 53fb7165f64e..89cd7b9c100a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.integration_runtimes.update( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Update.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_Update.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_upgrade.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_upgrade.py index e34835d19bc2..f189bacfc079 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_upgrade.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_upgrade.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.integration_runtimes.upgrade( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Upgrade.json +# x-ms-original-file: 2018-06-01/IntegrationRuntimes_Upgrade.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_create.py index 5b6bfbc4623d..04b273093008 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_create.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.linked_services.create_or_update( @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/LinkedServices_Create.json +# x-ms-original-file: 2018-06-01/LinkedServices_Create.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_delete.py index 9c305e15468a..0f8c501937d4 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.linked_services.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/LinkedServices_Delete.json +# x-ms-original-file: 2018-06-01/LinkedServices_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_get.py index 592290ae0dfe..e93430276d3c 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.linked_services.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/LinkedServices_Get.json +# x-ms-original-file: 2018-06-01/LinkedServices_Get.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_list_by_factory.py index 4933c4a49c1b..064d9aebbc51 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_list_by_factory.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.linked_services.list_by_factory( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/LinkedServices_ListByFactory.json +# x-ms-original-file: 2018-06-01/LinkedServices_ListByFactory.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_update.py index 4c4a71b538b8..5ffd57115348 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_update.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.linked_services.create_or_update( @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/LinkedServices_Update.json +# x-ms-original-file: 2018-06-01/LinkedServices_Update.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_create.py index 72bf719d9875..939f56d00a1c 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_create.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_private_endpoints.create_or_update( @@ -40,13 +40,13 @@ def main(): "properties": { "fqdns": [], "groupId": "blob", - "privateLinkResourceId": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage", + "privateLinkResourceId": "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage", } }, ) print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Create.json +# x-ms-original-file: 2018-06-01/ManagedPrivateEndpoints_Create.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_delete.py index ba314e1bff9e..765f8d74a973 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.managed_private_endpoints.delete( @@ -39,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Delete.json +# x-ms-original-file: 2018-06-01/ManagedPrivateEndpoints_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_get.py index 08e4ea30a7af..8982833a573a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_private_endpoints.get( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Get.json +# x-ms-original-file: 2018-06-01/ManagedPrivateEndpoints_Get.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_list_by_factory.py index f08173f2b158..7110b220ecfd 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_list_by_factory.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_private_endpoints.list_by_factory( @@ -40,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_ListByFactory.json +# x-ms-original-file: 2018-06-01/ManagedPrivateEndpoints_ListByFactory.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_create.py index adb20f696cc3..eba476e4a568 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_create.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_virtual_networks.create_or_update( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Create.json +# x-ms-original-file: 2018-06-01/ManagedVirtualNetworks_Create.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_get.py index e3c8c14d9645..17e6887bdbef 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_virtual_networks.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Get.json +# x-ms-original-file: 2018-06-01/ManagedVirtualNetworks_Get.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_list_by_factory.py index 4380316fd9eb..26c004dd31fc 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_list_by_factory.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_virtual_networks.list_by_factory( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_ListByFactory.json +# x-ms-original-file: 2018-06-01/ManagedVirtualNetworks_ListByFactory.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/operations_list.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/operations_list.py index c44867ab4c11..8a054aacce9f 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/operations_list.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/operations_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.operations.list() @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Operations_List.json +# x-ms-original-file: 2018-06-01/Operations_List.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_cancel.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_cancel.py index 83ec66167219..7f22586eae85 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_cancel.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_cancel.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.pipeline_runs.cancel( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.json +# x-ms-original-file: 2018-06-01/PipelineRuns_Cancel.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_get.py index 1b255a0cbdfd..0418da1e0d77 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.pipeline_runs.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/PipelineRuns_Get.json +# x-ms-original-file: 2018-06-01/PipelineRuns_Get.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_query_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_query_by_factory.py index 3bf4ef222f03..716e38a465ba 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_query_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_query_by_factory.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.pipeline_runs.query_by_factory( @@ -43,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/PipelineRuns_QueryByFactory.json +# x-ms-original-file: 2018-06-01/PipelineRuns_QueryByFactory.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_create.py index 2773be9141b7..11534d390fe8 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_create.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.pipelines.create_or_update( @@ -88,6 +87,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Pipelines_Create.json +# x-ms-original-file: 2018-06-01/Pipelines_Create.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_create_run.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_create_run.py index a844dd07cb39..d75cafe3f4c8 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_create_run.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_create_run.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.pipelines.create_run( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Pipelines_CreateRun.json +# x-ms-original-file: 2018-06-01/Pipelines_CreateRun.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_delete.py index 39f64b5f659b..925674ef5e56 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.pipelines.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json +# x-ms-original-file: 2018-06-01/Pipelines_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_get.py index 3269d2742c01..958d93463b44 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.pipelines.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Pipelines_Get.json +# x-ms-original-file: 2018-06-01/Pipelines_Get.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_list_by_factory.py index ff157103e43d..2e1baf81a2f5 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_list_by_factory.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.pipelines.list_by_factory( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Pipelines_ListByFactory.json +# x-ms-original-file: 2018-06-01/Pipelines_ListByFactory.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_update.py index 15970edbed5b..359ad44b8576 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.pipelines.create_or_update( @@ -87,6 +86,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Pipelines_Update.json +# x-ms-original-file: 2018-06-01/Pipelines_Update.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/private_end_point_connections_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/private_end_point_connections_list_by_factory.py index 4a7e14d9fed9..b4c6ac61ca41 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/private_end_point_connections_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/private_end_point_connections_list_by_factory.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.private_end_point_connections.list_by_factory( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/PrivateEndPointConnections_ListByFactory.json +# x-ms-original-file: 2018-06-01/PrivateEndPointConnections_ListByFactory.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_cancel.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_cancel.py index 9f8a33e2ca91..04b52c0af734 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_cancel.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_cancel.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.trigger_runs.cancel( @@ -39,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/TriggerRuns_Cancel.json +# x-ms-original-file: 2018-06-01/TriggerRuns_Cancel.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_query_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_query_by_factory.py index c2498424da00..1ec4f5cf5876 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_query_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_query_by_factory.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.trigger_runs.query_by_factory( @@ -43,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/TriggerRuns_QueryByFactory.json +# x-ms-original-file: 2018-06-01/TriggerRuns_QueryByFactory.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_rerun.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_rerun.py index a33480af709f..fb8ec7c3566b 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_rerun.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_rerun.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.trigger_runs.rerun( @@ -39,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun.json +# x-ms-original-file: 2018-06-01/TriggerRuns_Rerun.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_create.py index eb88195b2a68..d51c4366434f 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_create.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.triggers.create_or_update( @@ -59,6 +58,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Triggers_Create.json +# x-ms-original-file: 2018-06-01/Triggers_Create.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_delete.py index b5ab82b5f666..c97771c6811a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.triggers.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Triggers_Delete.json +# x-ms-original-file: 2018-06-01/Triggers_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_get.py index 3cf8e6af93e3..8b830977c90a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.triggers.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Triggers_Get.json +# x-ms-original-file: 2018-06-01/Triggers_Get.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_get_event_subscription_status.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_get_event_subscription_status.py index 50205f4ee3bf..c9e311d0423b 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_get_event_subscription_status.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_get_event_subscription_status.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.triggers.get_event_subscription_status( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Triggers_GetEventSubscriptionStatus.json +# x-ms-original-file: 2018-06-01/Triggers_GetEventSubscriptionStatus.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_list_by_factory.py index 968d3ec9ebfe..6d655d081f4f 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_list_by_factory.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.triggers.list_by_factory( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Triggers_ListByFactory.json +# x-ms-original-file: 2018-06-01/Triggers_ListByFactory.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_query_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_query_by_factory.py index 20baddf33567..5f80ca140e25 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_query_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_query_by_factory.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.triggers.query_by_factory( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Triggers_QueryByFactory.json +# x-ms-original-file: 2018-06-01/Triggers_QueryByFactory.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_start.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_start.py index 1b06a3fdd462..c078f321270c 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_start.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_start.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.triggers.begin_start( @@ -38,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Triggers_Start.json +# x-ms-original-file: 2018-06-01/Triggers_Start.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_stop.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_stop.py index c633f4515a31..f8564433a4f2 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_stop.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_stop.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) client.triggers.begin_stop( @@ -38,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Triggers_Stop.json +# x-ms-original-file: 2018-06-01/Triggers_Stop.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_subscribe_to_events.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_subscribe_to_events.py index 898909ca7cd9..39339a736437 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_subscribe_to_events.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_subscribe_to_events.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.triggers.begin_subscribe_to_events( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Triggers_SubscribeToEvents.json +# x-ms-original-file: 2018-06-01/Triggers_SubscribeToEvents.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_unsubscribe_from_events.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_unsubscribe_from_events.py index 74f22071fa08..da632887a536 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_unsubscribe_from_events.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_unsubscribe_from_events.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.triggers.begin_unsubscribe_from_events( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Triggers_UnsubscribeFromEvents.json +# x-ms-original-file: 2018-06-01/Triggers_UnsubscribeFromEvents.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_update.py index 1b9d48d43dc6..79b62886dde7 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataFactoryManagementClient( credential=DefaultAzureCredential(), - subscription_id="12345678-1234-1234-1234-12345678abc", + subscription_id="SUBSCRIPTION_ID", ) response = client.triggers.create_or_update( @@ -60,6 +59,6 @@ def main(): print(response) -# x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/stable/2018-06-01/examples/Triggers_Update.json +# x-ms-original-file: 2018-06-01/Triggers_Update.json if __name__ == "__main__": main() diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/conftest.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/conftest.py index b0d8cda5b18d..972d9bf44520 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/conftest.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/conftest.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import os diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_activity_runs_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_activity_runs_operations.py index 9c1f8581c850..7ec2e5e7eb2a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_activity_runs_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_activity_runs_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -32,7 +32,6 @@ def test_activity_runs_query_by_pipeline_run(self, resource_group): "filters": [{"operand": "str", "operator": "str", "values": ["str"]}], "orderBy": [{"order": "str", "orderBy": "str"}], }, - api_version="2018-06-01", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_activity_runs_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_activity_runs_operations_async.py index f762becaeaec..6a38308c481a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_activity_runs_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_activity_runs_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -33,7 +33,6 @@ async def test_activity_runs_query_by_pipeline_run(self, resource_group): "filters": [{"operand": "str", "operator": "str", "values": ["str"]}], "orderBy": [{"order": "str", "orderBy": "str"}], }, - api_version="2018-06-01", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_change_data_capture_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_change_data_capture_operations.py index 30dacabcac6e..4698bf04a999 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_change_data_capture_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_change_data_capture_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,13 +20,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_change_data_capture_list_by_factory(self, resource_group): - response = self.client.change_data_capture.list_by_factory( + def test_change_data_capture_get(self, resource_group): + response = self.client.change_data_capture.get( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", + change_data_capture_name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @@ -38,87 +38,103 @@ def test_change_data_capture_create_or_update(self, resource_group): factory_name="str", change_data_capture_name="str", change_data_capture={ - "policy": {"mode": "str", "recurrence": {"frequency": "str", "interval": 0}}, - "sourceConnectionsInfo": [ - { - "connection": { - "type": "str", - "commonDslConnectorProperties": [{"name": "str", "value": {}}], - "isInlineDataset": bool, - "linkedService": {"referenceName": "str", "type": "str", "parameters": {"str": {}}}, - "linkedServiceType": "str", - }, - "sourceEntities": [ - { - "dslConnectorProperties": [{"name": "str", "value": {}}], - "name": "str", - "schema": [{"dataType": "str", "name": "str"}], - } - ], - } - ], - "targetConnectionsInfo": [ - { - "connection": { - "type": "str", - "commonDslConnectorProperties": [{"name": "str", "value": {}}], - "isInlineDataset": bool, - "linkedService": {"referenceName": "str", "type": "str", "parameters": {"str": {}}}, - "linkedServiceType": "str", - }, - "dataMapperMappings": [ - { - "attributeMappingInfo": { - "attributeMappings": [ - { - "attributeReference": { - "entity": "str", - "entityConnectionReference": {"connectionName": "str", "type": "str"}, - "name": "str", - }, - "attributeReferences": [ - { + "properties": { + "policy": {"mode": "str", "recurrence": {"frequency": "str", "interval": 0}}, + "sourceConnectionsInfo": [ + { + "connection": { + "type": "str", + "commonDslConnectorProperties": [{"name": "str", "value": {}}], + "isInlineDataset": bool, + "linkedService": {"referenceName": "str", "type": "str", "parameters": {"str": {}}}, + "linkedServiceType": "str", + }, + "sourceEntities": [ + { + "name": "str", + "properties": { + "dslConnectorProperties": [{"name": "str", "value": {}}], + "schema": [{"dataType": "str", "name": "str"}], + }, + } + ], + } + ], + "targetConnectionsInfo": [ + { + "connection": { + "type": "str", + "commonDslConnectorProperties": [{"name": "str", "value": {}}], + "isInlineDataset": bool, + "linkedService": {"referenceName": "str", "type": "str", "parameters": {"str": {}}}, + "linkedServiceType": "str", + }, + "dataMapperMappings": [ + { + "attributeMappingInfo": { + "attributeMappings": [ + { + "attributeReference": { "entity": "str", "entityConnectionReference": { "connectionName": "str", "type": "str", }, "name": "str", - } - ], - "expression": "str", - "functionName": "str", - "name": "str", - "type": "str", - } - ] - }, - "sourceConnectionReference": {"connectionName": "str", "type": "str"}, - "sourceDenormalizeInfo": {}, - "sourceEntityName": "str", - "targetEntityName": "str", - } - ], - "relationships": [{}], - "targetEntities": [ - { - "dslConnectorProperties": [{"name": "str", "value": {}}], - "name": "str", - "schema": [{"dataType": "str", "name": "str"}], - } - ], - } - ], - "allowVNetOverride": bool, - "description": "str", + }, + "attributeReferences": [ + { + "entity": "str", + "entityConnectionReference": { + "connectionName": "str", + "type": "str", + }, + "name": "str", + } + ], + "expression": "str", + "functionName": "str", + "name": "str", + "type": "str", + } + ] + }, + "sourceConnectionReference": {"connectionName": "str", "type": "str"}, + "sourceDenormalizeInfo": {}, + "sourceEntityName": "str", + "targetEntityName": "str", + } + ], + "relationships": [{}], + "targetEntities": [ + { + "name": "str", + "properties": { + "dslConnectorProperties": [{"name": "str", "value": {}}], + "schema": [{"dataType": "str", "name": "str"}], + }, + } + ], + } + ], + "allowVNetOverride": bool, + "description": "str", + "folder": {"name": "str"}, + "status": "str", + }, "etag": "str", - "folder": {"name": "str"}, "id": "str", "name": "str", - "status": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -126,12 +142,11 @@ def test_change_data_capture_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_change_data_capture_get(self, resource_group): - response = self.client.change_data_capture.get( + def test_change_data_capture_delete(self, resource_group): + response = self.client.change_data_capture.delete( resource_group_name=resource_group.name, factory_name="str", change_data_capture_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -139,14 +154,12 @@ def test_change_data_capture_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_change_data_capture_delete(self, resource_group): - response = self.client.change_data_capture.delete( + def test_change_data_capture_list_by_factory(self, resource_group): + response = self.client.change_data_capture.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - change_data_capture_name="str", - api_version="2018-06-01", ) - + result = [r for r in response] # please add some check logic here by yourself # ... @@ -157,7 +170,6 @@ def test_change_data_capture_start(self, resource_group): resource_group_name=resource_group.name, factory_name="str", change_data_capture_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -170,7 +182,6 @@ def test_change_data_capture_stop(self, resource_group): resource_group_name=resource_group.name, factory_name="str", change_data_capture_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -183,7 +194,6 @@ def test_change_data_capture_status(self, resource_group): resource_group_name=resource_group.name, factory_name="str", change_data_capture_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_change_data_capture_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_change_data_capture_operations_async.py index d5f6b8f05e04..fb3598ca5dc0 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_change_data_capture_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_change_data_capture_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,13 +21,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_change_data_capture_list_by_factory(self, resource_group): - response = self.client.change_data_capture.list_by_factory( + async def test_change_data_capture_get(self, resource_group): + response = await self.client.change_data_capture.get( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", + change_data_capture_name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @@ -39,87 +39,103 @@ async def test_change_data_capture_create_or_update(self, resource_group): factory_name="str", change_data_capture_name="str", change_data_capture={ - "policy": {"mode": "str", "recurrence": {"frequency": "str", "interval": 0}}, - "sourceConnectionsInfo": [ - { - "connection": { - "type": "str", - "commonDslConnectorProperties": [{"name": "str", "value": {}}], - "isInlineDataset": bool, - "linkedService": {"referenceName": "str", "type": "str", "parameters": {"str": {}}}, - "linkedServiceType": "str", - }, - "sourceEntities": [ - { - "dslConnectorProperties": [{"name": "str", "value": {}}], - "name": "str", - "schema": [{"dataType": "str", "name": "str"}], - } - ], - } - ], - "targetConnectionsInfo": [ - { - "connection": { - "type": "str", - "commonDslConnectorProperties": [{"name": "str", "value": {}}], - "isInlineDataset": bool, - "linkedService": {"referenceName": "str", "type": "str", "parameters": {"str": {}}}, - "linkedServiceType": "str", - }, - "dataMapperMappings": [ - { - "attributeMappingInfo": { - "attributeMappings": [ - { - "attributeReference": { - "entity": "str", - "entityConnectionReference": {"connectionName": "str", "type": "str"}, - "name": "str", - }, - "attributeReferences": [ - { + "properties": { + "policy": {"mode": "str", "recurrence": {"frequency": "str", "interval": 0}}, + "sourceConnectionsInfo": [ + { + "connection": { + "type": "str", + "commonDslConnectorProperties": [{"name": "str", "value": {}}], + "isInlineDataset": bool, + "linkedService": {"referenceName": "str", "type": "str", "parameters": {"str": {}}}, + "linkedServiceType": "str", + }, + "sourceEntities": [ + { + "name": "str", + "properties": { + "dslConnectorProperties": [{"name": "str", "value": {}}], + "schema": [{"dataType": "str", "name": "str"}], + }, + } + ], + } + ], + "targetConnectionsInfo": [ + { + "connection": { + "type": "str", + "commonDslConnectorProperties": [{"name": "str", "value": {}}], + "isInlineDataset": bool, + "linkedService": {"referenceName": "str", "type": "str", "parameters": {"str": {}}}, + "linkedServiceType": "str", + }, + "dataMapperMappings": [ + { + "attributeMappingInfo": { + "attributeMappings": [ + { + "attributeReference": { "entity": "str", "entityConnectionReference": { "connectionName": "str", "type": "str", }, "name": "str", - } - ], - "expression": "str", - "functionName": "str", - "name": "str", - "type": "str", - } - ] - }, - "sourceConnectionReference": {"connectionName": "str", "type": "str"}, - "sourceDenormalizeInfo": {}, - "sourceEntityName": "str", - "targetEntityName": "str", - } - ], - "relationships": [{}], - "targetEntities": [ - { - "dslConnectorProperties": [{"name": "str", "value": {}}], - "name": "str", - "schema": [{"dataType": "str", "name": "str"}], - } - ], - } - ], - "allowVNetOverride": bool, - "description": "str", + }, + "attributeReferences": [ + { + "entity": "str", + "entityConnectionReference": { + "connectionName": "str", + "type": "str", + }, + "name": "str", + } + ], + "expression": "str", + "functionName": "str", + "name": "str", + "type": "str", + } + ] + }, + "sourceConnectionReference": {"connectionName": "str", "type": "str"}, + "sourceDenormalizeInfo": {}, + "sourceEntityName": "str", + "targetEntityName": "str", + } + ], + "relationships": [{}], + "targetEntities": [ + { + "name": "str", + "properties": { + "dslConnectorProperties": [{"name": "str", "value": {}}], + "schema": [{"dataType": "str", "name": "str"}], + }, + } + ], + } + ], + "allowVNetOverride": bool, + "description": "str", + "folder": {"name": "str"}, + "status": "str", + }, "etag": "str", - "folder": {"name": "str"}, "id": "str", "name": "str", - "status": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -127,12 +143,11 @@ async def test_change_data_capture_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_change_data_capture_get(self, resource_group): - response = await self.client.change_data_capture.get( + async def test_change_data_capture_delete(self, resource_group): + response = await self.client.change_data_capture.delete( resource_group_name=resource_group.name, factory_name="str", change_data_capture_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -140,14 +155,12 @@ async def test_change_data_capture_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_change_data_capture_delete(self, resource_group): - response = await self.client.change_data_capture.delete( + async def test_change_data_capture_list_by_factory(self, resource_group): + response = self.client.change_data_capture.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - change_data_capture_name="str", - api_version="2018-06-01", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... @@ -158,7 +171,6 @@ async def test_change_data_capture_start(self, resource_group): resource_group_name=resource_group.name, factory_name="str", change_data_capture_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -171,7 +183,6 @@ async def test_change_data_capture_stop(self, resource_group): resource_group_name=resource_group.name, factory_name="str", change_data_capture_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -184,7 +195,6 @@ async def test_change_data_capture_status(self, resource_group): resource_group_name=resource_group.name, factory_name="str", change_data_capture_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_credential_operations_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_credential_operations_operations.py index 62fcd56cb92d..d64a9887f6e4 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_credential_operations_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_credential_operations_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,13 +20,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_credential_operations_list_by_factory(self, resource_group): - response = self.client.credential_operations.list_by_factory( + def test_credential_operations_get(self, resource_group): + response = self.client.credential_operations.get( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", + credential_name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @@ -37,8 +37,21 @@ def test_credential_operations_create_or_update(self, resource_group): resource_group_name=resource_group.name, factory_name="str", credential_name="str", - credential={"properties": "credential", "etag": "str", "id": "str", "name": "str", "type": "str"}, - api_version="2018-06-01", + credential={ + "properties": "credential", + "etag": "str", + "id": "str", + "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, ) # please add some check logic here by yourself @@ -46,12 +59,11 @@ def test_credential_operations_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_credential_operations_get(self, resource_group): - response = self.client.credential_operations.get( + def test_credential_operations_delete(self, resource_group): + response = self.client.credential_operations.delete( resource_group_name=resource_group.name, factory_name="str", credential_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -59,13 +71,11 @@ def test_credential_operations_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_credential_operations_delete(self, resource_group): - response = self.client.credential_operations.delete( + def test_credential_operations_list_by_factory(self, resource_group): + response = self.client.credential_operations.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - credential_name="str", - api_version="2018-06-01", ) - + result = [r for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_credential_operations_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_credential_operations_operations_async.py index 84bd379bef8d..b73027e09d61 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_credential_operations_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_credential_operations_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,13 +21,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_credential_operations_list_by_factory(self, resource_group): - response = self.client.credential_operations.list_by_factory( + async def test_credential_operations_get(self, resource_group): + response = await self.client.credential_operations.get( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", + credential_name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @@ -38,8 +38,21 @@ async def test_credential_operations_create_or_update(self, resource_group): resource_group_name=resource_group.name, factory_name="str", credential_name="str", - credential={"properties": "credential", "etag": "str", "id": "str", "name": "str", "type": "str"}, - api_version="2018-06-01", + credential={ + "properties": "credential", + "etag": "str", + "id": "str", + "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, ) # please add some check logic here by yourself @@ -47,12 +60,11 @@ async def test_credential_operations_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_credential_operations_get(self, resource_group): - response = await self.client.credential_operations.get( + async def test_credential_operations_delete(self, resource_group): + response = await self.client.credential_operations.delete( resource_group_name=resource_group.name, factory_name="str", credential_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -60,13 +72,11 @@ async def test_credential_operations_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_credential_operations_delete(self, resource_group): - response = await self.client.credential_operations.delete( + async def test_credential_operations_list_by_factory(self, resource_group): + response = self.client.credential_operations.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - credential_name="str", - api_version="2018-06-01", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_data_flow_debug_session_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_data_flow_debug_session_operations.py index 0e92f93c060f..1786304cd254 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_data_flow_debug_session_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_data_flow_debug_session_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -30,7 +30,6 @@ def test_data_flow_debug_session_begin_create(self, resource_group): "integrationRuntime": {"properties": "integration_runtime", "name": "str"}, "timeToLive": 0, }, - api_version="2018-06-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -42,7 +41,6 @@ def test_data_flow_debug_session_query_by_factory(self, resource_group): response = self.client.data_flow_debug_session.query_by_factory( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -70,7 +68,6 @@ def test_data_flow_debug_session_add_data_flow(self, resource_group): "linkedService": {"referenceName": "str", "type": "str", "parameters": {"str": {}}}, }, }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -83,7 +80,6 @@ def test_data_flow_debug_session_delete(self, resource_group): resource_group_name=resource_group.name, factory_name="str", request={"sessionId": "str"}, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -100,7 +96,6 @@ def test_data_flow_debug_session_begin_execute_command(self, resource_group): "commandPayload": {"streamName": "str", "columns": ["str"], "expression": "str", "rowLimits": 0}, "sessionId": "str", }, - api_version="2018-06-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_data_flow_debug_session_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_data_flow_debug_session_operations_async.py index 09c1953e811c..c079b178cb62 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_data_flow_debug_session_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_data_flow_debug_session_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -32,7 +32,6 @@ async def test_data_flow_debug_session_begin_create(self, resource_group): "integrationRuntime": {"properties": "integration_runtime", "name": "str"}, "timeToLive": 0, }, - api_version="2018-06-01", ) ).result() # call '.result()' to poll until service return final result @@ -45,7 +44,6 @@ async def test_data_flow_debug_session_query_by_factory(self, resource_group): response = self.client.data_flow_debug_session.query_by_factory( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -73,7 +71,6 @@ async def test_data_flow_debug_session_add_data_flow(self, resource_group): "linkedService": {"referenceName": "str", "type": "str", "parameters": {"str": {}}}, }, }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -86,7 +83,6 @@ async def test_data_flow_debug_session_delete(self, resource_group): resource_group_name=resource_group.name, factory_name="str", request={"sessionId": "str"}, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -104,7 +100,6 @@ async def test_data_flow_debug_session_begin_execute_command(self, resource_grou "commandPayload": {"streamName": "str", "columns": ["str"], "expression": "str", "rowLimits": 0}, "sessionId": "str", }, - api_version="2018-06-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_data_flows_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_data_flows_operations.py index 1a76b7824888..cca71ff4a034 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_data_flows_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_data_flows_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,13 +20,11 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_data_flows_create_or_update(self, resource_group): - response = self.client.data_flows.create_or_update( + def test_data_flows_get(self, resource_group): + response = self.client.data_flows.get( resource_group_name=resource_group.name, factory_name="str", data_flow_name="str", - data_flow={"properties": "data_flow", "etag": "str", "id": "str", "name": "str", "type": "str"}, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -34,12 +32,26 @@ def test_data_flows_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_data_flows_get(self, resource_group): - response = self.client.data_flows.get( + def test_data_flows_create_or_update(self, resource_group): + response = self.client.data_flows.create_or_update( resource_group_name=resource_group.name, factory_name="str", data_flow_name="str", - api_version="2018-06-01", + data_flow={ + "properties": "data_flow", + "etag": "str", + "id": "str", + "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, ) # please add some check logic here by yourself @@ -52,7 +64,6 @@ def test_data_flows_delete(self, resource_group): resource_group_name=resource_group.name, factory_name="str", data_flow_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -64,7 +75,6 @@ def test_data_flows_list_by_factory(self, resource_group): response = self.client.data_flows.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_data_flows_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_data_flows_operations_async.py index 3555c1d4a8bf..c80fe406d740 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_data_flows_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_data_flows_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,13 +21,11 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_data_flows_create_or_update(self, resource_group): - response = await self.client.data_flows.create_or_update( + async def test_data_flows_get(self, resource_group): + response = await self.client.data_flows.get( resource_group_name=resource_group.name, factory_name="str", data_flow_name="str", - data_flow={"properties": "data_flow", "etag": "str", "id": "str", "name": "str", "type": "str"}, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -35,12 +33,26 @@ async def test_data_flows_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_data_flows_get(self, resource_group): - response = await self.client.data_flows.get( + async def test_data_flows_create_or_update(self, resource_group): + response = await self.client.data_flows.create_or_update( resource_group_name=resource_group.name, factory_name="str", data_flow_name="str", - api_version="2018-06-01", + data_flow={ + "properties": "data_flow", + "etag": "str", + "id": "str", + "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, ) # please add some check logic here by yourself @@ -53,7 +65,6 @@ async def test_data_flows_delete(self, resource_group): resource_group_name=resource_group.name, factory_name="str", data_flow_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -65,7 +76,6 @@ async def test_data_flows_list_by_factory(self, resource_group): response = self.client.data_flows.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_datasets_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_datasets_operations.py index 2b26d08f5720..ba9f3858d347 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_datasets_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_datasets_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,13 +20,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_datasets_list_by_factory(self, resource_group): - response = self.client.datasets.list_by_factory( + def test_datasets_get(self, resource_group): + response = self.client.datasets.get( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", + dataset_name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @@ -37,8 +37,21 @@ def test_datasets_create_or_update(self, resource_group): resource_group_name=resource_group.name, factory_name="str", dataset_name="str", - dataset={"properties": "dataset", "etag": "str", "id": "str", "name": "str", "type": "str"}, - api_version="2018-06-01", + dataset={ + "properties": "dataset", + "etag": "str", + "id": "str", + "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, ) # please add some check logic here by yourself @@ -46,12 +59,11 @@ def test_datasets_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_datasets_get(self, resource_group): - response = self.client.datasets.get( + def test_datasets_delete(self, resource_group): + response = self.client.datasets.delete( resource_group_name=resource_group.name, factory_name="str", dataset_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -59,13 +71,11 @@ def test_datasets_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_datasets_delete(self, resource_group): - response = self.client.datasets.delete( + def test_datasets_list_by_factory(self, resource_group): + response = self.client.datasets.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - dataset_name="str", - api_version="2018-06-01", ) - + result = [r for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_datasets_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_datasets_operations_async.py index e50d77ef3a0d..7da3020438cb 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_datasets_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_datasets_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,13 +21,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_datasets_list_by_factory(self, resource_group): - response = self.client.datasets.list_by_factory( + async def test_datasets_get(self, resource_group): + response = await self.client.datasets.get( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", + dataset_name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @@ -38,8 +38,21 @@ async def test_datasets_create_or_update(self, resource_group): resource_group_name=resource_group.name, factory_name="str", dataset_name="str", - dataset={"properties": "dataset", "etag": "str", "id": "str", "name": "str", "type": "str"}, - api_version="2018-06-01", + dataset={ + "properties": "dataset", + "etag": "str", + "id": "str", + "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, ) # please add some check logic here by yourself @@ -47,12 +60,11 @@ async def test_datasets_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_datasets_get(self, resource_group): - response = await self.client.datasets.get( + async def test_datasets_delete(self, resource_group): + response = await self.client.datasets.delete( resource_group_name=resource_group.name, factory_name="str", dataset_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -60,13 +72,11 @@ async def test_datasets_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_datasets_delete(self, resource_group): - response = await self.client.datasets.delete( + async def test_datasets_list_by_factory(self, resource_group): + response = self.client.datasets.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - dataset_name="str", - api_version="2018-06-01", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_exposure_control_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_exposure_control_operations.py index ad8b3652783e..4213a6a6e4b0 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_exposure_control_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_exposure_control_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,18 +18,6 @@ class TestDataFactoryManagementExposureControlOperations(AzureMgmtRecordedTestCa def setup_method(self, method): self.client = self.create_mgmt_client(DataFactoryManagementClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_exposure_control_get_feature_value(self, resource_group): - response = self.client.exposure_control.get_feature_value( - location_id="str", - exposure_control_request={"featureName": "str", "featureType": "str"}, - api_version="2018-06-01", - ) - - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_exposure_control_get_feature_value_by_factory(self, resource_group): @@ -37,7 +25,6 @@ def test_exposure_control_get_feature_value_by_factory(self, resource_group): resource_group_name=resource_group.name, factory_name="str", exposure_control_request={"featureName": "str", "featureType": "str"}, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -50,7 +37,17 @@ def test_exposure_control_query_feature_values_by_factory(self, resource_group): resource_group_name=resource_group.name, factory_name="str", exposure_control_batch_request={"exposureControlRequests": [{"featureName": "str", "featureType": "str"}]}, - api_version="2018-06-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_exposure_control_get_feature_value(self, resource_group): + response = self.client.exposure_control.get_feature_value( + location_id="str", + exposure_control_request={"featureName": "str", "featureType": "str"}, ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_exposure_control_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_exposure_control_operations_async.py index cee377a28ea8..4a26ad28f644 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_exposure_control_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_exposure_control_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,18 +19,6 @@ class TestDataFactoryManagementExposureControlOperationsAsync(AzureMgmtRecordedT def setup_method(self, method): self.client = self.create_mgmt_client(DataFactoryManagementClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_exposure_control_get_feature_value(self, resource_group): - response = await self.client.exposure_control.get_feature_value( - location_id="str", - exposure_control_request={"featureName": "str", "featureType": "str"}, - api_version="2018-06-01", - ) - - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_exposure_control_get_feature_value_by_factory(self, resource_group): @@ -38,7 +26,6 @@ async def test_exposure_control_get_feature_value_by_factory(self, resource_grou resource_group_name=resource_group.name, factory_name="str", exposure_control_request={"featureName": "str", "featureType": "str"}, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -51,7 +38,17 @@ async def test_exposure_control_query_feature_values_by_factory(self, resource_g resource_group_name=resource_group.name, factory_name="str", exposure_control_batch_request={"exposureControlRequests": [{"featureName": "str", "featureType": "str"}]}, - api_version="2018-06-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_exposure_control_get_feature_value(self, resource_group): + response = await self.client.exposure_control.get_feature_value( + location_id="str", + exposure_control_request={"featureName": "str", "featureType": "str"}, ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_factories_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_factories_operations.py index 27215817e5e6..a824d55ab759 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_factories_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_factories_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,34 +20,12 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_factories_list(self, resource_group): - response = self.client.factories.list( - api_version="2018-06-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_factories_configure_factory_repo(self, resource_group): - response = self.client.factories.configure_factory_repo( - location_id="str", - factory_repo_update={"factoryResourceId": "str", "repoConfiguration": "factory_repo_configuration"}, - api_version="2018-06-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_factories_list_by_resource_group(self, resource_group): - response = self.client.factories.list_by_resource_group( + def test_factories_get(self, resource_group): + response = self.client.factories.get( resource_group_name=resource_group.name, - api_version="2018-06-01", + factory_name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @@ -58,15 +36,7 @@ def test_factories_create_or_update(self, resource_group): resource_group_name=resource_group.name, factory_name="str", factory={ - "createTime": "2020-02-20 00:00:00", "eTag": "str", - "encryption": { - "keyName": "str", - "vaultBaseUrl": "str", - "identity": {"userAssignedIdentity": "str"}, - "keyVersion": "str", - }, - "globalParameters": {"str": {"type": "str", "value": {}}}, "id": "str", "identity": { "type": "str", @@ -76,15 +46,32 @@ def test_factories_create_or_update(self, resource_group): }, "location": "str", "name": "str", - "provisioningState": "str", - "publicNetworkAccess": "str", - "purviewConfiguration": {"purviewResourceId": "str"}, - "repoConfiguration": "factory_repo_configuration", + "properties": { + "createTime": "2020-02-20 00:00:00", + "encryption": { + "keyName": "str", + "vaultBaseUrl": "str", + "identity": {"userAssignedIdentity": "str"}, + "keyVersion": "str", + }, + "globalParameters": {"str": {"type": "str", "value": {}}}, + "provisioningState": "str", + "publicNetworkAccess": "str", + "purviewConfiguration": {"purviewResourceId": "str"}, + "repoConfiguration": "factory_repo_configuration", + "version": "str", + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "tags": {"str": "str"}, "type": "str", - "version": "str", }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -103,10 +90,9 @@ def test_factories_update(self, resource_group): "tenantId": "str", "userAssignedIdentities": {"str": {}}, }, - "publicNetworkAccess": "str", + "properties": {"publicNetworkAccess": "str"}, "tags": {"str": "str"}, }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -114,11 +100,10 @@ def test_factories_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_factories_get(self, resource_group): - response = self.client.factories.get( + def test_factories_delete(self, resource_group): + response = self.client.factories.delete( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -126,13 +111,19 @@ def test_factories_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_factories_delete(self, resource_group): - response = self.client.factories.delete( + def test_factories_list_by_resource_group(self, resource_group): + response = self.client.factories.list_by_resource_group( resource_group_name=resource_group.name, - factory_name="str", - api_version="2018-06-01", ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_factories_list(self, resource_group): + response = self.client.factories.list() + result = [r for r in response] # please add some check logic here by yourself # ... @@ -148,7 +139,6 @@ def test_factories_get_git_hub_access_token(self, resource_group): "gitHubClientId": "str", "gitHubClientSecret": {"byoaSecretAkvUrl": "str", "byoaSecretName": "str"}, }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -167,7 +157,17 @@ def test_factories_get_data_plane_access(self, resource_group): "profileName": "str", "startTime": "str", }, - api_version="2018-06-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_factories_configure_factory_repo(self, resource_group): + response = self.client.factories.configure_factory_repo( + location_id="str", + factory_repo_update={"factoryResourceId": "str", "repoConfiguration": "factory_repo_configuration"}, ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_factories_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_factories_operations_async.py index 6a41ac09f6e9..699d32fc856c 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_factories_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_factories_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,34 +21,12 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_factories_list(self, resource_group): - response = self.client.factories.list( - api_version="2018-06-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_factories_configure_factory_repo(self, resource_group): - response = await self.client.factories.configure_factory_repo( - location_id="str", - factory_repo_update={"factoryResourceId": "str", "repoConfiguration": "factory_repo_configuration"}, - api_version="2018-06-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_factories_list_by_resource_group(self, resource_group): - response = self.client.factories.list_by_resource_group( + async def test_factories_get(self, resource_group): + response = await self.client.factories.get( resource_group_name=resource_group.name, - api_version="2018-06-01", + factory_name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @@ -59,15 +37,7 @@ async def test_factories_create_or_update(self, resource_group): resource_group_name=resource_group.name, factory_name="str", factory={ - "createTime": "2020-02-20 00:00:00", "eTag": "str", - "encryption": { - "keyName": "str", - "vaultBaseUrl": "str", - "identity": {"userAssignedIdentity": "str"}, - "keyVersion": "str", - }, - "globalParameters": {"str": {"type": "str", "value": {}}}, "id": "str", "identity": { "type": "str", @@ -77,15 +47,32 @@ async def test_factories_create_or_update(self, resource_group): }, "location": "str", "name": "str", - "provisioningState": "str", - "publicNetworkAccess": "str", - "purviewConfiguration": {"purviewResourceId": "str"}, - "repoConfiguration": "factory_repo_configuration", + "properties": { + "createTime": "2020-02-20 00:00:00", + "encryption": { + "keyName": "str", + "vaultBaseUrl": "str", + "identity": {"userAssignedIdentity": "str"}, + "keyVersion": "str", + }, + "globalParameters": {"str": {"type": "str", "value": {}}}, + "provisioningState": "str", + "publicNetworkAccess": "str", + "purviewConfiguration": {"purviewResourceId": "str"}, + "repoConfiguration": "factory_repo_configuration", + "version": "str", + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "tags": {"str": "str"}, "type": "str", - "version": "str", }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -104,10 +91,9 @@ async def test_factories_update(self, resource_group): "tenantId": "str", "userAssignedIdentities": {"str": {}}, }, - "publicNetworkAccess": "str", + "properties": {"publicNetworkAccess": "str"}, "tags": {"str": "str"}, }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -115,11 +101,10 @@ async def test_factories_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_factories_get(self, resource_group): - response = await self.client.factories.get( + async def test_factories_delete(self, resource_group): + response = await self.client.factories.delete( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -127,13 +112,19 @@ async def test_factories_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_factories_delete(self, resource_group): - response = await self.client.factories.delete( + async def test_factories_list_by_resource_group(self, resource_group): + response = self.client.factories.list_by_resource_group( resource_group_name=resource_group.name, - factory_name="str", - api_version="2018-06-01", ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_factories_list(self, resource_group): + response = self.client.factories.list() + result = [r async for r in response] # please add some check logic here by yourself # ... @@ -149,7 +140,6 @@ async def test_factories_get_git_hub_access_token(self, resource_group): "gitHubClientId": "str", "gitHubClientSecret": {"byoaSecretAkvUrl": "str", "byoaSecretName": "str"}, }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -168,7 +158,17 @@ async def test_factories_get_data_plane_access(self, resource_group): "profileName": "str", "startTime": "str", }, - api_version="2018-06-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_factories_configure_factory_repo(self, resource_group): + response = await self.client.factories.configure_factory_repo( + location_id="str", + factory_repo_update={"factoryResourceId": "str", "repoConfiguration": "factory_repo_configuration"}, ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_global_parameters_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_global_parameters_operations.py index 8ff8a47ccf97..4557020fcbec 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_global_parameters_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_global_parameters_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,18 +18,6 @@ class TestDataFactoryManagementGlobalParametersOperations(AzureMgmtRecordedTestC def setup_method(self, method): self.client = self.create_mgmt_client(DataFactoryManagementClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_global_parameters_list_by_factory(self, resource_group): - response = self.client.global_parameters.list_by_factory( - resource_group_name=resource_group.name, - factory_name="str", - api_version="2018-06-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_global_parameters_get(self, resource_group): @@ -37,7 +25,6 @@ def test_global_parameters_get(self, resource_group): resource_group_name=resource_group.name, factory_name="str", global_parameter_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -55,9 +42,16 @@ def test_global_parameters_create_or_update(self, resource_group): "etag": "str", "id": "str", "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -70,8 +64,18 @@ def test_global_parameters_delete(self, resource_group): resource_group_name=resource_group.name, factory_name="str", global_parameter_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_global_parameters_list_by_factory(self, resource_group): + response = self.client.global_parameters.list_by_factory( + resource_group_name=resource_group.name, + factory_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_global_parameters_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_global_parameters_operations_async.py index 1ac449971500..b1f96313e70f 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_global_parameters_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_global_parameters_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,18 +19,6 @@ class TestDataFactoryManagementGlobalParametersOperationsAsync(AzureMgmtRecorded def setup_method(self, method): self.client = self.create_mgmt_client(DataFactoryManagementClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_global_parameters_list_by_factory(self, resource_group): - response = self.client.global_parameters.list_by_factory( - resource_group_name=resource_group.name, - factory_name="str", - api_version="2018-06-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_global_parameters_get(self, resource_group): @@ -38,7 +26,6 @@ async def test_global_parameters_get(self, resource_group): resource_group_name=resource_group.name, factory_name="str", global_parameter_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -56,9 +43,16 @@ async def test_global_parameters_create_or_update(self, resource_group): "etag": "str", "id": "str", "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -71,8 +65,18 @@ async def test_global_parameters_delete(self, resource_group): resource_group_name=resource_group.name, factory_name="str", global_parameter_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_global_parameters_list_by_factory(self, resource_group): + response = self.client.global_parameters.list_by_factory( + resource_group_name=resource_group.name, + factory_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_nodes_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_nodes_operations.py index dfb1e006f00d..82b19b22aa01 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_nodes_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_nodes_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -26,7 +26,6 @@ def test_integration_runtime_nodes_get(self, resource_group): factory_name="str", integration_runtime_name="str", node_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -40,7 +39,6 @@ def test_integration_runtime_nodes_delete(self, resource_group): factory_name="str", integration_runtime_name="str", node_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -55,7 +53,6 @@ def test_integration_runtime_nodes_update(self, resource_group): integration_runtime_name="str", node_name="str", update_integration_runtime_node_request={"concurrentJobsLimit": 0}, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -69,7 +66,6 @@ def test_integration_runtime_nodes_get_ip_address(self, resource_group): factory_name="str", integration_runtime_name="str", node_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_nodes_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_nodes_operations_async.py index 257a00d3228b..d51e6f2ea319 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_nodes_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_nodes_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -27,7 +27,6 @@ async def test_integration_runtime_nodes_get(self, resource_group): factory_name="str", integration_runtime_name="str", node_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -41,7 +40,6 @@ async def test_integration_runtime_nodes_delete(self, resource_group): factory_name="str", integration_runtime_name="str", node_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -56,7 +54,6 @@ async def test_integration_runtime_nodes_update(self, resource_group): integration_runtime_name="str", node_name="str", update_integration_runtime_node_request={"concurrentJobsLimit": 0}, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -70,7 +67,6 @@ async def test_integration_runtime_nodes_get_ip_address(self, resource_group): factory_name="str", integration_runtime_name="str", node_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_object_metadata_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_object_metadata_operations.py index e7d0acc9f8d3..d521627cac64 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_object_metadata_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_object_metadata_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ def test_integration_runtime_object_metadata_begin_refresh(self, resource_group) resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -38,7 +37,6 @@ def test_integration_runtime_object_metadata_get(self, resource_group): resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_object_metadata_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_object_metadata_operations_async.py index a75917eb1e5f..f732aae682bb 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_object_metadata_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_object_metadata_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -27,7 +27,6 @@ async def test_integration_runtime_object_metadata_begin_refresh(self, resource_ resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) ).result() # call '.result()' to poll until service return final result @@ -41,7 +40,6 @@ async def test_integration_runtime_object_metadata_get(self, resource_group): resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_operations.py index f358b8dc6aa9..a122cc862340 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -26,7 +26,6 @@ def test_integration_runtime_begin_enable_interactive_query(self, resource_group factory_name="str", integration_runtime_name="str", enable_interactive_query_request={"autoTerminationMinutes": 0}, - api_version="2018-06-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -39,7 +38,6 @@ def test_integration_runtime_begin_disable_interactive_query(self, resource_grou resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_operations_async.py index c40b30f9069a..453cb0c44ed5 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtime_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -28,7 +28,6 @@ async def test_integration_runtime_begin_enable_interactive_query(self, resource factory_name="str", integration_runtime_name="str", enable_interactive_query_request={"autoTerminationMinutes": 0}, - api_version="2018-06-01", ) ).result() # call '.result()' to poll until service return final result @@ -43,7 +42,6 @@ async def test_integration_runtime_begin_disable_interactive_query(self, resourc resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtimes_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtimes_operations.py index 427a4c39c1e2..8610e6f049d9 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtimes_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtimes_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,13 +20,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_integration_runtimes_list_by_factory(self, resource_group): - response = self.client.integration_runtimes.list_by_factory( + def test_integration_runtimes_get(self, resource_group): + response = self.client.integration_runtimes.get( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", + integration_runtime_name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @@ -42,9 +42,16 @@ def test_integration_runtimes_create_or_update(self, resource_group): "etag": "str", "id": "str", "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -52,12 +59,12 @@ def test_integration_runtimes_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_integration_runtimes_get(self, resource_group): - response = self.client.integration_runtimes.get( + def test_integration_runtimes_update(self, resource_group): + response = self.client.integration_runtimes.update( resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", + update_integration_runtime_request={"autoUpdate": "str", "updateDelayOffset": "str"}, ) # please add some check logic here by yourself @@ -65,13 +72,11 @@ def test_integration_runtimes_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_integration_runtimes_update(self, resource_group): - response = self.client.integration_runtimes.update( + def test_integration_runtimes_delete(self, resource_group): + response = self.client.integration_runtimes.delete( resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - update_integration_runtime_request={"autoUpdate": "str", "updateDelayOffset": "str"}, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -79,14 +84,12 @@ def test_integration_runtimes_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_integration_runtimes_delete(self, resource_group): - response = self.client.integration_runtimes.delete( + def test_integration_runtimes_list_by_factory(self, resource_group): + response = self.client.integration_runtimes.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - integration_runtime_name="str", - api_version="2018-06-01", ) - + result = [r for r in response] # please add some check logic here by yourself # ... @@ -97,7 +100,6 @@ def test_integration_runtimes_get_status(self, resource_group): resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -110,7 +112,6 @@ def test_integration_runtimes_list_outbound_network_dependencies_endpoints(self, resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -123,7 +124,6 @@ def test_integration_runtimes_get_connection_info(self, resource_group): resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -137,7 +137,6 @@ def test_integration_runtimes_regenerate_auth_key(self, resource_group): factory_name="str", integration_runtime_name="str", regenerate_key_parameters={"keyName": "str"}, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -150,7 +149,6 @@ def test_integration_runtimes_list_auth_keys(self, resource_group): resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -163,7 +161,6 @@ def test_integration_runtimes_begin_start(self, resource_group): resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -176,7 +173,6 @@ def test_integration_runtimes_begin_stop(self, resource_group): resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -189,7 +185,6 @@ def test_integration_runtimes_sync_credentials(self, resource_group): resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -202,7 +197,6 @@ def test_integration_runtimes_get_monitoring_data(self, resource_group): resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -215,7 +209,6 @@ def test_integration_runtimes_upgrade(self, resource_group): resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -229,7 +222,6 @@ def test_integration_runtimes_remove_links(self, resource_group): factory_name="str", integration_runtime_name="str", linked_integration_runtime_request={"factoryName": "str"}, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -248,7 +240,6 @@ def test_integration_runtimes_create_linked_integration_runtime(self, resource_g "name": "str", "subscriptionId": "str", }, - api_version="2018-06-01", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtimes_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtimes_operations_async.py index 8731e351f692..874bed832ea7 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtimes_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_integration_runtimes_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,13 +21,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_integration_runtimes_list_by_factory(self, resource_group): - response = self.client.integration_runtimes.list_by_factory( + async def test_integration_runtimes_get(self, resource_group): + response = await self.client.integration_runtimes.get( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", + integration_runtime_name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @@ -43,9 +43,16 @@ async def test_integration_runtimes_create_or_update(self, resource_group): "etag": "str", "id": "str", "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -53,12 +60,12 @@ async def test_integration_runtimes_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_integration_runtimes_get(self, resource_group): - response = await self.client.integration_runtimes.get( + async def test_integration_runtimes_update(self, resource_group): + response = await self.client.integration_runtimes.update( resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", + update_integration_runtime_request={"autoUpdate": "str", "updateDelayOffset": "str"}, ) # please add some check logic here by yourself @@ -66,13 +73,11 @@ async def test_integration_runtimes_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_integration_runtimes_update(self, resource_group): - response = await self.client.integration_runtimes.update( + async def test_integration_runtimes_delete(self, resource_group): + response = await self.client.integration_runtimes.delete( resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - update_integration_runtime_request={"autoUpdate": "str", "updateDelayOffset": "str"}, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -80,14 +85,12 @@ async def test_integration_runtimes_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_integration_runtimes_delete(self, resource_group): - response = await self.client.integration_runtimes.delete( + async def test_integration_runtimes_list_by_factory(self, resource_group): + response = self.client.integration_runtimes.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - integration_runtime_name="str", - api_version="2018-06-01", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... @@ -98,7 +101,6 @@ async def test_integration_runtimes_get_status(self, resource_group): resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -111,7 +113,6 @@ async def test_integration_runtimes_list_outbound_network_dependencies_endpoints resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -124,7 +125,6 @@ async def test_integration_runtimes_get_connection_info(self, resource_group): resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -138,7 +138,6 @@ async def test_integration_runtimes_regenerate_auth_key(self, resource_group): factory_name="str", integration_runtime_name="str", regenerate_key_parameters={"keyName": "str"}, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -151,7 +150,6 @@ async def test_integration_runtimes_list_auth_keys(self, resource_group): resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -165,7 +163,6 @@ async def test_integration_runtimes_begin_start(self, resource_group): resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) ).result() # call '.result()' to poll until service return final result @@ -180,7 +177,6 @@ async def test_integration_runtimes_begin_stop(self, resource_group): resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) ).result() # call '.result()' to poll until service return final result @@ -194,7 +190,6 @@ async def test_integration_runtimes_sync_credentials(self, resource_group): resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -207,7 +202,6 @@ async def test_integration_runtimes_get_monitoring_data(self, resource_group): resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -220,7 +214,6 @@ async def test_integration_runtimes_upgrade(self, resource_group): resource_group_name=resource_group.name, factory_name="str", integration_runtime_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -234,7 +227,6 @@ async def test_integration_runtimes_remove_links(self, resource_group): factory_name="str", integration_runtime_name="str", linked_integration_runtime_request={"factoryName": "str"}, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -253,7 +245,6 @@ async def test_integration_runtimes_create_linked_integration_runtime(self, reso "name": "str", "subscriptionId": "str", }, - api_version="2018-06-01", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_linked_services_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_linked_services_operations.py index 65078aca2062..a9749f5aef18 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_linked_services_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_linked_services_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,13 +20,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_linked_services_list_by_factory(self, resource_group): - response = self.client.linked_services.list_by_factory( + def test_linked_services_get(self, resource_group): + response = self.client.linked_services.get( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", + linked_service_name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @@ -37,8 +37,21 @@ def test_linked_services_create_or_update(self, resource_group): resource_group_name=resource_group.name, factory_name="str", linked_service_name="str", - linked_service={"properties": "linked_service", "etag": "str", "id": "str", "name": "str", "type": "str"}, - api_version="2018-06-01", + linked_service={ + "properties": "linked_service", + "etag": "str", + "id": "str", + "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, ) # please add some check logic here by yourself @@ -46,12 +59,11 @@ def test_linked_services_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_linked_services_get(self, resource_group): - response = self.client.linked_services.get( + def test_linked_services_delete(self, resource_group): + response = self.client.linked_services.delete( resource_group_name=resource_group.name, factory_name="str", linked_service_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -59,13 +71,11 @@ def test_linked_services_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_linked_services_delete(self, resource_group): - response = self.client.linked_services.delete( + def test_linked_services_list_by_factory(self, resource_group): + response = self.client.linked_services.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - linked_service_name="str", - api_version="2018-06-01", ) - + result = [r for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_linked_services_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_linked_services_operations_async.py index 872f3b0af917..85b12e39f9ab 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_linked_services_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_linked_services_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,13 +21,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_linked_services_list_by_factory(self, resource_group): - response = self.client.linked_services.list_by_factory( + async def test_linked_services_get(self, resource_group): + response = await self.client.linked_services.get( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", + linked_service_name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @@ -38,8 +38,21 @@ async def test_linked_services_create_or_update(self, resource_group): resource_group_name=resource_group.name, factory_name="str", linked_service_name="str", - linked_service={"properties": "linked_service", "etag": "str", "id": "str", "name": "str", "type": "str"}, - api_version="2018-06-01", + linked_service={ + "properties": "linked_service", + "etag": "str", + "id": "str", + "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, ) # please add some check logic here by yourself @@ -47,12 +60,11 @@ async def test_linked_services_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_linked_services_get(self, resource_group): - response = await self.client.linked_services.get( + async def test_linked_services_delete(self, resource_group): + response = await self.client.linked_services.delete( resource_group_name=resource_group.name, factory_name="str", linked_service_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -60,13 +72,11 @@ async def test_linked_services_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_linked_services_delete(self, resource_group): - response = await self.client.linked_services.delete( + async def test_linked_services_list_by_factory(self, resource_group): + response = self.client.linked_services.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - linked_service_name="str", - api_version="2018-06-01", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_managed_private_endpoints_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_managed_private_endpoints_operations.py index 71fcdcd450ed..54d02f363375 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_managed_private_endpoints_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_managed_private_endpoints_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,14 +20,14 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_managed_private_endpoints_list_by_factory(self, resource_group): - response = self.client.managed_private_endpoints.list_by_factory( + def test_managed_private_endpoints_get(self, resource_group): + response = self.client.managed_private_endpoints.get( resource_group_name=resource_group.name, factory_name="str", managed_virtual_network_name="str", - api_version="2018-06-01", + managed_private_endpoint_name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @@ -51,9 +51,16 @@ def test_managed_private_endpoints_create_or_update(self, resource_group): "etag": "str", "id": "str", "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -61,13 +68,12 @@ def test_managed_private_endpoints_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_managed_private_endpoints_get(self, resource_group): - response = self.client.managed_private_endpoints.get( + def test_managed_private_endpoints_delete(self, resource_group): + response = self.client.managed_private_endpoints.delete( resource_group_name=resource_group.name, factory_name="str", managed_virtual_network_name="str", managed_private_endpoint_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -75,14 +81,12 @@ def test_managed_private_endpoints_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_managed_private_endpoints_delete(self, resource_group): - response = self.client.managed_private_endpoints.delete( + def test_managed_private_endpoints_list_by_factory(self, resource_group): + response = self.client.managed_private_endpoints.list_by_factory( resource_group_name=resource_group.name, factory_name="str", managed_virtual_network_name="str", - managed_private_endpoint_name="str", - api_version="2018-06-01", ) - + result = [r for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_managed_private_endpoints_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_managed_private_endpoints_operations_async.py index e4c7cdeaabf9..ff76dbf52ba8 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_managed_private_endpoints_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_managed_private_endpoints_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,14 +21,14 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_managed_private_endpoints_list_by_factory(self, resource_group): - response = self.client.managed_private_endpoints.list_by_factory( + async def test_managed_private_endpoints_get(self, resource_group): + response = await self.client.managed_private_endpoints.get( resource_group_name=resource_group.name, factory_name="str", managed_virtual_network_name="str", - api_version="2018-06-01", + managed_private_endpoint_name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @@ -52,9 +52,16 @@ async def test_managed_private_endpoints_create_or_update(self, resource_group): "etag": "str", "id": "str", "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -62,13 +69,12 @@ async def test_managed_private_endpoints_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_managed_private_endpoints_get(self, resource_group): - response = await self.client.managed_private_endpoints.get( + async def test_managed_private_endpoints_delete(self, resource_group): + response = await self.client.managed_private_endpoints.delete( resource_group_name=resource_group.name, factory_name="str", managed_virtual_network_name="str", managed_private_endpoint_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -76,14 +82,12 @@ async def test_managed_private_endpoints_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_managed_private_endpoints_delete(self, resource_group): - response = await self.client.managed_private_endpoints.delete( + async def test_managed_private_endpoints_list_by_factory(self, resource_group): + response = self.client.managed_private_endpoints.list_by_factory( resource_group_name=resource_group.name, factory_name="str", managed_virtual_network_name="str", - managed_private_endpoint_name="str", - api_version="2018-06-01", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_managed_virtual_networks_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_managed_virtual_networks_operations.py index c5b1e65e4da2..94e38c9d6667 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_managed_virtual_networks_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_managed_virtual_networks_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,13 +20,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_managed_virtual_networks_list_by_factory(self, resource_group): - response = self.client.managed_virtual_networks.list_by_factory( + def test_managed_virtual_networks_get(self, resource_group): + response = self.client.managed_virtual_networks.get( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", + managed_virtual_network_name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @@ -42,9 +42,16 @@ def test_managed_virtual_networks_create_or_update(self, resource_group): "etag": "str", "id": "str", "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -52,13 +59,11 @@ def test_managed_virtual_networks_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_managed_virtual_networks_get(self, resource_group): - response = self.client.managed_virtual_networks.get( + def test_managed_virtual_networks_list_by_factory(self, resource_group): + response = self.client.managed_virtual_networks.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - managed_virtual_network_name="str", - api_version="2018-06-01", ) - + result = [r for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_managed_virtual_networks_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_managed_virtual_networks_operations_async.py index 68be41b1315f..4f695143c7b9 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_managed_virtual_networks_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_managed_virtual_networks_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,13 +21,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_managed_virtual_networks_list_by_factory(self, resource_group): - response = self.client.managed_virtual_networks.list_by_factory( + async def test_managed_virtual_networks_get(self, resource_group): + response = await self.client.managed_virtual_networks.get( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", + managed_virtual_network_name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @@ -43,9 +43,16 @@ async def test_managed_virtual_networks_create_or_update(self, resource_group): "etag": "str", "id": "str", "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -53,13 +60,11 @@ async def test_managed_virtual_networks_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_managed_virtual_networks_get(self, resource_group): - response = await self.client.managed_virtual_networks.get( + async def test_managed_virtual_networks_list_by_factory(self, resource_group): + response = self.client.managed_virtual_networks.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - managed_virtual_network_name="str", - api_version="2018-06-01", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_operations.py index f17d65db1400..be52b2a7d6ff 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,9 +21,7 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_operations_list(self, resource_group): - response = self.client.operations.list( - api_version="2018-06-01", - ) + response = self.client.operations.list() result = [r for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_operations_async.py index 6111f071f272..8a5b0fe89ed0 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -22,9 +22,7 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_operations_list(self, resource_group): - response = self.client.operations.list( - api_version="2018-06-01", - ) + response = self.client.operations.list() result = [r async for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_pipeline_runs_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_pipeline_runs_operations.py index 619281b5d14e..c856835c77ac 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_pipeline_runs_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_pipeline_runs_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -31,7 +31,6 @@ def test_pipeline_runs_query_by_factory(self, resource_group): "filters": [{"operand": "str", "operator": "str", "values": ["str"]}], "orderBy": [{"order": "str", "orderBy": "str"}], }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -44,7 +43,6 @@ def test_pipeline_runs_get(self, resource_group): resource_group_name=resource_group.name, factory_name="str", run_id="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -57,7 +55,6 @@ def test_pipeline_runs_cancel(self, resource_group): resource_group_name=resource_group.name, factory_name="str", run_id="str", - api_version="2018-06-01", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_pipeline_runs_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_pipeline_runs_operations_async.py index 0fb5484d1266..82f9be07ab73 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_pipeline_runs_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_pipeline_runs_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -32,7 +32,6 @@ async def test_pipeline_runs_query_by_factory(self, resource_group): "filters": [{"operand": "str", "operator": "str", "values": ["str"]}], "orderBy": [{"order": "str", "orderBy": "str"}], }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -45,7 +44,6 @@ async def test_pipeline_runs_get(self, resource_group): resource_group_name=resource_group.name, factory_name="str", run_id="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -58,7 +56,6 @@ async def test_pipeline_runs_cancel(self, resource_group): resource_group_name=resource_group.name, factory_name="str", run_id="str", - api_version="2018-06-01", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_pipelines_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_pipelines_operations.py index 48adaf4e55cc..92c264e3790c 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_pipelines_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_pipelines_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,13 +20,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_pipelines_list_by_factory(self, resource_group): - response = self.client.pipelines.list_by_factory( + def test_pipelines_get(self, resource_group): + response = self.client.pipelines.get( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", + pipeline_name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @@ -38,21 +38,30 @@ def test_pipelines_create_or_update(self, resource_group): factory_name="str", pipeline_name="str", pipeline={ - "activities": ["activity"], - "annotations": [{}], - "concurrency": 0, - "description": "str", + "properties": { + "activities": ["activity"], + "annotations": [{}], + "concurrency": 0, + "description": "str", + "folder": {"name": "str"}, + "parameters": {"str": {"type": "str", "defaultValue": {}}}, + "policy": {"elapsedTimeMetric": {"duration": {}}}, + "runDimensions": {"str": {}}, + "variables": {"str": {"type": "str", "defaultValue": {}}}, + }, "etag": "str", - "folder": {"name": "str"}, "id": "str", "name": "str", - "parameters": {"str": {"type": "str", "defaultValue": {}}}, - "policy": {"elapsedTimeMetric": {"duration": {}}}, - "runDimensions": {"str": {}}, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", - "variables": {"str": {"type": "str", "defaultValue": {}}}, }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -60,12 +69,11 @@ def test_pipelines_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_pipelines_get(self, resource_group): - response = self.client.pipelines.get( + def test_pipelines_delete(self, resource_group): + response = self.client.pipelines.delete( resource_group_name=resource_group.name, factory_name="str", pipeline_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -73,14 +81,12 @@ def test_pipelines_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_pipelines_delete(self, resource_group): - response = self.client.pipelines.delete( + def test_pipelines_list_by_factory(self, resource_group): + response = self.client.pipelines.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - pipeline_name="str", - api_version="2018-06-01", ) - + result = [r for r in response] # please add some check logic here by yourself # ... @@ -91,7 +97,6 @@ def test_pipelines_create_run(self, resource_group): resource_group_name=resource_group.name, factory_name="str", pipeline_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_pipelines_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_pipelines_operations_async.py index db8b625c8d09..b7b1897a5abe 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_pipelines_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_pipelines_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,13 +21,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_pipelines_list_by_factory(self, resource_group): - response = self.client.pipelines.list_by_factory( + async def test_pipelines_get(self, resource_group): + response = await self.client.pipelines.get( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", + pipeline_name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @@ -39,21 +39,30 @@ async def test_pipelines_create_or_update(self, resource_group): factory_name="str", pipeline_name="str", pipeline={ - "activities": ["activity"], - "annotations": [{}], - "concurrency": 0, - "description": "str", + "properties": { + "activities": ["activity"], + "annotations": [{}], + "concurrency": 0, + "description": "str", + "folder": {"name": "str"}, + "parameters": {"str": {"type": "str", "defaultValue": {}}}, + "policy": {"elapsedTimeMetric": {"duration": {}}}, + "runDimensions": {"str": {}}, + "variables": {"str": {"type": "str", "defaultValue": {}}}, + }, "etag": "str", - "folder": {"name": "str"}, "id": "str", "name": "str", - "parameters": {"str": {"type": "str", "defaultValue": {}}}, - "policy": {"elapsedTimeMetric": {"duration": {}}}, - "runDimensions": {"str": {}}, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", - "variables": {"str": {"type": "str", "defaultValue": {}}}, }, - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -61,12 +70,11 @@ async def test_pipelines_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_pipelines_get(self, resource_group): - response = await self.client.pipelines.get( + async def test_pipelines_delete(self, resource_group): + response = await self.client.pipelines.delete( resource_group_name=resource_group.name, factory_name="str", pipeline_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -74,14 +82,12 @@ async def test_pipelines_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_pipelines_delete(self, resource_group): - response = await self.client.pipelines.delete( + async def test_pipelines_list_by_factory(self, resource_group): + response = self.client.pipelines.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - pipeline_name="str", - api_version="2018-06-01", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... @@ -92,7 +98,6 @@ async def test_pipelines_create_run(self, resource_group): resource_group_name=resource_group.name, factory_name="str", pipeline_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_end_point_connections_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_end_point_connections_operations.py index 574a46cb1dc4..f738769f00e1 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_end_point_connections_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_end_point_connections_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -24,7 +24,6 @@ def test_private_end_point_connections_list_by_factory(self, resource_group): response = self.client.private_end_point_connections.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_end_point_connections_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_end_point_connections_operations_async.py index 304939c9ad82..c924d8c9dfbe 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_end_point_connections_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_end_point_connections_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ async def test_private_end_point_connections_list_by_factory(self, resource_grou response = self.client.private_end_point_connections.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_endpoint_connection_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_endpoint_connection_operations.py index e8682089587d..a82c9806d8ba 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_endpoint_connection_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_endpoint_connection_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,6 +18,18 @@ class TestDataFactoryManagementPrivateEndpointConnectionOperations(AzureMgmtReco def setup_method(self, method): self.client = self.create_mgmt_client(DataFactoryManagementClient) + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_private_endpoint_connection_get(self, resource_group): + response = self.client.private_endpoint_connection.get( + resource_group_name=resource_group.name, + factory_name="str", + private_endpoint_connection_name="str", + ) + + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_private_endpoint_connection_create_or_update(self, resource_group): @@ -39,20 +51,6 @@ def test_private_endpoint_connection_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2018-06-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_private_endpoint_connection_get(self, resource_group): - response = self.client.private_endpoint_connection.get( - resource_group_name=resource_group.name, - factory_name="str", - private_endpoint_connection_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -65,7 +63,6 @@ def test_private_endpoint_connection_delete(self, resource_group): resource_group_name=resource_group.name, factory_name="str", private_endpoint_connection_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_endpoint_connection_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_endpoint_connection_operations_async.py index 89925dabee4d..f985b0bd2255 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_endpoint_connection_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_endpoint_connection_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,6 +19,18 @@ class TestDataFactoryManagementPrivateEndpointConnectionOperationsAsync(AzureMgm def setup_method(self, method): self.client = self.create_mgmt_client(DataFactoryManagementClient, is_async=True) + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_private_endpoint_connection_get(self, resource_group): + response = await self.client.private_endpoint_connection.get( + resource_group_name=resource_group.name, + factory_name="str", + private_endpoint_connection_name="str", + ) + + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_private_endpoint_connection_create_or_update(self, resource_group): @@ -40,20 +52,6 @@ async def test_private_endpoint_connection_create_or_update(self, resource_group }, "type": "str", }, - api_version="2018-06-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_private_endpoint_connection_get(self, resource_group): - response = await self.client.private_endpoint_connection.get( - resource_group_name=resource_group.name, - factory_name="str", - private_endpoint_connection_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -66,7 +64,6 @@ async def test_private_endpoint_connection_delete(self, resource_group): resource_group_name=resource_group.name, factory_name="str", private_endpoint_connection_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_link_resources_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_link_resources_operations.py index 1a967950fd4e..7afb94ed3ba9 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_link_resources_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_link_resources_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -24,7 +24,6 @@ def test_private_link_resources_get(self, resource_group): response = self.client.private_link_resources.get( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_link_resources_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_link_resources_operations_async.py index 0770e7c9b475..db62a0808905 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_link_resources_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_private_link_resources_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ async def test_private_link_resources_get(self, resource_group): response = await self.client.private_link_resources.get( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_trigger_runs_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_trigger_runs_operations.py index fc0a1e4dcdb3..b8bf79db1248 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_trigger_runs_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_trigger_runs_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,13 +20,17 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_trigger_runs_rerun(self, resource_group): - response = self.client.trigger_runs.rerun( + def test_trigger_runs_query_by_factory(self, resource_group): + response = self.client.trigger_runs.query_by_factory( resource_group_name=resource_group.name, factory_name="str", - trigger_name="str", - run_id="str", - api_version="2018-06-01", + filter_parameters={ + "lastUpdatedAfter": "2020-02-20 00:00:00", + "lastUpdatedBefore": "2020-02-20 00:00:00", + "continuationToken": "str", + "filters": [{"operand": "str", "operator": "str", "values": ["str"]}], + "orderBy": [{"order": "str", "orderBy": "str"}], + }, ) # please add some check logic here by yourself @@ -34,13 +38,12 @@ def test_trigger_runs_rerun(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_trigger_runs_cancel(self, resource_group): - response = self.client.trigger_runs.cancel( + def test_trigger_runs_rerun(self, resource_group): + response = self.client.trigger_runs.rerun( resource_group_name=resource_group.name, factory_name="str", trigger_name="str", run_id="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -48,18 +51,12 @@ def test_trigger_runs_cancel(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_trigger_runs_query_by_factory(self, resource_group): - response = self.client.trigger_runs.query_by_factory( + def test_trigger_runs_cancel(self, resource_group): + response = self.client.trigger_runs.cancel( resource_group_name=resource_group.name, factory_name="str", - filter_parameters={ - "lastUpdatedAfter": "2020-02-20 00:00:00", - "lastUpdatedBefore": "2020-02-20 00:00:00", - "continuationToken": "str", - "filters": [{"operand": "str", "operator": "str", "values": ["str"]}], - "orderBy": [{"order": "str", "orderBy": "str"}], - }, - api_version="2018-06-01", + trigger_name="str", + run_id="str", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_trigger_runs_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_trigger_runs_operations_async.py index ff9d6271ebb3..2f1e0c04eb4c 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_trigger_runs_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_trigger_runs_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,13 +21,17 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_trigger_runs_rerun(self, resource_group): - response = await self.client.trigger_runs.rerun( + async def test_trigger_runs_query_by_factory(self, resource_group): + response = await self.client.trigger_runs.query_by_factory( resource_group_name=resource_group.name, factory_name="str", - trigger_name="str", - run_id="str", - api_version="2018-06-01", + filter_parameters={ + "lastUpdatedAfter": "2020-02-20 00:00:00", + "lastUpdatedBefore": "2020-02-20 00:00:00", + "continuationToken": "str", + "filters": [{"operand": "str", "operator": "str", "values": ["str"]}], + "orderBy": [{"order": "str", "orderBy": "str"}], + }, ) # please add some check logic here by yourself @@ -35,13 +39,12 @@ async def test_trigger_runs_rerun(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_trigger_runs_cancel(self, resource_group): - response = await self.client.trigger_runs.cancel( + async def test_trigger_runs_rerun(self, resource_group): + response = await self.client.trigger_runs.rerun( resource_group_name=resource_group.name, factory_name="str", trigger_name="str", run_id="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -49,18 +52,12 @@ async def test_trigger_runs_cancel(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_trigger_runs_query_by_factory(self, resource_group): - response = await self.client.trigger_runs.query_by_factory( + async def test_trigger_runs_cancel(self, resource_group): + response = await self.client.trigger_runs.cancel( resource_group_name=resource_group.name, factory_name="str", - filter_parameters={ - "lastUpdatedAfter": "2020-02-20 00:00:00", - "lastUpdatedBefore": "2020-02-20 00:00:00", - "continuationToken": "str", - "filters": [{"operand": "str", "operator": "str", "values": ["str"]}], - "orderBy": [{"order": "str", "orderBy": "str"}], - }, - api_version="2018-06-01", + trigger_name="str", + run_id="str", ) # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_triggers_operations.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_triggers_operations.py index bc2ec6b1e081..8b3368b17dc8 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_triggers_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_triggers_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,24 +20,23 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_triggers_list_by_factory(self, resource_group): - response = self.client.triggers.list_by_factory( + def test_triggers_query_by_factory(self, resource_group): + response = self.client.triggers.query_by_factory( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", + filter_parameters={"continuationToken": "str", "parentTriggerName": "str"}, ) - result = [r for r in response] + # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_triggers_query_by_factory(self, resource_group): - response = self.client.triggers.query_by_factory( + def test_triggers_get(self, resource_group): + response = self.client.triggers.get( resource_group_name=resource_group.name, factory_name="str", - filter_parameters={"continuationToken": "str", "parentTriggerName": "str"}, - api_version="2018-06-01", + trigger_name="str", ) # please add some check logic here by yourself @@ -50,8 +49,21 @@ def test_triggers_create_or_update(self, resource_group): resource_group_name=resource_group.name, factory_name="str", trigger_name="str", - trigger={"properties": "trigger", "etag": "str", "id": "str", "name": "str", "type": "str"}, - api_version="2018-06-01", + trigger={ + "properties": "trigger", + "etag": "str", + "id": "str", + "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, ) # please add some check logic here by yourself @@ -59,12 +71,11 @@ def test_triggers_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_triggers_get(self, resource_group): - response = self.client.triggers.get( + def test_triggers_delete(self, resource_group): + response = self.client.triggers.delete( resource_group_name=resource_group.name, factory_name="str", trigger_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -72,14 +83,12 @@ def test_triggers_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_triggers_delete(self, resource_group): - response = self.client.triggers.delete( + def test_triggers_list_by_factory(self, resource_group): + response = self.client.triggers.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - trigger_name="str", - api_version="2018-06-01", ) - + result = [r for r in response] # please add some check logic here by yourself # ... @@ -90,7 +99,6 @@ def test_triggers_begin_subscribe_to_events(self, resource_group): resource_group_name=resource_group.name, factory_name="str", trigger_name="str", - api_version="2018-06-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -103,7 +111,6 @@ def test_triggers_get_event_subscription_status(self, resource_group): resource_group_name=resource_group.name, factory_name="str", trigger_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -116,7 +123,6 @@ def test_triggers_begin_unsubscribe_from_events(self, resource_group): resource_group_name=resource_group.name, factory_name="str", trigger_name="str", - api_version="2018-06-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -129,7 +135,6 @@ def test_triggers_begin_start(self, resource_group): resource_group_name=resource_group.name, factory_name="str", trigger_name="str", - api_version="2018-06-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -142,7 +147,6 @@ def test_triggers_begin_stop(self, resource_group): resource_group_name=resource_group.name, factory_name="str", trigger_name="str", - api_version="2018-06-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_triggers_operations_async.py b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_triggers_operations_async.py index 3b23cc9060b9..e5fffb58576c 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_triggers_operations_async.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_triggers_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,24 +21,23 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_triggers_list_by_factory(self, resource_group): - response = self.client.triggers.list_by_factory( + async def test_triggers_query_by_factory(self, resource_group): + response = await self.client.triggers.query_by_factory( resource_group_name=resource_group.name, factory_name="str", - api_version="2018-06-01", + filter_parameters={"continuationToken": "str", "parentTriggerName": "str"}, ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_triggers_query_by_factory(self, resource_group): - response = await self.client.triggers.query_by_factory( + async def test_triggers_get(self, resource_group): + response = await self.client.triggers.get( resource_group_name=resource_group.name, factory_name="str", - filter_parameters={"continuationToken": "str", "parentTriggerName": "str"}, - api_version="2018-06-01", + trigger_name="str", ) # please add some check logic here by yourself @@ -51,8 +50,21 @@ async def test_triggers_create_or_update(self, resource_group): resource_group_name=resource_group.name, factory_name="str", trigger_name="str", - trigger={"properties": "trigger", "etag": "str", "id": "str", "name": "str", "type": "str"}, - api_version="2018-06-01", + trigger={ + "properties": "trigger", + "etag": "str", + "id": "str", + "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, ) # please add some check logic here by yourself @@ -60,12 +72,11 @@ async def test_triggers_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_triggers_get(self, resource_group): - response = await self.client.triggers.get( + async def test_triggers_delete(self, resource_group): + response = await self.client.triggers.delete( resource_group_name=resource_group.name, factory_name="str", trigger_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -73,14 +84,12 @@ async def test_triggers_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_triggers_delete(self, resource_group): - response = await self.client.triggers.delete( + async def test_triggers_list_by_factory(self, resource_group): + response = self.client.triggers.list_by_factory( resource_group_name=resource_group.name, factory_name="str", - trigger_name="str", - api_version="2018-06-01", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... @@ -92,7 +101,6 @@ async def test_triggers_begin_subscribe_to_events(self, resource_group): resource_group_name=resource_group.name, factory_name="str", trigger_name="str", - api_version="2018-06-01", ) ).result() # call '.result()' to poll until service return final result @@ -106,7 +114,6 @@ async def test_triggers_get_event_subscription_status(self, resource_group): resource_group_name=resource_group.name, factory_name="str", trigger_name="str", - api_version="2018-06-01", ) # please add some check logic here by yourself @@ -120,7 +127,6 @@ async def test_triggers_begin_unsubscribe_from_events(self, resource_group): resource_group_name=resource_group.name, factory_name="str", trigger_name="str", - api_version="2018-06-01", ) ).result() # call '.result()' to poll until service return final result @@ -135,7 +141,6 @@ async def test_triggers_begin_start(self, resource_group): resource_group_name=resource_group.name, factory_name="str", trigger_name="str", - api_version="2018-06-01", ) ).result() # call '.result()' to poll until service return final result @@ -150,7 +155,6 @@ async def test_triggers_begin_stop(self, resource_group): resource_group_name=resource_group.name, factory_name="str", trigger_name="str", - api_version="2018-06-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/datafactory/azure-mgmt-datafactory/pyproject.toml b/sdk/datafactory/azure-mgmt-datafactory/pyproject.toml index 6201337de59e..4407f051ab0a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/pyproject.toml +++ b/sdk/datafactory/azure-mgmt-datafactory/pyproject.toml @@ -13,17 +13,16 @@ authors = [ description = "Microsoft Azure Datafactory Management Client Library for Python" license = "MIT" classifiers = [ - "Development Status :: 5 - Production/Stable", + "Development Status :: 4 - Beta", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", ] -requires-python = ">=3.9" +requires-python = ">=3.10" keywords = [ "azure", "azure sdk", @@ -79,7 +78,7 @@ package_name = "azure-mgmt-datafactory" package_nspkg = "azure-mgmt-nspkg" package_pprint_name = "Data Factory Management" package_doc_id = "datafactory" -is_stable = true +is_stable = false is_arm = true title = "DataFactoryManagementClient" need_msrestazure = false diff --git a/sdk/datafactory/azure-mgmt-datafactory/tsp-location.yaml b/sdk/datafactory/azure-mgmt-datafactory/tsp-location.yaml new file mode 100644 index 000000000000..0d4e9a53e406 --- /dev/null +++ b/sdk/datafactory/azure-mgmt-datafactory/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory +commit: 5c7cd01768cc4a537f309dff14af7be34f87cd14 +repo: Azure/azure-rest-api-specs +additionalDirectories: